pub trait DataProvider {
// Required method
fn request(
&self,
symbol: &str,
timeframe: Timeframe,
) -> Result<Data, Box<dyn Error + Sync + Send>>;
}Expand description
A source of market data: given a symbol and a Pine timeframe, produce its bars.
Required Methods§
fn request( &self, symbol: &str, timeframe: Timeframe, ) -> Result<Data, Box<dyn Error + Sync + Send>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".