-
Notifications
You must be signed in to change notification settings - Fork 0
K Line information
huyaohua edited this page Jan 19, 2020
·
1 revision
Interface address:https://api.bitforex.com/api/v1/market/kline
Request method:GET
Parameters
parameter name | Types | Is required | Defaults | Description |
---|---|---|---|---|
symbol | String | Yes | - | Trading pairs such as coin-usd-btc, coin-usd-eth, etc. |
ktype | String | Yes | - | K line type: 1min: one minute K line 5min: five minutes K line 15min: 15 minutes K line 30min: thirty minutes K line 1hour: one hour K Line 2hour: Two hours K line 4hour: Four hours K line 12hour: 12 hours K line 1day: Daily K line 1 week: Weekly K line 1month: monthly K line |
size | int | No (default is 1) | - | Number of K lines 1-600 |
Example
# request
GET https://api.bitforex.com/api/v1/market/kline
# Response
{
"success": true,
"data": [{
"close": 990,
"high": 990,
"low": 990,
"open": 990,
"time": 1516675020000,
"vol": 1
}]
}
Return value description
Parameter Name | Type | Description |
---|---|---|
close | double | Closing price |
high | double | Highest price |
low | double | Lowest price |
open | double | Opening price |
time | long | Timestamp, milliseconds |
vol | double | Volume |