Comments (19)
I'm getting proper result.
Instrument(exchange='NFO', token='48186', symbol='BANKNIFTY NOV FUT', name='', expiry=datetime.date(2019, 11, 28), lot_size='20')
from alice_blue.
Yes, I do get proper results for BANKNIFTY FnO series, but it returns 'None' for NIFTY FnO series.
from alice_blue.
I’m getting proper results. I’ve posted the results too.
Verify what contract notes are getting download at start. If contract notes are not downloaded you’ll get none.
from alice_blue.
Oops, sorry, if you are getting BN, you should get nifty too.
from alice_blue.
Which version are you using?
from alice_blue.
These are the results for pip show alice_blue
Name: alice-blue
Version: 0.0.5
Summary: Python library for Alice Blue APIs
Home-page: https://github.com/krishnavelu/alice_blue
Author: Krishna Velu
Author-email: [email protected]
License: UNKNOWN
Location: c:\users\i ball\anaconda3\lib\site-packages
Requires: protlib, websocket-client, bs4, requests
Required-by:
Can you please post your result for:
alice.get_instrument_for_fno(symbol = 'NIFTY' , expiry_date=datetime.date(2019, 11, 28), is_fut=True, strike=None)
from alice_blue.
Above, I’ve posted results for NIFTY only... :)
Didn’t notice it has BN in results. Need to investigate why its give BN as results when I give nifty as input.
from alice_blue.
Fixed in develop branch. Take develop branch and test it.
this is my result now.
Instrument(exchange='NFO', token='48187', symbol='NIFTY NOV FUT', name='', expiry=datetime.date(2019, 11, 28), lot_size='75')
from alice_blue.
Yes I saw that, it was probably because the code was checking NIFTY in 'symbol string' and BANKNIFTY was taking a priority. Thank you for fixing it! Also, are you going to push the changes to master branch soon?
from alice_blue.
I don’t have a plan. If I get free time will push and release 0.0.6
from alice_blue.
ho can i get all instrument list from alice blue api
from alice_blue.
is there any API endpoint there to get all instrument supported by Alice blue
from alice_blue.
A master contract will be downloaded while you create the alice-blue object. Try to look into that master contract.
from alice_blue.
Can you please move changes related to Nifty NFO from the Develop branch to the Master branch?
from alice_blue.
Done
from alice_blue.
searching for the instrument in NFO for nifty50, it still returns BANKNIFTY instrument in alice.search_instrument( )
alice.search_instruments(exchange='NFO',symbol='NIFTY')
Instrument(exchange='NFO', token=62247, symbol='BANKNIFTY 01 APR21 27300.0 PE', name='', expiry=datetime.date(2021, 4, 1), lot_size='25')
Nifty future instrument is working well.
alice.get_instrument_for_fno(symbol = 'NIFTY', expiry_date=datetime.date(2021, 3, 25), is_fut=False, strike=14500, is_CE = True)
Instrument(exchange='NFO', token=43358, symbol='NIFTY MAR 14500.0 CE', name='', expiry=datetime.date(2021, 3, 25), lot_size='75')
How to get FnO nifty instrument in alice.search_instrument( )
?
from alice_blue.
What’s the difference between search instrument and get instrument?
from alice_blue.
@krishnavelu
Both search_instrument and get_instrument return the instrument as output.
while in alice.search_instrument()
I am searching for only nifty in NFO but in
alice.search_instruments(exchange='NFO',symbol='NIFTY')
it gives all the instrument symbol contain nifty such as it gives instrument for BANKNIFTY, FINNIFTY and also NIFTY.
I am creating an option chain database for nifty. I can filter the Nifty option instrument from all search instrument.
Is there any other way to get ONLY nifty instruments directly from API that helps me to create a Nifty option chain?
from alice_blue.
Just search and filter the unwanted once...
from alice_blue.
Related Issues (20)
- Not able to download NFO contracts HOT 3
- Name not reflecting in WS for indices HOT 1
- Unable retrieve live data using web sockets HOT 1
- isAuthorized = r.json()['isAuthorized'] HOT 23
- Status 404 Not found - While logging in with session ID (was working until Yesterday) HOT 29
- Alice Blue Api - Login Help HOT 1
- DEPTH_DATA ( Null Values ) HOT 4
- Unable to get session id from the below code HOT 2
- AliceBlue API login error HOT 2
- Hi, I was wondering if its possible to generate a SessionID using AppCode and SecretKey alone? using a Python Script? Or do I need a Username and Password too along with AppCode and SecretKey? If its possible then please let me know how. HOT 1
- Base URL not responding https://a3.aliceblueonline.com/rest/AliceBlueAPIService HOT 6
- Websocket closes abruptly and live feed of banknifty stops HOT 1
- #Issue in generating EncKey HOT 1
- Unbale to genereate Token Failing at 2FA validation HOT 7
- STOPPED WORKING def square_off(self, instrument, quantity, product_type)
- Websocket Data to OHLC sample code
- Getting "websocket:error" time to time while streaming nifty index data HOT 1
- Error for option symbol HOT 1
- Web socket is not giving me a ohlc data
- Unable to get session ID. Getting json.decoder.JSONDecodeError error HOT 3
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 alice_blue.