-
Notifications
You must be signed in to change notification settings - Fork 87
051asset
杨晓强 edited this page Dec 16, 2020
·
4 revisions
#Example
#Request
{
"method":"asset.query",
"params":["BCH","BTC"], # asset list, empty for inquire all
"id":15
}
#Response
{
"error": null,
"result": {
"BCH": {
"available": "1.100000",
"frozen": "0.1"
},
"BTC":{
"available": "1.100000",
"frozen": "0.1"
}
},
"id": 15
}
#Example
#Request
{
"method":"asset.subscribe",
"params":["BCH"], # asset list
"id":15
}
#notify
{
"method": "asset.update",
"params": [
{
"BCH": {
"available": "1.100000",
"frozen": "0.1",
"timestamp": 1608108497.359855
}
}
],
"id": null
}
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