request(
"POST",
"/v1/custody/trading_transfer/",
{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/trading_transfer/',
{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/trading_transfer/", map[string]string{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
})
{
"success": true,
"result": {
"request_id": "UNIQUE_ID_FOR_TRANSFER",
"coin": "BTC",
"amount": 100000000,
"abs_amount": "1",
"status": "ok",
"fee": 500000,
"abs_fee": "0.0005",
"estimated_amount_received": "99950000"
}
}
Trading
Transfer Among Exchange Account
This content applies to WaaS 1.0 only. We highly recommend that you upgrade to WaaS 2.0.
POST
/
v1
/
custody
/
trading_transfer
/
request(
"POST",
"/v1/custody/trading_transfer/",
{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/trading_transfer/',
{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/trading_transfer/", map[string]string{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
})
{
"success": true,
"result": {
"request_id": "UNIQUE_ID_FOR_TRANSFER",
"coin": "BTC",
"amount": 100000000,
"abs_amount": "1",
"status": "ok",
"fee": 500000,
"abs_fee": "0.0005",
"estimated_amount_received": "99950000"
}
}
Request
String
required
from exchange account token (aquire from Web)
String
required
to exchange account token (aquire from Web)
String
required
Coin code
Int
required
Int amount (e.g. if 1 BTC is to be withdrawn, the amount should be multiplied by 100,000,000 (Satoshis))
String
required
Request ID (Universally unique ID for each request)
Response
bool
request successful or failed
object
Show object
Show object
String
Request ID (Universally unique ID for each request)
String
Coin code
Int
Int amount contains decimals (e.g. if 1 BTC is to be deposited, the amount should be multiplied by 100,000,000 (Satoshis))
String
Absolute amount. If you trade 1.5 BTC, then the abs_amount is 1.5
String
Status: ok, pending, failed, human_check
Int
Fee amount (Note that the value here contains decimals. For example, a BTC value of 100,000,000 here is actually 1 BTC)
String
Absolute fee value. For examle, abs_cobo_fee 0.00005 means exactly 0.00005BTC
Int
Estimated amount received (Note that the value here contains decimals. For example, a BTC value of 100,000,000 here is actually 1 BTC)
request(
"POST",
"/v1/custody/trading_transfer/",
{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
},
api_key, api_secret, host
)
coboFetch('POST', '/v1/custody/trading_transfer/',
{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
},
api_key, api_secret, host
).then(res => {
res.json().then((data)=>{
console.log(JSON.stringify(data, null, 4));
})
}).catch(err => {
console.log(err)
});
Request("POST", "/v1/custody/trading_transfer/", map[string]string{
"from_exchange_account_token": "from_token",
"to_exchange_account_token": "to_token",
"coin": "BTC",
"amount": "100000000",
"request_id": "UNIQUE_ID_FOR_TRANSFER"
})
{
"success": true,
"result": {
"request_id": "UNIQUE_ID_FOR_TRANSFER",
"coin": "BTC",
"amount": 100000000,
"abs_amount": "1",
"status": "ok",
"fee": 500000,
"abs_fee": "0.0005",
"estimated_amount_received": "99950000"
}
}
