m.forex.quotes¶
Foreign exchange quotes: the best bid and ask of each currency pair, tick by tick.
Call it from a session m, made with dm.MassiveSession():
m.forex.quotes(symbols, *, on_error=None)
- Methods:
blink(),append_only(),ring(capacity),last_by(by='Symbol'),history(start, end=None) - Read from: REST, flat files, WebSocket
Arguments¶
A linked argument follows its rule under shared arguments on the dataset index.
| Argument | Description |
|---|---|
symbols |
Currency pairs, such as C:EURUSD, or dm.ALL for every pair. dm.canonical_symbol_forex converts EUR/USD. |
on_error |
What a bad symbol or row does in this call (dm.ErrorPolicy). None, the default, takes each cause from the session's MassiveConfig.on_error. |
Plans¶
How recent the data is on each of Massive's plans, and how far back its history goes, as Massive's pages state them.
| Plan | Quotes (flat files) | Quotes (REST) | Quotes (WebSocket) |
|---|---|---|---|
| Currencies Basic | Not included | Not included | Not included |
| Currencies Starter | End-of-day, All history | Real-time, All history | Real-time |
| Currencies Business | End-of-day, All history | Real-time, All history | Real-time |
Columns¶
| Column | Type | Description | Read from |
|---|---|---|---|
Symbol |
String | The row's instrument, as Massive's ticker. From REST: the request's fxTicker parameter; flat files ticker: "The exchange symbol that this item is traded under."; WebSocket p: "The current pair." |
REST, flat files, WebSocket |
Date |
String | The trading day of the row, as ISO yyyy-MM-dd text: the UTC date of Timestamp. |
REST, flat files, WebSocket |
Timestamp |
Instant | The row's event time. From REST participant_timestamp: "The nanosecond Exchange Unix Timestamp. This is the timestamp of when the quote was generated at the exchange."; flat files participant_timestamp: "The nanosecond accuracy Participant/Exchange Unix Timestamp. This is the timestamp of when the quote was actually generated at the exchange."; WebSocket t: "The Timestamp in Unix MS." |
REST, flat files, WebSocket |
BidPrice |
double | The bid price. | REST, flat files, WebSocket |
AskPrice |
double | The ask price. | REST, flat files, WebSocket |
BidExchange |
long | The bid exchange ID | REST, flat files |
AskExchange |
long | The ask exchange ID | REST, flat files |
Exchange |
long | The exchange ID. See Exchanges (https://massive.com/docs/rest/forex/market-operations/exchanges) for Massive's mapping of exchange IDs. | WebSocket |
TimestampInsert |
Instant | When the library received the row, by the local clock. Rows that arrive together share it. It isn't Massive's time, and later rows can carry earlier times. On history() rows, it's the download time. |
REST, flat files, WebSocket |
Massive fields
The Massive field behind each column, by source. An empty cell means the source doesn't carry the column, or the library computes it. request marks a value the library fills from the request.
| Column | REST field | Flat-file field | WebSocket field |
|---|---|---|---|
Symbol |
request | ticker |
p |
Date |
|||
Timestamp |
participant_timestamp |
participant_timestamp |
t |
BidPrice |
bid_price |
bid_price |
b |
AskPrice |
ask_price |
ask_price |
a |
BidExchange |
bid_exchange |
bid_exchange |
|
AskExchange |
ask_exchange |
ask_exchange |
|
Exchange |
x |
||
TimestampInsert |
Massive's documentation¶
The plan tables and most column descriptions are Massive's, from its documentation as fetched on 2026-12-01, with a few corrected where Massive's are wrong. The library writes its own descriptions of the columns it names or computes, such as Symbol and TimestampInsert.