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

Mismatch in data #51

Open
pradip-interra opened this issue Oct 29, 2022 · 0 comments
Open

Mismatch in data #51

pradip-interra opened this issue Oct 29, 2022 · 0 comments

Comments

@pradip-interra
Copy link

Hi,
I am getting the data like this:
def highest_oi_CE(num,step,nearest,url): strike = nearest - (step*num) start_strike = nearest - (step*num) response_text = get_data(url) data = json.loads(response_text) currExpiryDate = data["records"]["expiryDates"][0] max_oi = 0 max_oi_strike = 0 for item in data['records']['data']: if item["expiryDate"] == currExpiryDate: if item["strikePrice"] == strike and item["strikePrice"] < start_strike+(step*num*2): if item["CE"]["openInterest"] > max_oi: max_oi = item["CE"]["openInterest"] max_oi_strike = item["strikePrice"] strike = strike + step return max_oi_strike

However the data I am getting is much much lower order than reported by other tools.

Are those OI data is of different ? (like thousands or lakhs)?

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

1 participant