DeleteAllocationKey¶
-
class
saxo_openapi.endpoints.trading.allocationkeys.DeleteAllocationKey(AllocationKeyId)¶ Delete an allocation key.
-
ENDPOINT= 'openapi/trade/v1/allocationkeys/{AllocationKeyId}'¶
-
EXPECTED_STATUS= 204¶
-
METHOD= 'DELETE'¶
-
RESPONSE_DATA= None¶
-
__init__(AllocationKeyId)¶ Instantiate a DeleteAllocationKey request.
Parameters: AllocationKeyId (string (required)) – the allocation key id. >>> import saxo_openapi >>> import saxo_openapi.endpoints.trading as tr >>> import json >>> client = saxo_openapi.API(access_token=...) >>> AllocationKeyId = 227 >>> r = tr.allocationkeys.DeleteAllocationKey( ... AllocationKeyId=AllocationKeyId) >>> client.request(r) >>> assert r.status_code == r.expected_status
-
expected_status¶
-
response¶ response - get the response of the request.
-
status_code¶
-