Endpoints
-
Get closed positions for a client, accountGroup or account
Returns a list of closed positions fulfilling the criteria specified by the query string parameters.GET https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/?$top={$top}&$skip={$skip}&ClosedPositionId={ClosedPositionId}&FieldGroups={FieldGroups}&ClientKey={ClientKey}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}
-
Get a single position
Get a single position.GET https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/{ClosedPositionId}/?FieldGroups={FieldGroups}&ClientKey={ClientKey}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}
-
Get closed positions for a client, to which the logged in user belongs
Returns a list of closed positions fulfilling the criteria specified by the query string parameters.GET https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/me/?$top={$top}&$skip={$skip}&FieldGroups={FieldGroups}
-
Create a subscription on a list of closed positions and make it active
Sets up a subscription and returns an initial snapshot of list of closed positions specified by the parameters in the request.POST https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/subscriptions/?$top={$top}
-
Change the closed positions subscription page size
Extends or reduces the page size, number of positions shown, on a running closed positions subscription. When expanding the page size, the subsequent closed positions are streamed so to avoid race conditions.PATCH https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/subscriptions/{ContextId}/{ReferenceId}
-
Remove multiple subscriptions
Removes multiple all subscriptions for the current session on this resource, and frees all resources on the server.DELETE https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/subscriptions/{ContextId}/?Tag={Tag}
-
Remove subscription
Removes subscription for the current session identified by subscription id..DELETE https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/subscriptions/{ContextId}/{ReferenceId}