Get the latest price of instruments via web-sockets from zerodha
Project description
Zerodha WebSocket Ticker Saver
Free web-socket wrapper client for Zerodha Trading platform
What
TickerSaver is a web-socket wrapper client for Zerodha trading platform which can listen to the Zerodha web-socket stream for any stock or index instruments on the Trading platform and saves the current price of the instrument in sqlite database. Any backend Live Trading Algo program can now use this live tick current price data by reading from the sql-lite database which is continuously getting updated by the TickerSaver application. It does this all free without the 2000 INR monthly cost that Zerodha charges for WebSocket live tick data.
Install
How
- User needs to have a valid account on Zerodha Trading platform - Kite
- User will need log into the Kite Web on any browser and copy the user token and username from the browser and provide it to the TickerSaver application
- TickerSaver will now connect to your account and connect to Zerodha WebSocket server to get live tick data for any subscribed instruments
- It will save the current price of all subscribed instruments in a sql-lite database which can then be used by any of your applications like Live Trading bots to get the current live price from this sql-lite db which is constantly getting updated
Features
- Costs 0 rupees to get live tick data
- Saves the current price of all subscribed instruments in sql-lite database which can be used by live trading bots
- At startup can subscribe to get and save the current price of all instruments showing up in the current positions in Zerodha account based on config
subscribe_current_positions
. - Can dynamically subscribe to new instruments when the application is already running. Just add the Zerodha instrument_id , tradingsymbol in the
conf/ticker_instruments.csv
file For example:12628226,BANKNIFTY22N0339500PE
- When new positions are taken in Zerodha account and if they need to be subscribed to dynamically then just create a file
touch instrument_touch.txt
which will load all current positions from Zerodha account and subscribe to them and start saving the current price .
Usage
- User needs to manually login into Kite on any browser , and copy the below token
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for zerodha_tickersaver-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb828a5143599f74970dbe27d482d7632ca7e7545e1578aba4a47582ff8f6d30 |
|
MD5 | 62f32f2175e11aa2171b19db6b133cf6 |
|
BLAKE2b-256 | 2c40cc4c59f71266010b3a42db68e834b83140ee3a93706cc8832d0b522a5615 |
Close
Hashes for zerodha_tickersaver-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6aedfa8a2fd1629a6baf4ac3cf998ab80a0d272fe314fc08d000eac45b61595e |
|
MD5 | b5c4684c106db175eab517fcbcbbe115 |
|
BLAKE2b-256 | e621440dcc5b675ded2fc99b394f8bf0c2fca849b43635a75bccf4320b3b6b1b |