Last updated: 14 May 2022 11:40 AM
select a singular track
This project aims to unify the trading API interfaces of all the major Indian brokers to form one standard library that can execute trades, monitor positions, and other data like holdings, available margins, etc. on all your brokerages at once. Thus acting as a broker of brokers of sorts.
Most professional traders and automated trading systems use multiple(two or more) brokers to execute and manage their trades, positions, and portfolios. Some use a full-service broker for specific trades and discount ones for other trades. This creates a mess of APIs, web apps, logins, 2FA keys, and more.
Moreover, there have been many instances where an o-Auth session expires or the broker's servers go down temporarily.
This is a real issue with real consequences on trading performance. What if your algorithmic trading system sends a signal and the API of your broker requires you to login again or just simply fails to work. Or if you are trading manually, the time cost of switching brokers on the fly can mean the difference between a profitable or unprofitable trade.
uniBroker solves this by using the broker's own web-app API endpoints instead of their provided free/paid API solutions. This allows automation of o-Auth/2fa and login flow and allows it to interface with the brokers with no readily available public API.
v0.20 will have automatic fail-over support where you can select one preferred broker and other secondary brokers. The library will automatically switch brokers for you in case your primary broker goes down.
The current iteration of this project (v0.15) supports two brokers (upstox and Zerodha) with support for six more brokers coming this summer.
All of this is and will always be open source and hence free of charge where anyone can look into the source code to verify that nothing shady is going on.
It's time Indian traders get a streamlined multi-broker experience like the hedge funds do!