Metadata::symbol_map_for_date

Create a symbology map from the mappings in the metadata for the specified date. Useful for requests that span a single day. For multi-day requests, it's better to use Metadata::symbol_map.

Parameters

Parameter
Type
Description
date
time::Date
The date to create the symbol map for.

Returns

A PitSymbolMap with the symbol mappings for the query range indexed by instrument ID.

This function returns an error if it fails to parse a symbol mapping into a u32 instrument ID or the provided date is outside the query range.

API method
pub fn symbol_map_for_date(
    &self,
    date: time::Date,
) -> dbn::Result<PitSymbolMap>;