Sync history chart data
SyncChartData
Description:
Fetches and synchronizes historical candlestick data for a given trading symbol from a specified feeder.
Access Control
🛡️ Access Level Required: SESSION_ADMIN, SESSION_MANAGER, SESSION_DEALER
Parameters
| Name |
Type |
Required |
Description |
| index |
int |
âś… |
Feeder index (0-200) |
| flushData |
int |
âś… |
Whether to clear existing data (0 = no, 1 = yes) |
| symbol |
string |
âś… |
Symbol for which chart data is to be synced |
| from |
int |
No |
From Unix timestamp |
| to |
int |
No |
From Unix timestamp |
Behavior
- The method queries by default the last 4 years of chart data for the specified symbol.
- It uses
GetHistoryBySymbol action with generated from and to timestamps.
- After fetching, it parses the
rows of candlestick data and imports them into the system.
Response
| Code |
Description |
| 200 |
Valid Response |
| Field |
Type |
Description |
| data |
str |
"OK" if successful |
Example Successful Response
Errors
| Code |
Description |
| 400 |
Invalid input or failed import |
| 500 |
Feeder or quote import error |