FXOptionExpiryDates¶
-
class
saxo_openapi.endpoints.referencedata.standarddates.
FXOptionExpiryDates
(Uic)¶ Get a list of FX option expiry dates for an UIC.
-
ENDPOINT
= 'openapi/ref/v1/standarddates/fxoptionexpiry/{Uic}'¶
-
EXPECTED_STATUS
= 200¶
-
METHOD
= 'GET'¶
-
__init__
(Uic)¶ Instantiate a FXOptionExpiryDates request.
Parameters: Uic (int (required)) – the Uic code of the instrument >>> import json >>> import saxo_openapi >>> import saxo_openapi.endpoints.referencedata as rd >>> client = saxo_openapi.API(access_token=...) >>> Uic = 22 >>> r = rd.FXOptionExpiryDates(Uic=Uic) >>> client.request(r) >>> print(json.dumps(r.response, indent=2))
Output:
{ "Data": [ { "Date": "2019-03-07", "Unit": "Days", "Value": 1 }, { "Date": "2019-03-13", "Unit": "Weeks", "Value": 1 }, { "Date": "2019-03-20", "Unit": "Weeks", "Value": 2 }, { "Date": "2019-03-27", "Unit": "Weeks", "Value": 3 }, { "Date": "2019-04-04", "Unit": "Months", "Value": 1 }, { "Date": "2019-05-06", "Unit": "Months", "Value": 2 }, { "Date": "2019-06-06", "Unit": "Months", "Value": 3 }, { "Date": "2019-09-05", "Unit": "Months", "Value": 6 }, { "Date": "2019-12-05", "Unit": "Months", "Value": 9 }, { "Date": "2020-03-05", "Unit": "Years", "Value": 1 } ] }
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-