From sgcWebSockets 2022.7.0 the API Binance Wallet is supported, this means you can request Withdraw, view the deposit history, withdraw history and more.
https://binance-docs.github.io/apidocs/spot/en/#wallet-endpoints
Métodos de Wallet
| Método | Descripción |
| GetWalletSystemStatus | Obtiene el estado del sistema. |
| GetWalletAllCoinsInformation | Obtiene información de monedas (disponibles para depósito y retirada) del usuario. |
| GetWalletDailyAccountSnapshot | Type: "SPOT", "MARGIN", "FUTURES"
|
| SetWalletDisableFastWithdrawSwitch | This request will disable fastwithdraw switch under your account. You need to enable "trade" option for the api key which requests this endpoint. |
| SetWalletEnableFastWithdrawSwitch | This request will enable fastwithdraw switch under your account. You need to enable "trade" option for the api key which requests this endpoint. When Fast Withdraw Switch is on, transferring funds to a Binance account will be done instantly. There is no on-chain transaction, no transaction ID and no withdrawal fee. |
| WalletWithdraw |
EnvÃa una solicitud de retirada. |
| GetWalletDepositHistory | Obtiene el historial de depósitos. |
| GetWalletWithdrawHistory | Obtiene el historial de retiradas. |
| GetWalletDepositAddress | Obtiene la dirección de depósito con la red. |
| GetWalletAccountStatus | Obtiene el detalle del estado de la cuenta. |
| GetWalletAccountAPITradingStatus | Obtiene el detalle del estado de trading de la api de la cuenta. |
| GetWalletDustLog | Only return last 100 records Only return records after 2020/12/01 |
| GetWalletAssetsConvertedBNB | |
| WalletDustTransfer |
Convierte activos polvo a BNB. Necesitas activar el permiso Spot & Margin Trading en la API Key que solicita este endpoint. |
| GetWalletAssetDividendRecord | Consulta el registro de dividendos de activos. |
| GetWalletAssetDetail | Obtiene detalles de los activos soportados en Binance. |
| GetWalletTradeFee | Obtiene la comisión de trading |
| WalletUserUniversalTransfer |
You need to enable Permits Universal Transfer option for the API Key which requests this endpoint.MAIN_UMFUTURE Spot account transfer to USDⓈ-M Futures account ENUM of Type:
|
| GetWalletQueryUserUniversalTransferHistory |
|
| GetWalletFundingWallet | Currently supports querying the following business assets:Binance Pay, Binance Card, Binance Gift Card, Stock Token |
| GetWalletUserAsset | Obtiene los activos del usuario, solo para datos positivos. |
| GetWalletApiKeyPermission |
Ejemplo
Binance permite usar la Wallet API para enviar una solicitud de retirada; solo los siguientes parámetros son obligatorios:
- 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));
A continuación tienes una demo de Binance compilada para Windows que muestra las principales caracterÃsticas del cliente API. Selecciona la pestaña Wallet para probar los métodos Binance Wallet.
