pub struct CCSpotInstrumentMetdata {
pub metadata_version: usize,
pub instrument_status: String,
pub first_seen_on_pollings_ts: i64,
pub last_seen_pollings_ts: i64,
pub instrument: String,
pub instrument_mapping: CCInstrumentMapping,
pub instrument_external_data: String,
pub first_ob_l2_minute_snapshot_ts: Option<i64>,
}
Expand description
Spot: Instrument Metadata
Fields§
§metadata_version: usize
The version of metadata, used for version conversions/migrates.
instrument_status: String
The status of the instrument, we only poll / stream / connect to the ACTIVE ones, for the RETIRED / IGNORED / EXPIRED / READY_FOR_DECOMMISSIONING means we no longer query/stream data.
first_seen_on_pollings_ts: i64
This is the first time instrument was seen on instrumentListSourceType POLLING.
last_seen_pollings_ts: i64
This is the last time instrument was seen on instrumentListSourceType POLLING.
instrument: String
The instrument ID as it is on the exchange with small modifications - we do not allow the following characters inside isntrument ids: ,/&?
instrument_mapping: CCInstrumentMapping
The current mapping information for this instrument.
instrument_external_data: String
The full data we get from the polling endpoint for this specific instrument. This is a JSON stringified object with different properties per exchange.
first_ob_l2_minute_snapshot_ts: Option<i64>
Timestamp of the initial Level 2 minute snapshot.