We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
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)?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)?
The text was updated successfully, but these errors were encountered: