Function ib_client::apis::market_data_api::iserver_marketdata_snapshot_get[][src]

pub async fn iserver_marketdata_snapshot_get(
    configuration: &Configuration,
    conids: &str,
    since: Option<i32>,
    fields: Option<&str>
) -> Result<Vec<InlineResponse20017>, Error<IserverMarketdataSnapshotGetError>>

Get Market Data for the given conid(s). The endpoint will return by default bid, ask, last, change, change pct, close, listing exchange. See response fields for a list of available fields that can be request via fields argument. The endpoint /iserver/accounts must be called prior to /iserver/marketdata/snapshot. For derivative contracts the endpoint /iserver/secdef/search must be called first. First /snapshot endpoint call for given conid will initiate the market data request. To receive all available fields the /snapshot endpoint will need to be called several times. To receive streaming market data the endpoint /ws can be used. Refer to Streaming WebSocket Data for details.