Develop an IBKR (Interactive Brokers) trading bot using freqtrade, with position stacking. -- 2

Job ID: 31087535

Budget: $30 – $250 USD

Currently I am using freqtrade as my main tool to automate my trading, since it is so easy to build strategies on it. The code is also solid and flexible. However, there are 2 things that freqtrade still doesn't have:
1. it does not support position stacking on a trading pair. Read: https://github.com/freqtrade/freqtrade/issues/1519
2. it does not support any non-crypto exchanges. Read: https://github.com/freqtrade/freqtrade/issues/4984


I need these 2 features to be developed, so I can use the same strategy I have to trade on other trading instruments. However, I don't have enough time to focus on these since I have another project to focus to, so I'm willing to delegate to whoever interested. This project consists of 2 requirements(tasks), so there will be 2 milestones.

Requirement 1: connect to IBKR
- Add IBKR exchange into the freqtrade, so I can just set the exchange to 'IBKR' in the freqtrade config.js and I can use it to trade stocks with my freqtrade strategy.
- Make sure that any of existing freqtrade features does not break, so you may fork from the repo. Freqtrade must work as it is. You may use the free trial IBKR account during development.


Requirement 2: position stacking.
- Allow to open multiple positions on a single pair when another buy signal is triggered, and sell each of the trades individually.
- You don't need to change how freqtrade handling the trades, personally I think it's better not to change freqtrade's code base. Since freqtrade can only open one position on a pair, at a time, I suggest to have one service that monitor and launch another freqtrade instance if needed, to get ready to do the second buy, when another buy signal is triggered.
- Make sure the feature don't buy multiple times on the same buy signal

Language: Python
OS: Linux

References:
package to integrate ibkr: https://github.com/erdewit/ib_insync
notebooks: https://ib-insync.readthedocs.io/notebooks.html
freqtrade docs: https://www.freqtrade.io/en/latest/configuration/
Related categories: Python Trading