accountTypeMARGIN_V2, ISOLATED_V2MARGIN, ISOLATEDMARGIN, ISOLATEDMARGIN_V2, ISOLATED_V2 -- same meaning as non-V2 parameters; phased out gradually.lastId is specified, the returned data is earlier than lastId. Otherwise, the system returns the latest data.3 * 24 hours (from 3 * 24 hours ago up to now). If the specified time range exceeds this limit, the system defaults to returning data within the last 3 * 24 hours.bizType is MARGIN_EXCHANGE or ISOLATED_EXCHANGE, the context field includes additional transaction details (order ID, transaction ID, trading pair).curl --location --request GET 'https://api.kucoin.com/api/v3/hf/margin/account/ledgers?currency=BTC&direction=in&bizType=TRANSFER&lastId=254062248624417&limit=100&startAt=1728663338000&endAt=1728692138000'{
"code": "200000",
"data": [
{
"id": 1949641706720,
"currency": "USDT",
"amount": "0.01000000",
"fee": "0.00000000",
"balance": "0.01000000",
"accountType": "MARGIN_V2",
"bizType": "TRANSFER",
"direction": "in",
"createdAt": 1728664091208,
"context": "{}",
"tax": "0.00000000"
}
]
}