Endpoints
-
Get net positions for a client, account group or account
Returns a list of net positions fulfilling the criteria specified by the query string parameters. Each net position may include all related sub positions if fieldGroups includes SubPositions.
GET https://gateway.saxobank.com/sim/openapi/port/v1/netpositions?$skip={$skip}&$top={$top}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&AssetType={AssetType}&ClientKey={ClientKey}&ExpiryDate={ExpiryDate}&FieldGroups={FieldGroups}&LowerBarrier={LowerBarrier}&NetPositionId={NetPositionId}&PutCall={PutCall}&Strike={Strike}&Uic={Uic}&UpperBarrier={UpperBarrier}&ValueDate={ValueDate}&WatchlistId={WatchlistId}
-
Get a single net position
Gets a single net position calculated as specified by the query parameters. The net position may include all related sub positions if fieldGroups includes SubPositions. Note: the net position is fully identified by the supplied netPositionId, but accountId and clientId may be specified to determine whether the netposition values should be calculated at client or account level.
GET https://gateway.saxobank.com/sim/openapi/port/v1/netpositions/{NetPositionId}?AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&ClientKey={ClientKey}&FieldGroups={FieldGroups}
-
Get net positions for the current user's client
Returns a list of net positions fulfilling the criteria specified by the query string parameters. Each net position may include all related sub positions if fieldGroups includes SubPositions.
GET https://gateway.saxobank.com/sim/openapi/port/v1/netpositions/me?$skip={$skip}&$top={$top}&FieldGroups={FieldGroups}
-
Create a subscription on a list of net positions and make it active
Sets up a subscription and returns an initial snapshot of list of net positions specified by the parameters in the request.
POST https://gateway.saxobank.com/sim/openapi/port/v1/netpositions/subscriptions
-
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/netpositions/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/netpositions/subscriptions/{ContextId}/{ReferenceId}