0101margin_transfer_history_list - coinexcom/coinex_exchange_api GitHub Wiki
Inquire Margin Transfer History List
-
Request description: Inquire Margin Transfer History list.
-
Request type: GET
-
Signature required: Yes
-
Request Header:
authorization:"xxxx"(32-digit capital letters, see generating method in <API invocation instruction>) -
Request Url:https://api.coinex.com/v1/margin/transfer/history
-
Request parameter:
name type required description access_id String Yes access_id market String No e.g. BTCUSDT transfer_type String No choices is one of in or out. asset String No Coin type, e.g. BCH. Filter its withdrawal list when the parameter is passed. start_time Interger No Timestamp for query time start. end_time Interger No Timestamp for query time end. page Interger No Page, start from 1 Limit Interger No Amount per page(1-100) -
Return value description:
name description amount operate amount asset operate asset transfer_type in or out created_at timestamp of created -
Example:
# Request
GET https://api.coinex.com/v1/margin/transfer/history?access_id=4DA36FFC61334695A66F8D29020EB589&asset=BCH
# Response
{
"code": 0,
"data": [
{
"id": 2437,
"created_at": 1629792149,
"updated_at": 1629792149,
"user_id": 1284,
"from_account_id": 0,
"to_account_id": 2,
"asset": "BTC",
"amount": "10",
"balance": "10",
"transfer_type": "IN",
"status": "SUCCESS"
},
{
"id": 2436,
"created_at": 1629790649,
"updated_at": 1629790649,
"user_id": 1284,
"from_account_id": 0,
"to_account_id": 12,
"asset": "USDT",
"amount": "1000",
"balance": "1000",
"transfer_type": "IN",
"status": "SUCCESS"
}
],
"message": "Ok"
}