-
Notifications
You must be signed in to change notification settings - Fork 87
053state
haipo yang edited this page Jul 16, 2018
·
2 revisions
#Example
#Request
{
"method":"state.query",
"params":[
"BTCBCH", #1.market: See<API invocation description·market>
86400, #2. cycle period,Integer, e.g. 86400 for last 24 hours
],
"id":15
}
#Response
{
"error": null,
"result": {
"close":"430.33", #close price
"deal":"1574489.5181782117", #value
"high":"445.68", #highest price
"last":"430.33", #latest price
"low":"420.32", #lowest price
"open":"434.11", #open price
"period":86400, #cycle period
"volume":"3624.85992531" #volume
},
"id": 15
}
#Example
#Request
{
"method":"state.subscribe",
"params":[
"ETHUSDT", #1.empty for subscribe all, market: See<API invocation description·market>
],
"id":15
}
#notify
{
"method": "state.update",
"params": [
{
"ETHUSDT": {
"close":"430.33", #close price
"deal":"1574489.5181782117", #value
"high":"445.68", #highest price
"last":"430.33", #latest price
"low":"420.32", #lowest price
"open":"434.11", #open price
"period":86400, #cycle period
"volume":"3624.85992531" #volume
},
}
],
"id": 15
}
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