Skip to content

Commit

Permalink
Added OTOAllowed to SpotApi.ExchangeData.GetExchangeInfoAsync response
Browse files Browse the repository at this point in the history
  • Loading branch information
JKorf committed Apr 17, 2024
1 parent e669917 commit 5e948c2
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,19 @@
],
"icebergAllowed": true,
"ocoAllowed": true,
"quoteOrderQtyMarketAllowed": true,
"allowTrailingStop": false,
"cancelReplaceAllowed": false,
"isSpotTradingAllowed": true,
"isMarginTradingAllowed": true,
"filters": [
//These are defined in the Filters section.
//All filters are optional
],
"permissions": [
"SPOT",
"MARGIN"
"permissions": [],
"defaultSelfTradePreventionMode": "NONE",
"allowedSelfTradePreventionModes": [
"NONE"
]
}
]
Expand Down
5 changes: 5 additions & 0 deletions Binance.Net/Binance.Net.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15725,6 +15725,11 @@
If OCO(One Cancels Other) orders are allowed
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceSymbol.OTOAllowed">
<summary>
If OTO(One Triggers Other) orders are allowed
</summary>
</member>
<member name="P:Binance.Net.Objects.Models.Spot.BinanceSymbol.QuoteOrderQuantityMarketAllowed">
<summary>
Whether or not it is allowed to specify the quantity of a market order in the quote asset
Expand Down
10 changes: 10 additions & 0 deletions Binance.Net/Objects/Models/Spot/BinanceSymbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ public class BinanceSymbol
/// </summary>
public bool OCOAllowed { get; set; }
/// <summary>
/// If OTO(One Triggers Other) orders are allowed
/// </summary>
[JsonProperty("otoAllowed")]
public bool OTOAllowed { get; set; }
/// <summary>
/// Whether or not it is allowed to specify the quantity of a market order in the quote asset
/// </summary>
[JsonProperty("quoteOrderQtyMarketAllowed")]
Expand All @@ -85,6 +90,11 @@ public class BinanceSymbol
/// </summary>
[JsonProperty(ItemConverterType = typeof(EnumConverter), ItemConverterParameters = new object[] { false, false })]
public IEnumerable<AccountType> Permissions { get; set; } = Array.Empty<AccountType>();

// To be implemented and tested
//[JsonProperty("permissionSets")]
//public IEnumerable<IEnumerable<AccountType>> PermissionSets { get; set; } = Array.Empty<IEnumerable<AccountType>>();

/// <summary>
/// Filters for order on this symbol
/// </summary>
Expand Down

0 comments on commit 5e948c2

Please sign in to comment.