Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions saxo_openapi/endpoints/chart/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .responses.charts import responses


@endpoint("openapi/chart/v1/charts")
@endpoint("openapi/chart/v3/charts")
class GetChartData(Charts):
"""Return chart data as specified by request parameters."""

Expand Down Expand Up @@ -40,7 +40,7 @@ def __init__(self, params):
self.params = params


@endpoint("openapi/chart/v1/charts/subscriptions", "POST", 201)
@endpoint("openapi/chart/v3/charts/subscriptions", "POST", 201)
class CreateChartDataSubscription(Charts):
"""Sets up a subscription and returns an initial snapshot of most recently
completed samples specified by the parameters in the request.
Expand Down Expand Up @@ -80,7 +80,7 @@ def __init__(self, data):
self.data = data


@endpoint("openapi/chart/v1/charts/subscriptions/{ContextId}", "DELETE", 202)
@endpoint("openapi/chart/v3/charts/subscriptions/{ContextId}", "DELETE", 202)
class ChartDataRemoveSubscriptions(Charts):
"""Removes all subscriptions for the current session on this resource, and
frees all resources on the server.
Expand Down Expand Up @@ -119,7 +119,7 @@ def __init__(self, ContextId, params=None):
self.params = params


@endpoint("openapi/chart/v1/charts/subscriptions/{ContextId}/{ReferenceId}",
@endpoint("openapi/chart/v3/charts/subscriptions/{ContextId}/{ReferenceId}",
"DELETE", 202)
class ChartDataRemoveSubscription(Charts):
"""Removes subscriptions for the given reference id on this resource, and
Expand Down