MarginImpactRequest¶
-
class
saxo_openapi.endpoints.trading.prices.MarginImpactRequest(ContextId, ReferenceId)¶ Request margin impact to come on one of the next following price updates.
-
ENDPOINT= 'openapi/trade/v1/prices/subscriptions/{ContextId}/{ReferenceId}'¶
-
EXPECTED_STATUS= 204¶
-
METHOD= 'PUT'¶
-
RESPONSE_DATA= None¶
-
__init__(ContextId, ReferenceId)¶ Instantiate a MarginImpactRequest request.
Parameters: - ContextId (string (required)) – the ContextId
- ReferenceId (string (required)) – the ReferenceId
>>> import saxo_openapi >>> import saxo_openapi.endpoints.trading as tr >>> import json >>> client = saxo_openapi.API(access_token=...) >>> ContextId = "ctxt_20190311" >>> ReferenceId = "EURUSD" >>> r = tr.prices.MarginImpactRequest(ContextId=ContextId, ... ReferenceId=ReferenceId) >>> 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¶
-