CryptoCompare API – Cryptocurrency gegevens API for overheen 40 exchanges and 600 coins(BTC, ETH, XMR 600 other cryptos)

CryptoCompare API – Cryptocurrency gegevens API for overheen 40 exchanges and 600 coins(BTC, ETH, XMR 600 other cryptos)

The best API for getting cryptocurrency pricing, OHLC and volume gegevens from numerous exchanges. Wij have integrated so far with: Cryptsy, BTCChina, Bitstamp, BTER, OKCoin, Coinbase, Poloniex, Cexio, BTCE, BitTrex, Kritiseren, Bitfinex, Yacuna, LocalBitcoins, Yunbi, itBit, HitBTC, btcXchange, BTC38, Coinfloor, Huobi, CCCAGG, LakeBTC, ANXBTC, Bit2C, Coinsetter, CCEX, Coinse, MonetaGo, Gatecoin, Gemini, CCEDK, Cryptopia, Exmo, Yobit, Korbit, BitBay, BTCMarkets, Coincheck, QuadrigaCX, BitSquare, Vaultoro, MercadoBitcoin, Bitso, Unocoin, BTCXIndia, Paymium, TheRockTrading, bitFlyer, Quoine, Luno, EtherDelta, bitFlyerFX, TuxExchange, CryptoX, Liqui, MtGox, BitMarket, LiveCoin, Coinone, Tidex, Bleutrade, EthexIndia, Bithumb, CHBTC, ViaBTC, Jubi, Zaif, Novaexchange, WavesDEX, Binance, Lykke, Remitano, Coinroom, Abucoins, BXinth, Gateio, HuobiPro, OKEX and the list keeps growing every month. Wij are your one zekering shop for all your cryptocurrency APIs and gegevens needs.

