Enum CCAPIEndpoint

Source
pub enum CCAPIEndpoint {
Show 31 variants AvailableCoinList, HistoricalDaily, BalanceDistribution, IndicesOHLCV, SpotOHLCV, SpotInstrumentMetadata, SpotMarkets, SpotMarketsInstruments, FuturesOHLCV, FuturesMarkets, OptionsOHLCV, OptionsMarkets, DerIndicesOHLCV, DerIndicesMarkets, OCDEXOHLCV, OCDEXMarkets, OCCoreETHBlocks, OCCoreAssetsByChain, OCCoreAssetByAddress, OCCoreSupply, AssetMetadata, AssetEvents, AssetCodeRepo, AssetDiscord, AssetReddit, AssetTelegram, AssetTwitter, NewsLatestArticles, NewsSources, NewsCategories, OverviewMktCapOHLCV,
}
Expand description

All supported API endpoints.

Variants§

§

AvailableCoinList

Min-API Endpoint

Description: Returns a list of all coins for which CCData currently gets the blockchain data

URL: https://min-api.cryptocompare.com/data/blockchain/list

§

HistoricalDaily

Min-API Endpoint

Description: Retrieves the daily aggregated blockchain data for the requested coin

URL: https://min-api.cryptocompare.com/data/blockchain/histo/day

§

BalanceDistribution

Min-API Endpoint

Description: Retrieves the balance distribution for a specified asset over a specified time range at a daily interval

Note: Only data for BTC (Bitcoin) is currently available

URL: https://min-api.cryptocompare.com/data/blockchain/balancedistribution/histo/day

§

IndicesOHLCV

Data-API Endpoint

Description: Provides historical candlestick data for various indices

URL: https://data-api.ccdata.io/index/cc/v1/historical

§

SpotOHLCV

Data-API Endpoint

Description: Provides candlestick data for specific cryptocurrency instruments across selected exchanges

URL: https://data-api.ccdata.io/spot/v1/historical

§

SpotInstrumentMetadata

Data-API Endpoint

Description: Delivers vital metadata about financial instruments traded on specified exchanges, focusing solely on non-price related information

URL: https://data-api.ccdata.io/spot/v1/latest/instrument/metadata

§

SpotMarkets

Data-API Endpoint

Description: Provides comprehensive information about various cryptocurrency spot markets

URL: https://data-api.ccdata.io/spot/v1/markets

§

SpotMarketsInstruments

Data-API Endpoint

Description: Retrieves a comprehensive dictionary of mapped instruments across one or more spot markets, filtered by a specified state or status

URL: https://data-api.ccdata.io/spot/v1/markets/instruments

§

FuturesOHLCV

Data-API Endpoint

Description: Provides aggregated candlestick data for specific futures instruments on designated exchanges

URL: https://data-api.ccdata.io/futures/v1/historical

§

FuturesMarkets

Data-API Endpoint

Description: Provides comprehensive information about various cryptocurrency futures markets

URL: https://data-api.ccdata.io/futures/v1/markets

§

OptionsOHLCV

Data-API Endpoint

Description: Provides historical OHLCV (open, high, low, close, volume) data for specified options instruments on a chosen exchange

URL: https://data-api.ccdata.io/options/v1/historical

§

OptionsMarkets

Data-API Endpoint

Description: Provides comprehensive information about the various options markets integrated by our platform

URL: https://data-api.ccdata.io/options/v1/markets

§

DerIndicesOHLCV

Data-API Endpoint

Description: Provides historical OHLC (open, high, low, close) data for specified index instruments on a selected market

URL: https://data-api.ccdata.io/index/v1/historical

§

DerIndicesMarkets

Data-API Endpoint

Description: Provides comprehensive information about various derivatives index markets

URL: https://data-api.ccdata.io/index/v1/markets

§

OCDEXOHLCV

Data-API Endpoint

Description: Retrieves aggregated candlestick data for AMM swap transactions

