Hi @Tradehull_Imran @RahulDeshpande,
Again today morning starting receiving errors.
Thank you sir. I will check it once again.
Thank you sir. I will try to check once again.
Ohh, I am very sorry @Tradehull_Imran sir.
If I had known 2-3 weeks earlier, I would definitely have joined and postponed my pre-scheduled plan. @Dhan is undoubtedly doing a great job, arranging surprises with valuable workshops. My only request is to inform us a bit earlier so we can join.
@RahulDeshpande, I saw your message and thought it was only for Mumbai people. I am currently staying in Hyderabad for job purposes, so attending would be easy for me. However, this Friday, I am traveling to my hometown and will be back on January 1st.
Last time, I also attended the offline workshop on very short notice.
Sir, I am trying to trace out the error.
In line no.28, In place of âchatâ , I think it should be âchart_indexâ
Is it correct or not sir?
VBR Prasad
I m facing an issue while placing order for sensex options
if i execute below codes its fires orders properly for Nifty options
> tsl.order_placement('NIFTY 19 DEC 23700 PUT', 'NFO', '25', 0, 0, 'MARKET', 'BUY', 'MIS')
but when I place order for sensex it gives error
> tsl.order_placement('SENSEX 20 DEC 81000 CALL', 'BFO', '10', 0, 0, 'MARKET', 'BUY', 'MIS')
Error:
File âd:\Dhan Algo\Practice\Dhan_Tradehull_V2.pyâ, line 139, in order_placement
orderid = order[âdataâ][âorderIdâ]
KeyError: âorderIdâ
Hello @Tradehull_Imran Sir
I am feeling very good you back
Error
I m from pune & will surely join, please let me know the timing & addressâŚ
can some one please help to create zigzag indicator with Deviation 5, Depth 10. in daily chart.
Algo stopped executing when the system goes to sleep. Logically, It shouldnât be. ya? @Tradehull_Imran ?
Hi sir,
Please guide in the bactesting of algo
Rate limits issues still coming in Version 2.3
I would attend the offline workshop in Mumbai
Dear Sir,
I am unable to get live pnl in my Algo code>
I am using the mentioned command
live_pnl = tsl.get_live_pnl()
Please guide
Hi @Tradehull_Imran
I was trying to use the get_optionchain() functionâŚbut getting the below error. Could you pls look into it?
Thanks
opt_chain = tsl.get_option_chain('NIFTY', 'NSE', '26-12-2024',10)
However its giving the below error
Codebase Version 2.3 : Solved - ATM issues
-----Logged into Dhan-----
reading existing file all_instrument 2024-12-20.csv
Got the instrument file
Getting Error at Option Chain as '<' not supported between instances of 'int' and 'str'
The error is coming at this point in the code.
if len(expiry_list)<expiry:
Expiry_date = expiry_list[-1]
else:
Expiry_date = expiry_list[expiry]
If u look at the error (Getting Error at Option Chain as â<â not supported between instances of âintâ and âstrâ), u are trying to compare len(expiry_list), which is int and expiry, which is str. need to do a like to like comparison.
@AmitKAswani - i understand thatâŚhowever, the code is from Dhan_Tradehull_V2 file and so Iâve asked @Tradehull_Imran to check and rectify the same
Hi sir, I am getting the error. Here is the code and cmd files.
Please suggest sir.
`import pdb
import time
import datetime
import traceback
from Dhan_Tradehull_V2 import Tradehull
import pandas as pd
from pprint import pprint
import talib
import time
client_code = â-----------â
token_id = â------------â
tsl = Tradehull(client_code,token_id)
call_list = [âNIFTY 26 DEC 24000 CALLâ, âNIFTY 26 DEC 23950 CALLâ, âNIFTY 26 DEC 23900 CALLâ, âNIFTY 26 DEC 23850 CALLâ, âNIFTY 26 DEC 23800 CALLâ, âNIFTY 26 DEC 23750 CALLâ, âNIFTY 26 DEC 23700 CALLâ, âNIFTY 26 DEC 23650 CALLâ, âNIFTY 26 DEC 23600 CALLâ, âNIFTY 26 DEC 23550 CALLâ, âNIFTY 26 DEC 23500 CALLâ, âNIFTY 26 DEC 23450 CALLâ, âNIFTY 26 DEC 23400 CALLâ, âNIFTY 26 DEC 23350 CALLâ, âNIFTY 26 DEC 23300 CALLâ, âNIFTY 26 DEC 23250 CALLâ, âNIFTY 26 DEC 23200 CALLâ, âNIFTY 26 DEC 23150 CALLâ, âNIFTY 26 DEC 23100 CALLâ, âNIFTY 26 DEC 23050 CALLâ, âNIFTY 26 DEC 23000 CALLâ]
ltp_data = tsl.get_ltp_data(names = call_list)
for script_name,ltp in ltp_data.items():
if ltp < 50:
print(f"for {script_name} the ltp is {ltp}")
break
`
-------------------------ERROR--------
C:\Users\LENOVO PC\Desktop\RP\DHAN Algorhythemic Trading\1. Api Upgrade>py "1. Easy way to get LTP.py"
Mibian requires scipy to work properly
Codebase Version 2.3 : Solved - ATM issues
Traceback (most recent call last):
File "1. Easy way to get LTP.py", line 10, in <module>
import talib
ModuleNotFoundError: No module named 'talib'
type or paste code here