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?$skip={$skip}&$top={$top}&AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&ClientKey={ClientKey}&ClosedPositionId={ClosedPositionId}&FieldGroups={FieldGroups}

  • Get a single position

    Get a single position.

    GET https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/{ClosedPositionId}?AccountGroupKey={AccountGroupKey}&AccountKey={AccountKey}&ClientKey={ClientKey}&FieldGroups={FieldGroups}

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

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

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

    Removes subscription for the current session identified by subscription id..

    DELETE https://gateway.saxobank.com/sim/openapi/port/v1/closedpositions/subscriptions/{ContextId}/{ReferenceId}