Get historical quotes request
Get the historical quotes for a specific period of time for a trading symbol.
Request address
- API Address (requestURI) : /api/v1/book/getHistoricalQuotes
Request parameters
Parameter name | Type | Requirement | description |
---|---|---|---|
login | Long | R | Administrator account |
symbol | String | R | Symbol name |
from | Long | R | Start time, milliseconds |
to | Long | R | End time, milliseconds |
Sample request
{
"login": 100001,
"symbol": "XRPUSD",
"from": 1732636800000,
"to": 1732686655000
}
Response parameters
Parameter name | Type | Requirement | Description |
---|---|---|---|
datetime | Long | R | The timestamp for the chart bar |
open | Float | R | The opening price for the chart bar |
high | Float | R | The highest price in the chart bar |
low | Float | R | The lowest price in the chart bar |
close | Float | R | The closing price for the chart bar |
tickVolume | Integer | R | The tick volume for the chart bar |
spread | Integer | R | The spread for the chart bar |
volume | Integer | R | The volume for the chart bar |
Sample response
{
"code": "200",
"desc": "Success",
"data": [
{
"mtChartBar": {
"datetime": 1732636800000,
"open": 1.3463,
"high": 1.3493,
"low": 1.3448,
"close": 1.3485,
"tickVolume": 60,
"spread": 1,
"volume": 0
}
},
{
"mtChartBar": {
"datetime": 1732636860000,
"open": 1.3485,
"high": 1.3485,
"low": 1.3397999999999999,
"close": 1.3397999999999999,
"tickVolume": 37,
"spread": 1,
"volume": 0
}
}
]
}