Skip to content

Import candles data

ImportChartData

Description:
Imports candle history for a symbol into the local quote storage.

flushData controls the import mode:

  • 0 replaces only the imported time range inside existing local history
  • 1 fully rewrites the local candle store for the symbol

Access Control

🛡️ Access Level Required: SESSION_ADMIN, SESSION_MANAGER, SESSION_DEALER


Parameters

Name Type Required Description
symbol string âś… Target symbol
flushData int âś… 0 = replace imported range, 1 = full overwrite
candles array âś… List of candles in [open, high, low, close, volume, time] format

Example Request

{
  "symbol": "EURUSD",
  "flushData": 0,
  "candles": [
    [1.1000, 1.1020, 1.0990, 1.1015, 1200, 1712448000],
    [1.1015, 1.1050, 1.1000, 1.1045, 980, 1712451600]
  ]
}

Response

Field Type Description
data string Returns "OK" on success

Example Successful Response

{
  "data": "OK"
}

Errors

Code Description
400 Invalid request payload
500 Import failed