Developer guide bitcoin charts


For more example code click here. Subscribe to market data by emitting 'SubAdd' including a list of items you want to get updates on. After the first response, only updates will be sent. The MaskInt parameter maps the response to the properties.

Use our utility functions to map the response, you can find the code here. Introduction The best API for getting free cryptocurrency live pricing data, OHLC historical data, volume data, tick data or block explorer data from multiple exchanges and blockchains.

Requests Most of the requests that are related to pricing data are public at the moment and generally available via GET functions. 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. Note that the responses to all requests, both public and private, are sent as the response body.

Data This section deals with all the requests for price data, social data and historical data. Data Object yes Empty if there is no data to return or there is an error Data [Symbol]: Id int yes The internal id, this is used in other calls Data [Symbol]: ImageUrl string yes The logo image of the coin Data [Symbol]: CoinName string yes The name Data [Symbol]: FullName string yes A combination of the name and the symbol Data [Symbol]: Algorithm string yes The algorithm of the cryptocurrency Data [Symbol]: ProofType string yes The proof type of the cryptocurrency Data [Symbol]: Invalid Market ", "Data": For PST you would pass -8 for example.

URL Parameters Parameter Type Mandatory Description fsym string yes The symbol of the currency you want to get that for tsym string yes The symbol of the currency that data will be in.

Return data Parameter Type Always returned Description Response string yes The type of the response Success or Error Message string yes The message for the response Type integer yes Integer representing the type of response.

Data object yes Empty if there is no data to return or there is an error Data: Algorithm string yes The algorithm of the from currency Data: BlockNumber integer yes The current block number delayed by 1 hour max Data: BlockReward integer yes The current block reward delayed by 1 hour max Data: AggregatedData object yes See success request example Data: What are you trying to do? AggregatedPrices Array[] yes Snapshot data about the coin volume, price, open, high, low close etc Parameter Type Always returned Description Response string yes The type of the response Success or Error Message string yes The message for the response BaseImageUrl string yes The base url for all the images from the ImageUrl field BaseLinkUrl string yes The base url for all the links from the Url field Type int yes Integer representing the type of response.

General object yes The general data available for this coin Data: H1Text string yes The title used on our website a combination of the coin name and the symbol Data: ImageUrl string yes The relative path to the logo of the coin, prefix this value with the BaseImageUrl to get the absolute path Data: DangerTop string yes The text displayed in red on the website at the top, generally a big issue with the coin Data: WarningTop string yes The text displayed in yellow on the website at the top, generally an issue with the coin Data: InfoTop string yes The text displayed in green on the website at the top, generally an announcement or extra info that is important Data: Symbol string yes The symbol of the coin Data: Url string yes The relative path to the coin, prefix this value with the BaseLinkUrl to get the absolute path Data: Name string yes The name of the coin Data: Description string yes The description of the coin, this is returned as html Data: Features string yes The features of the coin, this is returned as html Data: Technology string yes The technology of the coin, this is returned as html Data: TotalCoinSupply int yes The maximum number of coins Data: StartDate string yes The day the first block was mined, so the day the coin actually came into existance Data: Twitter string yes The twitter address of the coin Data: TwitterWidgetId string yes The cryptocompare twitter widget id for this coin Data: Website string yes The coin official website Data: DifficultyAdjustment string yes The difficulty adjustment Data: BlockRewardReduction string yes The value by which the block reward is reduced when there is a block reward reduction Data: BlockNumber int yes The current block number delayed by 1 hour max Data: BlockTime int yes The estimated time it takes to mine a block Data: TotalCoinsMined int yes The current total coins mined delayed by 1 hour max Data: PreviousTotalCoinsMined int yes The total coins mined as of the previous block, this should be the value of the current block total coins mined - the block reward in most cases.

BlockReward int yes The current block reward delayed by 1 hour max Data: Subs Array[] yes An array of subscriptions used for the streamer and for figuring out what the coin pairs are Data: General object yes The general social info Data: CoinName string yes The name of the coin Data: Type string yes The type of the page: Webpagecoinp or Webpageexchangep Data: Points string yes The sum of all the individual points categories Data: CryptoCompare object yes The social data from our website Data: ImageUrl string yes The relative path without https: Url string yes The relative path without https: CryptopianFollowers Array[11] yes Up to 11 followers 11 because in the front end if you are one of the 10 and you unfollow we still want to show 10 Data: Id int yes The id of the cryptopain that is following Data: Name string yes The name of the cryptopain that is following Data: ImageUrl string yes The avatar image relative path without https: Url string yes The the profile page relative path without https: Type string yes The type of the follower: Markets int no The Markets page views of the coin Data: Analysis int no The Analysis page views of the coin Data: Charts int no The Charts page views of the coin Data: Reviews int no The Reviews page views of the exchange Data: Forum int yes The Forum page views of the coin Data: Twitter obj yes The Twitter social data Data: Points int yes Twitter total points Data: Reddit obj yes The Reddit social data Data: Points int yes Reddit total points Data: Facebook obj yes The Facebook social data Data: Points int no Facebook total points Data: CodeRepository obj yes The code repository social data - only for certain coins Data: List Array[] no List of code repositories for this coin Data: Source obj no If it is a fork, this has actual data about the coin it is a fork of - the source parent of parent or higher - this is the same as the parent when this is the first fork.

If we have the coin on crypto compare it contains data about the coin, otherwise it has the name and url of the code repo Data: Name bool no Name of the source code repo Data: Url url no Url of the source code repo Data: InternalId int no -1 if we don't have it, the actual id if we have it.

InternalData obj no Details about the coin page this is a fork of Data: Id int no Id the coin page this is a fork of Data: Name string no Name the coin page this is a fork of Data: You can also download Bitcoin data directly from within Excel using our free Excel add-in. Bitcoin is a digital currency based on an open-source peer-to-peer software protocol that is independent of any central authority. Bitcoin issuance and transactions are carried out collectively by the Bitcoin network.

Bitcoin relies on cryptography to secure and validate transactions, and is thus often referred to as a "cryptocurrency". Bitcoins can be "mined" by users, and also transferred from user to user, directly via computer or smartphone without the need for any intermediary financial institution. Bitcoin transactions are pseudonymous and decentralized. Proponents of Bitcoin argue that it is not susceptible to devaluation by inflation or seigniorage in the way other modern "fiat" currencies are.

Nor is it associated with an arbitrary store of value such as gold, unlike hard-money or representative currencies. The Bitcoin protocol was first described by Satoshi Nakamoto a pseudonym in Each bitcoin is divided into million smaller units called satoshis. MtGox was the largest Bitcoin exchange in the world, until February when the site shut down and trading was suspended. It was subsequently announced on Bitcoin news that over , Bitcoins had been stolen from customers of this exchange.

Quandl provides historical data for MtGox. Note that this data stopped updating on 25 Feb Quandl has daily prices for over crypto-currencies from Cryptocoin Charts. You can view all Quandl's cryptocurrency time series on our Cryptocoin Charts source page. Dogecoin data, from Dogecoin Average, is available from our Dogecoin Average source.