Endpoint Parameters

  • Request parameters

    Name Type Origin Description
    $skip Integer Query-String The number of entries to skip from the beginning of the collection
    $top Integer Query-String The number of entries to return from the beginning of the collection
    AccountGroupKey AccountGroupKey Query-String The key of the account group to which the resource belongs.
    AccountKey AccountKey Query-String The key of the account to which the resource belongs.
    ClientKey ClientKey Route The key of the client to which the resource belongs.
    FromDate Date Route From date
    ToDate Date Route To date
  • Response Parameters

    View Response Codes
    Name Type Description
    __count Number The total count of items in the feed.
    __next String The link for the next page of items in the feed.
    Data ClosedPosition [] The collection of entities for this feed.
    MaxRows Number The maximum number of rows that can be returned (if applicable).
  • Request Example

    Request URL
    GET /cs/v1/reports/closedPositions/493b43a5-fe85-4d1f-9071-dd4a9d4e42a4/2016-10-10/2017-10-10?$skip=1&$top=1&AccountGroupKey=stringValue&AccountKey=01b64edf-da03-4145-bf33-ae21527d4c86
  • Response Example

    Response body
    {
      "__next": "/openapi/....../?$top=1&$skip=1",
      "Data": [
        {
          "AccountCurrency": "USD",
          "AccountCurrencyDecimals": 2,
          "AccountId": "169236INET2",
          "Amount": 400,
          "AmountClose": -700,
          "AmountOpen": 400,
          "AssetType": "Stock",
          "ClosePositionId": "112428055",
          "ClosePrice": 3.1,
          "ExchangeDescription": "NASDAQ",
          "InstrumentDescription": "Central European Media Enterprise Ltd",
          "InstrumentSectorName": "Broadcasting & Entertainment",
          "InstrumentSectorTypeId": 640,
          "InstrumentSymbol": "CETV:xnas",
          "OpenPositionId": "642405794",
          "OpenPrice": 3.6126,
          "PnLAccountCurrency": 228.64,
          "PnLClientCurrency": 2614.90455108964,
          "PnLUSD": -228.64,
          "RootInstrumentSectorName": "Consumer Service",
          "RootInstrumentSectorTypeId": 506,
          "TotalBookedOnClosingLegAccountCurrency": 2154.95,
          "TotalBookedOnClosingLegClientCurrency": 54083.2750759607,
          "TotalBookedOnClosingLegUSD": 2154.95,
          "TotalBookedOnOpeningLegAccountCurrency": -1460.04,
          "TotalBookedOnOpeningLegClientCurrency": -28289.824063745,
          "TotalBookedOnOpeningLegUSD": -1406.04,
          "TradeDate": "2017-04-07T00:00:00Z",
          "TradeDateClose": "2017-04-07T00:00:00Z",
          "TradeDateOpen": "2013-08-19T00:00:00Z",
          "UnderlyingInstrumentDescription": "Central European Media Enterprise Ltd",
          "UnderlyingInstrumentSymbol": "CETV:xnas"
        }
      ]
    }