Get Sub Deposit Records (on-chain)
Query subaccount's deposit records by main UID's API key.
tip
endTime
- startTime
should be less than 30 days. Queries for the last 30 days worth of records by default.
HTTP Request
GET /v5/asset/deposit/query-sub-member-record
Request Parameters
Parameter | Required | Type | Comments |
---|---|---|---|
subMemberId | true | 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 |
> 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/asset/deposit/query-sub-member-record?coin=USDT&limit=1&subMemberId=592334 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
from pybit.unified_trading import HTTP
session = HTTP(
testnet=True,
api_key="XXXXX",
api_secret="XXXXX",
)
print(session.get_sub_deposit_records(
coin="USDT",
limit=1,
subMemberId=592334,
))
const { RestClientV5 } = require('bybit-api');
const client = new RestClientV5({
testnet: true,
key: 'apikey',
secret: 'apisecret',
});
client
.getSubAccountDepositRecords({
coin: 'USDT',
limit: 1,
subMemberId: '592334',
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.error(error);
});
Response Example
{
"retCode": 0,
"retMsg": "success",
"result": {
"rows": [],
"nextPageCursor": ""
},
"retExtInfo": {},
"time": 1672192441742
}