Skip to main content

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 nameTypeRequirementdescription
loginLongRAdministrator account
symbolStringRSymbol name
fromLongRStart time, milliseconds
toLongREnd time, milliseconds

Sample request

{
"login": 100001,
"symbol": "XRPUSD",
"from": 1732636800000,
"to": 1732686655000
}

Response parameters

Parameter nameTypeRequirementDescription
datetimeLongRThe timestamp for the chart bar
openFloatRThe opening price for the chart bar
highFloatRThe highest price in the chart bar
lowFloatRThe lowest price in the chart bar
closeFloatRThe closing price for the chart bar
tickVolumeIntegerRThe tick volume for the chart bar
spreadIntegerRThe spread for the chart bar
volumeIntegerRThe 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
}
}
]
}