[−][src]Struct coinbase_pro_rs::public::Public
Methods
impl<A> Public<A>
[src]
pub fn new_with_keep_alive(uri: &str, keep_alive: bool) -> Self where
A: AdapterNew,
[src]
A: AdapterNew,
pub fn new(uri: &str) -> Self where
A: AdapterNew,
[src]
A: AdapterNew,
pub fn get_time(&self) -> A::Result where
A: Adapter<Time> + 'static,
[src]
A: Adapter<Time> + 'static,
pub fn get_products(&self) -> A::Result where
A: Adapter<Vec<Product>> + 'static,
[src]
A: Adapter<Vec<Product>> + 'static,
pub fn get_book<T>(&self, product_id: &str) -> A::Result where
A: Adapter<Book<T>> + 'static,
T: BookLevel + Debug + 'static,
T: Send,
T: for<'de> Deserialize<'de>,
[src]
A: Adapter<Book<T>> + 'static,
T: BookLevel + Debug + 'static,
T: Send,
T: for<'de> Deserialize<'de>,
pub fn get_ticker(&self, product_id: &str) -> A::Result where
A: Adapter<Ticker> + 'static,
[src]
A: Adapter<Ticker> + 'static,
pub fn get_trades(&self, product_id: &str) -> A::Result where
A: Adapter<Vec<Trade>> + 'static,
[src]
A: Adapter<Vec<Trade>> + 'static,
pub fn get_candles(
&self,
product_id: &str,
start: Option<DateTime>,
end: Option<DateTime>,
granularity: Granularity
) -> A::Result where
A: Adapter<Vec<Candle>> + 'static,
[src]
&self,
product_id: &str,
start: Option<DateTime>,
end: Option<DateTime>,
granularity: Granularity
) -> A::Result where
A: Adapter<Vec<Candle>> + 'static,
pub fn get_stats24h(&self, product_id: &str) -> A::Result where
A: Adapter<Stats24H> + 'static,
[src]
A: Adapter<Stats24H> + 'static,
pub fn get_currencies(&self) -> A::Result where
A: Adapter<Vec<Currency>> + 'static,
[src]
A: Adapter<Vec<Currency>> + 'static,
Auto Trait Implementations
impl<Adapter> Send for Public<Adapter> where
Adapter: Send,
Adapter: Send,
impl<Adapter> Sync for Public<Adapter> where
Adapter: Sync,
Adapter: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self