Get direct customers Deposit Records
API rate limit: 300 req / min
HTTP Request
GET /private/v1/broker/asset/query-member-deposit-record
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
memberId | true | string | Direct customer UID |
coin | false | string | coin |
startTime | false | integer | Start timestamp (second) |
endTime | false | integer | End timestamp (second) |
limit | false | integer | Page quantity limit [1 , 50 ] Default: 20 |
cursor | false | string | Cursor, used for flipping pages |
Response Parameters
Parameter | Type | Comments |
---|---|---|
rows | array | Object |
> coin | string | coin |
> chain | string | chain name |
> amount | string | deposit amout |
> tx_id | string | Transaction Id Empty when recharge failed or canceled |
> status | integer | Recharge status: 0- Recharge in progress 1- Recharge successful 2- Recharge failed |
> to_address | string | Target address for recharge |
> tag | string | tag of recharge target address |
> success_at | string | Last update time |
> confirmations | string | Confirm the number of blocks |
> tx_index | string | Transaction serial number |
> block_hash | string | The number of hashes on the chain |
cursor | string | Cursor, used for flipping pages |
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/broker/asset/query-member-deposit-record'
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 = {
"memberId": 101479471,
}
create_request(apiKey, secret, params)
Response Example
{
"ret_code": 0,
"ret_msg": "OK",
"ext_code": "",
"result": {
"rows": [
{
"coin": "USDT",
"chain": "ETH",
"amount": "10000",
"tx_id": "USDT-101479471-ETH-10000000000000-1",
"status": 1,
"to_address": "fake-address",
"tag": "101479471",
"success_at": "1718110423",
"confirmations": "10000",
"tx_index": "",
"block_hash": ""
},
{
"coin": "USDT",
"chain": "TRX",
"amount": "6666",
"tx_id": "faker-deposit-101479471-USDT-666600000000-9",
"status": 1,
"to_address": "fake-address",
"tag": "101479471",
"success_at": "1718088599",
"confirmations": "10000",
"tx_index": "",
"block_hash": ""
}
],
"cursor": "eyJtaW5JZCI6MjM1NDcsIm1heElkIjoyMzU0OX0="
},
"ext_info": null,
"time_now": 1718159775406
}