OptionsChainSubscriptionModify¶
-
class
saxo_openapi.endpoints.trading.optionschain.
OptionsChainSubscriptionModify
(ContextId, ReferenceId, data)¶ Modify an existing options chain subscription.
-
ENDPOINT
= 'openapi/trade/v1/optionschain/subscriptions/{ContextId}/{ReferenceId}'¶
-
EXPECTED_STATUS
= 204¶
-
METHOD
= 'PATCH'¶
-
RESPONSE_DATA
= None¶
-
__init__
(ContextId, ReferenceId, data)¶ Instantiate a OptionsChainSubscriptionModify request.
Parameters: - ContextId (string) – the ContextId
- ReferenceId (string) – the ReferenceId
- data (dict) – dict representing the parameters of the request body.
>>> import saxo_openapi >>> import saxo_openapi.endpoints.trading as tr >>> import json >>> client = saxo_openapi.API(access_token=...) >>> ReferenceId = ... >>> ContextId = ... >>> data = { "Expiries": [ { "Index": 129, "StrikeStartIndex": 232 } ], "MaxStrikesPerExpiry": 157 }
>>> r = tr.optionschain.OptionsChainSubscriptionModify( ... ReferenceId=ReferenceId, ... ContextId=ContextId, ... data=data) >>> client.request(r) >>> assert r.status_code == r.expected_status
No data is returned.
-
expected_status
¶
-
response
¶ response - get the response of the request.
-
status_code
¶
-