Skip to main content

Convert

Asset conversion. Requires the Wallet permission.

Request Parameters​

NameTypeRequiredDescription
fromAssetStringYesFrom asset
toAssetStringYesTo asset
amountStringYesThe amount to convert from an asset, which should be greater than 0. The maximum integer digits is 14 and the maximum decimal places is 10.

Response Content​

NameTypeDescription
fromAssetStringFrom asset
fromAmountStringFrom amount
fromTransactionRefStringFrom transaction reference
toAssetStringTo asset
toAmountStringTo amount
toTransactionRefStringTo transaction reference
rateStringExchange rate
example
POSThttps://api.btse.com/public-api/wallet/v1/user/assets/convert

Request

{
"fromAsset": "BTC",
"toAsset": "USDT",
"amount": "1"
}

Response

{
"success": true,
"code": 1,
"msg": "Success",
"time": 1624989977940,
"data": [
{
"fromAsset": "BTC",
"fromAmount": "1",
"fromTransactionRef": "2025051000002",
"toAsset": "USDT",
"toAmount": "16000.0",
"toTransactionRef": "2025051000001",
"rate": "16000"
}
]
}