1 2 3 4 5 6 7 8 9 10 11
use async_trait::async_trait; use crate::{ errors::CandlesError, types::{Candle, Instrument}, }; #[async_trait] pub trait BaseConnection { async fn get_candles(instrument: Instrument) -> Result<Vec<Candle>, CandlesError>; }