Skip to content

Releases: JKorf/BitMart.Net

Version 2.1.0

02 Jun 07:37
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.1.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
  • Added (I)BitMartUserClientProvider allowing for easy client management when handling multiple users
  • Added Fee and FeeAsset to (Shared) Spot order update stream updates
  • Added Unavailable property to BitMartBalance model

Version 2.0.0

13 May 14:27
Compare
Choose a tag to compare
  • 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 UsdFutures and Spot Shared clients
  • Added OptionalExchangeParameters and Supported properties to EndpointOptions
  • Added IBookTickerRestClient implementation to UsdFutures and Spot Shared clients
  • Added ISpotOrderClientIdClient implementation to Spot Shared client
  • Added IFuturesOrderClientIdClient implementation to UsdFutures Shared client
  • Added IFuturesTriggerOrderRestClient implementation to UsdFutures Shared client
  • Added IPositionModeRestClient implementation to UsdFutures Shared client
  • Added IFuturesTpSlRestClient implementation to UsdFutures Shared client
  • Added MaxLongLeverage and MaxShortLeverage to SharedFuturesSymbol response model
  • Added takeProfitPrice and stopLossPrice support to Shared UsdFutures PlaceOrderAsync method
  • Added TakeProfitPrice, StopLossPrice, TriggerPrice and IsTriggerOrder to SharedFuturesOrder model
  • Added QuoteVolume property mapping to SharedSpotTicker response model
  • Added restClient.UsdFuturesApi.Trading.CancelAllAfterAsync endpoint
  • Added restClient.UsdFuturesApi.Account.SetPositionModeAsync and GetPositionModeAsync endpoints
  • Added PositionMode properties to response models
  • Added All property to retrieve all available environment on BitMartEnvironment
  • Added CancelSource property to BitMartOrder model
  • Refactored Shared clients quantity parameters and responses to use Shared Quantity
  • Updated all IEnumerable response and model types to array response types
  • Updated BitMartFuturesOrderUpdate response model
  • Replaced BitMartApiCredentials with ApiCredentials
  • Fixed incorrect DataTradeMode on certain Shared interface responses
  • Removed Newtonsoft.Json dependency
  • Removed legacy ISpotClient implementation
  • Removed legacy AddBitMart(restOptions, socketOptions) DI overload
  • Fixed some typos

Updates notes:

  • Processing responses which previously returned an IEnumerable now return an array. Although you can still call ToList or ToArray this overhead can now be removed
  • The AddBitMart(restOptions, socketOptions) overload was removed but can be replaced by AddBitMart(options), where options.Rest is the same as the previous versions restOptions and options.Socket is the same as previous versions socketOptions.
  • The BitMartApiCredentials 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*/) or SharedQuantity.Contracts(/*qty*/).
  • Quantity responses for the Shared interfaces have the same logic, quantities are wrapped in the SharedOrderQuantity model, containing the QuantityInBaseAsset, QuantityInQuoteAsset and QuantityInContracts 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 BitMart, it is now split BitMart.RestClient and BitMart.SocketClient. Update any logic depending on this accordingly.

Version 2.0.0-beta3

01 May 11:39
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net version to 9.0.0-beta5
  • Added property to retrieve all available API environments

Version 2.0.0-beta2

23 Apr 14:00
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.0.0-beta2
  • Added Shared spot ticker QuoteVolume mapping
  • Fixed incorrect DataTradeMode on responses

Version 2.0.0-beta1

22 Apr 08:12
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.0.0-beta1, 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 UsdFutures and Spot Shared clients
  • Added OptionalExchangeParameters and Supported properties to EndpointOptions
  • Added IBookTickerRestClient implementation to UsdFutures and Spot Shared clients
  • Added ISpotOrderClientIdClient implementation to Spot Shared client
  • Added IFuturesOrderClientIdClient implementation to UsdFutures Shared client
  • Added IFuturesTriggerOrderRestClient implementation to UsdFutures Shared client
  • Added IPositionModeRestClient implementation to UsdFutures Shared client
  • Added IFuturesTpSlRestClient implementation to UsdFutures Shared client
  • Added MaxLongLeverage and MaxShortLeverage to SharedFuturesSymbol response model
  • Added takeProfitPrice and stopLossPrice support to Shared UsdFutures PlaceOrderAsync method
  • Added TakeProfitPrice, StopLossPrice, TriggerPrice and IsTriggerOrder to SharedFuturesOrder model
  • Added restClient.UsdFuturesApi.Trading.CancelAllAfterAsync endpoint
  • Added restClient.UsdFuturesApi.Account.SetPositionModeAsync and GetPositionModeAsync endpoints
  • Added PositionMode properties to response models
  • Refactored Shared clients quantity parameters and responses to use Shared Quantity
  • Updated all IEnumerable response and model types to array response types
  • Updated BitMartFuturesOrderUpdate response model
  • Replaced BitMartApiCredentials with ApiCredentials
  • Removed Newtonsoft.Json dependency
  • Removed legacy ISpotClient implementation
  • Removed legacy AddBitMart(restOptions, socketOptions) DI overload
  • Fixed some typos

Updates notes:

  • Processing responses which previously returned an IEnumerable now return an array. Although you can still call ToList or ToArray this overhead can now be removed
  • The AddBitMart(restOptions, socketOptions) overload was removed but can be replaced by AddBitMart(options), where options.Rest is the same as the previous versions restOptions and options.Socket is the same as previous versions socketOptions
  • The BitMartApiCredentials 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*/) or SharedQuantity.Contracts(/*qty*/)
  • Quantity responses for the Shared interfaces have the same logic, quantities are wrapped in the SharedOrderQuantity model, containing the QuantityInBaseAsset, QuantityInQuoteAsset and QuantityInContracts properties
  • See https://cryptoexchange.jkorf.dev/client-libs/shared/quantities for more info on the new quantity notations

Version 1.15.1

28 Mar 12:21
Compare
Choose a tag to compare
  • Added ReceiveWindow Rest client option for signed requests

Version 1.15.0

24 Mar 13:10
Compare
Choose a tag to compare
  • Added stpMode parameter to restClient.UsdFuturesApi.Trading.PlaceOrderAsync endpoint
  • Added restClient.UsdFuturesApi.Trading.EditOrderAsync endpoint

Version 1.14.0

20 Feb 14:31
Compare
Choose a tag to compare
  • Added restClient.SpotApi.Account.GetWithdrawalAddressesAsync endpoint
  • Added startTime/endTime filter to restClient.SpotApi.Account.GetDepositHistoryAsync and GetWithdrawalHistoryAsync
  • Added needUsdValuation to restClient.SpotApi.Account.GetFundingBalancesAsync endpoint
  • Added asset parameter to restClient.SpotApi.ExchangeData.GetAssetDepositWithdrawInfoAsync endpoint
  • Added restClient.UsdFuturesApi.ExchangeData.GetMarkKlinesAsync endpoint
  • Added socketClient.UsdFuturesApi.SubscribeToMarkKlineUpdatesAsync subscription
  • Added symbol specific overloads for socketClient.UsdFuturesApi.SubscribeToTickerUpdatesAsync subscription

Version 1.13.0

11 Feb 09:47
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 8.8.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
  • Added support for more SharedKlineInterval values
  • Added setting of DataTime value on websocket DataEvent updates
  • Fix Mono runtime exception on rest client construction using DI

Version 1.12.2

22 Jan 11:00
Compare
Choose a tag to compare
  • Added BuyerIsMaker property to socketClient.UsdFuturesApi.SubscribeToTradeUpdatesAsync update model
  • Added Side to futures API shared interfaces trade subscription