Skip to main content

set_data_source

Function set_data_source 

pub fn set_data_source(source: Option<DataSource>)
Expand description

Sets the process-wide default data source — or, with None, clears it.

A market copies the default when it is built (MarketContext::undated, MarketContext::as_of); a market built before this call keeps the source it had.