Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expiry Dates of BSE Sensex Error #260

Open
Ashwin-Ajith opened this issue Sep 22, 2023 · 1 comment
Open

Expiry Dates of BSE Sensex Error #260

Ashwin-Ajith opened this issue Sep 22, 2023 · 1 comment

Comments

@Ashwin-Ajith
Copy link

  • 5paisa Python SDK version: 0.7.3
  • Python version: Python 3.9.13
  • Operating System: Windows

Description

I was trying to get the expiries of BSE Index Sensex. But I'm getting the wrong expiry dates. I think it is Nifty expiry dates.

What I Did

client.get_expiry("B","SENSEX")

Response:
{'Expiry': [{'Exch': 'B',
'ExchType': 'D',
'ExpiryDate': '/Date(1695321000000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1695925800000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1696530600000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1697135400000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1697740200000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1698345000000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1698949800000+0530)/'},
{'Exch': 'B', 'ExchType': 'D', 'ExpiryDate': '/Date(1700764200000+0530)/'}],
'Message': 'Success',
'Status': 0,
'lastrate': [{'Exch': 'B',
'ExchType': 'C',
'LTP': 66060.03,

When I'm parsing the first datetime in milliseconds I'm getting "2023-09-21 18:30:00" It should be "2023-09-22". It's the same for all the dates. It is d-1. Please resolve it
Screenshot 2023-09-22 142827

@taurus05
Copy link

It's showing same expiry date for Nifty and Banknifty as well.
@5paisa @ba11b0y Please look into this.
thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants