Version 2.0.0
- Updated CryptoExchange.Net to version 9.0.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added support for Native AOT compilation
- Added RateLimitUpdated event
- Added SharedSymbol response property to all Shared interfaces response models returning a symbol name
- Added GenerateClientOrderId method to ExchangeApi Shared clients
- Added IBookTickerRestClient implementation to ExchangeApi Shared client
- Added takeProfitPrice, stopLossPrice support to ExchangeApi Shared PlaceFuturesOrderAsync
- Added TakeProfitPrice, StopLossPrice properties to SharedFuturesOrder model
- Added MaxLongLeverage, MaxShortLeverage to SharedFuturesSymbol model
- Added OptionalExchangeParameters and Supported properties to EndpointOptions
- Added All property to retrieve all available environment on DeepCoinEnvironment
- Refactored Shared clients quantity parameters and responses to use SharedQuantity
- Replaced DeepCoinApiCredentials with ApiCredentials
- Updated all IEnumerable response and model types to array response types
- Removed Newtonsoft.Json dependency
- Fixed incorrect Shared SpotSupportOrderQuantity configuration for limit orders
- Fixed Shared spot PlaceOrder by quote asset quantity
- Fixed DeepCoinExchange.ImageUrl link
- Fixed incorrect DataTradeMode on certain Shared interface responses
- Fixed parsing of order types
- Fixed some typos
Updates notes:
- Processing responses which previously returned an IEnumerable now return an array. Although you can still call
ToList
orToArray
this overhead can now be removed - The DeepCoinApiCredentials class is removed and is replaced by the ApiCredentials class. Replace existing calls with
new ApiCredentials("KEY", "SECRET", "PASS")
- When providing quantities for the Shared interfaces you now need to specify the type of quantity:
SharedQuantity.Base(/*qty*/)
,SharedQuantity.Quote(/*qty*/)
orSharedQuantity.Contracts(/*qty*/)
. - Quantity responses for the Shared interfaces have the same logic, quantities are wrapped in the
SharedOrderQuantity
model, containing theQuantityInBaseAsset
,QuantityInQuoteAsset
andQuantityInContracts
properties. - See https://cryptoexchange.jkorf.dev/client-libs/shared/quantities for more info on the new quantity notations
- Structured logging SourceContext now include the client type, previously the SourceContext was always
DeepCoin
, it is now splitDeepCoin.RestClient
andDeepCoin.SocketClient
. Update any logic depending on this accordingly.