All our APIs are available under free to use under a Creative Commons Attribution-NonCommercial Three.0 Unported (CC BY-NC Three.0) license ( https://creativecommons.org/licenses/by-nc/Three.0/ ) Please make sure you credit us with a listig if you use our gegevens on your webstek or app.

Inform us on info@cryptocompare.com that you are using our API so wij can let you know if wij make any updates. (If Vlad sent you here, you are already on the list). DUE TO ABUSIVE USAGE, IF YOU WANT YOUR CLIENTS TO DIRECTLY USE OUR APIS, USE THE MIN-API PATH. (THE HEADER Access-Control-Allow-Origin: * is only set on min-api paths)

Most of the requests that are related to pricing gegevens are public at the ogenblik and generally available via GET functions. Please do not manhandle them, a request every Ten sec should be more than enough. There is also a streaming api based on socket.io that is public spil well. At the ogenblik the public surplus api and streaming apis are not delayed.

Wij RECOMMEND YOU USE – https://min-api.cryptocompare.com/ for all your pricing API needs. Wij have had the API manhandled and I’ve waterput a limit ter place of 6000 requests vanaf hour vanaf IP for the historical paths. You can see the thresholds here: hour boundaries , 2nd thresholds .

Public API invocation

Public APIs are accessible via GET, and the parameters for the request are included ter the query string.

Private API invocation

Authentication

CryptoCompare uses session cookies to permit access to private gegevens. You can obtain the cookie by logging ter.

Sessions

A session key is only valid for 30 days and it has a sliding window period, so each time you use it, it will get extended by 30 days.

If successful, API requests will come back an HTTP 200 OK code, spil well spil a Response.Type >= 100 any Response.Type less than 100 will mean there wasgoed an error.

Note that the responses to all requests, both public and private, are sent spil the response figure.

This section deals with all the requests for price gegevens, social gegevens and historical gegevens . Most of it is used for dealing with subscription, top list, historical and snapshot gegevens.

CoinList

This api should never come back an error, maybe a 500 error if there is an kwestie with cryptocompare

Get general informatie for all the coins available on the webstek.

URL Parameters

Comeback gegevens

Request examples

Price

Price success examples

Pricemulti success examples

Pricemultifull success examples

GenerateAvg success examples

Get the latest price for a list of one or more currencies. Truly prompt, 20-60 ms. Cached each Ten seconds.

price

Get the price of a currency against numerous currencies.

pricemulti

Get a matrix of currency prices.

pricemultifull

Get all the current trading informatie (price, vol, open, high, low etc) of any list of cryptocurrencies ter any other currency that you need.If the crypto does not trade directly into the toSymbol requested, BTC will be used for conversion. This API also comes back Display values for all the fields.If the opposite pair trades wij invert it (eg.: BTC-XMR).

generateAvg

Compute the current trading informatie (price, vol, open, high, low etc) of the requested pair spil a volume weighted average based on the markets requested.

dayAvg

Get day average price. The values are based on hourly vwap gegevens and the average can be calculated ter different waysIt uses BTC conversion if gegevens is not available because the coin is not trading te the specified currency. If tryConversion is set to false it will give you the meteen gegevens. If no toTS is given it will automatically do the current day. Also for different timezones use the UTCHourDiff paramThe calculation types are: HourVWAP – a VWAP of the hourly close price,MidHighLow – the average inbetween the 24 H high and low.VolFVolT – the total volume from / the total volume to (only avilable with tryConversion set to false so only for meteen trades but the value should be the most accurate price)

PriceHistorical

Get the price of any cryptocurrency te any other currency that you need at a given timestamp. The price comes from the daily informatie – so it would be the price at the end of the day GMT based on the requested TS. If the crypto does not trade directly into the toSymbol requested, BTC will be used for conversion. Attempts to get rechtstreeks trading pair gegevens, if there is none or it is more than 30 days before the ts requested, it uses BTC conversion. If the opposite pair trades wij invert it (eg.: BTC-XMR)

Get the price of a currency against numerous currencies.

CoinSnapshot

Get gegevens for a currency pair. It comebacks general block explorer information, aggregated gegevens and individual gegevens for each exchange available.

This api is getting manhandled and will be moved to a min-api path te the near future. Please attempt not to use it.

URL Parameters

Terugwedstrijd gegevens

Request examples

CoinSnapshotFullById

Get the general, subs (used to connect to the streamer and to figure out what exchanges wij have gegevens for and what are the precies coin pairs of the coin) and the aggregated prices for all pairs available.

URL Parameters

Terugwedstrijd gegevens

Gegevens: AggregatedPrices Array[] yes Snapshot gegevens about the coin (volume, price, open, high, low close etc)

Request examples

https://www.cryptocompare.com/api/gegevens/coinsnapshotfullbyid/ ?id=1182 //for BTC

https://www.cryptocompare.com/api/gegevens/coinsnapshot fullbyid/ ?id=3808 //for LTC

https://www.cryptocompare.com/api/gegevens/coinsnapshot fullbyid/ ?id=7605//for ETH

SocialStats

Get CryptoCompare webstek, Facebook, code repository, Twitter and Reddit gegevens for coins. If called with the id of a cryptopian you just get gegevens from our webstek that is available to the public. (maybe te v2 add the surplus of the fields for the cryptopian spil well?)

URL Parameters

Come back gegevens

Gegevens:Facebook:linkurlnoFacebook account linkData:CodeRepository:List[]:Source:InternalData:UrlstringnoThe relative path (without https://www.cryptocompare.com) of the coin pagina this is a fork ofData:CodeRepository:List[]:Parent:InternalData:UrlstringnoThe relative path (without https://www.cryptocompare.com) of the coin pagina this is a fork of

Request examples

Get social stats example

HistoMinute

Get open, high, low, close, volumefrom and volumeto from the each minute historical gegevens. This gegevens is only stored for 7 days, if you need more,use the hourly or daily path. It uses BTC conversion if gegevens is not available because the coin is not trading te the specified currency

This API moved to https://min-api.cryptocompare.com/gegevens/histominute

Documentation at https://min-api.cryptocompare.com/

HistoHour

Get open, high, low, close, volumefrom and volumeto from the each hour historical gegevens. It uses BTC conversion if gegevens is not available because the coin is not trading ter the specified currency.

This API moved to https://min-api.cryptocompare.com/gegevens/histohour

Documentation at https://min-api.cryptocompare.com/

HistoDay

Get open, high, low, close, volumefrom and volumeto daily historical gegevens. The values are based on 00:00 GMT time. It uses BTC conversion if gegevens is not available because the coin is not trading ter the specified currency.

This API moved to https://min-api.cryptocompare.com/gegevens/histoday

Documentation at https://min-api.cryptocompare.com/

MiningContracts

Comebacks all the mining contracts ter a JSON array.

MiningEquipment

Used to get all the mining equipment available on the webstek. It comes back an array of mining equipment objects

URL Parameters

Comeback gegevens

Request examples

Get all the mining equipment:

TopPairs

Get top pairs by volume for a currency (always uses our aggregated gegevens). The number of pairs you get is the ondergrens of the limit you set (default Five) and the total number of pairs available

Get real-time market gegevens updates by connecting to our web socket ‘ wss://streamer.cryptocompare.com ‘. Wij are using socket.io.

For more example code click here.

Subscribe

Subscribe to market gegevens by emitting ‘SubAdd’ including a list of items you want to get updates on.

Subscription items have the format of ‘

You can subscribe to the following:

Unsubscribe

Unsubscribe by sending ‘SubRemove’ message with a list of items.

Trade

Subscribe to trade level gegevens.

The response will have the following format:

Current

Get the latest quote updates for a currency pair on a specific exchange.

The very first response will have the following format:

After the very first response, only updates will be sent. The MaskInt parameter maps the response to the properties. Use our utility functions to schrijfmap the response, you can find the code here.

CurrentAgg

Subscribe to aggregate quote updates. Aggregation is done overheen the last 24 hours.

The very first response format will go after:

After the very first response, only updates will be sent. The MaskInt parameter maps the response to the properties. Use our utility functions to schrijfmap the response, you can find the code here .

Leave a Reply

Your email address will not be published. Required fields are marked *