Wallet Endpoints
Withdraw (USER_DATA)
POST /api/v1/account/withdraw
Submit a withdraw request.
Weight: 1
Response
json
{
"success": true,
"needBrokerAudit": false, // Do you need a brokerage review?
"id": "423885103582776064", // Withdrawal successful order id
"refuseReason": "" // failure rejection reason
}Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| coin | STRING | YES | asset |
| clientOrderId | LONG | YES | client id for withdraw |
| address | STRING | YES | Withdrawal address (Note: the withdrawal address must be maintained in the PC terminal or APP terminal in the common address list inside the address) |
| addressExt | STRING | NO | tag |
| quantity | DECIMAL | YES | Number of coin withdrawals |
| chainType | STRING | NO | chain type, The chainType of USDT is OMNI ERC20 TRC20 respectively, and the default is OMNI |
| vaspCode | STRING | NO | vasp code |
| targetPersonFirstName | STRING | NO | target person first name |
| targetPersonLastName | STRING | NO | target person last name |
Withdrawal records (USER_DATA)
GET /api/v1/account/withdrawOrders (HMAC SHA256)
Weight: 5
Response
json
[
{
"time": "1536232111669",
"id ": "90161227158286336",
"accountId": "517256161325920",
"coinId ": "BHC",
"coinName": "BHC",
"address": "0x815bF1c3cc0f49b8FC66B21A7e48fCb476051209",
"addressExt": "address tag",
"quantity": "14", // Withdrawal amount
"arriveQuantity": "14", // Amount received
"statusCode": "PROCESSING_STATUS",
"status": 3,
"txId ": "",
"txIdUrl ": "",
"walletHandleTime": "1536232111669",
"feeCoinId ": "BHC",
"feeCoinName ": "BHC",
"fee": "0.1",
"requiredConfirmTimes ": 0, // Number of confirmation requests
"confirmTimes ": 0, // number of confirmations
"kernelId": "", // Exclusive to BEAM and GRIN
"isInternalTransfer": false // Whether internal transfer
}
]Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| coin | STRING | NO | asset |
| startTime | LONG | NO | start timestamp |
| endTime | LONG | NO | end timestamp |
| fromId | LONG | NO | From which OrderId to start fetching |
| withdrawOrderId | LONG | NO | Withdrawal order ID |
| limit | INT | NO | default 500; maximum 1000 |
| recvWindow | LONG | NO | recv window |
| timestamp | LONG | YES | Timestamp |
Deposit Address (USER_DATA)
GET /api/v1/account/deposit/address (HMAC SHA256)
Fetch deposit address with network.
Weight: 1
Response
json
{
"canDeposit": false, //Is it possible to recharge
"address": "0x815bF1c3cc0f49b8FC66B21A7e48fCb476051209",
"addressExt": "address tag",
"minQuantity": "100", //minimum amount
"requiredConfirmTimes ": 1, //Arrival confirmation number
"canWithdrawConfirmNum ": 12, //Withdrawal confirmation number
"coinType": "ERC20_TOKEN"
}Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| coin | STRING | YES | asset |
| chainType | STRING | YES | chain type, The chainType of USDT is OMNI ERC20 TRC20 respectively, and the default is OMNI |
Deposit History (USER_DATA)
GET /api/v1/account/depositOrders (HMAC SHA256)
Weight: 5
Response
json
[
{
"id": 100234,
"coin": "EOS",
"coinName": "EOS",
"address": "deposit2bb",
"addressTag": "19012584",
"fromAddress": "clarkkent",
"fromAddressTag": "19029901",
"time": 1499865549590,
"quantity": "1.01",
"status": "2", // 2=SUCCESS, 11=REJECT, 12=AUDIT
"statusCode": "DEPOSIT_CAN_WITHDRAW",
"requiredConfirmTimes": "5",
"confirmTimes": "5",
"txId": "98A3EA560C6B3336D348B6C83F0F95ECE4F1F5919E94BD006E5BF3BF264FACFC",
"txIdUrl": ""
}
]Parameters
| Name | Type | Mandatory | Description |
|---|---|---|---|
| coin | STRING | NO | asset |
| startTime | LONG | NO | start timestamp |
| endTime | LONG | NO | end timestamp |
| fromId | LONG | NO | From which Id to start crawling |
| limit | INT | NO | Default 500; Max 1000 |
| recvWindow | LONG | NO | recv window |
| timestamp | LONG | YES | Timestamp |
Notes:
- If fromId is set, it will filter the orders smaller than id. Otherwise, the most recent order information will be returned.