查詢子帳號充值地址
信息
- 僅能使用該母帳號的API key
- 託管子帳戶不支持獲取入金地址
HTTP 請求
GET /v5/asset/deposit/query-sub-member-address
請求參數
參數 | 是否必需 | 類型 | 說明 |
---|---|---|---|
coin | true | string | 幣種 |
chainType | true | string | 請使用查詢幣種信息響應字段chain 作為這個字段的輸入 |
subMemberId | true | string | 子帳號Id |
響應參數
參數 | 類型 | 說明 |
---|---|---|
coin | string | 幣種 |
chains | array | Object |
> chainType | string | 鏈類型 |
> addressDeposit | string | 充值地址 |
> tagDeposit | string | 地址的tag |
> chain | string | 鏈名 |
> batchReleaseLimit | string | 當前幣鏈每日充值限額. "-1" 表示無限制 |
請求示例
- HTTP
- Python
- Node.js
GET /v5/asset/deposit/query-sub-member-address?coin=USDT&chainType=TRX&subMemberId=592334 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672194349421
X-BAPI-RECV-WINDOW: 5000
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_sub_deposit_address(
coin="USDT",
chainType="TRX",
subMemberId=592334,
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getSubDepositAddress('USDT', 'TRX', '592334')
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
響應示例
{
"retCode": 0,
"retMsg": "success",
"result": {
"coin": "USDT",
"chains": {
"chainType": "TRC20",
"addressDeposit": "TCB6NmwGXjn8eJYDuPxLvs4aM8Jn7gvJ1f",
"tagDeposit": "",
"chain": "TRX",
"batchReleaseLimit": "-1"
}
},
"retExtInfo": {},
"time": 1672194350819
}