Bitcoin converter api


Amount parameter can only be number You have only 'available' BCH available. Response JSON status "ok" or "error" reason available only if status is "error" Additional error info. Transfer-to-main errors Authentication errors 'parameter': Account has less 'available' 'currency' that are required to make this transfer Select a valid choice.

X is not one of the available choices. X is not valid currency. Sub account with identifier "X" does not exist. Can't find sub account with id X. Transfer-from-main errors Authentication errors 'parameter': Not allowed to withdraw to specified XRP address API key is set for withdrawing to another XRP address Ensure this value is greater than or equal to 20 Minimum withdrawal amount is 20 Ensure this value has at least 25 characters it has x Ensure this value has at most 34 characters it has x Address parameter must be between 25 and 34 characters long Enter a number.

Amount parameter can only be number You have only 'available' XRP available. Account has less 'available' XRP that are required to make this withdrawal Failed to access the Ripple network. The Ripple network is down. Country codes must be in accordance with the ISO standard use two character Alpha-2 codes. Not all country choices listed at this reference URL are supported.

For a detailed list please refer to our platform's withdrawal interfaces. Currency codes must be in accordance with the ISO standard. Not all currency choices listed at this reference URL are supported. Opening bank withdrawals with sub account API keys is not supported. This API endpoint can only be utilized by your main account. Y is not one of the available choices. Bank withdrawals temporarily disabled. No new bank withdrawals can be opened at this time. Unsupported withdrawal type must be either SEPA or international.

When opening bank withdrawals, you must specify one of the two supported types: You have only 'amount' currency available. To open this withdrawal, your balance must have at least 'amount' of target currency available. Bank withdrawal status Checks the status of a bank withdrawal request. Bank withdrawal status errors Authentication errors Please update your profile with your FATCA information, before performing withdrawal status checks. Performing bank withdrawal status checks with sub account API keys is not supported.

Parameters stated in the list [ Could not find any bank withdrawal with the id X. Cancel bank withdrawal Cancels a bank withdrawal request. Cancel bank withdrawal errors Authentication errors Please update your profile with your FATCA information, before cancelling withdrawals. Cancelling bank withdrawals with sub account API keys is not supported.

Could not find any active bank withdrawal with the id X. Will return the same response for already cancelled withdrawal requests. New liquidation address errors Authentication errors Please update your profile with your FATCA information, before cancelling withdrawals.

Cannot create new address, please try later. At the moment we can't create new deposit address. Liquidation address info errors Authentication errors Please update your profile with your FATCA information, before cancelling withdrawals. Last 24 hours volume weighted average price. Returns a JSON dictionary like the ticker call, with the calculated values being from within an hour.

Returns a JSON dictionary with "bids" and "asks". The time interval from which we want the transactions to be returned. Every transaction dictionary contains:. Response JSON - list of trading pairs. Every trading pair dictionary contains:. Skip that many transactions before returning results default: Limit result to that many transactions default: Sorting by date and time: Each transaction in dictionary is represented as a list of tid, usd, price, fee, btc, datetime and type 0 - deposit; 1 - withdrawal; 2 - market trade.

This call will cancel all open orders. Opens buy limit order which will be canceled at 0: Opens sell limit order which will be canceled at 0: Withdrawal requests from number of seconds ago to now max. Ensure this value has at least 25 characters it has x Ensure this value has at most 34 characters it has x. You have only 'available' BTC available. You have only 'available' LTC available.

Ensure this value has at least 40 characters it has x Ensure this value has at most 42 characters it has x. You have only 'available' ETH available. Each transaction is represented as dictionary. Ensure this value has at least 25 characters it has x Ensure this value has at most 50 characters it has x.

You have only 'available' 'currency' available. You have only 'available' BCH available. You have only 'available' XRP available. Returns your XRP deposit address and destination tag. The balance from which you wish to withdraw. User or company country. Type of the withdrawal request "sepa" or "international". The currency in which the funds should be withdrawn may involve conversion fees. Account currency balance currency from which the withdrawal was requested of the cancelled withdrawal request.

Shows transactions for specific liquidation address or for all users liquidation addresses. Get the latest price for a list of one or more currencies. Really fast, ms. Cached each 10 seconds.

Get all the current trading info price, vol, open, high, low etc of any list of cryptocurrencies in 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 returns Display values for all the fields. If the opposite pair trades we invert it eg.: Compute the current trading info price, vol, open, high, low etc of the requested pair as a volume weighted average based on the markets requested. Get day average price. The values are based on hourly vwap data and the average can be calculated in different waysIt uses BTC conversion if data is not available because the coin is not trading in the specified currency.

If tryConversion is set to false it will give you the direct data. If no toTS is given it will automatically do the current day. Get the price of any cryptocurrency in any other currency that you need at a given timestamp. The price comes from the daily info - so it would be the price at the end of the day GMT based on the requested TS.

Tries to get direct trading pair data, if there is none or it is more than 30 days before the ts requested, it uses BTC conversion.

Get data for a currency pair. It returns general block explorer information, aggregated data and individual data for each exchange available. This api is getting abused and will be moved to a min-api path in the near future. Please try not to use it.

Get the general, subs used to connect to the streamer and to figure out what exchanges we have data for and what are the exact coin pairs of the coin and the aggregated prices for all pairs available. AggregatedPrices Array[] yes Snapshot data about the coin volume, price, open, high, low close etc. If called with the id of a cryptopian you just get data from our website that is available to the public. UrlstringnoThe relative path without https: Get open, high, low, close, volumefrom and volumeto from the each minute historical data.

This data is only stored for 7 days, if you need more,use the hourly or daily path. It uses BTC conversion if data is not available because the coin is not trading in the specified currency.

The values are based on Used to get all the mining equipment available on the website. It returns an array of mining equipment objects. Get top pairs by volume for a currency always uses our aggregated data. The number of pairs you get is the minimum of the limit you set default 5 and the total number of pairs available. Get real-time market data updates by connecting to our web socket ' wss: We are using socket.

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: