-
Notifications
You must be signed in to change notification settings - Fork 87
021ticker
haipo yang edited this page Jun 28, 2018
·
10 revisions
-
Request description: Acquire real-time market data
-
Request type: GET
-
Signature required: No
-
Request Url:https://api.coinex.com/v1/market/ticker?market=BTCBCH
-
Request parameter:
name type required description market String Yes See<API invocation description·market> -
Return value description:
name type description date String server time when returning buy String buy 1 open String 24H open price high String 24H highest price last String latest price low String 24H lowest price sell String sell 1 vol String 24H volume -
Example:
# Request
GET https://api.coinex.com/v1/market/ticker?market=btcbch
# Response
{
"code": 0,
"data": {
"date": 1494310546, # server time when returning
"ticker": {
"buy": "10.00", # buy 1
"open": "10", # highest price
"high": "10", # highest price
"last": "10.00", # latest price
"low": "10", # lowest price
"sell": "10.00", # sell 1
"vol": "110" # 24H volume
}
},
"message": "Ok"
}
-
Request description: acquire all market data
-
Request type: GET
-
Signature required: No
-
Request Url:https://api.coinex.com/v1/market/ticker/all
-
Request parameter: None
-
Return value description:
name type description date String server time when returning buy String buy 1 high String 24H highest price last String latest price low String 24H lowest price sell String sell 1 vol String 24H volumn -
Example:
# Request
GET https://api.coinex.com/v1/market/ticker/all
# Response
{
"code": 0,
"data": {
"date": 1513865441609,
"ticker": {
"BTCBCH": {
"buy": "0.222",
"open": "0.2322211",
"high": "0.2322211",
"last": "0.2322211",
"low": "0.222",
"sell": "0.3522211",
"vol": "2.01430624"
},
"DASHBCH": {
"buy": "0.59716345",
"open": "0",
"high": "0",
"last": "0.62400681",
"low": "0",
"sell": "0.62400681",
"vol": "0"
},
"ETHBCH": {
"buy": "0.38971579",
"open": "0",
"high": "0",
"last": "0.4162151",
"low": "0",
"sell": "0.4162151",
"vol": "0"
},
"LTCBCH": {
"buy": "0.17938942",
"open": "0.18917566",
"high": "0.18917566",
"last": "0.18917566",
"low": "0.18917566",
"sell": "0.18917566",
"vol": "0.001"
},
"ZECBCH": {
"buy": "0.2599809",
"open": "0.28888065",
"high": "0.28888065",
"last": "0.28888065",
"low": "0.28888065",
"sell": "0.28888065",
"vol": "0.002"
}
}
},
"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