Shubh Deepawali
Festive Offer · API Access Open
FREEALGO API
Automate your trading this festive season
Code your strategy once and let it trade NSE, BSE & MCX for you — with ₹0 API charges on every Ashlar trading account.
This Diwali
Let Your Strategy Keep Watch
Your rules run every session without you at the screen — through the festive week and every week after it.
You Write the Rules. The API Places the Trades.
No more watching screens or missing entries. Your logic runs the same way every time.
# Buy when the fast average crosses above the slow one
if ema_9 > ema_21 and no_position:
place_order("BUY", qty=50)
set_stop_loss(pct=1.0)
# Exit everything before market close
if time = "15:15":
square_off_all()Your Strategy
Ashlar API
NSE · BSE · MCX
Strategies Traders Automate
If you can define it as a rule, you can automate it.
Options Straddles & Strangles
Auto-enter at a set time, trail stop-losses leg by leg.
Breakout & Momentum
Fire orders the moment price clears your level.
Moving Average Crossover
Trend-following entries and exits without watching charts.
Hedged Spreads
Place multi-leg spreads together to control margin and risk.
Time-Based Square-Off
Close every open position at your cut-off, every day.
Commodity Trend Systems
Run your rules on MCX crude, gold and silver futures.
Why Traders Choose Ashlar's API
Run Strategies Hands-Free
Millisecond Order Execution
Backtest Before You Risk Capital
Built-in Risk Controls
Ready to automate your strategy?
Open your Ashlar demat account online in a few minutes.
Open Your Free Demat AccountEverything You Need to Go Live
REST & WebSocket APIs
Place, modify and cancel orders, track positions and stream live tick-by-tick prices, all from your own code.
Historical Data for Backtesting
Test your rules on past OHLC and tick data, tune parameters, and go live only when the numbers hold up.
Risk Limits That Run for You
Set max loss, position size, order frequency and auto square-off so a bad day stays a small one.
SDKs in Your Language
Official SDKs for Python, Java, Node.js and C#, with docs and ready-to-run code samples.
Built for Serious Traders
NSE, BSE, MCX
One API, all segments
Low Latency
Millisecond execution
99.9% Uptime
Reliable connectivity
Dedicated Support
Help with integration
From Sign-Up to Live Trading in 4 Steps
Paperless KYC with Aadhaar & DigiLocker. No branch visit, no courier.
Open your demat account online
Get your API keys
Connect your code and test it
Go live with your strategy
Also Get Ashlar Alpha
Watch your automated positions from your phone, wherever you are.
Frequently Asked Questions
API access is free for all active Ashlar trading account holders. There are no extra charges for API access, live data feeds or order placement. Only standard brokerage applies on executed trades, as per your plan. Ask our team about brokerage plans for active algo traders.
Basic knowledge of Python, Java, Node.js or any language that can call a REST API is enough. Our SDKs, code samples and documentation cover the common tasks, and our support team helps you through the integration.
NSE (Equity and F&O), BSE (Equity) and MCX (Commodities). You can trade equities, futures, options, commodities and currency derivatives, with live market data, order placement and position tracking for every supported instrument.
Yes. You get historical market data to test your strategy on past market conditions, check performance, tune parameters and validate your logic before you put real capital behind it.
Yes. SEBI permits retail investors to trade algorithmically through their broker's API under its retail algo framework. Orders placed through the API are routed and tagged as required by the exchanges, and API access is secured with measures like static IP whitelisting and two-factor authentication. Our team will guide you through the requirements during onboarding.
API key authentication, IP whitelisting, encrypted (TLS/SSL) connections, two-factor authentication and real-time risk checks. You stay in control and can revoke your API keys from your dashboard at any time.
Once your demat account is open, our team helps you get your API credentials activated.
Still have questions?
Open your demat account online and get started today.
Open Your Free Demat Account
