Response Message
Series
When you subscribe to a symbol with 'type': 'series'
, the data format will be as follows:
{
"code": "NASDAQ:AAPL",
"bar_end": 1733432399,
"bar_type": "1m",
"series": [
{
"time": 1733432340,
"open": 242.89,
"high": 243.09,
"low": 242.82,
"close": 243.08,
"volume": 533779
}
]
}
Schema
- code
- Symbol code (String)
- bar_end
- End time of the current bar (Unix time in seconds, Integer)
- bar_type
- Type of the bar - 's' is seconds. m is minutes. h is hours. D is days. W is weeks. M is months. (String)
- series
- Array of bars (Array)
- time
- Time of the current bar (Unix time in seconds, Integer)
- open
- Opening price of the bar (Float)
- high
- Highest price of the bar (Float)
- low
- Lowest price of the bar (Float)
- close
- Current price (if the bar is not finished) or the close price of the bar (Float)
- volume
- Trading volume (Integer)
Quote
When you subscribe to a symbol with 'type': 'quote'
, the data format will be as follows:
{
"code": "NASDAQ:AAPL",
"lp_time": 1733432340,
"volume": 533779,
"last_price": 243.08,
"change_percent": 0.41,
"change": 979.96,
"ask": 243.09,
"bid": 243.08
}
Response Fields
- code
- Symbol code (String)
- lp_time
- Time of the last price update (Unix time in seconds, Integer or null)
- volume
- Volume of the last trade (Integer or null)
- last_price
- Last traded price (Float or null)
- change_percent
- Change percentage from the last price (Float or null)
- change
- Change from the last price (Float or null)
- ask
- Ask price (Float or null)
- bid
- Bid price (Float or null)