MarkMessageAsSeen¶
-
class
saxo_openapi.endpoints.trading.messages.
MarkMessageAsSeen
(MessageId)¶ Logically this is done by moving the message to the ‘seen’ collection.
-
ENDPOINT
= 'openapi/trade/v1/messages/seen/{MessageId}'¶
-
EXPECTED_STATUS
= 204¶
-
METHOD
= 'PUT'¶
-
RESPONSE_DATA
= None¶
-
__init__
(MessageId)¶ Instantiate a MarkMessageAsSeen request.
Parameters: MessageId (string (required)) – the message-id of the message. >>> import saxo_openapi >>> import saxo_openapi.endpoints.trading as tr >>> import json >>> client = saxo_openapi.API(access_token=...) >>> MessageId = '...' >>> r = tr.messages.MarkMessageAsSeen(MessageId=MessageId) >>> 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
¶
-