Skip to content
Crypto Deposits and Withdrawals

Estimate Crypto Withdrawal Fee

Estimates the withdrawal fee for a token, network, and quantity. The fee has two parts: the crypto fee (crypto_fee) deducted from the withdrawn crypto, and the account service fee (fiat_fee) deducted from the available cash in the securities account.

Call it after the Client stops typing (the page uses a debounce of about 500 ms). The estimated amount to receive is the withdrawal quantity minus the crypto fee; when crypto_fee is empty, use fee. If the available cash in the securities account cannot cover the account service fee, the withdrawal request cannot be submitted. If the request fails, clear the fee display and block submission.

GEThttps://api.lbkrs.com/v1/atm/va/estimate/coin/fee

Parameters

coinstringqueryRequired

Token symbol, such as BTC, ETH, or USDT, taken from coin in Get Crypto Token List.

chain_typestringqueryRequired

Network (chain) name, one of the values in the token chain_types.

quantitystringqueryRequired

Quantity to withdraw, as a decimal string.

usd_ratestringqueryRequired

USD price of the token, taken from last_done in Get Crypto Prices.

need_crypto_feebooleanquery

Whether to return the crypto fee and its breakdown. The withdrawal page passes true.

need_fiat_feebooleanquery

Whether to return the account service fee and its breakdown. The withdrawal page passes true.

Responses

HTTP 200The request succeeded. The response body contains the result of the “Estimate Crypto Withdrawal Fee” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
feestring

Withdrawal fee in the token. Kept for compatibility; when crypto_fee has a value, use crypto_fee.

crypto_feestring

Crypto fee in the token, deducted from the withdrawal quantity.

crypto_fee_detailsarray<object>

Breakdown of the crypto fee.

Child attributes
fee_namestring

Name of the fee item, such as the exchange fee or the withdrawal service fee. You can show it to the Client as is.

fee_amountstring

Amount of the fee item as a decimal string. Fee items with an amount of 0 or less do not need to be shown.

fiat_currencystring

Currency of the account service fee.

fiat_feestring

Account service fee, deducted from the available cash in the securities account. Do not show it when it is empty or not greater than 0.

fiat_fee_detailsarray<object>

Breakdown of the account service fee.

Child attributes
fee_namestring

Name of the fee item, such as the exchange fee or the withdrawal service fee. You can show it to the Client as is.

fee_amountstring

Amount of the fee item as a decimal string. Fee items with an amount of 0 or less do not need to be shown.

Whale Docs