Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

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?.

share
comments disabled on deleted / locked posts

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.

3 Answers

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.

share
add comment

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

share
add comment

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.

share
add comment

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