TRXMarket
Search
K

Get K-line

Introduction
This endpoint allows you to get K-line of trading pairs。
Interface Address
Request Method
GET
Query Parameters
Name
Types
Required
Default Value
Description
Range of value
Example
exchange_id
string
Yes
-
Trading pair ID
Value of trading pair
1
time_start
string
Yes
-
Start time
UTC time in second
1540594800
time_end
string
Yes
-
End time
UTC time in second
1540681200
granularity
string
Yes
-
Candle granularity
1min , 5min , 15min , 30min , 1h , 4h , 1d , 5d , 1w , 1m
1d
Response Content
Name
Types
Description
Example
exchange_id
string
Trading pair ID
1
time_start
string
Start time, UTC time in second
1540594800
time_end
string
End time, UTC time in second
1540681200
granularity
string
Candle granularity, support: 1min, 5min, 15min, 30min, 1h, 4h, 1d, 5d, 1w, 1m
1d
t
string
Start time of this period
1555689600
o
string
Opening price
0.004490
h
string
Highest price
0.004880
l
string
Lowest price
0.004100
c
string
Closing price
0.004880
v
string
Trading volume (unit: base token)
41381956.720000
Response Example
{
exchange_id: "44",
time_start: "1555545600",
time_end: "1555920000",
granularity: "4h",
data: [
{
t: "1555891200",
o: "0.003269",
h: "0.003450",
l: "0.003070",
c: "0.003420",
v: "38424568.980000"
},
{
t: "1555905600",
o: "0.003480",
h: "0.003480",
l: "0.002840",
c: "0.002960",
v: "92981017.818000"
}
]
}