pub struct CoinGeckoProClient { /* private fields */ }Implementations§
Source§impl CoinGeckoProClient
impl CoinGeckoProClient
pub fn new(api_key: String) -> Self
pub async fn get_network_status(&self) -> Result<String, String>
pub async fn get_global_data(&self) -> Result<String, String>
pub async fn get_global_defi_data(&self) -> Result<String, String>
pub async fn get_exchanges( &self, per_page: Option<u32>, page: Option<u32>, ) -> Result<String, String>
pub async fn get_exchange(&self, id: String) -> Result<String, String>
pub async fn get_exchange_tickers( &self, id: String, coin_ids: Option<Vec<String>>, include_exchange_logo: Option<bool>, page: Option<u32>, depth: Option<bool>, order: Option<String>, ) -> Result<String, String>
pub async fn get_exchange_volume_chart( &self, id: String, days: u32, ) -> Result<String, String>
pub async fn get_coins_list( &self, include_platform: Option<bool>, ) -> Result<String, String>
pub async fn get_coin_tickers( &self, id: String, exchange_ids: Option<Vec<String>>, include_exchange_logo: Option<bool>, page: Option<u32>, order: Option<String>, depth: Option<bool>, ) -> Result<String, String>
pub async fn get_coin_history( &self, id: String, date: String, localization: Option<bool>, ) -> Result<String, String>
pub async fn get_coin_market_chart( &self, id: String, vs_currency: String, days: String, interval: Option<String>, ) -> Result<String, String>
pub async fn get_coin_market_chart_range( &self, id: String, vs_currency: String, from: u64, to: u64, ) -> Result<String, String>
pub async fn get_coin_ohlc( &self, id: String, vs_currency: String, days: String, ) -> Result<String, String>
pub async fn get_coin_contract( &self, id: String, contract_address: String, ) -> Result<String, String>
pub async fn get_coin_contract_market_chart( &self, id: String, contract_address: String, vs_currency: String, days: String, ) -> Result<String, String>
pub async fn get_coin_contract_market_chart_range( &self, id: String, contract_address: String, vs_currency: String, from: u64, to: u64, ) -> Result<String, String>
pub async fn get_asset_platforms(&self) -> Result<String, String>
pub async fn get_coins_categories_list(&self) -> Result<String, String>
pub async fn get_coins_categories( &self, order: Option<String>, ) -> Result<String, String>
pub async fn get_indexes(&self) -> Result<String, String>
pub async fn get_indexes_list(&self) -> Result<String, String>
pub async fn get_derivatives(&self) -> Result<String, String>
pub async fn get_derivatives_exchanges( &self, order: Option<String>, per_page: Option<u32>, page: Option<u32>, ) -> Result<String, String>
pub async fn get_derivatives_exchange( &self, id: String, include_tickers: Option<String>, ) -> Result<String, String>
pub async fn get_exchange_rates(&self) -> Result<String, String>
pub async fn search(&self, query: String) -> Result<String, String>
pub async fn get_trending(&self) -> Result<String, String>
pub async fn get_companies_public_treasury( &self, coin_id: String, ) -> Result<String, String>
Trait Implementations§
Source§impl Clone for CoinGeckoProClient
impl Clone for CoinGeckoProClient
Source§fn clone(&self) -> CoinGeckoProClient
fn clone(&self) -> CoinGeckoProClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CoinGeckoProClient
impl !RefUnwindSafe for CoinGeckoProClient
impl Send for CoinGeckoProClient
impl Sync for CoinGeckoProClient
impl Unpin for CoinGeckoProClient
impl !UnwindSafe for CoinGeckoProClient
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more