Code Monkey home page Code Monkey logo

Comments (19)

krishnavelu avatar krishnavelu commented on August 24, 2024

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.

Parva14 avatar Parva14 commented on August 24, 2024

Yes, I do get proper results for BANKNIFTY FnO series, but it returns 'None' for NIFTY FnO series.

from alice_blue.

krishnavelu avatar krishnavelu commented on August 24, 2024

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.

krishnavelu avatar krishnavelu commented on August 24, 2024

Oops, sorry, if you are getting BN, you should get nifty too.

from alice_blue.

krishnavelu avatar krishnavelu commented on August 24, 2024

Which version are you using?

from alice_blue.

Parva14 avatar Parva14 commented on August 24, 2024

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.

krishnavelu avatar krishnavelu commented on August 24, 2024

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.

krishnavelu avatar krishnavelu commented on August 24, 2024

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.

Parva14 avatar Parva14 commented on August 24, 2024

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.

krishnavelu avatar krishnavelu commented on August 24, 2024

I don’t have a plan. If I get free time will push and release 0.0.6

from alice_blue.

g1raz85 avatar g1raz85 commented on August 24, 2024

ho can i get all instrument list from alice blue api

from alice_blue.

g1raz85 avatar g1raz85 commented on August 24, 2024

is there any API endpoint there to get all instrument supported by Alice blue

from alice_blue.

krishnavelu avatar krishnavelu commented on August 24, 2024

A master contract will be downloaded while you create the alice-blue object. Try to look into that master contract.

from alice_blue.

jay5deep avatar jay5deep commented on August 24, 2024

Can you please move changes related to Nifty NFO from the Develop branch to the Master branch?

from alice_blue.

krishnavelu avatar krishnavelu commented on August 24, 2024

Done

from alice_blue.

gbaalaji avatar gbaalaji commented on August 24, 2024

@krishnavelu

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.

krishnavelu avatar krishnavelu commented on August 24, 2024

What’s the difference between search instrument and get instrument?

from alice_blue.

gbaalaji avatar gbaalaji commented on August 24, 2024

@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.

krishnavelu avatar krishnavelu commented on August 24, 2024

Just search and filter the unwanted once...

from alice_blue.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.