Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to automate my trading strategies.

My strategies are not high-frequency and are written in Python.

I have a trading account in Interactive Brokers, and I know some non-official Python libraries (such as ibPy and swigPy) that are an interface to the Java API and are not officially supported.

Is there another broker that has a better stock trading API for Python?

Inspired by Which brokers offer a .NET stock trading API?.


locked by chrisaycock May 24 '13 at 16:55

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

up vote 2 down vote accepted

I know of no broker that provides an official, supported Python API. If you are at Interactive Brokers you can consider using their FIX gateway, but that comes with additional cost. QuickFix provides a Python API.


TradeStation offers python support via their WebAPI. Check it out here: http://tradestation.github.io/webapi-docs/


Check out Quantopian. It's all in Python. You can backtest and paper trade your algo for free. We do live trading by hooking your algorithm to your Interactive Brokers account.


Not the answer you're looking for? Browse other questions tagged or ask your own question.