It would nice if I could use Ruby to buy or sell stocks in real time,
but I do not have any experience in dealing with this programatically.
Anybody?
Thank you in advance,
Michael
I like them more for their commissions on option contracts.
They charge $1 per contract which is about the same as
optionsxpress.com
but optionsxpress forces you to trade 10 contracts to get the $1 price.
10 contracts corresponds to 1,000 shares of stock which is too large of
a bet for most programmers.
I think the short answer is -- if you want to, good luck getting
access. Really, I'd be happy if I could find a source for a real time
- or even delayed stock ticker with an easy API so I could write code
and just play with simulating trades.
-Charlie
Hope it help.
You might find this of interest:
http://rubyquiz.com/quiz41.html
> An idea popped in my head today. Has anyone ever used a stock
> investment service that allows you to access an investment API or
> something like that?
My investment club uses E*Trade for our purchases. We are a "buy and
hold" strategy group, so there's not enough action to warrant doing
it through Ruby.
I have wondered if E*Trade exposes an API for reading account
information though. That would be neat for our valuation reports. I
could always screen scrape of course, but a web service would be much
better. Just haven't had the time to look into it yet...
James Edward Gray II
Amusing choice of words. :)
In case it was a slip-up, the pedagogical side of me wants to point out:
You can marinate _in_ something (to soak in a marinade) or you can
_ruminate_ on something (to think deeply about, to 'chew over').
(Ruminants are animals [like cows] that eat food and later bring it
back up from their stomach into their mouths to chew. The word is
based on the Latin word for "to chew over again"; it is from this
that our modern usage of the word 'ruminate' is derived. Chewing on
something for a long period of time, staring out into space...he must
be lost in thought.)
So I'm sitting here, eating breakfast, and reading ruby-talk, when ...
> (Ruminants are animals [like cows] that eat food and later bring it
> back up from their stomach into their mouths to chew.
Suddenly my oatmeal tasted ... different.
:)
James
--
http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
I am very interested in this. A few weeks back I looked into a few
different brokers with APIs. Here are a few links:
http://qcharts.mbtrading.com/sdk.asp
http://www.interactivebrokers.com/en/software/highlights/apiHighlights.php?ib_entity=llc
http://www.quotetracker.com/help/qtserver.shtml
http://www.cybertrader.com/AboutCyberTrader/API/Default.aspx
Interactive Brokers offers a "paper trading" service. Could be a great
way to test your software cheaply.
http://www.interactivebrokers.com/en/software/paperTrader.php?ib_entity=llc
On Windows you may be able to use the QuoteTracker API, which will
open access to a lot of brokers, both for trading and streaming
quotes.
I have some experience with financials could help anyone navigate
through those details. I've written no code yet, and my day job
unfortunately does not give me the chance to play with Ruby, so my
Ruby level is probably at "moderate enthusiast".
Anyone should feel free to contact me for more details.
Here's one I just found:
http://fxtrade.oanda.com/fxtrade/api/index.shtml which does support
linux, solaris, and windows.
It's FX, not stocks, but it's there. And they have a game version
where you can trade without using real money: http://fxgame.oanda.com/
-Charlie
--
Posted via http://www.ruby-forum.com/.