Skip to content

Commit b05c546

Browse files
authored
Added CryptoComSymbol ContractSize property (#18)
1 parent f19ff84 commit b05c546

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CryptoCom.Net/Clients/ExchangeApi/CryptoComRestClientExchangeApiShared.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,7 @@ async Task<ExchangeWebResult<SharedFuturesSymbol[]>> IFuturesSymbolRestClient.Ge
903903
PriceDecimals = s.PriceDecimals,
904904
QuantityDecimals = s.QuantityDecimals,
905905
DeliveryTime = s.ExpiryTime,
906-
ContractSize = 1,
906+
ContractSize = s.ContractSize > 0 ? s.ContractSize.Value : 1m,
907907
MaxLongLeverage = s.MaxLeverage,
908908
MaxShortLeverage = s.MaxLeverage
909909
}).ToArray());

CryptoCom.Net/Objects/Models/CryptoComSymbol.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ public record CryptoComSymbol
6767
[JsonPropertyName("qty_tick_size")]
6868
public decimal QuantityTickSize { get; set; }
6969
/// <summary>
70+
/// ["<c>contract_size</c>"] Contract size
71+
/// </summary>
72+
[JsonPropertyName("contract_size")]
73+
public decimal? ContractSize { get; set; }
74+
/// <summary>
7075
/// ["<c>max_leverage</c>"] Max leverage
7176
/// </summary>
7277
[JsonPropertyName("max_leverage")]

0 commit comments

Comments
 (0)