Endpoint Parameters

  • Request parameters

    Name Type Origin Description
    Arguments OptionsChainRequest Body Arguments for the subscription request.
    ContextId String Body The streaming context id that this request is associated with. This parameter must only contain letters (a-z) and numbers (0-9) as well as - (dash) and _ (underscore). It is case insensitive. Max length is 50 characters.
    Format String Body Optional Media type (RFC 2046) of the serialized data updates that are streamed to the client. Currently only application/json and application/x-protobuf is supported. If an unrecognized format is specified, the subscription end point will return HTTP status code 400 - Bad format.
    ReferenceId String Body Mandatory client specified reference id for the subscription. This parameter must only contain alphanumberic characters as well as - (dash) and _ (underscore). Cannot start with _. It is case insensitive. Max length is 50 characters.
    RefreshRate Integer Body Optional custom refresh rate, measured in milliseconds, between each data update. Note that it is not possible to get a refresh rate lower than the rate specified in the customer service level agreement (SLA).
    ReplaceReferenceId String Body Reference id of the subscription that should be replaced.
    Tag String Body Optional client specified tag used for grouping subscriptions.
  • Response Parameters

    View Response Codes
    Name Type Description
    ContextId String The streaming context id that this response is associated with.
    Format String The media type (RFC 2046), of the serialized data updates that are streamed to the client.
    InactivityTimeout Integer The time (in seconds) that the client should accept the subscription to be inactive before considering it invalid.
    ReferenceId String The reference id that (along with streaming context id and session id) identifies the subscription (within the context of a specific service/subscription type)
    RefreshRate Integer Actual refresh rate assigned to the subscription according to the customers SLA.
    Snapshot OptionsChainResponse Snapshot of the current data on hand, when subscription was created.
    State String This property is kept for backwards compatibility.
    Tag String Client specified tag assigned to the subscription, if specified in the request.
  • Streaming Response Parameters

    Name Type Description
    Data OptionsChainResponse The type of data transported by the DomainEvent instance (e.g. price update, position list update etc.).
    PartitionNumber Integer The partition number if this DomainEvent is a partition.
    ReferenceId String Client specified id, which is sent back to the client with every data update.
    Timestamp UtcDateTime The UTC date and time of the event.
    TotalPartitions Integer The total number of partitions if this DomainEvent is a partition.
  • Request Example

    Request URL
    POST /trade/v1/optionschain/subscriptions
    Request Body
    {
      "Arguments": {
        "AccountKey": "LZTc7DdejXODf-WSl2aCyQ==",
        "AssetType": "StockIndexOption",
        "Expiries": [
          {
            "Index": 1,
            "StrikeStartIndex": 0
          }
        ],
        "Identifier": 18,
        "MaxStrikesPerExpiry": 3
      },
      "ContextId": "20241217085105157",
      "ReferenceId": "C0104667",
      "RefreshRate": 1000
    }
    
  • Response Example

    Response body
    {
      "ContextId": "20241217085105157",
      "InactivityTimeout": 60,
      "ReferenceId": "C0104667",
      "RefreshRate": 1000,
      "Snapshot": {
        "AssetType": "StockIndexOption",
        "Expiries": [
          {
            "DisplayDate": "0001-01-01T00:00:00Z",
            "DisplayDaysToExpiry": 30,
            "Expiry": "2017-05-31T11:10:00Z",
            "Index": 0,
            "LastTradeDate": "0201-05-31T21:00:00Z",
            "MidStrikePrice": 0,
            "StrikeCount": 50,
            "Strikes": [
              {
                "Index": 0,
                "Strike": 97.25
              },
              {
                "Index": 1,
                "Strike": 97.375
              },
              {
                "Index": 2,
                "Strike": 97.5
              },
              {
                "Index": 3,
                "Strike": 97.625
              },
              {
                "Index": 4,
                "Strike": 97.75
              },
              {
                "Index": 5,
                "Strike": 97.8125
              },
              {
                "Index": 6,
                "Strike": 97.875
              },
              {
                "Index": 7,
                "Strike": 97.9375
              },
              {
                "Index": 8,
                "Strike": 98
              },
              {
                "Index": 9,
                "Strike": 98.0625
              },
              {
                "Index": 10,
                "Strike": 98.125
              },
              {
                "Index": 11,
                "Strike": 98.1875
              },
              {
                "Index": 12,
                "Strike": 98.25
              },
              {
                "Index": 13,
                "Strike": 98.3125
              },
              {
                "Index": 14,
                "Strike": 98.375
              },
              {
                "Index": 15,
                "Strike": 98.4375
              },
              {
                "Index": 16,
                "Strike": 98.5
              },
              {
                "Index": 17,
                "Strike": 98.5625
              },
              {
                "Index": 18,
                "Strike": 98.625
              },
              {
                "Index": 19,
                "Strike": 98.6875
              },
              {
                "Index": 20,
                "Strike": 98.75
              },
              {
                "Index": 21,
                "Strike": 98.8125
              },
              {
                "Index": 22,
                "Strike": 98.875
              },
              {
                "Index": 23,
                "Strike": 98.9375
              },
              {
                "Call": {
                  "High": 0,
                  "LastClose": 0.095,
                  "LastTraded": 0,
                  "Low": 0,
                  "NetChange": -0.095,
                  "Open": 0,
                  "OpenInterest": 0,
                  "PriceTypeAsk": "NoMarket",
                  "PriceTypeBid": "NoMarket",
                  "Uic": 2485090,
                  "Volume": 0
                },
                "Index": 24,
                "Put": {
                  "High": 0,
                  "LastClose": 0,
                  "LastTraded": 0,
                  "Low": 0,
                  "NetChange": 0,
                  "Open": 0,
                  "OpenInterest": 0,
                  "PriceTypeAsk": "NoMarket",
                  "PriceTypeBid": "NoMarket",
                  "Uic": 2485130,
                  "Volume": 0
                },
                "Strike": 99
              },
              {
                "Call": {
                  "High": 0,
                  "LastClose": 0.035,
                  "LastTraded": 0,
                  "Low": 0,
                  "NetChange": -0.035,
                  "Open": 0,
                  "OpenInterest": 0,
                  "PriceTypeAsk": "NoMarket",
                  "PriceTypeBid": "NoMarket",
                  "Uic": 2485091,
                  "Volume": 0
                },
                "Index": 25,
                "Put": {
                  "High": 0,
                  "LastClose": 0.0025,
                  "LastTraded": 0,
                  "Low": 0,
                  "NetChange": -0.0025,
                  "Open": 0,
                  "OpenInterest": 250,
                  "PriceTypeAsk": "NoMarket",
                  "PriceTypeBid": "NoMarket",
                  "Uic": 2485131,
                  "Volume": 0
                },
                "Strike": 99.0625
              },
              {
                "Call": {
                  "High": 0,
                  "LastClose": 0.0025,
                  "LastTraded": 0,
                  "Low": 0,
                  "NetChange": -0.0025,
                  "Open": 0,
                  "OpenInterest": 0,
                  "PriceTypeAsk": "NoMarket",
                  "PriceTypeBid": "NoMarket",
                  "Uic": 2485092,
                  "Volume": 0
                },
                "Index": 26,
                "Put": {
                  "High": 0,
                  "LastClose": 0.0325,
                  "LastTraded": 0,
                  "Low": 0,
                  "NetChange": -0.0325,
                  "Open": 0,
                  "OpenInterest": 250,
                  "PriceTypeAsk": "NoMarket",
                  "PriceTypeBid": "NoMarket",
                  "Uic": 2485132,
                  "Volume": 0
                },
                "Strike": 99.125
              },
              {
                "Index": 27,
                "Strike": 99.1875
              },
              {
                "Index": 28,
                "Strike": 99.25
              },
              {
                "Index": 29,
                "Strike": 99.3125
              },
              {
                "Index": 30,
                "Strike": 99.375
              },
              {
                "Index": 31,
                "Strike": 99.4375
              },
              {
                "Index": 32,
                "Strike": 99.5
              },
              {
                "Index": 33,
                "Strike": 99.5625
              },
              {
                "Index": 34,
                "Strike": 99.625
              },
              {
                "Index": 35,
                "Strike": 99.6875
              },
              {
                "Index": 36,
                "Strike": 99.75
              },
              {
                "Index": 37,
                "Strike": 99.8125
              },
              {
                "Index": 38,
                "Strike": 99.875
              },
              {
                "Index": 39,
                "Strike": 99.9375
              },
              {
                "Index": 40,
                "Strike": 100
              },
              {
                "Index": 41,
                "Strike": 100.0625
              },
              {
                "Index": 42,
                "Strike": 100.125
              },
              {
                "Index": 43,
                "Strike": 100.1875
              },
              {
                "Index": 44,
                "Strike": 100.25
              },
              {
                "Index": 45,
                "Strike": 100.375
              },
              {
                "Index": 46,
                "Strike": 100.5
              },
              {
                "Index": 47,
                "Strike": 100.625
              },
              {
                "Index": 48,
                "Strike": 100.75
              },
              {
                "Index": 49,
                "Strike": 100.875
              }
            ],
            "StrikeWindowStartIndex": 24,
            "UnderlyingUic": 2456777
          }
        ],
        "ExpiryCount": 0,
        "LastUpdated": "0001-01-01T00:00:00Z"
      },
      "State": "Active"
    }
    
  • Streaming Response Example

    Response body
    ""