-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathNOTES
31 lines (24 loc) · 1.19 KB
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Technical
=========
Yahoo Finance
-------------
There are broadly speaking 2 ways to easily get at the Yahoo Finance
data:
1. Query via YQL (Yahoo Query Language), a SQL lookalike. This happens
through a HTTP GET request. The response can be XML or JSON, depending
on the GET parameters.
2. Request a CSV file, also with a HTTP GET request.
The first approach is a bit more high-level, and actually queries the
CSV file of method (2) under the hood. You'd think that requesting the
CSV file would be faster, since it skips a step, but this appears to be
false according to my testing. This could be for two reasons:
1. The YQL server has preferential access to Yahoo's own APIs
2. The YQL server caches the CSV file somehow (and/or is aware when it
gets refreshed).
At any rate, **gofinance** implements both methods, and performs
requests in parallel. By default the YQL way is used, although it's easy
to switch.
There seems to be a third kind of API, possibly related with the CSV
one, possibly not, it's "described"
[here](http://www.quantshare.com/sa-426-6-ways-to-download-free-intraday-and-tick-data-for-the-us-stock-market),
the same site also lists some other interesting sources. Worth a look.