userJT
userJT

Reputation: 11944

Is it possible to use some API from within R to place a stock trade via an online broker (e.g., Zecco or Fidelity)

I know R and I am heavy user of Fidelity stock trading. I wonder if some R powerusers were able to find a broker which has an API and there is some sample R code to start with. Any broker is fine and any fees are fine - i would like simply to know if it is even possible. (even I have to pay a hefty monthly fee or something)

Upvotes: 3

Views: 2244

Answers (2)

Chad Johnson
Chad Johnson

Reputation: 21905

tradeking.com (which merged with or bought Zecco) has a RESTful API...a pretty nice one. I'm using it, and it's very simple to get started. They also have really low fees.

Upvotes: 3

Adam Hyland
Adam Hyland

Reputation: 1057

Interactive brokers has an API which you can access w/ various languages and Jeff Ryan has written a package on CRAN to do extend that to R. I haven't used them so I don't know what their fees are but the setup for the IBrokers packages seems sensible. Caveat emptor: program trading at medium frequency beats lighting your money on fire as a trading strategy, but only just. ;)

Upvotes: 7

Related Questions