Skip to content

Releases: JKorf/Bitget.Net

Bitget.Net Version 2.5.0

20 Aug 11:47
Compare
Choose a tag to compare

Updates notes:

  • Error.Code is deprecated, use Error.ErrorCode instead for checking specific errors

Bitget.Net Version 2.4.0

04 Aug 11:54
Compare
Choose a tag to compare

Bitget.Net Version 2.3.0

23 Jul 12:42
Compare
Choose a tag to compare

Bitget.Net Version 2.2.1

16 Jul 09:19
Compare
Choose a tag to compare

Bitget.Net Version 2.2.0

15 Jul 11:34
Compare
Choose a tag to compare
  • Updated CryptoExchange.Net to version 9.2.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
  • Added MarkPrice property to socketClient.FuturesApiV2.SubscribeToPositionUpdatesAsync update model
  • Added PositionMode property to estClient.FuturesApiV2.Trading.GetPositionHistoryAsync response model
  • Added restClient.FuturesApiV2.Trading.SetPositionTpSlAsync endpoint
  • Added longLeverage, shortLeverage parameters to restClient.FuturesApiV2.Account.SetLeverageAsync endpoint

Version 2.1.1

20 Jun 09:51
Compare
Choose a tag to compare
  • Added MaxMarketOrderQuantity and MaxLimitOrderQuantity properties to BitgetContract model
  • Added PositionSide to BitgetFuturesAdlRank model

Version 2.1.0

02 Jun 07:46
Compare
Choose a tag to compare

Version 2.0.0

13 May 14:29
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 Futures and Spot Shared clients
  • Added OptionalExchangeParameters and Supported properties to EndpointOptions
  • Added IBookTickerRestClient implementation to Futures and Spot Shared clients
  • Added IFuturesOrderClientIdClient implementation to Futures Shared client
  • Added IFuturesTriggerOrderRestClient implementation to Futures Shared client
  • Added IFuturesTpSlRestClient implementation to Futures Shared client
  • Added ISpotOrderClientIdClient implementation to Spot Shared client
  • Added ISpotTriggerOrderRestClient implementation to Futures Shared client
  • Added MaxShortLeverage and MaxLongLeverage to SharedFuturesSymbol response model
  • Added support for takeProfitPrice and StopLossPrice to Futures Shared PlaceOrderAsync endpoint
  • Added TakeProfitPrice and StopLossPrice properties to SharedFuturesOrder response model
  • Added TriggerPrice and IsTriggerOrder properties to SharedFuturesOrder response model
  • Added QuoteVolume property mapping to SharedSpotTicker response model
  • Added restClient.FuturesApiV2.Account.GetAdlRankAsync endpoint
  • Added restClient.FuturesApiV2.ExchangeData.GetFundingRatesAsync endpoint
  • Added restClient.SpotApiV2.Margin.GetInterestRatesAsync endpoint
  • Added restClient.SpotApiV2.ExchangeData.GetAnnouncementsAsync endpoint
  • Added All property to retrieve all available environment on BitgetEnvironment
  • Added takeProfitLimitPrice, stopLossLimitPrice parameters to restClient.FuturesApiV2.Trading.PlaceOrderAsync endpoint
  • Added UpdateTime to BitgetMarginOrderUpdate model
  • Added idLessThan, limit parameters to restClient.SpotApiV2.Account.GetSubAccountBalancesAsync
  • Refactored Shared clients quantity parameters and responses to use SharedQuantity
  • Updated all IEnumerable response and model types to array response types
  • Updated PlaceMultipleOrdersAsync methods to return a list of CallResult models and an error if all orders fail to place
  • Updated restClient.FuturesApiV2.ExchangeData.GetFundingRateAsync response model
  • Updated restClient.SpotApiV2.Trading.GetUserTradesAsync symbol parameter to nullable
  • Updated Shared Spot GetTradeHistoryAsync max age from 30 to 90 days
  • Replaced BitgetApiCredentials with ApiCredentials
  • Fixed incorrect DataTradeMode on certain Shared interface responses
  • Fixed Shared interfaces AveragePrice property being 0 instead of null
  • Removed V1 API support
  • Removed Newtonsoft.Json dependency
  • Removed legacy AddBitget(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 AddBitget(restOptions, socketOptions) overload was removed but can be replaced by AddBitget(options), where options.Rest is the same as the previous versions restOptions and options.Socket is the same as previous versions socketOptions.
  • The BitgetApiCredentials 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 Bitget, it is now split Bitget.RestClient and Bitget.SocketClient. Update any logic depending on this accordingly

Version 2.0.0-beta3

01 May 11:37
66eda2a
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:01
66eda2a
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