Get live Exchange rates with coinbase api - coinbase-api

I want to get live lists of all the exchange rates with Coinbase API. I realize that by using this: https://coinbase.com/api/v1/currencies/exchange_rates, I always get the same values, I guess these values change once per day. Is it possible to get live rates?

The simplest way to get nearly realtime data is to use one of the official or unofficial APIs. There exists a function you can use to receive the real time data you want. Coinbase API Reference
Edit 1: As an alternative, you can use the following links for receiving the Buy and Sell prices.
I don't know if this public API is as reliable as an authenticated access.
Edit 2: Even better: The spot price API Endpoint.

Related

Restrictions of Coinbase API

Just wondering if there are any restrictions to the API such as our product has multiple clients and wondering if the integration option is only allowed for 1:coinbase integrations
There's not much information in your question, but I will point out general information: each request through the REST API requires the key,secret,passphrase for a given account. I see no reason why multiple accounts could not be handled as long as you use the right credentials for each request.

How to use google maps api in angularjs to get list of cities between two markers (cities)

I'm trying to show list of via point major cities when user enters/selects starting and end locations. I'm using angularjs and google maps api. Please let me know if this is possible or not?
What you're asking is most definitely possible, but not trivial. In addition to the google maps API, you will likely need to use another tool provided by google: their Places API.
This API would allow you to input a location and receive information about nearby landmarks, establishments, etc. The places API could be called from an Angular 1 service and then filtered or further manipulated to retrieve only results that are considered "major" to your users.
Depending on how accurate/specific you need your data to be, you should also consider using the American Census data API. You can compare the results from your google places API results and use real, accurate government data to check the population of regions or cities.
So to answer your question: Yes, it is most definitely possible although it certainly doesn't require Angular.

SPARQL - How to find the data for this site? DSIRE USA

Per the DSIRE USA site (http://www.dsireusa.org/resources/data-and-tools/), they have a Sparql endpoint for the public to use: http://virtuoso.dsireusa.org:8890/sparql. However, I cannot figure out how to find the data via this endpoint. It's got a nice interface to input queries, so I try to follow guides online about how to discover stuff and I'm getting results back but I end up just getting a list of types, and none of those types seem at all related to what I'm looking for.
The website has a limited API interface as well, which has objects called 'programs', 'sectors', 'utilities', etc. and they have their own interface that filters by zip code, city, state, etc. However, they suggest the public user their Sparql endpoint to query this data. The problem is, I can't find anything from this Sparql endpoint that seems to match any of these object names/types.
Can anyone take a look and tell me how I can find a table or set of objects called 'program' or 'programs' from this endpoint?

viewing data stored in OpenTSDB

I have been working on OpenTSDB from past one month. I was able to create metrics and store data in the metrics. What I would like to know is..does openTSDB provide any means to view the data stored for a particular metric. Let us say I have created a metric named "EmployeeDetails" and this metric contains details of 2 employees. Now how to view those two employee details...Can anyone suggest me?
Regards
VHC
You can use the default web interface at http://<opentsdb-host>:<port-default-4242> and query for the time series by providing the metric name, time frame and a set of tags to filter on.
Here are alternatives https://github.com/OpenTSDB/opentsdb/wiki/Alternative-front-ends
And not to mention, you can of course use OpenTSDB APIs to retrieve time series data in JSON - http://opentsdb.net/docs/build/html/api_http/query/index.html
You can able to view the TSDB Data in HTTP API:
Using any Rest API CLient like postman or any,
API QUERY:
http://localhost:port/api/query?start=&m=sum:EmployeeDetails
For more details about REST API below.,
http://opentsdb.net/docs/build/html/api_http/index.html
Hope this really helpful for you

How do I get product information via Amazon's MWS API?

I'm trying to automate the addition to and management of our products on Amazon. Looking at the API documentation for the MWS API it doesn't look like there's a way to determine if a product has already been added to Amazon by another seller and if so what its attributes are.
We are building a new product database for all the products we sell and have a table specifically for Amazon attribute data fields (ASIN, etc.). If Product information is already on Amazon, we'd like to pull that data via API and store it to our own database as well.
If you attempt to add a product via CSV and that product already exists on Amazon (and your attributes are in any way different ("m" != "medium") you'll receive and error. In that case you can just piggy back that existing product information and just upload a CSV with your price and quantity for a particular ASIN/SKU/UPC. We'd like to do away with uploading CSV files and again, have our own product table for Amazon attributes.
Will I need to also leverage Amazon's Product Advertising API to determine this or can it be done via MWS?
The documentation for Amazon's APIs aren't exactly fantastic and it's been slow going trying to sort through it all.
We're working with Ruby.
Amazon's Merchant Web Services API is limited to your Merchant account. So the answer to your question is that yes you will need to use Amazon's Product Advertising API to get information about products that aren't already listed.
That being said you should be aware that there are new restrictions being placed on the Product Advertising API that will limit the number of calls that you can make on a daily basis to 2,000. In addition to this you will have to get an Associate ID that will be tied to your account and needs to be sent with any request.
Also, I find that the information collected using the Product Advertising API is sometimes out of sync with the site and have resorted to scraping the info from the site itself. This has more overhead but you can be assured that the data is current. Of course this is only useful if you already have an ASIN or are dealing strictly with books (which use the ISBN as an ASIN) or Music CDs (which I believe use the UPC as an ASIN).
The MWS Products API is where you will find this functionality. Specifically the GetMatchingProductForId operation.
http://docs.developer.amazonservices.com/en_US/products/Products_GetMatchingProductForId.html
(This API probably wasn't available at the time of the original question)

Resources