SubscribeTicker
Category: User Permissions: Operator, Trading, Level1MarketData Call Type: Synchronous
Subscribes a user to a Ticker Market Data Feed for a specific instrument and interval. SubscribeTicker sends a response object as described below, and then periodically returns a TickerDataUpdateEvent that matches the content of the response object.
Only a user with Operator permission can issue a Level1MarketData permission using the call AddUserMarketDataPermission.
Request
Key | Value |
---|---|
OMSId | integer. The ID of the Order Management System |
InstrumentId | long integer. The ID of the instrument whose information you want to track. |
Interval | integer. Specifies in seconds how frequently to obtain ticker updates. Default is 60 — one minute. |
IncludeLastCount | integer. The limit of records returned in the ticker history. The default is 100. |
Response
The response returns an array of objects , each object an unlabeled, comma-delimited array of numbers. The Open price and Close price are those at the beginning of the tick — the Interval time subscribed to in the request. For 24-hour exchanges, the trading day runs from UTC midnight to UTC midnight; highs, lows, opens, closes, and volumes consider that midnight-to-midnight period to be the trading day. The data order is:
date/time UTC in milliseconds since 1/1/1970
high
low
open
close
volume
inside bid price
inside ask price
instrument ID
A typical response might look like this: [[1510719222970.21,6943.51,6890.27,6898.41,6891.16,0,6890.98,6891.98,1,1510718681956.34]],
Last updated