-
Notifications
You must be signed in to change notification settings - Fork 87
074sub_account_balance_history
何文振 edited this page Jun 29, 2021
·
4 revisions
-
Request description: Get Balance Transfer History Between Sub Account And Main Account(For Main Account Only)
-
Request type: GET
-
Signature required: YES
-
Request Url:https://api.coinex.com/v1/sub_account/transfer/history
-
Request Header:
authorization:"xxxx"(32-digit capital letters, see generating method in <API invocation instruction>) -
Request parameter:
name type required description access_id String Yes Access ID sub_user_name String Option sub account username coin_type String Option coin type page Integer Option default 1 limit Integer Option default 10, option(10, 100, 1000) tonce Integer Yes Tonce is a timestamp with a positive Interger that represents the number of milliseconds from Unix epoch to the current time. Error between tonce and server time can not exceed plus or minus 60s -
Return value description:
name type description time Integer unix timestamp (default order by type) coin_type String coin type amount String transfer amount transfer_from String transfer from user name transfer_to String transfer to user name -
Example:
# Request
GET https://api.coinex.com/v1/sub_account/transfer/history
# Request.Params
{
"sub_user_name": "bkf",
"coin_type": "ETH",
"page": 1,
"limit": 10,
"access_id": "BFFA64957AA240F6BBEA26F4E07EC0D9",
"tonce": 1513746038205,
}
# Response
{
"code": 0,
"data": {
"curr_page": 1,
"data": [
{
"time": 1583762208,
"amount": "1",
"coin_type": "ETH",
"transfer_from": "bkf",
"transfer_to": "fengjianchao",
"status": "success",
},
{
"time": 1583762197,
"amount": "1",
"coin_type": "ETH",
"transfer_from": "fengjianchao",
"transfer_to": "bkf",
"status": "success",
}
],
"has_next": false,
"per_page": 10,
"total": 2,
"total_page": 1
},
"message": "Ok"
}
Common API
Market API
-
Acquire Market List
-
Acquire Market Statistics
-
Acquire Market Depth
-
Acquire Latest Transaction Data
-
Acquire K-Line Data
-
Acquire Market Information
-
Acquire Single Market Information
-
Acquire AMM Market List
Account API
-
Inquire Account Info
-
Inquire Withdrawal List
-
Submit A Withdrawal Order
-
Cancel Withdrawal
-
Inquire Deposit List
-
Transfer between main account and sub account
-
Transfer between main account and margin account
-
Get deposit address
-
Generate deposit address
-
Inquire Sub Account Balance
-
Inquire Sub Account Balance History
-
Create Sub Account
-
Frozen Sub Account
-
Unfrozen Sub Account
-
Acquire Credit Account Info
Trading API
-
Place Limit Order
-
Place Multiple Limit Orders
-
Place Market Order
-
Place Stop Limit Order
-
Place IOC Order
-
Acquire Unexecuted Order List
-
Acquire Executed Order List
-
Acquire Order Status
-
Acquire Multiple Orders Status
-
Acquire Executed Order Detail
-
Acquire User Deals
-
Cancel Order
-
Cancel Multiple Orders
-
Cancel All Orders
Margin API
-
Inquire Margin Account Info
-
Inquire Margin Account Market Info
-
Inquire Margin Account of A Currency
-
Acquire Margin Account Settings
-
Acquire Margin Account Settings of A Currency
-
Acquire Loan List
-
Place Loan
-
Place Flat
-
Margin Balance Transfer
Contract API