JKorf / Bitget.Net

A C# .netstandard client library for the Bitget REST and Websocket Spot and Futures API focusing on clear usage and models
https://jkorf.github.io/Bitget.Net/
MIT License
12 stars 9 forks source link

WithdrawAsync not supported in version 1 #17

Closed PhilAlain closed 2 months ago

PhilAlain commented 5 months ago

Bitget is not supporting v1: await client.SpotApi.Account.WithdrawAsync(...) calls "/api/spot/v1/wallet/withdrawal-v2" and I received : [ServerError] 400172: Quantity spot.wallet.amount.empty which was nonsense as the available balance of the spot wallet was 10 x Withdraw Amount. I also double checked my parameters in debug mode.

The code written in #18 proposes a method with a different signature.

JKorf commented 2 months ago

V2 API has now been fully released including the withdraw endpoint