The account, the quotes and the order book are all readable, and orders can be placed, changed and pulled - so the research and the execution happen in one place rather than two.
A server over Fyers API v3 covering the whole trading loop: authentication, portfolio, market data and orders. The OAuth flow opens a browser once and the token is written back to your .env, so later sessions do not repeat it.
- Holdings, positions, funds and profile read from the account
- Real-time quotes for several symbols in one call
- Orders placed, modified and cancelled
- The order book and trade history
- Authentication status checked on its own, so a stale session is diagnosed rather than guessed at
Python 3.10 or newer, a Fyers trading account with API access, and an app created in the Fyers API dashboard with its redirect URI pointed at a local address. The app's client id, secret and that redirect URI go in a .env file, and the first run opens a browser to authorise. Orders placed through it are real orders on a live account - read back what a call is about to do before you confirm it.
