Introducing: MTF APIs for Trading - now execute orders with Margin Trading Facility over Dhan APIs

Just a few days back, we launched MTF (Margin Trading Facility) on Dhan and we have received an overwhelming response from swing traders and short term investors. With MTF on Dhan, users can trade with up to 4X margin and over 950+ stocks on all Dhan - easily one of the highest coverage of stocks under MTF.

We have already executed thousands of orders in these last 30 days, and now as a practice to ensure we bring most of our capabilities on APIs - we are now extending MTF or Margin Trading Facility on Dhan HQ trading APIs. We feel this will open up new avenues for systematic swing traders who want to take short term trading positions and lower margins.

So if you are already wondering about how you will have to integrate more APIs in your system, don’t worry, we have got this covered.

We are adding a new product type for MTF in the Orders API category, so you don’t have to put in any extra effort to integrate a whole set of APIs just for MTF. You can choose productType: β€œMTF” to place MTF orders, it is that simple.

To help you track and manage your MTF positions better, we have added MTF positions API as well. On the Positions API, you will now get stocks marked with product type as MTF, wherever applicable.

This is live on DhanHQ APIs [Documentation]. You can directly try out MTF on APIs by heading over to api.dhan.co - webpage where you can try these APIs directly from your browser. Also, we will be adding MTF to our Python library soon, so don’t forget to check that out - here.

To know more about how MTFs work on Dhan, we have a detailed video explanation of the same:

MTF on Dhan keeps evolving in small ways that add up β€” from rate moves to limits to entirely new order types. If you’re using MTF programmatically through the APIs, a few related launches the community has helped shape, in case any are useful to you:

  • MTF Now from as Low as 12.49% p.a β€” MTF interest rates on Dhan now start from 12.49% per annum, among the lowest in the industry. Makes leveraged positions meaningfully more affordable to hold over longer windows.
  • MTF Interest Rates Capped at 15.49% β€” even at the higher end, MTF interest rates on Dhan are now capped at 15.49% across the board. Removes the uncertainty of variable rates climbing on you while a position is still open.
  • MTF Limit Increased to β‚Ή5 Cr β€” your MTF limit per client now goes up to β‚Ή5 crore. Useful if you’re scaling beyond the earlier ceiling and want to keep more positions under leverage without splitting across accounts.
  • T+5 Orders for Short-Term Positions β€” hold positions for up to 5 trading days under CUSPA, without converting them to delivery. Built for the in-between trades where intraday feels too short but full delivery feels like overcommitting.
  • MTF Market Insights on ScanX β€” monthly MTF rental trends, top stocks, and positioning data, surfaced inside ScanX Insights. A view that started from community conversations on MFT and now ships every month.
  • Pledge Shares for Margin Benefit β€” pledge your existing holdings to unlock additional margin for trading. The cleanest way to put long-term holdings to work without selling them down.
  • Margin Limits Enhanced for Pledged ETFs β€” ETFs you’ve already pledged now earn higher margin limits than before. Particularly useful if a chunk of your portfolio sits in index or sector ETFs.
  • In-line Margin & Leverage Calculator β€” calculate the margin and leverage required for any trade, right inline as you place it. Stops the back-and-forth of opening a separate calculator just to size a position.
  • Convert Positions Between MTF, Intraday and Delivery β€” switch your open positions between MTF, intraday and delivery in a single tap. Lets a trade evolve naturally with the market rather than forcing you to close and re-open.

Trade better, with Dhan

– Hardik
Product

5 Likes

Hi,Great to hear that.It works with json code generator too right??.By replacing"c" with β€œmtf”?

Hey @MAANVI

JSON Code generator is for Trading View Webhooks, which are configured separately to consume alert messages from Trading View. API and Webhooks have different backend systems and for now, MTF orders won’t work for webhooks.

However, we will evaluate the need for MTF on webhooks. Can you point out if you are looking to use this and what could be the use cases here?

Have you integrated webhooks with β€œMTF” order now???it is very much needed to place stoploss or Target orders using tradingview alerts for β€œMTF” Stocks.

Coz 20 baskets are not enough for MTF order requirement.

Hello @MAANVI

Not yet. We will take it in the subsequent webhook enhancement where we can try to add different order types. Meanwhile, you can continue using baskets for this.

Atleast increase basket number to 50