URL: https://data-api.ccdata.io/onchain/v1/amm/historical/swap

§

OCDEXMarkets

Data-API Endpoint

Description: Provides comprehensive information about various decentralized exchange (DEX) markets within the blockchain ecosystem

URL: https://data-api.ccdata.io/onchain/v1/amm/markets

§

OCCoreETHBlocks

Data-API Endpoint

Description: Delivers exhaustive details on a specific Ethereum block in a meticulously processed format, complete with detailed explanations for each field

URL: https://data-api.ccdata.io/onchain/v1/block/2

§

OCCoreAssetsByChain

Data-API Endpoint

Description: Retrieves a comprehensive summary of chain asset information for a specified blockchain, identified by its chain symbol

URL: https://data-api.ccdata.io/onchain/v3/summary/by/chain

§

OCCoreAssetByAddress

Data-API Endpoint

Description: Retrieves comprehensive asset information for a specific asset identified by its smart contract address and associated blockchain asset

URL: https://data-api.ccdata.io/onchain/v2/data/by/address

§

OCCoreSupply

Data-API Endpoint

Description: Retrieves comprehensive historical supply data for various digital assets identified by either their CCData asset ID or unique asset symbol

URL: https://data-api.ccdata.io/onchain/v2/historical/supply/days

§

AssetMetadata

Data-API Endpoint

Description: Returns an object that provides detailed and comprehensive information about multiple cryptocurrency assets in response to a request

URL: https://data-api.ccdata.io/asset/v1/metadata

§

AssetEvents

Data-API Endpoint

Description: Retrieves an array of significant events related to digital assets, such as security incidents, rebrandings, blockchain forks, and other impactful developments

URL: https://data-api.ccdata.io/asset/v1/events

§

AssetCodeRepo

Data-API Endpoint

Description: Provides an in-depth, daily snapshot of a digital asset’s code repositories

URL: https://data-api.ccdata.io/asset/v1/historical/code-repository/days

§

AssetDiscord

Data-API Endpoint

Description: Aggregates detailed daily metrics from all Discord servers related to a specific digital asset, offering a multifaceted view into community engagement and the asset’s standing within Discord communities

URL: https://data-api.ccdata.io/asset/v1/historical/discord/days

§

AssetReddit

Data-API Endpoint

Description: Aggregates key performance indicators from all the subreddits related to a specific digital asset, providing a comprehensive understanding of the asset’s footprint on Reddit

URL: https://data-api.ccdata.io/asset/v1/historical/reddit/days

§

AssetTelegram

Data-API Endpoint

Description: Collates essential data points across all Telegram groups affiliated with a particular cryptocurrency asset

URL: https://data-api.ccdata.io/asset/v1/historical/telegram/days

§

AssetTwitter

Data-API Endpoint

Description: Aggregates essential metrics from all X (Twitter) accounts associated with a specific cryptocurrency asset

URL: https://data-api.ccdata.io/asset/v1/historical/twitter/days

§

NewsLatestArticles

Data-API Endpoint

Description: Serves as the pulse of the crypto news landscape, providing users with instant access to the most recent articles across the industry

URL: https://data-api.ccdata.io/news/v1/article/list

§

NewsSources

Data-API Endpoint

Description: Offers a comprehensive listing of all news sources available through CCData API

URL: https://data-api.ccdata.io/news/v1/source/list

§

NewsCategories

Data-API Endpoint

Description: Provide a straightforward listing of all news categories available through CCData API

URL: https://data-api.ccdata.io/news/v1/category/list

§

OverviewMktCapOHLCV

Data-API Endpoint

Description: Presents a thorough historical daily overview of market capitalisation for digital assets that meet the volume and listing criteria

URL: https://data-api.ccdata.io/overview/v1/historical/marketcap/all/assets/days

Implementations§

Source§

impl CCAPIEndpoint

Source

pub fn url(&self, unit: &CCUnit) -> String

Produces URL for a given API endpoint.

§Input
  • unit: Unit of the interval between successive data points

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,