saxo_openapi
saxo_openapi copied to clipboard
chart/v1 is Obsolete
replace chart/v1 to chart/v3
Hi,
... for the time being, pls use:
import saxo_openapi.endpoints.chart as ch
setattr(ch.charts.GetChartData, 'ENDPOINT', "openapi/chart/v3/charts") # < ------
params = {
"AssetType": "FxSpot",
"Horizon": 60,
"Count": 24,
"Uic": 23
}
r = ch.charts.GetChartData(params=params)
print(r)
openapi/chart/v3/charts