Hi @Sunny_Shah ,
Make to sure to click on Add Python 3.8 to PATH
… Refer the below video
Hi @Sahil_Malhotra ,
You can refer the previous series for learning purpose and continue with new series with updated codebase.
Hi @Rajeev_Kallur ,
We are looking into this issue.
Hi @SANJEEV_RANJAN ,
Regarding the market depth data, we are in touch with Dhan team. The data provided is mismatched , they will be releasing the market depth data accurately soon.
Hi @Kanha_Meher ,
Refer the below code:
name = "NIFTY 27 MAR 23100 CALL"
quote_data = tsl.get_quote_data(name)
oi_data = quote_data[name]['oi']
Hi @Lekhini ,
The code seems to be right, kindly uncomment the lines and cross verify once again. Let me know if you are still facing the issue.
Also do upgrade to our latest codebases 3.0.6:
pip install Dhan-Tradehull
pip show Dhan-Tradehull
Hi @Ganesh_Surwase ,
You can run more then one algo at a time using another api credentials in different file locations.
Hi @anandc ,
We will look into this issue.
Hi @amar_nathb ,
Double check how many versions of python are present in the system by running the following command in cmd
where python
If there are several versions present in the system, uninstall all versions and re install python 3.8
Hi @Manish1 ,
Currently Dhan supports only 5 days of historical data for timeframes except “DAY” timeframe.
Hi @Qaisar ,
We will look into this issue.
Hi @anandc ,
We are looking into this issue.
Hi @Hemal_Chhatrala ,
Use the below code to place Bracket orders:
bo_orderid = tsl.order_placement(tradingsymbol = 'ACC', exchange = 'NSE', quantity = 1, price = 0, trigger_price = 0, order_type = 'MARKET', transaction_type = 'BUY', trade_type = 'BO', bo_profit_value=5, bo_stop_loss_value=5)
This will really help in identifying liquid options scrip and also having less slippage and trade into it.
If we place market order in stock option which has large amount of slippage then it will mess-up everything.
Dhan now supports upto 5 years of Intraday historical data.
@Tradehull_Imran Hi Sir,
I am making indicator based scanner but indentation error occurs very frequently. code mai same use krta hun jo app dete ho. aisa kyu hota hai.
Please help me with this.
Thank you so much Sir. I would implement it as advised.
Hi @Tradehull_Imran sir,
I am facing multiple issues with placing sl order… Not a single day, since completion of algo, not a single time the sl order was placed successfully. This time got a new error-
[1102350080] SL Order Details: {'dhanClientId': '11ABD', 'orderId': '2225032869001', 'exchangeOrderId': '1200000014242709', 'correlationId': '1102350080-1743134789595', 'orderStatus': 'REJECTED', 'transactionType': 'SELL', 'exchangeSegment': 'NSE_FNO', 'productType': 'INTRADAY', 'orderType': 'STOP_LOSS', 'validity': 'DAY', 'tradingSymbol': 'NIFTY-Apr2025-23550-PE', 'securityId': '54715', 'quantity': 75, 'disclosedQuantity': 0, 'price': 120.66, 'triggerPrice': 121.16, 'afterMarketOrder': False, 'boProfitValue': 0.0, 'boStopLossValue': 0.0, 'legName': 'NA', 'createTime': '2025-03-28 09:36:29', 'updateTime': '2025-03-28 09:36:29', 'exchangeTime': '1980-01-01 00:00:00', 'drvExpiryDate': '2025-04-03', 'drvOptionType': 'PUT', 'drvStrikePrice': 23550.0, 'omsErrorCode': '16283', 'omsErrorDescription': '**EXCH:16283:The order price is not multiple of the tick size**.', 'algoId': '0', 'remainingQuantity': 75, 'averageTradedPrice': 0.0, 'filledQty': 0}
Now, How to resolve this error…? this is my original code
sl_order_id = tsl.order_placement(
tradingsymbol = option_symbol,
exchange = option_idx,
quantity = client_qty,
price = round(sl_price - 0.5, 0),
trigger_price = round(sl_price,0)
order_type = "STOPLIMIT",
transaction_type = "SELL",
trade_type="MIS")
Pls its urgent…
Hi @Rajeev_Kallur ,
Could you let us know which version of the Dhan-Tradehull package you’re using? Run the following command in your terminal and send us a screenshot:
pip show Dhan-Tradehull
Hi @anandc ,
Could you let us know which version of the Dhan-Tradehull package you’re using? Run the following command in your terminal and send us a screenshot:
pip show Dhan-Tradehull