First login with this URL:"https://kite.zerodha.com/connect/login?api_key=7u31352****opdv8&v=3". This will give request token.
Then use this method "kite.generate_session(request_token=request_token,api_secret=api_secret)" to generate access to…
Python has GIL that blocks one thread when another is running ( a thread waiting for input/output does not block). Because of that, multithreading is not recommended for Python for CPU-intensive tasks.
If your code has a lot of calculations, it is …
@Darshana_mule11 sorry I meant symbol but wrote token. But if you have symbol you can get token with that from the instruments file. I told you the method to calculate symbol for any stock and with that any token can be calculated.
For calculating instrument token without downloading the instrument file everytime, you need 3 information-stock symbol, expiry date and stock strike difference. For example the instrument token of state bank of india expiring at April is "SBIN24APR…
total_buy_quantity is the total number of orders placed by buyers to buy the stock and total_sell_quantity is the total number of orders placed by sellers to sell the stock. Why should be they equal?
@mailboxofrafiq Multiply your output by 100. Your inputs are looking good except use 3/365 for T and use r=0.08 . Also check during live market. Use Time in decimal, for more accuracy, for example if 2 and half days left for market to expires then u…
The following code calculates IV which matches NSE website, i have checked it myself. It is written in python:
import numpy as np
from scipy.stats import norm
from scipy.optimize import minimize_scalar
import pandas as pd
import pandas_datareader…
@shashanks VWAP will differ with different time intervals. For example, if you compare VWAP of 1 min candles with 3min candles, results will vary. I think tick by tick data give the most accurate VWAP.
freeze limite is present in this site. https://www.nseindia.com/products-services/equity-derivatives-nifty50 You can write a program to fetch it automatically.
you can instruments list from kite API. In that you will get all stocks with lot size. See here
https://kite.trade/docs/connect/v3/market-quotes/#instruments
you can instruments list from kite API. In that you will get all stocks with lot size. See here
https://kite.trade/docs/connect/v3/market-quotes/#instruments
they can trade with your account if you tell them your keys and app code. App code is like otp which comes in kite app. If you only share keys they cant do anything
Free data of nifty's option chain provided by nse is delayed by 3-5 mins. No matter how many times you request you get the same data for 3 to 5 mins. I want to clear my doubt that the data provided here won't be a same snapshot for 3-5 mins but liv…