About the APIs, Automation, Algos & Code category

This category is meant for everything that’s related to Algo Trading Strategies, APIs & code discussion.

Our aim with this category is to bring all the trading and tech enthusiasts together and build an ecosystem that will promote OSS projects.

We want to see our category as the Stack Overflow for the Indian Algo Trading community and it will start with you!

3 Likes

Good Initiative , with the tools available currently trading and investing have been democratised, just like what the Cloud and App Store iOS and Google Play did for entrepreneurs and independent app developers.

यदि आप “Dhan” को कुछ तेजी से बढ़ाना चाहते हैं तो आपको जितनी जल्दी हो सके इन सुविधाओं को लॉन्च करना चाहिए | कृपया और पढ़ें

-Custom Indicator, strategy With pine script in Option Chart
-All features animation for how to use this
and many more very important other things

1 Like

If you want to grow Dhan bit more fast then you should release these features as soon as possible please read more

-Custom Indicators, Strategy with Pine Script in Options Charts
-Custom Indicator, strategy With pine script in Option Chart
-All features animation for how to use this
and many more very important other things

1 Like

Hi Rahul , Archit

With your videos, I am able to place order but once order is place, not able to exit
Please tell me how to place Stop loss and profit percentage once the order is placed in Intraday Trading.
Appreciate your help and response.

Also Please tell us where we get the tutorials code

Thank you,
Ajay

Opening Range breakout strategy any idea

Is the historical data in the API adjusted for splits/bonuses/dividend. If yes, do you do it at EOD basis ?

Hello @KalpaTrader

Yes, this is adjusted. It is the same data that you see on Dhan TradingView Charts.

sir second session : file extention not working on my windows 11 pc, can you help me

Hi Dhan team,
I am having issue in websocket excel file.
I have changed only option expiry date in the script name and then run the code
, LTP received is showing in the CMD prompt but it is not updating in the excel. Please find the attached screenshot for your reference and help me with this.

Can recommend Python Developer freelancer for my algo order management tool.

1 Like

What is the new expiry dates in python code. Pls provide the list. is it working?

how to activate it if any chargrges there

Could you give me more details

@Dhan Team,

I’m requesting for a Feature to be included for Historical data API. Historical Data - DhanHQ Ver 2.0 / API Document

Instead of just one Security ID, allow multiple IDs to be requested in a single API call under same Segment, this will ease the number of requests users are triggering to fetch the data for multiple stocks/instruments. If I need to backtest the whole FNO stocks, I might have to send 250+ requests every time. By allowing multiple IDs, this could be done in one single API call and let users iterate through the data !

Thoughts ?

something similar to this structure…
{

“securityId”: [“1333”,“1334”,“562390”],

“exchangeSegment”: “NSE_EQ”,

“instrument”: “EQUITY”,

“interval”: “1”,

“oi”: false,

“fromDate”: “2024-09-11 09:30:00”,

“toDate”: “2024-09-15 13:00:00”

}

Any update on algo registration process for more than 10 ordes per second?

Hi Team & @Tradehull_Imran ,

i want to use multiple EMA indicator on candles value so please help how i can get it i am able to apply one EMA which take first EMA 9 values only in candle

      # EMA 9
     index_chart['ema'] = talib.EMA(index_chart['close'], timeperiod=9)

      # EMA 15
     index_chart['ema'] = talib.EMA(index_chart['close'], timeperiod=15)

    first_candle   = index_chart.iloc[-3]

    print(first_candle['ema'])

i need EMA 15 value also in my first candle and please share example code of 9 EMA crossing to 20/15 EMA

@Dhan
As the DHAN API’S accept security_id as the request param to get the historical data,
How to get the symbols and security ID’s for particular segment like Nifty Micro 250

Hi,

is this community active ,i am not able to watch any latest post .  

shall i post any error related to automation

Dear Dhan Team,

Dont waiste our and yours time.Check the upstox broker autologin api link. upstox-auto-login

Generate the same api.for dhan autologin.
so that dhan users can get the autologin token generation automatic easily by python code.