thank you sir
Thanks @Tradehull_Imran Sorry, why Expiry=0 ? ![]()
- Expiry (int): The expiry to select.
- 0 - Current week/month (depending on expiry type)
- 1 - Next week/month (depending on expiry type)
- and so on for subsequent weeks/months.
Thus we donât need to manually hardcode expiry dates, writing 0/1/2/3 .. makes expiry selection easier
last 3 days i learned all comment on community and try to solve this problem but still same issue happens.
please help me how to solve this.
Step 1: Download the certifi .whl File
- Visit the PyPI page for
certifi. - Download the .whl file ⌠certifi-2024.8.30-py3-none-any.whl` file under built Distribution
- Move the
.whlfile toDesktop > New Folder.
Step 2: Open Command Prompt as Administrator
- Press
Win + Sand type cmd. - Right-click on Command Prompt and select Run as administrator.
Step 3: Navigate to the New Folder Containing the .whl File and run the .whl file
- On cmd write
cd Desktop
cd New folder
cd New folder
pip install certifi-2024.8.30-py3-none-any.whl
**Step 4: After this run install libraries.bat
this steps also be followd
Thanks for the reply Sir,
But I donât get any error but live_pnl is always displayed as 0.
Also when I run my code I get exception errors like:
âException for instrument name ANGEL ONE as Check the Tradingsymbol
Exception for instrument name TATA MOTORS as Check the Tradingsymbol
got exception in pnl as âAngel Oneââ
Please guide
This is python verison.
ssl certificate is also download and run. but also error is the same.
this all procedure all have one in live market.
please help me how to fix this issue.
for the efforts you are putting
As of now we have upgraded to a simpler method to call for ltp
see : https://private-poc.madefortrade.in/t/learn-algo-trading-with-python-codes-youtube-series/32718/952?u=tradehull_imran
Hi @balrajsingh
Okey will check on this one
Sir also now its now working .
error is showing for ssl certificate.
apply point no 3
I have checked, and it is now working properly.
Thanks for your support.
Thank you @Tradehull_Imran. Its working now
Hi, @Tradehull_Imran
can you please provide me sample for this how to execute it?
def get_quote(self,names):
try:
response = self.get_data_for_single_script(names)
i=0
result = {}
if response:
if type(names)==list:
for i,data in enumerate(response['result']['listQuotes']):
data = json.loads(data)
name = self.instrument_df.loc[self.instrument_df['ExchangeInstrumentID'] == data['ExchangeInstrumentID']].iloc[0]['Description']
result[name] = data
return result
else:
data = response['result']['listQuotes'][0]
data = json.loads(data)
return data
else:
print('No data returned from XTS')
return None
except Exception as e:
print(e)
self.logger.exception(f"Exception in get quote function as {e}")
traceback.print_exc()
Thanks for sharing the files SirâŚ
VBR Prasad
we can use this code
bid_ask_data = tsl.get_quote_data(names = [âNIFTY DEC FUTâ])
Hi,
I cant find this function in Dhan_Tradehull_V2.py.
i can only see get_quote. but its not working,
may be you can share the latest version
bid_ask_data = tsl.get_quote_data(names = [âHDFCBANKâ])
response = self.get_data_for_single_script(names)
AttributeError: âTradehullâ object has no attribute âget_data_for_single_scriptâ
(Pdb++) bid_ask_data = tsl.get_quote(names = [âHDFCBANKâ])
Thank u very much sir ji ⌠U R Great.. âWe are getting a wonderful opportunity to learn more!â
âThanks, sir. It has been solved now.â


