Skip to content

Commit

Permalink
Added missing MarkPrice property to funding rate history model
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Jan 5, 2024
1 parent 1a648a5 commit 151b637
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[
{
"symbol": "BTCUSD_PERP",
"fundingTime": 1596038400000,
"fundingRate": "-0.00300000"
},
"fundingTime": 1698768000000,
"fundingRate": "-0.00300000",
"markPrice": "34651.40000000" // mark price associated with a particular funding fee charge
},
{
"symbol": "BTCUSD_PERP",
"fundingTime": 1596067200000,
"fundingRate": "-0.00300000"
}
"fundingTime": 1698796800000,
"fundingRate": "-0.00300000",
"markPrice": "34651.40000000"
}
]
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
[
[
{
"symbol": "BTCUSDT",
"fundingRate": "-0.03750000",
"fundingTime": 1570608000000,
"symbol": "BTCUSDT",
"fundingTime": 1698768000000,
"fundingRate": "0.00010000",
"markPrice": "34287.54619963" // mark price associated with a particular funding fee charge
},
{
"symbol": "BTCUSDT",
"fundingTime": 1698796800000,
"fundingRate": "0.00010000",
"fundingTime": 1570636800000,
"markPrice": "34651.40000000"
}
]
5 changes: 5 additions & 0 deletions Binance.Net/Binance.Net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24552,6 +24552,11 @@
The time the funding rate is applied
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Futures.BinanceFuturesFundingRateHistory.MarkPrice">
<summary>
The mark price
</summary>
</member>
<member name="T:Binance.Net.Objects.Models.Futures.BinanceFuturesIncomeHistory">
<summary>
Futures income history result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,10 @@ public class BinanceFuturesFundingRateHistory
/// </summary>
[JsonConverter(typeof(DateTimeConverter))]
public DateTime FundingTime { get; set; }
/// <summary>
/// The mark price
/// </summary>
[JsonProperty("markPrice")]
public decimal MarkPrice { get; set; }
}
}

0 comments on commit 151b637

Please sign in to comment.