ImplementationΒΆ
Aio-Trader library comes with 3 packages:
-
aio_trader.kite.Kite: Class for making API requestsaio_trader.kite.KiteFeed: Websockets class for real time stock data.
-
aio_trader.fyers.Fyers: Class for making API requestsaio_trader.fyers.FyersFeed: Websockets class for real time stock data.aio_trader.fyers.FyersOrder: Websockets class for order notifications.
-
aio_trader.dhan.Dhan: Class for making API requestsaio_trader.dhan.DhanFeed: Websockets class for real time stock data.aio_trader.dhan.DhanOrder: Websockets class for order notifications.
There are also helper classes.
aio_trader.AsyncRequest: Class for making HTTP requests, handling errors and processing the response.AsyncRequest has a mechanism for retrying requests in case of errors. It uses exponential backoff to gradually increase the wait time between retries.
aio_trader.utils: Contains helper functions.
The broker class like Kite, implement the aio_trader.AbstractBroker
The market feed (FyersFeed), and order feeds (FyersOrder), implement the aio_trader.AbstractFeeder