Comments (2)
Hi
I did not get a time to run it when market was live, but you can try this-
test_script.py
from jugaad_data import nse
from datetime import datetime
import time
DELAY = 60
n = nse.NSELive()
print("LastPriceTime\tLocalTime\tCE\tStrike\tPE")
while True:
option_chain = n.index_option_chain("NIFTY")
for option in option_chain['filtered']['data']:
print("{}\t{}\t{}\t{}\t{}".format(option_chain['records']['timestamp'], datetime.now(), option['CE']['lastPrice'], option['strikePrice'], option['PE']['lastPrice']))
time.sleep(DELAY)
run it as below when market is running
python test_script.py > liveprice.txt
- Observe the columns
LastPriceTime
andLocalTime
. This will give you an idea about to what extent the quotes are delayed. - Reduce DELAY value and observe how low can you go. Basically if you ping within very short time, you might get the same price and timestamp if the update time is slow.
from jugaad-data.
Closing as its not a library related issue.
from jugaad-data.
Related Issues (20)
- Missing data while pulling historical stock prices HOT 2
- Display Buy and Sell Qty Live tick data
- Http2 Support (HTTPX) HOT 1
- Deliverable volume column should be added in the stock_df HOT 3
- Timeout HOT 1
- Not able to download historical NIFTY50 index data
- Different Timeframes?
- open interest on all strike price like nse website
- Live data and collection of all top 50 companies
- Nifty Website not Accessible HOT 1
- URL Changed By NSE to nsearchives.nseindia.com Please Update this ASAP. HOT 2
- Unable to download bhavcopy
- Rate limiting HOT 2
- Not able to fetch historical stock data of the scripts for specific date
- Stock split handling
- Update Holiday calendar
- Does not load index data HOT 2
- Get 1min, 15min, 30min or more stock equity data. HOT 1
- Typographical Error in the main documentation
- Not able to retrieve historical data for many NSE symbols HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jugaad-data.