TradingSchedule

class saxo_openapi.endpoints.referencedata.instruments.TradingSchedule(Uic, AssetType)

Get TradingSchedule data.

ENDPOINT = 'openapi/ref/v1/instruments/tradingschedule/{Uic}/{AssetType}'
EXPECTED_STATUS = 200
METHOD = 'GET'
__init__(Uic, AssetType)

Instantiate a TradingSchedule request.

Parameters:
  • Uic (string (required)) – the Uic of the instrument
  • AssetType (string (required)) – the AssetType of the instrument
  • one Uic multiple assettypes can be available trading (For) –
  • different times. (on) –
>>> import json
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.referencedata as rd
>>> client = saxo_openapi.API(access_token=...)
>>> Uic = 21
>>> AssetType = "FxSpot"
>>> r = rd.instruments.ContractoptionSpaces(
...                          Uic=Uic,
...                          AssetType=AssetType)
>>> client.request(r)
>>> print(json.dumps(r.response, indent=4))

Output:

{_v3_TradingSchedule_resp}
expected_status
response

response - get the response of the request.

status_code