# Option api history data

**URL:** <https://community.aliceblueonline.com/t/option-api-history-data/9580>\
**Category:** API\
**Created:** [December 12, 2023, 9:53am UTC](https://community.aliceblueonline.com/t/option-api-history-data/9580 "2023-12-12T09:53:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amol\_Yelegaonkar](https://sea1.discourse-cdn.com/flex015/user_avatar/community.aliceblueonline.com/amol_yelegaonkar/32/2680_2.png) [@Amol\_Yelegaonkar](https://community.aliceblueonline.com/u/Amol_Yelegaonkar)\
**Post date:** [December 12, 2023, 9:53am UTC](https://community.aliceblueonline.com/t/option-api-history-data/9580/1 "2023-12-12T09:53:56Z")

</div>

what is wrong command in below exch=“NFO”  
symbol=“BANKNIFTY”  
expiry= nse\_expirydetails(nse\_optionchain\_scrapper(‘BANKNIFTY’), 0)[0]  
#print(alice.get\_instrument\_for\_fno(exch=“NFO”,symbol=‘BANKNIFTY’, expiry\_date=str(expiry), is\_fut=False,strike=43700, is\_CE=True))  
call\_inst=(alice.get\_instrument\_for\_fno(exch=“NFO”,symbol=‘BANKNIFTY’, expiry\_date=str(expiry), is\_fut=False,strike=43700, is\_CE=True))  
put\_inst=(alice.get\_instrument\_for\_fno(exch=“NFO”,symbol=‘BANKNIFTY’, expiry\_date=str(expiry), is\_fut=False,strike=43700,  
result is {‘stat’: ‘Not\_ok’, ‘emsg’: ‘No Data

---

<div class="post-metadata">

**Author:** ![Shivaraman\_Arumugam](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@Shivaraman\_Arumugam](https://community.aliceblueonline.com/u/Shivaraman_Arumugam)\
**Post date:** [December 19, 2023, 5:05am UTC](https://community.aliceblueonline.com/t/option-api-history-data/9580/2 "2023-12-19T05:05:26Z")

</div>

Kindly follow the Python Git Hub link.

> **[GitHub - jerokpradeep/pya3](https://github.com/jerokpradeep/pya3)**
>
> Contribute to jerokpradeep/pya3 development by creating an account on GitHub.

Additionally, please find the image for your reference.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/aliceblueonline/original/2X/c/cf16efeedacbb0d886807646777f0850bd4e0f87.png)

---

<div class="post-metadata">

**Author:** ![Amol\_Yelegaonkar](https://sea1.discourse-cdn.com/flex015/user_avatar/community.aliceblueonline.com/amol_yelegaonkar/32/2680_2.png) [@Amol\_Yelegaonkar](https://community.aliceblueonline.com/u/Amol_Yelegaonkar)\
**Post date:** [February 10, 2024, 2:51pm UTC](https://community.aliceblueonline.com/t/option-api-history-data/9580/3 "2024-02-10T14:51:37Z")

</div>

This command work but not give historical data
