Get Sub Account Deposit Records
Exchange broker can query subaccount's deposit records by main UID's API key without specifying uid.
API rate limit: 300 req / min
tip
endTime
- startTime
should be less than 30 days. Queries for the last 30 days worth of records by default.
HTTP Request
GET /v5/broker/asset/query-sub-member-deposit-record
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
subMemberId | false | string | Sub UID |
coin | false | string | Coin, uppercase only |
startTime | false | integer | The start timestamp (ms) |
endTime | false | integer | The end timestamp (ms) |
limit | false | integer | Limit for data size per page. [1 , 50 ]. Default: 50 |
cursor | false | string | Cursor. Use the nextPageCursor token from the response to retrieve the next page of the result set |
Response Parameters
Parameter | Type | Comments |
---|---|---|
rows | array | Object |
> subMemberId | string | Sub account user ID |
> coin | string | Coin |
> chain | string | Chain |
> amount | string | Amount |
> txID | string | Transaction ID |
> status | integer | Deposit status |
> toAddress | string | Deposit target address |
> tag | string | Tag of deposit target address |
> depositFee | string | Deposit fee |
> successAt | string | Last updated time |
> confirmations | string | Number of confirmation blocks |
> txIndex | string | Transaction sequence number |
> blockHash | string | Hash number on the chain |
> batchReleaseLimit | string | The deposit limit for this coin in this chain. "-1" means no limit |
> depositType | string | The deposit type. 0 : normal deposit, 10 : the deposit reaches daily deposit limit, 20 : abnormal deposit |
nextPageCursor | string | Refer to the cursor request parameter |
Request Example
- HTTP
- Python
- Node.js
GET /v5/broker/asset/query-sub-member-deposit-record?coin=USDT&limit=1 HTTP/1.1
Host: api-testnet.bybit.com
X-BAPI-SIGN: XXXXX
X-BAPI-API-KEY: XXXXX
X-BAPI-TIMESTAMP: 1672192441294
X-BAPI-RECV-WINDOW: 5000
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getBrokerSubAccountDeposits({
limit: 50,
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"rows": [],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1672192441742
}