-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
using CryptoExchange.Net.Converters; | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace Bybit.Net.Objects.Models.V5 | ||
{ | ||
/// <summary> | ||
/// Broker account info | ||
/// </summary> | ||
public class BybitBrokerAccountInfo | ||
{ | ||
/// <summary> | ||
/// Current sub account quantity | ||
/// </summary> | ||
[JsonProperty("subAcctQty")] | ||
public int SubAccountCount { get; set; } | ||
/// <summary> | ||
/// Max sub account quantity | ||
/// </summary> | ||
[JsonProperty("maxSubAcctQty")] | ||
public int MaxSubAccountCount { get; set; } | ||
/// <summary> | ||
/// Timestamp | ||
/// </summary> | ||
[JsonProperty("ts")] | ||
[JsonConverter(typeof(DateTimeConverter))] | ||
public DateTime Timestamp { get; set; } | ||
/// <summary> | ||
/// Base fee rebate rates | ||
/// </summary> | ||
[JsonProperty("baseFeeRebateRate")] | ||
public BybitBrokerRebateRate BaseFeeRebateRates { get; set; } = null!; | ||
/// <summary> | ||
/// Markup fee rebate rates | ||
/// </summary> | ||
[JsonProperty("markupFeeRebateRate")] | ||
public BybitBrokerRebateRate MarkupFeeRebateRates { get; set; } = null!; | ||
} | ||
|
||
/// <summary> | ||
/// Rebate rate info | ||
/// </summary> | ||
public class BybitBrokerRebateRate | ||
{ | ||
/// <summary> | ||
/// Spot rebate rate | ||
/// </summary> | ||
[JsonProperty("spot")] | ||
public string Spot { get; set; } = string.Empty; | ||
/// <summary> | ||
/// Derivatives rebate rate | ||
/// </summary> | ||
[JsonProperty("derivatives")] | ||
public string Derivatives { get; set; } = string.Empty; | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
Bybit.UnitTests/JsonResponses/V5/Account/GetBrokerAccountInfoAsync.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,19 @@ | ||
{ | ||
"retCode": 0, | ||
"retMsg": "success", | ||
"result": { | ||
"subAcctQty": "2", | ||
"maxSubAcctQty": "20", | ||
"baseFeeRebateRate": { | ||
"spot": "10.0%", | ||
"derivatives": "10.0%" | ||
}, | ||
"markupFeeRebateRate": { | ||
"spot": "6.00%", | ||
"derivatives": "9.00%" | ||
}, | ||
"ts": "1701395633402" | ||
}, | ||
"retExtInfo": {}, | ||
"time": 1701395633403 | ||
} |