pub struct Client {
pub client: ClientWithMiddleware,
pub api_url: &'static str,
/* private fields */
}Expand description
Client struct used for connecting with coinpaprika.com
Fields§
§client: ClientWithMiddleware§api_url: &'static strImplementations§
Source§impl Client
impl Client
pub fn new() -> Self
pub async fn request(&self, request: RequestBuilder) -> Result<Response, Error>
Sourcepub fn key_info(&self) -> GetKeyInfoRequest<'_>
pub fn key_info(&self) -> GetKeyInfoRequest<'_>
Call to /key/info
Sourcepub fn global(&self) -> GetGlobalRequest<'_>
pub fn global(&self) -> GetGlobalRequest<'_>
Call to /global
Sourcepub fn coins(&self) -> GetCoinsRequest<'_>
pub fn coins(&self) -> GetCoinsRequest<'_>
Call to /coins
Sourcepub fn coin(&self, coin_id: &str) -> GetCoinRequest<'_>
pub fn coin(&self, coin_id: &str) -> GetCoinRequest<'_>
Call to /coins/{coin_id}
Sourcepub fn twitter(&self, coin_id: &str) -> GetTwitterRequest<'_>
pub fn twitter(&self, coin_id: &str) -> GetTwitterRequest<'_>
Call to /coins/{coin_id}/twitter
Sourcepub fn coin_events(&self, coin_id: &str) -> GetCoinEventsRequest<'_>
pub fn coin_events(&self, coin_id: &str) -> GetCoinEventsRequest<'_>
Call to /coins/{coin_id}/events
Sourcepub fn coin_exchanges(&self, coin_id: &str) -> GetCoinExchangesRequest<'_>
pub fn coin_exchanges(&self, coin_id: &str) -> GetCoinExchangesRequest<'_>
Call to /coins/{coin_id}/exchanges
Sourcepub fn coin_markets(&self, coin_id: &str) -> GetCoinMarketsRequest<'_>
pub fn coin_markets(&self, coin_id: &str) -> GetCoinMarketsRequest<'_>
Call to /coins/{coin_id}/markets
Sourcepub fn coin_ohlc_last_full_day(
&self,
coin_id: &str,
) -> GetCoinOHLCLastFullDayRequest<'_>
pub fn coin_ohlc_last_full_day( &self, coin_id: &str, ) -> GetCoinOHLCLastFullDayRequest<'_>
Call to /coins/{coin_id}/ohlcv/latest
Sourcepub fn coin_ohlc_historical(
&self,
coin_id: &str,
) -> GetCoinOHLCHistoricalRequest<'_>
pub fn coin_ohlc_historical( &self, coin_id: &str, ) -> GetCoinOHLCHistoricalRequest<'_>
Sourcepub fn coin_ohlc_today(&self, coin_id: &str) -> GetCoinOHLCTodayRequest<'_>
pub fn coin_ohlc_today(&self, coin_id: &str) -> GetCoinOHLCTodayRequest<'_>
Call to /coins/{coin_id}/ohlcv/today
Sourcepub fn person(&self, person_id: &str) -> GetPersonRequest<'_>
pub fn person(&self, person_id: &str) -> GetPersonRequest<'_>
Call to /people/{person_id}
Call to /tags
Sourcepub fn tag(&self, tag_id: &str) -> GetTagRequest<'_>
pub fn tag(&self, tag_id: &str) -> GetTagRequest<'_>
Call to /tags/{tag_id}
Sourcepub fn tickers(&self) -> GetTickersRequest<'_>
pub fn tickers(&self) -> GetTickersRequest<'_>
Call to /tickers
Sourcepub fn ticker(&self, coin_id: &str) -> GetTickerRequest<'_>
pub fn ticker(&self, coin_id: &str) -> GetTickerRequest<'_>
Call to /ticker/{coin_id}
Sourcepub fn historical_ticks(&self, coin_id: &str) -> GetHistoricalTicksRequest<'_>
pub fn historical_ticks(&self, coin_id: &str) -> GetHistoricalTicksRequest<'_>
Call to /ticker/{coin_id}/historical
Sourcepub fn exchanges(&self) -> GetExchangesRequest<'_>
pub fn exchanges(&self) -> GetExchangesRequest<'_>
Call to /exchanges
Sourcepub fn exchange(&self, exchange_id: &str) -> GetExchangeRequest<'_>
pub fn exchange(&self, exchange_id: &str) -> GetExchangeRequest<'_>
Call to /exchanges/{exchange_id}
Sourcepub fn exchange_markets(
&self,
exchange_id: &str,
) -> GetExchangeMarketsRequest<'_>
pub fn exchange_markets( &self, exchange_id: &str, ) -> GetExchangeMarketsRequest<'_>
Call to /exchanges/{exchange_id}/markets
Sourcepub fn search(&self, q: &str) -> GetSearchRequest<'_>
pub fn search(&self, q: &str) -> GetSearchRequest<'_>
Call to /search
Sourcepub fn price_convert(
&self,
base_currency_id: &str,
quote_currency_id: &str,
) -> GetPriceConversionRequest<'_>
pub fn price_convert( &self, base_currency_id: &str, quote_currency_id: &str, ) -> GetPriceConversionRequest<'_>
Call to /price-converter
Sourcepub fn contract_platforms(&self) -> GetContractPlatformsRequest<'_>
pub fn contract_platforms(&self) -> GetContractPlatformsRequest<'_>
Call to /contracts
Sourcepub fn contracts(&self, platform_id: &str) -> GetContractsRequest<'_>
pub fn contracts(&self, platform_id: &str) -> GetContractsRequest<'_>
Call to /contracts/{platform_id}
Sourcepub fn changelog(&self, page: i32) -> GetChangelogRequest<'_>
pub fn changelog(&self, page: i32) -> GetChangelogRequest<'_>
Call to /changelog/ids
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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