11

I'd like to build a relatively simple online stock trading application (in RoR). It would just be a game so no real trades- just an online simulation based on real market data.

A good example being http://www.wallstreetsurvivor.com/ or http://www.weseed.com/ (any ideas what libs / platforms they are using?)

There will be no CFD Trading, Spread Betting, Currency Trading or Fixed Odds. It will just be stock trading - using market / stop / limit orders.

Naturally, it will need to generate visualisations and pull in market data.

Can someone point me in the right direction regarding libraries (stuff like yahoo finance gem) / platforms I can use to get me started?

There seems to be some existing java platforms but they are very much geared towards single users.

Also, I'd much prefer to use Rails. If there's a real problem with this then I'd be open to switching platform/language.

Benjamin Gruenbaum
  • 270,886
  • 87
  • 504
  • 504
digitalWestie
  • 2,647
  • 6
  • 28
  • 45

3 Answers3

6

A little searching reveals a handful of options (disclaimer: I haven't used any of these, so I can't vouch for them!).

For financial/stock data:

For creating charts:

I would suggest some of your best places to search would be RubyGems.org and GitHub.com.

ewall
  • 27,179
  • 15
  • 70
  • 84
3

It's probably worth looking into JRuby, then you can mix Rails with any Java libraries you might need.

Andy Waite
  • 10,785
  • 4
  • 33
  • 47
1

There are some code referece you will find in EclipseTrader for the same. I think you take the feed from real market and make order matching engine based on people order.

Harish Shetty
  • 64,083
  • 21
  • 152
  • 198
Kamahire
  • 2,149
  • 3
  • 21
  • 50