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