-
-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added futures GetFundingInfoAsync endpoints
- Loading branch information
Showing
8 changed files
with
132 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
Binance.Net.UnitTests/JsonResponses/CoinFutures/ExchangeData/GetFundingInfoAsync.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"symbol": "BLZUSDT", | ||
"adjustedFundingRateCap": "0.02500000", | ||
"adjustedFundingRateFloor": "-0.02500000", | ||
"fundingIntervalHours": 8 | ||
} | ||
] |
8 changes: 8 additions & 0 deletions
8
Binance.Net.UnitTests/JsonResponses/UsdFutures/ExchangeData/GetFundingInfoAsync.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[ | ||
{ | ||
"symbol": "BLZUSDT", | ||
"adjustedFundingRateCap": "0.02500000", | ||
"adjustedFundingRateFloor": "-0.02500000", | ||
"fundingIntervalHours": 8 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
Binance.Net/Objects/Models/Futures/BinanceFuturesFundingInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using CryptoExchange.Net.Converters; | ||
using Newtonsoft.Json; | ||
|
||
namespace Binance.Net.Objects.Models.Futures | ||
{ | ||
/// <summary> | ||
/// Funding rate information for Futures trading | ||
/// </summary> | ||
public class BinanceFuturesFundingInfo | ||
{ | ||
/// <summary> | ||
/// The symbol the information is about | ||
/// </summary> | ||
[JsonProperty("symbol")] | ||
public string Symbol { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Adjusted funding rate cap | ||
/// </summary> | ||
[JsonProperty("adjustedFundingRateCap")] | ||
public decimal AdjustedFundingRateCap { get; set; } | ||
/// <summary> | ||
/// Adjusted funding rate floor | ||
/// </summary> | ||
[JsonProperty("adjustedFundingRateFloor")] | ||
public decimal AdjustedFundingRateFloor { get; set; } | ||
/// <summary> | ||
/// Funding interval in hours | ||
/// </summary> | ||
[JsonProperty("fundingIntervalHours")] | ||
public int FundingIntervalHours { get; set; } | ||
} | ||
} |