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.
我想构建一个相对简单的在线股票交易应用程序(在RoR中)。它只是一个游戏,所以没有真正的交易 - 只是基于真实市场数据的在线模拟。
A good example being http://www.wallstreetsurvivor.com/ or http://www.weseed.com/ (any ideas what libs / platforms they are using?)
一个很好的例子是http://www.wallstreetsurvivor.com/或http://www.weseed.com/(任何想法他们正在使用哪些libs /平台?)
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.
似乎有一些现有的Java平台,但它们非常适合单个用户。
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.
另外,我更喜欢使用Rails。如果这有一个真正的问题,那么我愿意切换平台/语言。
3 个解决方案
#1
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:
对于财务/股票数据:
- yahoo_stock gem -- interface to Yahoo! Finance API
- yahoo_stock gem - Yahoo!界面财务API
- ystock gem -- similar to above
- ystock gem - 与上述类似
- ruby/finance -- lots of data-fetching options
- ruby / finance - 许多数据获取选项
For creating charts:
用于创建图表:
- GoogleCharts gem -- interface to Google's chart API
- GoogleCharts gem - 与Google图表API的界面
- gchart gem -- similar to above
- gchart gem - 与上面类似
- rChart gem -- port of the pChart library
- rChart gem - pChart库的端口
I would suggest some of your best places to search would be RubyGems.org and GitHub.com.
我建议你搜索一些最好的地方是RubyGems.org和GitHub.com。
#2
3
It's probably worth looking into JRuby, then you can mix Rails with any Java libraries you might need.
它可能值得研究JRuby,然后您可以将Rails与您可能需要的任何Java库混合使用。
#3
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.
您可以在EclipseTrader中找到相同的代码参考。我认为你从真实的市场中获取饲料,并根据人们的订单制作订单匹配引擎。
#1
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:
对于财务/股票数据:
- yahoo_stock gem -- interface to Yahoo! Finance API
- yahoo_stock gem - Yahoo!界面财务API
- ystock gem -- similar to above
- ystock gem - 与上述类似
- ruby/finance -- lots of data-fetching options
- ruby / finance - 许多数据获取选项
For creating charts:
用于创建图表:
- GoogleCharts gem -- interface to Google's chart API
- GoogleCharts gem - 与Google图表API的界面
- gchart gem -- similar to above
- gchart gem - 与上面类似
- rChart gem -- port of the pChart library
- rChart gem - pChart库的端口
I would suggest some of your best places to search would be RubyGems.org and GitHub.com.
我建议你搜索一些最好的地方是RubyGems.org和GitHub.com。
#2
3
It's probably worth looking into JRuby, then you can mix Rails with any Java libraries you might need.
它可能值得研究JRuby,然后您可以将Rails与您可能需要的任何Java库混合使用。
#3
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.
您可以在EclipseTrader中找到相同的代码参考。我认为你从真实的市场中获取饲料,并根据人们的订单制作订单匹配引擎。