|
|
|
|
|
by fnid2
5883 days ago
|
|
No need to pay for the API, just the trades you make with it -- which could get expensive. Interactive brokers has an API for their software. It's fairly easy to use. http://interactivebrokers.com/en/p.php?f=programInterface... They say it right on the web page and I'll repeat it here: Try it with paper trading first! Bugs in these kinds of algorithms are costly. |
|
Just don't expect hand holding. You're supposed to be an experienced trader to even sign up with them (for a few products, like options, you have to pass a ridiculously easy test to trade them), and they won't save you from yourself - they'll happily let you buy 500k Euros with only $20k in your account, so be warned: if you'd made that mistake today, you'd be flat broke right now, though IIRC they do close out positions for you so at least you shouldn't end up too far in the red once your account is dunzo...
...which, to reiterate fnid2's point, it will be, unless you make sure to paper trade your damn code first! I'd also suggest that until you're really sure it's working, you never ever EVER leave it running unless you're watching it like a hawk. And code yourself a big bright red "PANIC" button that closes all your positions and shuts everything down, because you're going to end up in a situation some day where things go wonky and you just want to get out, but you'll have a dozen open positions and you don't want to have to click around to close them all.
Also, it's always a good idea to put in "everything's gone to hell" stops and place orders that time-out, even if your strategy doesn't require them (algo strategies don't typically use actual stop orders for exits): you never know when your connection might die, and you really don't want to end up stuck with nasty positions that you don't even have any way to track or close out b/c your cable went out...the positions that you hold when doing algo stuff can on occasion end up frighteningly large, which is only acceptable if you're holding them for very short period of time.