Expand description
Loading market data for a script to run over.
The data itself is pine_core::Data — bars plus the symbol and timeframe
they belong to. This crate is the ways of getting one: a CSV file today, an
exchange later.
Series history and stateful builtins accumulate as bars execute, so a script must be replayed from its first bar. Handing over the whole series at once is what makes that the only thing a caller can do.
Structs§
- Binance
Source - Binance’s public klines endpoint, as a
DataProvider: it fetches whatever symbol and timeframe are asked for. - Kraken
Source - Kraken’s public OHLC endpoint, as a
DataProvider: it fetches whatever pair and timeframe are asked for. - Static
Provider - A fixed dataset served as a provider.
- Yahoo
Source - Yahoo Finance’s chart endpoint (the one
yfinanceuses) as aDataProviderfor equities, ETFs, indices, FX and crypto: it fetches whatever symbol and timeframe are asked for.