Endpoint Parameters

  • Request parameters

    Name Type Origin Description
    Arguments ChartSubscriptionRequest 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 ChartResponse 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 ChartResponse 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 /chart/v1/charts/subscriptions
    Request Body
    {
      "Arguments": {
        "AssetType": "FxSpot",
        "Count": 2,
        "FieldGroups": [
          "ChartInfo",
          "Data",
          "DisplayAndFormat"
        ],
        "Horizon": 1,
        "Uic": 21
      },
      "ContextId": "20241223091259056",
      "Format": "application/json",
      "ReferenceId": "CH90110",
      "RefreshRate": 1000
    }
    
  • Response Example

    Response body
    {
      "ContextId": "20241223091259084",
      "Format": "application/json",
      "InactivityTimeout": 0,
      "ReferenceId": "CH01394",
      "RefreshRate": 1000,
      "Snapshot": {
        "ChartInfo": {
          "DelayedByMinutes": 15,
          "ExchangeId": "SBFX",
          "FirstSampleTime": "2015-02-02T01:02:03Z",
          "Horizon": 1
        },
        "Data": [
          {
            "CloseAsk": 1.3475,
            "CloseBid": 1.3473,
            "HighAsk": 1.4003,
            "HighBid": 1.4001,
            "LowAsk": 1.2804,
            "LowBid": 1.2802,
            "OpenAsk": 1.3478,
            "OpenBid": 1.3476,
            "Time": "2015-02-01T11:45:00Z"
          },
          {
            "CloseAsk": 1.3475,
            "CloseBid": 1.3473,
            "HighAsk": 1.4003,
            "HighBid": 1.4001,
            "LowAsk": 1.2804,
            "LowBid": 1.2802,
            "OpenAsk": 1.3478,
            "OpenBid": 1.3476,
            "Time": "2015-02-01T11:46:00Z"
          }
        ],
        "DataVersion": 1892739,
        "DisplayAndFormat": {
          "Currency": "USD",
          "Decimals": 4,
          "Description": "Euro/US Dollar",
          "Format": "AllowDecimalPips",
          "Symbol": "EURUSD"
        }
      },
      "State": "Active",
      "Tag": "Tag01"
    }
    
  • Streaming Response Example

    Response body
    ""