litecoin price api

CoinDesk Bitcoin Price Index API CoinDesk provides a simple API to make its Bitcoin Price Index (BPI) data programmatically available to others.You are free to use this API to include our data in any application or website as you see fit, as long as each page or app that uses it includes the text “Powered by CoinDesk”, linking to our price page.CoinDesk data is made available through a number of HTTP resources, and data is returned in JSON format.Please do not abuse our service.BPI real-time data On the CoinDesk website, we publish the BPI in USD, EUR, and GBP, calculated every minute, based on criteria as discussed on the CoinDesk BPI page.This same data can be retrieved using the endpoint: /v1/bpi/currentprice.json Sample JSON Response: We also offer the BPI converted into in any of our supported currencies.This data can be accessed using the endpoint: /v1/bpi/currentprice/.json Where should be replaced by a valid ISO 4217 currency code as per our supported currency list.
Sample Request /v1/bpi/currentprice/CNY.json Sample JSON Response Historical BPI data We offer historical data from our Bitcoin Price Index through the following endpoint: /v1/bpi/historical/close.json By default, this will return the previous 31 days' worth of data.bitcoin center meetupThis endpoint accepts the following optional parameters: ?index=[USD/CNY]The index to return data for.bitcoin atual?currency=The currency to return the data in, specified in ISO 4217 format.bitcoin money laundering uk?start=&end= Allows data to be returned for a specific date range.bitcoin-qt label address
Must be listed as a pair of start and end parameters, with dates supplied in the YYYY-MM-DD format, e.g.2013-09-01 for September 1st, 2013.?for=yesterdaySpecifying this will return a single value for the previous day.Overrides the start/end parameter.Sample Request: /v1/bpi/historical/close.json?start=2013-09-01&end=2013-09-05 Sample JSON Response: Feedback If you have any feedback or suggestions with regards to this API, please send them to .bitcoin paper wallet kitSome API calls are available with CORS headers if you add a &cors=true paramter to the GET request URL: https://blockchain.info/ticker No Parameters Returns a JSON object with the currency codes as keys.litecoin trend 2017"15m" is the 15 minutes delayed market price, "last" is the most recent market price, "symbol" is the currency symbol.URL: https://blockchain.info/tobtc Convert x value in the provided currency to btc.
ex: https://blockchain.info/tobtc?currency=USD&value=500 Returns the value in BTC.commits branches releases Fetching contributors MIT Latest commit 2cff582 Mar 30, 2016 Bitcoin Price API If you are trying to do interesting things with bitcoin price data, you shouldn't have to be concerned with the low-level details of how to obtain that data, or the particular JSON structures that it comes in.This module will provide a unified way of getting price data from various exchanges which have publicly available API's, as well as a unified representation of that data rather than exchange specific ones.Quick Guide >>> from exchanges.bitfinex import Bitfinex >>> Bitfinex().get_current_price() Decimal('371.17') Dependencies The only dependency is on the requests library.You can either do pip install requests or pip install -r requirements.txt inside the directory.Bitstamp, Bitfinex, OKCoin, Huobi, and Coinapult All of these classes expose the interface below: get_current_price() get_current_bid() get_current_ask() which will return a Decimal object.
Note that all exchanges return values in USD, with the exception of Huobi which returns CNY.Coinapult is special in that you can specify the currency for the above three methods.get_current_price(currency='EUR') Coindesk The Coindesk class offers a much richer price interface: get_current_price(currency='USD') get_past_price(date) get_historical_data_as_dict(start='2013-09-01', end=None) get_historical_data_as_list(start='2013-09-01', end=None) get_current_price and get_past_price both return Decimal objects.get_current_price takes in an optional parameter specifying the currency.The dates for all functions must be in the form 'YYYY-MM-DD'.get_historical_data_as_dict will return a dictionary of the following format: {'2014-10-20': 400.00, '2014-10-21': 301.99} Remember that these date/prices will not be in any given order.get_historical_data_as_list will return a list of dictionaries, correctly sorted by date from start to end.
[ {'date': 'YYYY-MM-DD', 'price': 300.00}, {'date': 'YYYY-MM-DD', 'price': 301.00 } ]Objective: The Coinbase API offers a variety of useful bitcoin-related data.One simple datapoint that is often of interest is the price of bitcoin.In this guide we’ll walk through how to make a request to Coinbase’s prices endpoint in order to retrieve current bitcoin price information.The prices endpoint is part of a broader category of unauthenticated, read-only endpoints called Data Endpoints.As a result, authentication is not required to retrieve price information.Before jumping into the code, know that there are three different prices available from the prices endpoint: As with any data, it is important to understand the difference between these prices and to request the data that is most appropriate for your needs.In this case, let’s imagine that you want simply to show your users the current bitcoin market price (also known as the “bitcoin spot price”), reflected in the US dollar equivalent.
Getting the spot price is quite simple.First, let’s take a look at a naked cURL request.Note that you can substitute any supported currency code for USD.However, in most situations, you’re going to want to be able to grab the price information from within your code (i.e., not using cURL).Let’s take a look at using one of the offical coinbase libraries.First, install the library: Now, let’s retrieve that price data: If everything went smoothly, you should see the current spot price of bitcoin in USD.Now, let’s see what we can do with that information.You can style your display of price data however you’d like.However, when choosing how to display bitcoin price information, it’s important to consider what your users’ needs are.Lawnmower is a bitcoin investment app built on the Coinbase API.As with most investment apps, their users are interested in stats regarding the performance of their investments.Particularly, users are most interested in the current value of their bitcoin holdings (essentially, how much they’d be able to sell their bitcoin for at the current moment).