Function ib_client::apis::market_data_api::iserver_marketdata_history_get [−][src]
pub async fn iserver_marketdata_history_get(
configuration: &Configuration,
conid: &str,
period: &str,
exchange: Option<&str>,
bar: Option<&str>,
outside_rth: Option<bool>
) -> Result<HistoryData, Error<IserverMarketdataHistoryGetError>>
Get historical market Data for given conid, length of data is controlled by 'period' and 'bar'. Formatted as: min=minute, h=hour, d=day, w=week, m=month, y=year e.g. period =1y with bar =1w returns 52 data points (Max of 1000 data points supported). Note: There's a limit of 5 concurrent requests. Excessive requests will return a 'Too many requests' status 429 response.