A partir do sgcWebSockets 2022.7.0 o Carteira Binance API é suportado, isso significa você pode request Withdraw, view o deposit history, withdraw history e more.
https://binance-docs.github.io/apidocs/spot/en/#carteira-endpoints
Métodos da Carteira
| Method | Description |
| GetWalletSystemStatus | Fetch system status. |
| GetWalletAllCoinsInformation | Get information de coins (available para deposit e withdraw) para user. |
| GetWalletDailyAccountSnapshot | Type: "SPOT", "MARGIN", "FUTURES"
|
| SetWalletDisableFastWithdrawSwitch | This request will disable fastwithdraw switch under your account. Você precisa enable "trade" option para o api key which requests this endpoint. |
| SetWalletEnableFastWithdrawSwitch | This request will enable fastwithdraw switch under your account. Você precisa enable "trade" option para o api key which requests this endpoint. When Fast Withdraw Switch is on, transferring funds para um Binance account será done instantly. There is no on-chain transaction, no transaction ID e no withdrawal fee. |
| WalletWithdraw |
Submit um withdraw request. |
| GetWalletDepositHistory | Fetch deposit history. |
| GetWalletWithdrawHistory | Fetch Withdraw history. |
| GetWalletDepositAddress | Fetch deposit address com network. |
| GetWalletAccountStatus | Fetch account status detail. |
| GetWalletAccountAPITradingStatus | Fetch account api trading status detail. |
| GetWalletDustLog | Somente return last 100 records Somente return records after 2020/12/01 |
| GetWalletAssetsConvertedBNB | |
| WalletDustTransfer |
Convert dust assets para BNB. Você precisa openEnable Spot & Margin Trading permission para um Chave de API which requests this endpoint. |
| GetWalletAssetDividendRecord | Query asset dividend record. |
| GetWalletAssetDetail | Fetch details de assets suportado em Binance. |
| GetWalletTradeFee | Fetch trade fee |
| WalletUserUniversalTransfer |
Você precisa enable Permits Universal Transfer option para um Chave de API which requests this endpoint.MAIN_UMFUTURE Spot account transfer para USDⓈ-M Futures account ENUM de Type:
|
| GetWalletQueryUserUniversalTransferHistory |
|
| GetWalletFundingWallet | Atualmente suporta querying o following business assets:Binance Pay, Binance Card, Binance Gift Card, Stock Token |
| GetWalletUserAsset | Get user assets, just para positive data. |
| GetWalletApiKeyPermission |
Exemplo
Binance permite use o API da carteira para submit um Withdraw request, somente o followin parâmetros are mandatory:
- Coin
- Address
- Amount
oBinance := TsgcWSAPI_Binance.Create(nil);
oBinance.Binance.ApiKey := '<your api key>';
oBinance.Binance.ApiSecret := '<your api secret>';
ShowMessage(oBinance.REST_API.WalletWithdraw('BTC', '7213fea8e94b4a5593d507237e5a555b', 0.25));
Veja abaixo um compiled Binance demo para Windows which shows o main features de um API client. Select o Carteira tab para test o Carteira Binance métodos.
