market-data 0.5.0

A Rust lib to fetch & enhance historical time-series stock market data
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(crate) mod alphavantage;
pub(crate) mod finnhub;
pub(crate) mod massive;
pub(crate) mod twelvedata;
pub(crate) mod yahoo_finance;

use crate::{client::MarketSeries, errors::MarketResult};
use url::Url;

/// This trait has to be implemented by all the added sites
pub trait Publisher {
    type Request;
    fn create_endpoint(&self, request: &Self::Request) -> MarketResult<Url>;
    fn transform_data(&self, data: String, request: &Self::Request) -> MarketResult<MarketSeries>;
}