-
Notifications
You must be signed in to change notification settings - Fork 87
024kline
千叶忆夕阳 edited this page Mar 7, 2019
·
9 revisions
-
Request description: Acquire k-line data for specified period, including latest 1000 datas
-
Request type: GET
-
Signature required: No
-
Request Url:https://api.coinex.com/v1/market/kline?market=BCHBTC&type=1min
-
Request parameter:
name type required description market String Yes See<API invocation description·market> limit Integer No(default 100) Less than or equal to 1000 type String Yes 1min:1min;
3min:3min;
5min:5min;
15min:15min;
30min:30min;
1hour:1hour;
2hour:2hour;
4hour:4hour;
6hour:6hour;
12hour:12hour;
1day:1day;
3day:3day;
1week:1week; -
Return value description:
name type description data[0][0] Integer Time data[0][1] String Opening price data[0][2] String Closing price data[0][3] String Highest price data[0][4] String Lowest price data[0][5] String Volume data[0][6] String Amount data[0][7] String Market -
Example:
# Request
GET https://api.coinex.com/v1/market/kline?market=bchbtc&type=1min
# Response
{
"code": 0,
"data": [
[
1492358400, # Time
"10.0", # Opening
"10.0", # Closing
"10.0", # Highest
"10.0", # Lowest
"10", # Volume
"100", # amount
"BCHBTC", # market
]
],
"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