pub struct Indicators { /* private fields */ }Expand description
Technical indicators for a coin.
Period indicators (rsi, stoch_rsi, sma, cci, mfi, williams_r, price_volatility, volume_volatility) accept: period, start, end, limit. Series indicators (macd, obv, adx, vwap, cmf) accept: start, end, limit.
Implementations§
Source§impl Indicators
impl Indicators
Sourcepub fn snapshot<T: DeserializeOwned>(&self, slug: &str) -> Result<T, Error>
pub fn snapshot<T: DeserializeOwned>(&self, slug: &str) -> Result<T, Error>
All indicators for a coin at a glance.
pub fn rsi<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn stoch_rsi<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn sma<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn cci<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn mfi<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn williams_r<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn price_volatility<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn volume_volatility<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn macd<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn obv<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn adx<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn vwap<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
pub fn cmf<T: DeserializeOwned>( &self, slug: &str, params: Params, ) -> Result<T, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for Indicators
impl !UnwindSafe for Indicators
impl Freeze for Indicators
impl Send for Indicators
impl Sync for Indicators
impl Unpin for Indicators
impl UnsafeUnpin for Indicators
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more