
Automate Trading Strategy w/ Python and Interactive Brokers API
- or -
Post a project like this$500
- Posted:
- Proposals: 8
- Remote
- #3380100
- OPPORTUNITY
- Expired
software engineer|Full-Stack Software Developer| web developer| App developer | AI Engineer | WordPress
BI, Machine Learning, Deep Learning, NLP, Data Engineering, MEAN, MERN, DJANGO, Computer Vision
5041591625512452704883427171532568258917046877092504111





Description
Experience Level: Expert
Estimated project duration: 1 - 2 weeks
Main Input 1: pandas dataframe containing the target allocations of the portfolio, in percentage terms. The index of the dataframe contains the securities’ ISINs (and ‘Cash’) and the values of the dataframe add up to 1. Example:
%
FR0000121485 0.20
IT0003497168 0.30
AT0000A18XM4 0.40
Cash 0.10
Main Input 2: pandas dataframe containing the bracket orders to be associated with each of the positions. The index of the dataframe contains the securities’ ISINs. The dataframe has 2 columns: stop_loss and take_profit. These include the percentages below/above the entry price at which to place a stop_loss/take_profit order. Example:
stop_loss take_profit
FR0000121485 -0.10 0.30
IT0003497168 -0.20 None
AT0000A18XM4 None 0.40
Goal: rebalance the portfolio as close to the requested percentage allocation as possible, and implement the bracket orders requested, using the Interactive Brokers API
Requirements:
• Code must ideally be built in python and be properly documented, so that it can be modified
• Code must be able to run on both a paper trading account and a live trading account
• User must be able to choose the account ID of the live trading account (if more than one ID is associated with his account)
• Bracket orders (stop loss and take profit) must be linked to the quantity held in the security: if I sell 50 shares of company A, the quantity in the bracket orders must also decrease by 50 (and vice versa)
• Code should print portfolio positions before and after the rebalancing, along with any open orders
• User should be able to choose whether the income (e.g. dividends) is automatically reinvested (I believe IB has this feature but remains to be checked)
• Be mindful of currency conversion
%
FR0000121485 0.20
IT0003497168 0.30
AT0000A18XM4 0.40
Cash 0.10
Main Input 2: pandas dataframe containing the bracket orders to be associated with each of the positions. The index of the dataframe contains the securities’ ISINs. The dataframe has 2 columns: stop_loss and take_profit. These include the percentages below/above the entry price at which to place a stop_loss/take_profit order. Example:
stop_loss take_profit
FR0000121485 -0.10 0.30
IT0003497168 -0.20 None
AT0000A18XM4 None 0.40
Goal: rebalance the portfolio as close to the requested percentage allocation as possible, and implement the bracket orders requested, using the Interactive Brokers API
Requirements:
• Code must ideally be built in python and be properly documented, so that it can be modified
• Code must be able to run on both a paper trading account and a live trading account
• User must be able to choose the account ID of the live trading account (if more than one ID is associated with his account)
• Bracket orders (stop loss and take profit) must be linked to the quantity held in the security: if I sell 50 shares of company A, the quantity in the bracket orders must also decrease by 50 (and vice versa)
• Code should print portfolio positions before and after the rebalancing, along with any open orders
• User should be able to choose whether the income (e.g. dividends) is automatically reinvested (I believe IB has this feature but remains to be checked)
• Be mindful of currency conversion

Projects Completed
6
Freelancers worked with
6
Projects awarded
18%
Last project
21 Aug 2025
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Hi I have some questions before I can give a proposal with a realistic estimate.
1) Is there already some kind of application or does this interface with a in-house applicaiton?
2) Where do the 2 main panda data frame inputs come from (file upload, API)?
3) If this is a complete new development will it be a web application or a desktop application only?
4) Do you supply the developer (test) account for IBKR API?
996118
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies