简体   繁体   中英

How to get prices for multiple tickers for a given date with Quandl

I can already get the price for IBM on a given date :

https://www.quandl.com/api/v1/datasets/GOOG/NYSE_IBM.json?trim_start=2012-11-01&trim_end=2012-11-01

Is there a way to query Quandl a single time and for multiple tickers ( all the same date)?

You can use the Quandl R package as follows

#get high prices(.2) from IBM, AAPL and TSLA for '2015-02-02'
mydata = Quandl(c("WIKI/IBM.2","WIKI/AAPL.2", "WIKI/TSLA.2"), start_date = "2015-02-02", end_date = "2015-02-02")

It results in:

   Date WIKI.IBM - High WIKI.AAPL - High WIKI.TSLA - High
1 2015-02-02          154.66           119.17         211.9499

Update 2 : I wrote to Quandl and as of 2015-04-07, the multiset querying feature is removed. They are planning to reintroduce it in " a couple of months ".

Update : The C# library is deprecated and the multi-set route it used is no longer valid :( I did not solve my problem yet

Well I found my answer on the libraries page of the Quandl website

http://quandl.com/help/libraries

The one that helped me is for C# : https://github.com/HubertJ/QuandlCS

and is providing the source code for how to construct a multiset query, which is what I needed, it seems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM