News for hackers. Stuff that matters.
Re:Yahoo Stock Quotes in Go by hbharadwaj on Tuesday April 14, 2015 @11:30AM (#9374978)
Does anyone know of any true market data sources that are not delayed, free and open for commercial use?
Re:Yahoo Stock Quotes in Go by chimeracoder on Tuesday April 14, 2015 @12:29PM (#9375407)
> Does anyone know of any true market data sources that are not delayed, free and open for commercial use?

Short answer: No

Long answer: It depends on what you mean by "true market data". This requires understanding a lot more about how the market and bidding process actually functions, but there really isn't a single canonical price at any point, and there are many ways to define what you're looking for, depending on what you're referring to - all of which are valid according to different assumptions.

Think of it as a special kind of eventually-consistent database. Depending on the consistency model, you can't ask what the value of x is right now, because there are multiple possible values that are all valid. It's only after they converge (which takes time) that a single, canonical value emerges.

This is one of the reasons that quotes are always delayed - it's possible to talk about what the price was at some point in the past, because those ways of defining the price dynamically have all essentially converged to the same value, but it's not possible to pinpoint a single price in the present.

To get all of the various sources of real-time data that can be considered the "current price" requires a lot of low-latency connections to various market players. That's not cheap, so there's nothing that's not delayed and free and available for commercial use.

Re:Yahoo Stock Quotes in Go by klenwell on Tuesday April 14, 2015 @11:46AM (#9375101)
I was looking into this recently. Here's what looks to be the canonical Stack Overflow post on the subject:

http://stackoverflow.com/questions/10040954/alternative-to-g...

Questions of this nature seem to usually end up pointing to Yahoo's API.

I saw elsewhere (can't locate source at moment) quotes ranging in the $10,000's a month range for real-time data. I'm sure someone on here could provide a more accurate figure.

It's valuable data associated with an industry that's famous for extracting value out of data so I'm not really surprised it's not free.

Re:Yahoo Stock Quotes in Go by ddeck on Tuesday April 14, 2015 @01:14PM (#9375742)
>quotes ranging in the $10,000's a month range for real-time data.

That sounds excessive. You basically either subscribe to individual exchanges or a consolidated feed from a 3rd party that typically incorporates multiple venues.

For applications that need something professional and reliable, but don't need direct exchange connections (i.e. can deal with ~1-200ms latency), I recommend IQfeed [1]. Depending on exchanges, cost is probably around $100/month

Source: I've been using them for fully automated trading for a couple of years

[1] http://www.iqfeed.net/

Re:Yahoo Stock Quotes in Go by toby on Tuesday April 14, 2015 @11:51AM (#9375132)
Interactive Brokers has a very robust API, and market data fees are $10/month or free if you spend more than $30 on commissions.

(I'm not affiliated, but I've used their services before and have been happy)

Re:Yahoo Stock Quotes in Go by ddeck on Tuesday April 14, 2015 @01:28PM (#9375858)
>Interactive Brokers has a very robust API

IB's API is anything but robust. It is inconsistent, poorly documented, and IB have a history of changing it without notice.

It also requires all communication runs through their client side Java GUI app, which is also prone to a variety of problems.

That said, IB are a very good low cost broker with amazing product breadth. But I would suggest caution if using their data API for anything remotely serious.

Re:Yahoo Stock Quotes in Go by bobcostas55 on Tuesday April 14, 2015 @02:31PM (#9376308)
You can always use FIX if you don't like their API, no?
Re:Yahoo Stock Quotes in Go by ddeck on Tuesday April 14, 2015 @11:02PM (#9378673)
FIX is for execution, market data is still via their API and client software.
Re:Yahoo Stock Quotes in Go by genericacct on Tuesday April 14, 2015 @07:40PM (#9378030)
...and now you have two problems
Re:Yahoo Stock Quotes in Go by bobcostas55 on Tuesday April 14, 2015 @02:30PM (#9376306)
IB doesn't have anything approaching "true market data" though. The best you can get are consolidated "snapshots" every 250ms or so.
Re:Yahoo Stock Quotes in Go by fixxer on Tuesday April 14, 2015 @12:01PM (#9375201)
What level are you looking for? There are a lot of ways to define that stream. Last trade, book data, etc. What degree of latency is tolerable for your application?
Re:Yahoo Stock Quotes in Go by xasos on Tuesday April 14, 2015 @12:54PM (#9375594)
Bloomberg's API is real-time, but you have to pay for how much data is consumed.
Re:Yahoo Stock Quotes in Go by krosaen on Tuesday April 14, 2015 @03:11PM (#9376576)
> Have you seen sample code using a JSON API?

Of course.

> Yeah, but have you seen sample code using a json API.... * IN GO!?!? *

(mindblown)

http://i.huffpost.com/gen/1025913/images/o-JON-STEWART-WEED-...

Re:Yahoo Stock Quotes in Go by xasos on Tuesday April 14, 2015 @01:10PM (#9375722)
Is this just a Go Wrapper for the Yahoo Finance API?
Re:Yahoo Stock Quotes in Go by andrew12361 on Tuesday April 14, 2015 @01:29PM (#9375871)
Looks like it!
Re:Yahoo Stock Quotes in Go by nodesocket on Tuesday April 14, 2015 @12:58PM (#9375635)
Related: I hacked Quote Stream (https://github.com/nodesocket/quote-stream) together a while ago. It pushes real-time quotes (not delayed) from Google to your browser via websockets using node.js.

Heads up, it has not been touched in 3 years.

Re:Yahoo Stock Quotes in Go by dysoco on Tuesday April 14, 2015 @01:50PM (#9376022)
I wrote something similar in Go about one year ago for my IRC bot.

I never thought it'd be useful for anyone, but well, I guess it can :P

Re:Yahoo Stock Quotes in Go by Xeoncross on Tuesday April 14, 2015 @02:31PM (#9376318)
If you wanted it...
Re:Yahoo Stock Quotes in Go by agrafix on Tuesday April 14, 2015 @11:58AM (#9375183)
I've done something similar using Haskell: https://github.com/agrafix/yahoo-finance-conduit I tried to do this using a streaming approach (conduits), but the data is delayed and there is no real streaming api.
Re:Yahoo Stock Quotes in Go by IBM on Tuesday April 14, 2015 @01:02PM (#9375664)
Unrelated, but is Google Finance never going to get updated?
Re:Yahoo Stock Quotes in Go by adambratt on Tuesday April 14, 2015 @03:58PM (#9376869)
Doesn't look like the API side will make a comeback at least.
Re:Yahoo Stock Quotes in Go by adambratt on Tuesday April 14, 2015 @03:58PM (#9376870)
What sites do you all use to check up on your stocks, read news etc?