Get Coin Info
Query coin information, including chain information, withdraw and deposit status.
API rate limit: 5 req / sec
HTTP Request
GET /private/v1/asset/coin/query-info
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
coin | false | string | Coin |
Response Parameters
Parameter | Type | Comments |
---|---|---|
rows | array | Object |
> coin | string | coin |
> coin_name | string | coin name |
> accuracy | integer | Maximum Precision Supported by Coins |
> deposit_chains | array | Object, Chain supported by deposit |
>> chain | string | chain |
>> chain_name | string | chain name |
>> can_deposit | integer | Can the coin chain be recharged: 0- paused 1- normal |
>> deposit_min | string | Minimum recharge quantity |
>> deposit_confirmation | string | Recharge and account confirmation number |
> withdraw_chains | array | Object, Chain supported by withdrawal |
>> chain | string | chain |
>> chain_name | string | chain name |
>> can_withdraw | integer | Can the coin chain withdraw coins: 0- paused 1- normal |
>> withdraw_min | string | Minimum withdrawal quantity |
>> withdraw_fee | string | Withdrawal fees |
Request Example
import time
import hmac
import hashlib
import requests
import urllib.parse
def create_request(apiKey, secret, params):
url = 'https://openapi-testnet.zoomex.com/private/v1/asset/coin/query-info'
timestamp = int(time.time() * 1000)
recv_window = 1000000
params['api_key'] = apiKey
params['timestamp'] = timestamp
params['recv_window'] = recv_window
ordered_params = '&'.join([f"{key}={params[key]}" for key in sorted(params.keys())])
signature = hmac.new(secret.encode('utf-8'), ordered_params.encode('utf-8'), hashlib.sha256).hexdigest()
params['sign'] = signature
headers = {
'X-BAPI-API-KEY': apiKey,
'X-BAPI-SIGN': signature,
'X-BAPI-TIMESTAMP': str(timestamp),
'X-BAPI-RECV-WINDOW': str(recv_window)
}
query_string = urllib.parse.urlencode(params)
full_url = f"{url}?{query_string}"
response = requests.get(full_url, headers=headers)
print("response status:", response.status_code)
print("response info:", response.json())
print("response time:", response.elapsed.total_seconds())
apiKey = 'your key'
secret = 'your secret'
params = {
"coin": "USDT",
}
create_request(apiKey, secret, params)
Response Example
{
"ret_code": 0,
"ret_msg": "OK",
"ext_code": "",
"result": {
"rows": [
{
"coin": "USDT",
"coin_name": "Tether USDT",
"accuracy": 4,
"deposit_chains": [
{
"chain": "ETH",
"chain_name": "ERC20",
"can_deposit": 1,
"deposit_min": "0.000011",
"deposit_confirmation": 1
},
{
"chain": "TRX",
"chain_name": "TRC20",
"can_deposit": 1,
"deposit_min": "0.00001122",
"deposit_confirmation": 1
}
],
"withdraw_chains": [
{
"chain": "ETH",
"chain_name": "ERC20",
"can_withdraw": 1,
"withdraw_min": "20",
"withdraw_fee": "11"
},
{
"chain": "TRX",
"chain_name": "TRC20",
"can_withdraw": 1,
"withdraw_min": "10",
"withdraw_fee": "1"
}
]
}
]
},
"ext_info": null,
"time_now": 1718353508140
}