Releases: JKorf/Bitget.Net
Releases · JKorf/Bitget.Net
Bitget.Net Version 2.5.0
- Updated CryptoExchange.Net to version 9.5.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added improved error parsing
- Updated rest request sending too prevent duplicate parameter serialization
Updates notes:
- Error.Code is deprecated, use Error.ErrorCode instead for checking specific errors
Bitget.Net Version 2.4.0
- Updated CryptoExchange.Net to version 9.4.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added support for multi-symbol Shared socket subscriptions
Bitget.Net Version 2.3.0
- Updated CryptoExchange.Net to version 9.3.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Updated websocket message matching
- Fixed culture issue in websocket subscriptions
Bitget.Net Version 2.2.1
- Updated CryptoExchange.Net to version 9.2.1, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Fixed issue with websocket ping response parsing
Bitget.Net Version 2.2.0
- 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
- Added MaxMarketOrderQuantity and MaxLimitOrderQuantity properties to BitgetContract model
- Added PositionSide to BitgetFuturesAdlRank model
Version 2.1.0
- Updated CryptoExchange.Net to version 9.1.0, see https://github.com/JKorf/CryptoExchange.Net/releases/
- Added (I)BitgetUserClientProvider allowing for easy client management when handling multiple users
- Fixed demo trading check
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 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
orToArray
this overhead can now be removed - The
AddBitget(restOptions, socketOptions)
overload was removed but can be replaced byAddBitget(options)
, whereoptions.Rest
is the same as the previous versionsrestOptions
andoptions.Socket
is the same as previous versionssocketOptions
. - 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*/)
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
Bitget
, it is now splitBitget.RestClient
andBitget.SocketClient
. Update any logic depending on this accordingly
Version 2.0.0-beta3
- Updated CryptoExchange.Net version to 9.0.0-beta5
- Added property to retrieve all available API environments
Version 2.0.0-beta2
- Updated CryptoExchange.Net to version 9.0.0-beta2
- Added Shared spot ticker QuoteVolume mapping
- Fixed incorrect DataTradeMode on responses