FuturesSpaces

class saxo_openapi.endpoints.referencedata.instruments.FuturesSpaces(ContinuousFuturesUic)

Get futures spaces data.

ENDPOINT = 'openapi/ref/v1/instruments/futuresspaces/{ContinuousFuturesUic}'
EXPECTED_STATUS = 200
METHOD = 'GET'
__init__(ContinuousFuturesUic)

Instantiate a ContractoptionSpaces request.

Parameters:ContinuousFuturesUic (string (required)) – the ContinuousFuturesUic
>>> import json
>>> import saxo_openapi
>>> import saxo_openapi.endpoints.referencedata as rd
>>> client = saxo_openapi.API(access_token=...)
>>> ContinuousFuturesUic = '...'
>>> r = rd.instruments.FuturesSpaces(
...                   ContinuousFuturesUic=ContinuousFuturesUic)
>>> client.request(r)
>>> print(json.dumps(r.response, indent=4))

Output:

{_v3_FuturesSpaces_resp}
expected_status
response

response - get the response of the request.

status_code