062submit_withdraw - coinexcom/coinex_exchange_api GitHub Wiki
-
Request description: Submit a withdrawal order.
-
Request type: POST
-
Signature required: Yes
-
Request Header:
authorization:"xxxx"(32-digit capital letters, see generating method in <API invocation instruction>) -
Request Url:https://api.coinex.com/v1/balance/coin/withdraw
-
Request parameter:
name type required description access_id String Yes access_id tonce Integer Yes Tonce is a timestamp with a positive Interger that represents the number of milliseconds from Unix epoch to the current time. Error between tonce and server time can not exceed plus or minus 60s coin_type String Yes coin_type smart_contract_name String No Multi-protocol USDT parameter: ERC20, TRC20, CoinExChain (ERC20 is set by default for USDT); No required for non-multi-protocol coin types. coin_address String Yes Withdrawal address, which must be authorized (Must add one record in Withdrawal Whitelist (under Api management)). While withdrawing XMR or XMC, use ":" to put “address” and “payment_id” together and form "coin_address", e.g. XXXX:yyyy. While withdrawing XRP, use ":" to put “address” and “tag” together and form "coin_address" if it has "tag". Inter-user transfer supported via registered Mobile or Email in CoinEx transfer_method String Yes onchain -- Normal transfer local -- Inter-user transfer actual_amount String Yes Withdrawal actual amount. Actual means the actual amount of coins arrived in account after deducting withdrawal fees. Check withdrawal fees: https://www.coinex.com/fees -
Return value description:
name description coin_withdraw_id coin withdrawal id create_time create time amount withdrawal amount actual_amount actual amount tx_id tx id coin_address coin address tx_fee tx fee confirmations confirmations coin_type coin type status status of withdrawal -
Example:
# Request
POST https://api.coinex.com/v1/balance/coin/withdraw?access_id=4DA36FFC61334695A66F8D29020EB589&tonce=1513746038205
# Response
{
"code": 0,
"data": {
"actual_amount": "1.00000000",
"amount": "1.00000000",
"coin_address": "1KAv3pazbTk2JnQ5xTo6fpKK7p1it2RzD4",
"coin_type": "BCH",
"coin_withdraw_id": 206,
"confirmations": 0,
"create_time": 1524228297,
"status": "audit",
"tx_fee": "0",
"tx_id": ""
},
"message": "Ok"
}