Endpoints

  • 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}/?FieldGroups={FieldGroups}&ClientKey={ClientKey}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&PriceMode={PriceMode}

  • Get detailed information for a single net position

    Gets detailed information about a single net position as specified by the query parameters.
    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}/details/?ClientKey={ClientKey}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&PriceMode={PriceMode}

  • 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/?$top={$top}&$skip={$skip}&FieldGroups={FieldGroups}&PriceMode={PriceMode}

  • 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/?$top={$top}&$skip={$skip}&NetPositionId={NetPositionId}&Uic={Uic}&AssetType={AssetType}&ValueDate={ValueDate}&ExpiryDate={ExpiryDate}&PutCall={PutCall}&Strike={Strike}&UpperBarrier={UpperBarrier}&LowerBarrier={LowerBarrier}&WatchlistId={WatchlistId}&FieldGroups={FieldGroups}&ClientKey={ClientKey}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&PriceMode={PriceMode}

  • 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}