Quandl 请求不传递实际数据
Quandl request does not deliver the actual data
我目前正在使用HubertJ's QuandlCS C#-Wrapper向Quandl API发送请求以接收欧元兑美元汇率,我的代码如下:
QuandlDownloadRequest request = new QuandlDownloadRequest();
request.Datacode = new Datacode("ECB", "EURUSD");
request.Format = FileFormats.JSON;
request.Frequency = Frequencies.Daily;
request.Truncation = 100;
request.Sort = SortOrders.Ascending;
request.Transformation = Transformations.None;
request.StartDate = DateTime.Now;
request.StartDate = request.StartDate.AddMinutes(-5);
request.EndDate = DateTime.Now;
IQuandlConnection connection = new QuandlConnection();
string data = connection.Request(request);
但我只收到以下输出:
{"errors":{},"id":14686248,"source_name":"European Central Bank","source_code":"ECB","code":"EURUSD","name":"EUR vs USD Foreign Exchange Reference Rate","urlize_name":"EUR-vs-USD-Foreign-Exchange-Reference-Rate","display_url":"https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/eurofxref-graph-usd.en.html","description":"Euro (EUR) vs. US Dollar (USD) reference exchange rate. Foreign exchange reference rates are published by the European Central Bank. Reference rates are usually updated by 3:00pm CET, based on a regular daily concertation procedure between various central banks across Europe and around the world. This procedure normally takes place at 2:15pm CET. Reference rates are mid-market rates, calculated as averages of the buying and selling rate; they do not necessarily reflect actual transaction rates. Euro foreign exchange reference rates are always quoted using the 'certain' method (i.e EUR 1 = X foreign currency units, where X is the published reference rate).","updated_at":"2018-11-16T23:15:43.248Z","frequency":"daily","from_date":"1999-01-04","to_date":"2018-11-16","column_names":["Date","Value"],"premium":false,"data":[],"type":"Time Series"}
我做错了什么?
发现 API 发生了变化。
API v1
API v3
https://www.quandl.com/api/v1/datasets/ECB/EURUSD.json?collapse=daily&transformation=none&sort_order=asc&rows=100&trim_start=2018-11-18&trim_end=2018-11-19
https://www.quandl.com/api/v3/datasets/ECB/EURUSD/data.json?collapse=daily&transform=none&order=asc&start_date=2018-11-18&end_date=2018-11-19
.json
/data.json
transformation
transform
sort_order
order
trim_start
start_date
trim_end
end_date
通过更改字段名称和一些修改,它起作用了。
我目前正在使用HubertJ's QuandlCS C#-Wrapper向Quandl API发送请求以接收欧元兑美元汇率,我的代码如下:
QuandlDownloadRequest request = new QuandlDownloadRequest();
request.Datacode = new Datacode("ECB", "EURUSD");
request.Format = FileFormats.JSON;
request.Frequency = Frequencies.Daily;
request.Truncation = 100;
request.Sort = SortOrders.Ascending;
request.Transformation = Transformations.None;
request.StartDate = DateTime.Now;
request.StartDate = request.StartDate.AddMinutes(-5);
request.EndDate = DateTime.Now;
IQuandlConnection connection = new QuandlConnection();
string data = connection.Request(request);
但我只收到以下输出:
{"errors":{},"id":14686248,"source_name":"European Central Bank","source_code":"ECB","code":"EURUSD","name":"EUR vs USD Foreign Exchange Reference Rate","urlize_name":"EUR-vs-USD-Foreign-Exchange-Reference-Rate","display_url":"https://www.ecb.europa.eu/stats/policy_and_exchange_rates/euro_reference_exchange_rates/html/eurofxref-graph-usd.en.html","description":"Euro (EUR) vs. US Dollar (USD) reference exchange rate. Foreign exchange reference rates are published by the European Central Bank. Reference rates are usually updated by 3:00pm CET, based on a regular daily concertation procedure between various central banks across Europe and around the world. This procedure normally takes place at 2:15pm CET. Reference rates are mid-market rates, calculated as averages of the buying and selling rate; they do not necessarily reflect actual transaction rates. Euro foreign exchange reference rates are always quoted using the 'certain' method (i.e EUR 1 = X foreign currency units, where X is the published reference rate).","updated_at":"2018-11-16T23:15:43.248Z","frequency":"daily","from_date":"1999-01-04","to_date":"2018-11-16","column_names":["Date","Value"],"premium":false,"data":[],"type":"Time Series"}
我做错了什么?
发现 API 发生了变化。
API v1
API v3
https://www.quandl.com/api/v1/datasets/ECB/EURUSD.json?collapse=daily&transformation=none&sort_order=asc&rows=100&trim_start=2018-11-18&trim_end=2018-11-19
https://www.quandl.com/api/v3/datasets/ECB/EURUSD/data.json?collapse=daily&transform=none&order=asc&start_date=2018-11-18&end_date=2018-11-19
.json
/data.json
transformation
transform
sort_order
order
trim_start
start_date
trim_end
end_date
通过更改字段名称和一些修改,它起作用了。