Getting Started
Modern Algos is a platform built with an idea of seamless integration through Exchange approved REST APIs. The APIs are robust which execute and modify orders realtime, allow creating strategies, and much more. The endpoints accept JSON or form-encoded requests and the response returned is also of the JSON format.
Signup
Create an account to get started.
Signup -> ReSendOtp
Resend OTP during the signup process.
curl --request POST \
--url https://localhost:44338/forgotpwd \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Request Structure
{"loginid":"99XXXXXX99"}
Request Parameters
| Field |
Type |
Description |
| loginid |
string |
User's unique login identification number |
Response Structure
{"status":"SUCCESS","reason":"Verification Mail/OTP Send."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
SignUp
Register a new user account with required details.
curl --request POST \
--url https://localhost:44338/directcomplete \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Request Structure
{"emailid":"abc@gmail.com","name":"Kumar","mobile":"99XXXXXX99","otp":"111111","password":"Direct@1234","passwordencrypt":"asdfasfasdfasdfasdfasdf"}
Request Parameters
| Field |
Type |
Description |
| emailid |
string |
User's email address |
| name |
string |
Full name of the user |
| mobile |
string |
User's mobile number |
| otp |
string |
One-time password sent to the user |
| password |
string |
User's plain text password |
| passwordencrypt |
string |
Encrypted version of the user's password |
Response Structure
{"status":"FAILURE","reason":"Verification Code Not Matched"}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Login
A secure page where users enter credentials to access their account.
Login
Authenticate the user with credentials to access the account.
curl --request POST \
--url https://localhost:44338/directregister \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Request Structure
{"mobileno":"99XXXXXX99","utmsource":"","utmmedium":"","utmcampagin":""}
Request Parameters
| Field |
Type |
Description |
| mobileno |
string |
User's mobile number |
| utmsource |
string |
Source of the user traffic |
| utmmedium |
string |
Marketing medium used |
| utmcampagin |
string |
Marketing campaign identifier |
Response Structure
{"status":"FAILURE","reason":"Your Mobile No Already Exists, Please Enter Credentials in Direct Log In and Proceed.","ipvalues":0,"BrokerDetails":[{"SNo":4,"BrokerName":"Bigul","LoginLink":"https://modernalgos.com/bigulLoginTradeOTP.aspx","ImageLink":"https://modernalgos.com/App_Themes/images/Bigul_logo_smalll.svg","ImageLinkPNG":"https://modernalgos.com/App_Themes/images/png_logo/Bigul_logo_smalll.png","ShowTop":"True"}]}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Status of the service response |
| reason |
string |
Reason for the failure or success of the response |
| ipvalues |
int |
Indicator or flag value returned from the service |
| BrokerDetails.SNo |
int |
Serial number of the broker entry |
| BrokerDetails.BrokerName |
string |
Name of the broker |
| BrokerDetails.LoginLink |
string |
URL link for the broker login page |
| BrokerDetails.ImageLink |
string |
SVG image link for the broker's logo |
| BrokerDetails.ImageLinkPNG |
string |
PNG image link for the broker's logo |
| BrokerDetails.ShowTop |
string |
Flag indicating whether to show the broker at the top |
Profile Otp and ReSend Otp
Send or resend OTP for profile verification.
curl --request POST \
--url https://localhost:44338/algo360_sendotp \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"mobileno":"99XXXXXX99","clientcode":"-","emailid":"abc@gmail.com.com"}
Request Parameters
| Field |
Type |
Description |
| mobileno |
string |
User's mobile number |
| clientcode |
string |
Unique identifier for the client |
| emailid |
string |
User's email address |
Response Structure
{"status":"SUCCESS","reason":"OTP send to registered mobile number and email id."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Profile Otp -> Confirm
Validate the received OTP for profile confirmation.
curl --request POST \
--url https://localhost:44338/algo360_confirm_otp \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"mobileno":"99XXXXXX99","clientcode":"-","otp":"415159","name":"Kumar","emailid":"abc@gmail.com"}
Request Parameters
| Field |
Type |
Description |
| mobileno |
string |
User's mobile number |
| clientcode |
string |
Unique code representing the client |
| otp |
string |
One-time password sent to the user |
| name |
string |
Full name of the user |
| emailid |
string |
Email address of the user |
Response Structure
{"status":"SUCCESS","reason":"MobileNo Updated."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Profile Otp -> Confirm and Update
Confirm OTP and update user profile details.
curl --request POST \
--url https://localhost:44338/update_kyc_data \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"mobileno":"99XXXXXX99","name":"Kumar","emailid":"abc@gmail.com","otpvalue":"415159","category":"profile_kyc"}
Request Parameters
| Field |
Type |
Description |
| mobileno |
string |
Registered mobile number of the user |
| name |
string |
Full name of the user |
| emailid |
string |
Email address associated with the user |
| otpvalue |
string |
One-time password sent to the user |
| category |
string |
Service category related to the request |
Response Structure
{"status":"FAILURE","reason":"Authorization Not matching. Contact Support"}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
KYC Verification
Verify the provided security or activation key.
curl --request POST \
--url https://localhost:44338/kyc_checking \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"panno":"ASNPVXXXXX","dob":"XX-XX-1990"}
Request Parameters
| Field |
Type |
Description |
| panno |
string |
PAN number of the individual |
| dob |
string |
Date of birth in DD-MM-YYYY format |
Response Structure
{"status":"FAILURE","reason":"Authorization Not matching. Contact Support"}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Select Broker
Connect your broker account to Modern Algos and trade seamlessly. Choose from 25+ brokers to access powerful tools for investment and trading.
Broker's List
A Broker's List is a compiled directory of brokers or intermediaries involved in facilitating financial or commercial transactions.
curl --request POST \
--url https://localhost:44338/maloginurls \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Response Structure
[{"SNo":1,"BrokerName":"Fyers","LoginLink":"https://modernalgos.com/auth/fyers/login.aspx","ImageLink":"https://modernalgos.com/App_Themes/images/fyers-logo.svg","ImageLinkPNG":"https://modernalgos.com/App_Themes/images/png_logo/fyers_logo.png"}]
Response Parameters
| Field |
Type |
Description |
| SNo |
int |
Serial number representing the position or order of the broker |
| BrokerName |
string |
Name of the broker displayed to the user |
| LoginLink |
string |
URL used to redirect the user to the broker login page |
| ImageLink |
string |
SVG format logo link used for display on the platform |
| ImageLinkPNG |
string |
PNG format logo link used as a fallback or alternative image |
Updates
Get the latest updates from Modern Algos. Discover new features, improvements, and tools designed to enhance your trading experience.
Updates
Latest news or changes related to the platform or topic.
curl --request POST \
--url https://localhost:44338/maupdates_group \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Response Structure
{"Table_2024":[{"Sno":123,"Title":"Launch of 360algos: A Suite of Automated Bots","date":"2024-12-28","Content":"Introducing 360algos, a suite of Automated Bots now launched.","Status":"true","year":"2024"},{"Sno":122,"Title":"Enhanced User Experience with Updated UI Interface","date":"2024-09-29","Content":"\r\nThe new UI interface has been redesigned with a focus on enhancing user experience. With a more intuitive layout and streamlined features, it offers a smoother, more user-friendly navigation. The update ensures that users can easily access tools and functions, improving overall efficiency and satisfaction. Whether you're a first-time user or a seasoned one, the new design aims to make every interaction more seamless and enjoyable.","Status":"true","year":"2024"}]}
Response Parameters
| Field |
Type |
Description |
| Table_2024.Sno |
int |
Serial number assigned to each update item. |
| Table_2024.Title |
string |
Title or headline of the update. |
| Table_2024.date |
string |
Date when the update was released. |
| Table_2024.Content |
string |
Short description or details of the update. |
| Table_2024.Status |
boolean |
Indicates whether the update is currently active or not. |
| Table_2024.year |
string |
The calendar year associated with the update entry. |
Blogs
Stay informed with Modern Algos' blogs. Explore expert insights, trading tips, and market updates to enhance your investment decisions.
Blog
Articles and insights about industry trends, tips, and company stories.
curl --request POST \
--url https://localhost:44338/BlogData \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Request Structure
{"Limit":"16","Offset":"0","BlogType":"All"}
Request Parameters
| Field |
Type |
Description |
| Limit |
int |
Number of items to retrieve per request |
| Offset |
int |
Starting point in the data set from where records should be fetched |
| BlogType |
string |
Type of blog to filter the results |
Response Structure
{"Table":[{"imgurl":"blogs/assets/img/blog/Image33.png","imgurl_big":"blogs/assets/img/blog/Image33-big.png","imgurl_small":"blogs/assets/img/blog/Image33-small.png","heading_1":"Investing","heading_2":"Rebalancing Your Portfolio: How and When","content":"Your investment portfolio reflects your financial goals, risk tolerance, and investment horizon. But markets are dynamic. Over time, market movements can skew your asset allocation, exposing you to higher risk than you originally intended. That's where portfolio rebalancing comes into play - a disciplined way to realign your investments with your goals.","redirecturl":"blogs/blog/details.aspx?pg=rebalancing-your-portfolio-33.html","pagename":"rebalancing-your-portfolio-33.html","active":1,"exetype":"live","exetypelocaltesting":"testing"}]}
Response Parameters
| Field |
Type |
Description |
| Table.imgurl |
string |
Path to the default size image used in the blog preview |
| Table.imgurl_big |
string |
Path to the large size image used for detailed blog display |
| Table.imgurl_small |
string |
Path to the small size image used for thumbnails or compact views |
| Table.heading_1 |
string |
Main category or topic of the blog post |
| Table.heading_2 |
string |
Title or sub-heading of the blog article |
| Table.content |
string |
Short description or summary of the blog content |
| Table.redirecturl |
string |
URL to the detailed blog page |
| Table.pagename |
string |
Name of the page or slug used for routing to the blog post |
| Table.active |
int |
Indicates whether the blog post is active (1) or not (0) |
| Table.exetype |
string |
Execution type used to identify blog environment |
| Table.exetypelocaltesting |
string |
Local testing mode status of the blog execution |
Platform Videos
Explore Modern Algos with tutorial videos! Get step-by-step insights to maximize your trading experience, whether you're a beginner or expert.
Platform Videos
Visual guides and demos showcasing the company’s platform.
curl --request POST \
--url https://localhost:44338/matutorials \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Response Structure
{"Table":[{"SNo":1,"Title":"Introduction to ModernAlgos","LinkURL":"https://youtu.be/19lJqoff_Vc","ImageURL":"https://modernalgos.com/App_Themes/images/tb/Introduction-to-Modern-AlgosN.png","DemoInvester":"FALSE","Category":"Featured"}]}
Response Parameters
| Field |
Type |
Description |
| Table.SNo |
int |
Serial number of the table item |
| Table.Title |
string |
Title of the content or video |
| Table.LinkURL |
string |
URL to the content or video |
| Table.ImageURL |
string |
URL of the thumbnail or preview image |
| Table.DemoInvester |
boolean |
Indicates if the content is for demo investors |
| Table.Category |
string |
Category label of the content |
FAQ
Find answers to common questions about Modern Algos. Browse our FAQs and support resources to get help with account setup, trading features, and platform tools.
Faq
Common questions and answers to help users quickly find solutions.
curl --request POST \
--url https://localhost:44338/faq \
--header 'Content-Type: application/json' \
--header 'Source: SourceName'
Response Structure
{"Table":[{"Sno":15,"Question":"What is Modern Algos Platform?","date":"0000-00-00","Answer":"Modern Algos is an One Stop Automated Platform to meet all your Investing and Trading needs with Integration to Broker Platform for seamless execution.\r\n","Category":"Account","website":"MA","pagename":"asb","hint":"Modern Algos Platform"}]}
Response Parameters
| Field |
Type |
Description |
| Table.Sno |
int |
Serial number of the entry |
| Table.Question |
string |
The question or topic being addressed |
| Table.date |
string |
The date the entry was created or relevant (format: YYYY-MM-DD) |
| Table.Answer |
string |
The detailed response or explanation for the question |
| Table.Category |
string |
The classification or grouping of the question |
| Table.website |
string |
Short code or identifier for the source website |
| Table.pagename |
string |
Internal reference name for the page where the content appears |
| Table.hint |
string |
Brief keyword or phrase summarizing the topic |
Common Services
A set of frequently used features or tools available across the platform.
Expiry Date
The date on which a contract or option becomes invalid.
curl --request POST \
--url https://localhost:44338/retrieve_expdate \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","instrument":"CE"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
The trading symbol of the instrument |
| instrument |
string |
The type of financial instrument |
Response Structure
[{"ExpDate":"2025-07-17"},{"ExpDate":"2025-07-24"}]
Response Parameters
| Field |
Type |
Description |
| ExpDate |
string |
Expiry date in YYYY-MM-DD format |
Strike Price
The fixed price at which an option can be exercised.
curl --request POST \
--url https://localhost:44338/retrieve_strikes \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","instrument":"ce","expdate":"2025-07-17"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
The trading symbol of the instrument |
| instrument |
string |
The type of financial instrument |
| expdate |
string |
The expiry date of the instrument in YYYY-MM-DD format |
Response Structure
[{"StrikePrice":"19450.00","StrikeType":"ATM-114"},{"StrikePrice":"19500.00","StrikeType":"ATM-113"}]
Response Parameters
| Field |
Type |
Description |
| StrikePrice |
string |
Strike price of the option. |
| StrikeType |
string |
Type and identifier of the strike price. |
Get LTP
Fetches the latest traded price of a security.
curl --request POST \
--url https://localhost:44338/getlatestprice \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","expdate":"2025-07-17","strikeprice":"25150","instrument":"CE","buysell":"buy"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the name of the financial index or asset. |
| expdate |
string |
The expiry date of the option contract. |
| strikeprice |
string |
The strike price at which the option can be exercised. |
| instrument |
string |
Denotes the type of options contract. |
| buysell |
string |
Indicates the action of buying or selling the option. |
Response Structure
[{"Price":"135.1","Delta":"0.5361","Gamma":"0.0013","Theta":"-10.1108","Vega":"12.8245","IV":"9.46","OI":"2073300","OIChg":"2035200","FuturePrice":"25175.8","StrikeType":"ATM","LotSize":"75"}]
Response Parameters
| Field |
Type |
Description |
| Price |
string |
Current option price |
| Delta |
string |
Rate of change in option price relative to the underlying asset price |
| Gamma |
string |
Rate of change of delta with respect to the underlying asset price |
| Theta |
string |
Rate of time decay in the option's price |
| Vega |
string |
Rate of change in option price with respect to volatility |
| IV |
string |
Implied volatility percentage of the option |
| OI |
string |
Open interest indicating total outstanding contracts |
| OIChg |
string |
Change in open interest compared to the previous day |
| FuturePrice |
string |
Current price of the futures contract for the underlying asset |
| StrikeType |
string |
Indicates the relation of the strike to the current price |
| LotSize |
string |
Minimum quantity that can be traded in one lot |
Get FO Symbol List
Searches across all available instruments by symbol.
curl --request POST \
--url https://localhost:44338/retrieve_symbol \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"search":"TC"}
Request Parameters
| Field |
Type |
Description |
| search |
string |
Search keyword to filter results |
Response Structure
[{"Symbol":"IRCTC"},{"Symbol":"ITC"},{"Symbol":"TCS"}]
Response Parameters
| Field |
Type |
Description |
| Symbol |
string |
Represents the stock symbol name |
Get All Symbols List
Searches only Futures and Options instruments by symbol.
curl --request POST \
--url https://localhost:44338/Chart_symbolall \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"search":"AC"}
Request Parameters
| Field |
Type |
Description |
| search |
string |
Search keyword to filter results |
Response Structure
[{"symbol":"ACC","full_name":"NSE:ACC","description":"ACC LIMITED","exchange":"NSE","ticker":"ACC","TYPE":"stock","Token":22,"MAESymbol":"ACC","SymbolOnly":"ACC","insttype":"EQUITY"}]
Response Parameters
| Field |
Type |
Description |
| symbol |
string |
Unique trading symbol of the stock |
| full_name |
string |
Stock name with exchange prefix |
| description |
string |
Full name of the company |
| exchange |
string |
Stock exchange where it is listed |
| ticker |
string |
Ticker symbol used in trading |
| TYPE |
string |
Type of financial instrument |
| Token |
int |
Unique numeric identifier for the stock |
| MAESymbol |
string |
Symbol used in internal systems or APIs |
| SymbolOnly |
string |
Stock symbol without any prefix |
| insttype |
string |
Type of instrument like equity or derivative |
Get FullSymbol
To get the full symbol
curl --request POST \
--url https://localhost:44338/combinesymbol \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"TCS","expdate":"2025-07-31","instrument":"XX","strikeprice":"0"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the trading symbol of the security. |
| expdate |
string |
Represents the expiration date of the contract in YYYY-MM-DD format. |
| instrument |
string |
Specifies the type of financial instrument. |
| strikeprice |
string |
Indicates the strike price of the option contract. |
Response Structure
[{"SymbolFull":"TCS25JULFUT"}]
Response Parameters
| Field |
Type |
Description |
| SymbolFull |
string |
Get the FullSymbol |
Manual Order
An order placed manually by the user without automation.
curl --request POST \
--url https://localhost:44338/manual_buysellorder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"","disp_name":"NIFT_0909_124433","tabname":"shorttermpicks","ManualOrders":[{"exchange":"NSE","symbol":"PEL","qty":"82","price":"0","ordertype":"CNC","clientcode":"XT00150","token":"0","direction":"BUY","tgt":"0","sl":"0","ttgt":"0","tsl":"0"}],"paperTrading":"false"}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
Name of the trading strategy |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| tabname |
string |
Tab identifier used for strategy grouping |
| ManualOrders.exchange |
string |
Exchange where the order is placed |
| ManualOrders.symbol |
string |
Stock symbol of the order |
| ManualOrders.qty |
string |
Quantity of stocks to trade |
| ManualOrders.price |
string |
Order price |
| ManualOrders.ordertype |
string |
Type of order execution |
| ManualOrders.clientcode |
string |
Client code placing the order |
| ManualOrders.token |
string |
Token identifier for the stock |
| ManualOrders.direction |
string |
Trade direction |
| ManualOrders.tgt |
string |
Target price for the trade |
| ManualOrders.sl |
string |
Stop-loss price |
| ManualOrders.ttgt |
string |
Trailing target price |
| ManualOrders.tsl |
string |
Trailing stop-loss price |
| paperTrading |
string |
Indicates if paper trading is enabled |
Response Structure
{"status":"SUCCESS","reason":"Order Submitted to the Exchange. For details, please check the Order Book.","orderid":["0"]}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Home
Welcome to Modern Algos – your hub for automated trading. Explore powerful tools, ready-made strategies, and curated stock picks for smart investing.
Referral Count
Invite friends and earn rewards through our referral program.
curl --request POST \
--url https://localhost:44338/referral_count \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
{"ReferralCount":[{"referralid":"ABCDEF","referrals":6}]}
Response Parameters
| Field |
Type |
Description |
| referralid |
string |
The unique referralid. |
| referrals |
int |
To find out how many friends we have referred. |
Referral Detail
To whom we have been referred
curl --request POST \
--url https://localhost:44338/referral_details \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
{"ReferralDetails":[{"referee_mobile":"812*****97","referee_date":"2024-05-02"}]}
Response Parameters
| Field |
Type |
Description |
| referee_mobil |
string |
Referred Mobile Number |
| referee_date |
string |
Referred date. |
Market Indices
The list of Market Indices
curl --request POST \
--url https://localhost:44338/get_indexprices \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
{"IndexDetails":[{"symbol":"BANKNIFTY","close":56768.05,"pclose":56999.2,"percentchg":-0.41,"open":57050.4,"high":57193.25,"low":56764.1}]}
Response Parameters
| Field |
Type |
Description |
| IndexDetails.symbol |
string |
Index symbol name |
| IndexDetails.close |
double |
Last traded price at market close |
| IndexDetails.pclose |
double |
Previous day closing price |
| IndexDetails.percentchg |
double |
Percentage change from previous close |
| IndexDetails.open |
double |
Opening price of the index |
| IndexDetails.high |
double |
Highest price of the index during the session |
| IndexDetails.low |
double |
Lowest price of the index during the session |
Watchlist
A list of selected items, such as stocks or movies, that a person monitors for updates or changes.
curl --request POST \
--url https://localhost:44338/mkwatch_summary \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"LotSize":1,"Symbol":"BANKNIFTY","Open":57050.4,"High":57193.25,"Low":56764.1,"Close":56768.05,"PClose":56999.2,"Volume":0,"AvgPrice":0,"PriceChg":-0.41,"Token":0,"Exchange":"NSE","MAESymbol":"BANKNIFTY"}, ... ]
Response Parameters
| Field |
Type |
Description |
| LotSize |
int |
The lot size applicable for the symbol |
| Symbol |
string |
The trading symbol of the instrument |
| Open |
double |
The opening price of the instrument for the day |
| High |
double |
The highest traded price of the instrument for the day |
| Low |
double |
The lowest traded price of the instrument for the day |
| Close |
double |
The closing price of the instrument for the day |
| PClose |
double |
The previous day's closing price of the instrument |
| Volume |
int |
The total number of contracts traded for the day |
| AvgPrice |
double |
The average traded price of the instrument for the day |
| PriceChg |
double |
The percentage change in price compared to the previous close |
| Token |
int |
The unique token ID representing the instrument |
| Exchange |
string |
The exchange where the instrument is listed |
| MAESymbol |
string |
The mapped symbol for internal systems |
Profile
Manage your user profile with Modern Algos.
Profile Info
User's personal information
curl --request POST \
--url https://localhost:44338/profiledata \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
{"Profile":[{"Mobile":"99XXXXXX99","EmailID":"abc.XXXXX@gmail.com","ASPLID":"-","City":"-","PAN":"AXXXXXXXXM","Name":"XXXXX","StateName":"TS","subscriptionID":"","VendorName":"FYERS","Subscription_Basic":"True","Subscription_Advanced":"True","SubscriptionPopup":"","VendorCode":"XTXX150","ReferralID":"TXX169","tc_status":"hide","profilekyc_status":"hide","mitckyc_status":"hide","subscriptionkyc_status":"hide","kyc_value":2}],"WEB":[{"intraday picks":"ON","alerts":"ON","strategy picks":"ON"}],"SMS":[{"intraday picks":"ON","alerts":"ON","strategy picks":"ON"}],"Zerodha Settings":[],"Kotak Settings":[],"Subscription Details":[{"Subscription":"True","ExpiryDate":"2028-XX-XX","Period":"Advanced","PlanName":"Advanced","SubscriptionText":"Subscription"}],"EnableStatus":[{"InvesterEQ":"True","InvesterMF":"True","investerGoal":"True","TraderTA":"True","TraderAlerts":"True","TraderScanners":"True","TraderEasyOptions":"True","StrategiesQuant":"True","StrategiesBackTest":"True","CreateAlgo":"True","WeeklyPortfolio":"True","ActivePortfolio":"True","Strategy Picks":"True","Strategy Algorithms":"True","Option Chain":"True","Scanner Wizard":"True","Strategy Builder":"True","Option Chain Trade":"True","Scanner Wizard Trade":"True","Market Watch Trade":"True","Analysts Picks":"True"}],"LogoURL":[{"Logo":"https://modernalgos.com/App_Themes/images/logo.svg"}],"MVersion":[{"mversion":"https://modernalgos.com/App_Themes/images/logo.svg"}],"IPValue":[{"ipvalues":"999"}],"MobileNotifications":[{"IntradayPicks":"on","PositionalPicks":"off","GeneralPicks":"on","OrderPicks":"on","StrategyPicks":"off"}],"WebNotifications":[{"IntradayPicks":"off","PositionalPicks":"off","GeneralPicks":"off","OrderPicks":"off","StrategyPicks":"off"}]}
Response Parameters
| Field |
Type |
Description |
| Profile.Mobile |
string |
User's registered mobile number |
| Profile.EmailID |
string |
User's email address |
| Profile.ASPLID |
string |
Associated ASPL ID for partner integration |
| Profile.City |
string |
User's city name |
| Profile.PAN |
string |
User's PAN number |
| Profile.Name |
string |
User's full name |
| Profile.StateName |
string |
User's state name |
| Profile.subscriptionID |
string |
User's active subscription ID |
| Profile.VendorName |
string |
Name of the associated broker/vendor |
| Profile.Subscription_Basic |
string |
Basic subscription status |
| Profile.Subscription_Advanced |
string |
Advanced subscription status |
| Profile.SubscriptionPopup |
string |
Popup display status for subscription offers |
| Profile.VendorCode |
string |
Broker/vendor code identifier |
| Profile.ReferralID |
string |
User's referral code |
| Profile.tc_status |
string |
Status of terms and conditions acceptance |
| Profile.profilekyc_status |
string |
KYC verification status for profile |
| Profile.mitckyc_status |
string |
KYC verification status for MITC |
| Profile.subscriptionkyc_status |
string |
KYC verification status for subscription |
| Profile.kyc_value |
int |
Numeric KYC verification level |
| WEB.intraday picks |
string |
Status of intraday picks on web |
| WEB.alerts |
string |
Status of alerts on web |
| WEB.strategy picks |
string |
Status of strategy picks on web |
| SMS.intraday picks |
string |
Status of intraday picks on SMS |
| SMS.alerts |
string |
Status of alerts on SMS |
| SMS.strategy picks |
string |
Status of strategy picks on SMS |
| Subscription Details.Subscription |
string |
Subscription status |
| Subscription Details.ExpiryDate |
string |
Subscription expiration date |
| Subscription Details.Period |
string |
Subscription plan period |
| Subscription Details.PlanName |
string |
Subscription plan name |
| Subscription Details.SubscriptionText |
string |
Text indicating subscription status |
| EnableStatus.InvesterEQ |
string |
Enable status for Equity investor module |
| EnableStatus.InvesterMF |
string |
Enable status for Mutual Funds module |
| EnableStatus.investerGoal |
string |
Enable status for Goal-based investing |
| EnableStatus.TraderTA |
string |
Enable status for Technical Analysis module |
| EnableStatus.TraderAlerts |
string |
Enable status for trading alerts |
| EnableStatus.TraderScanners |
string |
Enable status for trading scanners |
| EnableStatus.TraderEasyOptions |
string |
Enable status for Easy Options trading |
| EnableStatus.StrategiesQuant |
string |
Enable status for Quantitative strategies |
| EnableStatus.StrategiesBackTest |
string |
Enable status for strategy backtesting |
| EnableStatus.CreateAlgo |
string |
Enable status for Algo creation |
| EnableStatus.WeeklyPortfolio |
string |
Enable status for weekly portfolio review |
| EnableStatus.ActivePortfolio |
string |
Enable status for active portfolio tracking |
| EnableStatus.Strategy Picks |
string |
Enable status for strategy picks |
| EnableStatus.Strategy Algorithms |
string |
Enable status for strategy algorithms |
| EnableStatus.Option Chain |
string |
Enable status for options chain |
| EnableStatus.Scanner Wizard |
string |
Enable status for scanner wizard |
| EnableStatus.Strategy Builder |
string |
Enable status for building strategies |
| EnableStatus.Option Chain Trade |
string |
Enable status for trading through option chain |
| EnableStatus.Scanner Wizard Trade |
string |
Enable status for trading through scanner wizard |
| EnableStatus.Market Watch Trade |
string |
Enable status for market watch trading |
| EnableStatus.Analysts Picks |
string |
Enable status for analyst recommended picks |
| LogoURL.Logo |
string |
URL of the company logo |
| MVersion.mversion |
string |
URL for mobile version resources |
| IPValue.ipvalues |
string |
User's IP related value or identifier |
| MobileNotifications.IntradayPicks |
string |
Status of intraday picks notifications on mobile |
| MobileNotifications.PositionalPicks |
string |
Status of positional picks notifications on mobile |
| MobileNotifications.GeneralPicks |
string |
Status of general picks notifications on mobile |
| MobileNotifications.OrderPicks |
string |
Status of order notifications on mobile |
| MobileNotifications.StrategyPicks |
string |
Status of strategy picks notifications on mobile |
| WebNotifications.IntradayPicks |
string |
Status of intraday picks notifications on web |
| WebNotifications.PositionalPicks |
string |
Status of positional picks notifications on web |
| WebNotifications.GeneralPicks |
string |
Status of general picks notifications on web |
| WebNotifications.OrderPicks |
string |
Status of order notifications on web |
| WebNotifications.StrategyPicks |
string |
Status of strategy picks notifications on web |
Update User Information
Update user profile details such as mobile number and email address.
curl --request POST \
--url https://localhost:44338/update_emailid_request \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"emailid":"abc@gmailcom","name":"XXXX","mobileno":"99XXXXXX99"}
Request Parameters
| Field |
Type |
Description |
| emailid |
string |
User's email address |
| name |
string |
User's full name |
| mobileno |
string |
User's mobile phone number |
Response Structure
{
"status": "SUCCESS",
"reason": "OTP Sent Successfully to Email ID."
}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Confirm OTP
To Confirm the OTP
curl --request POST \
--url https://localhost:44338/update_emailid_confirm \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"emailid":"abc@gmail.com","name":"XXXX","otpvalue":"123456","mobileno":"99XXXXXX99"}
Request Parameters
| Field |
Type |
Description |
| emailid |
string |
Email address of the user |
| name |
string |
Full name of the user |
| otpvalue |
string |
One-time password value sent to the user |
| mobileno |
string |
Mobile phone number of the user |
Response Structure
{
"status": "FAILURE",
"reason": "OTP is not Matching"
}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Auto Renew Cancel
To Cancel the Auto Renewal (Subscription)
curl --request POST \
--url https://localhost:44338/payment_sub_cancel \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"subscripid":"sub_PhmBjhZHA4bAEV"}
Request Parameters
| Field |
Type |
Description |
| subscripid |
string |
Subscription id of the user |
Response Structure
{
"status": "SUCCESS",
"reason": "Updated Successfully"
}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
LogOut
To Track the user logout confirmation
curl --request POST \
--url https://localhost:44338/logout \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName' \
--header 'Website: V3'
Response Structure
{"status":"SUCCESS","reason":""}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Subscription
Level up your trading with Modern Algos. Explore our plans for unlimited access to advanced tools, real-time insights, and tailored strategies.
Select Plan
To activate the subscription plan using monthly, quarterly, or annual options.
curl --request POST \
--url https://localhost:44338/chkscoupon \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"category":"normal","planname":"Advanced","period":"Monthly","couponid":""}
{"category":"normal","planname":"Advanced","period":"Quarterly","couponid":""}
{"category":"normal","planname":"Advanced","period":"Annual","couponid":"XXXXX"}
Request Parameters
| Field |
Type |
Description |
| category |
string |
The type of service category. |
| planname |
string |
The name of the selected plan. |
| period |
string |
The billing cycle period for the plan. |
| couponid |
string |
The identifier for an applied discount coupon. The "couponid" is optional to pass |
Response Structure
{"status":"FAILURE","reason":"Coupon DoesNot Exist","total":"999.00","gst":"179.82","discount":"0.00","grandtotal":"1178.82","couponid":""}
{"status":"FAILURE","reason":"Coupon DoesNot Exist","total":"2699.00","gst":"485.82","discount":"0.00","grandtotal":"3184.82","couponid":""}
{"status":"FAILURE","reason":"Coupon DoesNot Exist","total":"9999.00","gst":"1799.82","discount":"0.00","grandtotal":"11798.82","couponid":""}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
| total |
string |
Total amount before tax and discount |
| gst |
string |
GST amount applied to the total |
| discount |
string |
Discount amount applied |
| grandtotal |
string |
Final payable amount including tax and discount |
| couponid |
string |
Identifier of the applied coupon |
Fetch OrderID
Continue your subscription to maintain uninterrupted access.
curl --request POST \
--url https://localhost:44338/getpayment_orderid_global \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"autorenewal":"true","category":"normal","planname":"Advanced","period":"Monthly","grandtotal":"1178.82","subtotal":"999.00","discountcoupon":"","discountvalue":"","utmsource":"","utmmedium":"","utmcampagin":""}
{"autorenewal":"false","category":"normal","planname":"Advanced","period":"Quarterly","grandtotal":"3184.82","subtotal":"2699.00","discountcoupon":"","discountvalue":"","utmsource":"","utmmedium":"","utmcampagin":""}
{"autorenewal":"false","category":"normal","planname":"Advanced","period":"Annual","grandtotal":"11798.82","subtotal":"9999.00","discountcoupon":"","discountvalue":"","utmsource":"","utmmedium":"","utmcampagin":""}
Request Parameters
| Field |
Type |
Description |
| autorenewal |
string |
Specifies whether the service is set to renew automatically (true/false). |
| category |
string |
Defines the type of service category. |
| planname |
string |
Specifies the name of the subscribed plan. |
| period |
string |
Indicates the billing cycle duration (e.g., Monthly, Annual). |
| grandtotal |
string |
Total cost after all taxes and charges are applied. |
| subtotal |
string |
Base price of the plan before taxes or discounts. |
| discountcoupon |
string |
Applied coupon code for discount, if any. |
| discountvalue |
string |
Discount amount applied to the subtotal. |
| utmsource |
string |
Source of the traffic (e.g., google, newsletter) for tracking purposes. |
| utmmedium |
string |
Medium of the traffic source such as email, CPC, social, etc. |
| utmcampagin |
string |
Name of the marketing campaign for tracking conversions. |
Response Structure
[{"status":"SUCCESS","order_id":"order_Qw6dW5678mT2u3","plan_id":"plan_Kics678fwiXmSd","subscription_id":"sub_Qw6dXyhdx3KQMX3","category":"normal","plan_model_name":"","period":"","name":"XXXXX","emailid":"abc@gmail.com","mobile":"99XXXXXX99","amount":null,"reason":""}]
Response Parameters
| Field |
Type |
Description |
| status |
string |
Current state of the service response |
| order_id |
string |
Unique identifier for the order |
| plan_id |
string |
Unique identifier of the subscribed plan |
| subscription_id |
string |
Unique identifier for the subscription instance |
| category |
string |
Type of plan subscribed |
| plan_model_name |
string |
Name or model of the subscription plan |
| period |
string |
Duration of the subscription plan |
| name |
string |
Name of the subscriber |
| emailid |
string |
Email address of the subscriber |
| mobile |
string |
Mobile number of the subscriber |
| amount |
double |
Subscription amount charged |
| reason |
string |
Reason for failure or message (if any) |
Cancel Subscription
Allows the user to cancel their subscription.
curl --request POST \
--url https://localhost:44338/updatepayment_orderid_global \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"category":"normal","orderid":"order_QqAzdYXjVckEje","status":"cancelled"}
Request Parameters
| Field |
Type |
Description |
| category |
string |
Represents the type or classification of the order. |
| orderid |
string |
Unique identifier for the order. |
| status |
string |
Indicates the current state of the order. |
Response Structure
{"status":"SUCCESS","reason":""}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Equity Dashboard
Track and manage your equity portfolio with live baskets. Monitor real-time performance and make informed investment decisions easily.
Basket
A collection of selected stocks grouped together for investment.
curl --request POST \
--url https://localhost:44338/eqbasket_dropdowns1 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"baskettype":"live"}
{"baskettype":"exited"}
Request Parameters
| Field |
Type |
Description |
| baskettype |
string |
Specifies the type of basket. |
Response Structure 1
[{"Basketname":"All","BasketDate":"2021-10-07 00:00:00","CreationDate":"2021-10-07","RebalanceDate":"0000-00-00","Bookeddate":"0000-00-00","RebalanceTerm":"-","MinInvest":0,"imageurls":"https://modernalgos.com/App_Themes/images/equity/v3web/mix_basket_icon.svg","tradedqty":0.0}...]
Response Structure 2
[{"Basketname":"MAE Bluechip Basket","BasketDate":"2024-09-26 11:26:48","CreationDate":"2024-09-26","RebalanceDate":"2024-12-25","Bookeddate":"2025-01-12","imageurls":"https://modernalgos.com/App_Themes/images/equity/v3web/bluechip_basket_icon.svg"}...]
Response Parameters 1
| Field |
Type |
Description |
| Basketname |
string |
Name of the basket |
| BasketDate |
string |
Date when the basket was created or last updated |
| CreationDate |
string |
Date when the basket was initially created |
| RebalanceDate |
string |
Date when the basket was last rebalanced |
| Bookeddate |
string |
Date when the basket was booked |
| RebalanceTerm |
string |
Term or frequency of basket rebalancing |
| MinInvest |
double |
Minimum investment amount required for the basket |
| imageurls |
string |
URL of the basket image |
| tradedqty |
double |
Total quantity traded in the basket |
Response Parameters 2
| Field |
Type |
Description |
| Basketname |
string |
Name of the basket |
| BasketDate |
string |
Date and time when the basket was last updated |
| CreationDate |
string |
Date when the basket was created |
| RebalanceDate |
string |
Date when the basket is scheduled for rebalancing |
| Bookeddate |
string |
Date when the basket was booked |
| imageurls |
string |
URL of the image representing the basket |
Basket Performance
Summary of the basket’s current value, daily gain/loss, and other key performance metrics.
curl --request POST \
--url https://localhost:44338/eqbaskets_dbperform_topboxes \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"ALGO Basket 1Y-2Y","basketdate":"2024-06-13 14:41:19","baskettype":"live"}
{"basketname":"MAE Bluechip Basket","basketdate":"2024-09-26 11:26:48","baskettype":"exited"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the basket |
| basketdate |
string |
Date and time when the basket was created |
| baskettype |
string |
Type of the basket |
Response Structure
{"investment":"0.00","currentvalue":"0.00","day_gainloss_amount":"0","day_gainloss_percent":"0","overall_gainloss_amount":"0.00","overall_gainloss_percent":"0.00","benchmark":"-","maertn":"0.00","residual":"0.00","dividend":"0.00","minivest":"1007816.00","imageurl":"https://modernalgos.com/App_Themes/images/equity/v3web/mix_basket_icon.svg","exit_value":"0.00","exit_date":"0000-00-00","amount_invested_r":"53244.00","net_investment":"53244.00","initial_investment":"53244.00","realised_profit":"53244.00"}
{"investment":"53244.00","currentvalue":"56659.96","day_gainloss_amount":"-30.70","day_gainloss_percent":"-0.06","overall_gainloss_amount":"3487.71","overall_gainloss_percent":"6.55","benchmark":"-","maertn":"0.00","residual":"0.00","dividend":"71.75","minivest":"0.00","imageurl":"https://modernalgos.com/App_Themes/images/equity/v3web/wealth_Generator_icon.svg","exit_value":"0.00","exit_date":"0000-00-00","amount_invested_r":"53244.00","net_investment":"53244.00","initial_investment":"53244.00","realised_profit":"53244.00"}
Response Parameters
| Field |
Type |
Description |
| investment |
string |
The total amount invested. |
| currentvalue |
string |
The current market value of the investment. |
| day_gainloss_amount |
string |
The profit or loss amount for the day. |
| day_gainloss_percent |
string |
The profit or loss percentage for the day. |
| overall_gainloss_amount |
string |
The total profit or loss amount since the investment. |
| overall_gainloss_percent |
string |
The total profit or loss percentage since the investment. |
| benchmark |
string |
The benchmark comparison value. |
| maertn |
string |
The margin available for the basket. |
| residual |
string |
The remaining balance or unutilized margin. |
| dividend |
string |
The total dividend earned. |
| minivest |
string |
The minimum amount required for reinvestment. |
| imageurl |
string |
The URL of the image representing the basket. |
| exit_value |
string |
The total value if the basket is exited. |
| exit_date |
string |
The date when the basket is exited. |
| amount_invested_r |
string |
Reinvested amount |
| net_investment |
string |
Net total investment |
| initial_investment |
string |
Initial investment amount |
| realised_profit |
string |
Realised profit value |
Add Investment
Option to add additional funds to the selected basket.
curl --request POST \
--url https://localhost:44338/vendor_confirm_add \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"uid":762,"basketname":"ALGO Basket 1Y-2Y","basketdate":"2024-06-13 14:41:19","amount":1007816.00}
Request Parameters
| Field |
Type |
Description |
| uid |
integer |
Unique identifier of the basket. |
| basketname |
string |
Name of the investment basket. |
| basketdate |
datetime |
Date and time when the basket was created. |
| amount |
double |
Total value of the basket. |
Response Structure
{"Basic":[{"Error":"-","PortfolioID":"76220250708135917VXL5G","UID":"762","Reason":"SUCCESS. Confirm portfolio with OTP"}],"Stocks": [{"SNo":"1","Symbol":"AUROPHARMA","Shares":"16","Price":"1185.1","Invest":"18961.6"}...],"Summary":[{"Buy Value":"897714.21","Sell Value":"0","Residual Value":"0"}]}
Response Parameters
| Field |
Type |
Description |
| Basic.Error |
string |
Represents the error message if any occurred during portfolio confirmation. |
| Basic.PortfolioID |
string |
Unique identifier of the portfolio. |
| Basic.UID |
string |
User ID associated with the portfolio. |
| Basic.Reason |
string |
Describes the status or reason of the portfolio confirmation. |
| Stocks.SNo |
string |
Serial number of the stock entry. |
| Stocks.Symbol |
string |
Symbol name of the stock. |
| Stocks.Shares |
string |
Number of shares held for the stock. |
| Stocks.Price |
string |
Current price of a single share of the stock. |
| Stocks.Invest |
string |
Total invested value for the stock. |
| Summary.Buy Value |
string |
Total buy value of the portfolio. |
| Summary.Sell Value |
string |
Total sell value of the portfolio. |
| Summary.Residual Value |
string |
Remaining or unallocated value in the portfolio. |
Add Investment Confirm
Final confirmation step to add funds to the basket.
curl --request POST \
--url https://localhost:44338/vendor_confirm_add \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"portfolioid":"762202507008135917VXL5G"}
Request Parameters
| Field |
Type |
Description |
| PortfolioID |
string |
Unique identifier of the portfolio. |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Exit Basket Complete
Fully exit from all stocks in the basket.
curl --request POST \
--url https://localhost:44338/vendor_confirm_close \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"uid":762,"basketname":"ALGO Basket 1Y-2Y","basketdate":"2024-06-13 14:41:19"}
Request Parameters
| Field |
Type |
Description |
| uid |
int |
Unique identifier for the basket. |
| basketname |
string |
Name of the basket. |
| basketdate |
string |
Date and time when the basket was created. |
Response Structure
{"Basic":[{"Error":"-","PortfolioID":"3181920250708144723DBIYW","OTP":"0","UID":"31819","Reason":"SUCCESS. Confirm portfolio with OTP"}],"Stocks": [{"SNo":"1","Symbol":"INDIANB","Shares":"3"}...]}
Response Parameters
| Field |
Type |
Description |
| Basic.Error |
string |
Specifies the error message, if any |
| Basic.PortfolioID |
string |
Represents the unique portfolio identifier |
| Basic.OTP |
string |
Indicates the one-time password value used for confirmation |
| Basic.UID |
string |
Identifies the user associated with the portfolio |
| Basic.Reason |
string |
Provides the status message or reason for the confirmation |
| Stocks.SNo |
string |
Indicates the serial number of the stock entry |
| Stocks.Symbol |
string |
Specifies the stock symbol |
| Stocks.Shares |
string |
Represents the number of shares held |
Exit Basket Partial
Exit from selected stocks in the basket.
curl --request POST \
--url https://localhost:44338/vendor_confirm_partial \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"uid":762,"basketname":"ALGO Basket 1Y-2Y","basketdate":"2024-06-13 14:41:19","amount":5000}
Request Parameters
| Field |
Type |
Description |
| uid |
int |
Unique identifier for the basket. |
| basketname |
string |
Name of the basket. |
| basketdate |
string |
Date and time when the basket was created. |
| amount |
number |
Total investment amount |
Response Structure
{"Basic":[{"Error":"-","PortfolioID":"3181920250708145639SWUUL","UID":"31819","Reason":"SUCCESS. Confirm portfolio with OTP"}],"Stocks": [{"SNo":"1","Symbol":"AUROPHARMA","Shares":"1","Price":"1145.4","Invest":"1145.4"}...],"Sell Amount": [{"Value":"4755.02"}]}
Response Parameters
| Field |
Type |
Description |
| Basic.Error |
string |
Error message of the basic portfolio response |
| Basic.PortfolioID |
string |
Unique identifier of the portfolio |
| Basic.UID |
string |
User identification number for the portfolio |
| Basic.Reason |
string |
Confirmation status or response reason for the portfolio |
| Stocks.SNo |
string |
Serial number of the stock in the list |
| Stocks.Symbol |
string |
Stock symbol or ticker name |
| Stocks.Shares |
string |
Number of shares held or transacted |
| Stocks.Price |
string |
Current or transaction price of the stock |
| Stocks.Invest |
string |
Total investment value in the stock |
| Sell Amount.Value |
string |
Total amount received from selling stocks |
Exit Basket Confirmation
Confirm complete exit from the basket and Submit selected stocks for partial exit.
curl --request POST \
--url https://localhost:44338/eqbasket_execute2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"portfolioid":"73181920250708145315MCJD1G"}
Request Parameters
| Field |
Type |
Description |
| PortfolioID |
string |
Unique identifier of the portfolio. |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Force Closure
Forces the immediate closure and settlement of a specific position.
curl --request POST \
--url https://localhost:44338/eqbasket_forceclosure \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"Mix Basket 1Y-2Y","basketdate":"2025-09-18 13:49:12"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the basket. |
| basketdate |
string |
Date of the basket |
Response Structure
{"stk_Details":[{"sno":1,"symbol":"BLUEJET","qty":4,"price":911.25,"investment":3645.0}],"portfolioid":"762202507101438030NLI0","basektname":"Sharia Basket","basketdatetime":"2025-07-10 14:38:03","buyvalue":33616.7,"buyvaluetemp":0.0,"sellvalue":0.0,"residualvalue":0.0,"rebalanceterm":"","status":"success","reason":null}
Response Parameters
| Field |
Type |
Description |
| stk_Details.sno |
int |
Serial number of the stock item |
| stk_Details.symbol |
string |
Stock symbol name |
| stk_Details.qty |
int |
Quantity of the stock |
| stk_Details.price |
double |
Price per stock unit |
| stk_Details.investment |
double |
Total investment in the stock |
| portfolioid |
string |
Unique identifier of the portfolio |
| basektname |
string |
Name of the investment basket |
| basketdatetime |
string |
Date and time of basket creation |
| buyvalue |
double |
Total buy value of the basket |
| buyvaluetemp |
double |
Temporary buy value placeholder |
| sellvalue |
double |
Total sell value of the basket |
| residualvalue |
double |
Remaining residual value of the basket |
| rebalanceterm |
string |
Term or period for portfolio rebalance |
| status |
string |
Status of the service response |
| reason |
string/null |
Reason for failure if the status is not success |
Confrim Force Closure
Confirm the selected basket(s) for final processing or execution.
curl --request POST \
--url https://localhost:44338/eqbasket_execute2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"portfolioid":"7622025071014788383UrUT"}
Request Parameters
| Field |
Type |
Description |
| portfolioid |
string |
Unique identifier of the portfolio. |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Rebalance -> Sell
Adjust your portfolio by selling specific stocks
curl --request POST \
--url https://localhost:44338/rebalance_sell1 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"MAE Equity Systematic Investment Plan","basketdate":"2023-11-10 14:53:22"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket |
| basketdate |
string |
Date and time when the basket was created |
Response Structure
{"stk_Details":[],"portfolioid":"3181920250708150337TVB5V","basektname":"MAE Equity Systematic Investment Plan","basketdatetime":"2023-11-10 14:53:22","buyvalue":0.0,"sellvalue":14285.28,"residualvalue":0.0,"rebalanceterm":"","status":"rebalncing_sell","reason":""}
Response Parameters
| Field |
Type |
Description |
| portfolioid |
string |
Unique identifier for the portfolio |
| basektname |
string |
Name of the investment basket |
| basketdatetime |
string |
Date and time when the basket was created |
| buyvalue |
double |
Total value of stocks to buy |
| sellvalue |
double |
Total value of stocks to sell |
| residualvalue |
double |
Remaining value after buy/sell operations |
| rebalanceterm |
string |
Term defining the rebalancing period or criteria |
| status |
string |
Current status of the basket processing |
| reason |
string |
Description of why the current status was set |
Rebalance --> Sell --> Confirm
Confirm the sale of selected stocks during rebalance.
curl --request POST \
--url https://localhost:44338/rebalance_sell2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"ALGO Basket 6M-1Y","basketdate":"2024-06-12 12:47:50","portfolioid":"76220250708152218LVQ8H"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket |
| basketdate |
string |
Date and time when the basket was created |
| portfolioid |
string |
Unique identifier for the portfolio |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Rebalance-Buy -> Buy
Rebalance by buying and selling stocks as per strategy.
curl --request POST \
--url https://localhost:44338/rebalance_buy1 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"MAE Equity Systematic Investment Plan","basketdate":"2023-11-10 14:53:22"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket |
| basketdate |
string |
Date and time when the basket was created |
Response Structure
{"stk_Details":[],"portfolioid":"3181920250708150337TVB5V","basektname":"MAE Equity Systematic Investment Plan","basketdatetime":"2023-11-10 14:53:22","buyvalue":14285.28,"sellvalue":0.0,"residualvalue":0.0,"rebalanceterm":"","status":"rebalance_buy1","reason":""}
Response Parameters
| Field |
Type |
Description |
| portfolioid |
string |
Unique identifier for the portfolio |
| basektname |
string |
Name of the basket plan |
| basketdatetime |
string |
Date and time when the basket was created |
| buyvalue |
double |
Total buy value of the basket |
| sellvalue |
double |
Total sell value of the basket |
| residualvalue |
double |
Remaining value after transactions |
| rebalanceterm |
string |
Term or type of rebalancing applied |
| status |
string |
Current status of the basket |
| reason |
string |
Description of the reason for the current status |
Rebalance-Buy --> Buy --> Confirm
Confirm the buy/sell actions during rebalance.
curl --request POST \
--url https://localhost:44338/rebalance_buy2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"ALGO Basket 6M-1Y","basketdate":"2024-06-12 12:47:50","portfolioid":"76220250708152218LVQ8H"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket |
| basketdate |
string |
Date and time when the basket was created |
| portfolioid |
string |
Unique identifier for the portfolio |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
ReInvestment -> Submit
Submit the reinvestment of dividends or proceeds.
curl --request POST \
--url https://localhost:44338/vendor_confirm_add_residual \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"uid":762,"basketname":"Conveying Drive Basket","basketdate":"2024-06-13 14:41:19","amount":0.00}
Request Parameters
| Field |
Type |
Description |
| uid |
integer |
Unique identifier of the basket. |
| basketname |
string |
Name of the investment basket. |
| basketdate |
datetime |
Date and time when the basket was created. |
| amount |
double |
Total value of the basket. |
Response Structure
{"Basic":[{"Error":"-","PortfolioID":"76220250708153330PEIOK","UID":"762","Reason":"SUCCESS. Confirm portfolio with OTP"}],"Stocks": [{"SNo":"1","Symbol":"AUROPHARMA","Shares":"16","Price":"1185.1","Invest":"18961.6"}...],"Summary":[{"Buy Value":"0","Sell Value":"0","Residual Value":"0"}]}
Response Parameters
| Field |
Type |
Description |
| Basic.Error |
string |
Error message or "-" indicating no error |
| Basic.PortfolioID |
string |
Unique identifier for the portfolio |
| Basic.UID |
string |
User identifier associated with the portfolio |
| Basic.Reason |
string |
Status description of the portfolio confirmation |
| Stocks.SNo |
string |
Serial number of the stock record |
| Stocks.Symbol |
string |
Stock symbol |
| Stocks.Shares |
string |
Number of shares held |
| Stocks.Price |
string |
Price per share |
| Stocks.Invest |
string |
Total investment value for the stock |
| Summary.Buy Value |
string |
Total value of buy transactions |
| Summary.Sell Value |
string |
Total value of sell transactions |
| Summary.Residual Value |
string |
Remaining value after buy and sell transactions |
ReInvestment -> Submit --> Confirm
Confirm and complete the reinvestment process.
curl --request POST \
--url https://localhost:44338/eqbasket_execute2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"portfolioid":"762202507008135917VXL5G"}
Request Parameters
| Field |
Type |
Description |
| portfolioid |
string |
Unique identifier for the portfolio |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Amount Invested
Total capital invested in the basket.
curl --request POST \
--url https://localhost:44338/eqbaskets_investmentdetails \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"MAE Bluechip Basket","basketdate":"2024-09-26 11:26:48"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket. |
| basketdate |
datetime |
Date and time when the basket was created. |
Response Structure
[{"InvestmentDate":"2024-09-26","InvestmentAmount":18574.00}...]
Response Parameters
| Field |
Type |
Description |
| InvestmentDate |
string |
The date when the investment was made |
| InvestmentAmount |
double |
The amount invested on the investment date |
Residual Value
The estimated value of an asset at the end of a lease or loan term.
curl --request POST \
--url https://localhost:44338/eqbaskets_additional_details \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"ALGO Basket 6M-1Y","basketdate":"2024-06-12 12:47:50"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the basket |
| basketdate |
string |
Date and time when the basket was created |
Response Structure
[{"activity_date":"2025-08-14","Activity":"rebalance","Amount":-5200.0}]
Response Parameters
| Field |
Type |
Description |
| activity_date |
string |
The date of the activity in YYYY-MM-DD format |
| Activity |
string |
The type of activity performed |
| Amount |
double |
The amount associated with the activity |
Dividend Declared
Total dividends announced for the basket stocks.
curl --request POST \
--url https://localhost:44338/eqbaskets_dbdividenddetails \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"ALGO Basket 6M-1Y","basketdate":"2024-06-12 12:47:50"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket. |
| basketdate |
datetime |
Date and time when the basket was created. |
Response Structure
{"DividentDetails":[{"Symbol":"PNB","Amount":22.0},{"Symbol":"NHPC","Amount":7.6}...]}
Response Parameters
| Field |
Type |
Description |
| DividentDetails.Symbol |
string |
Stock symbol of the company |
| DividentDetails.Amount |
number |
Dividend amount declared |
Trade History
View the historical list of executed trades in the basket.
curl --request POST \
--url https://localhost:44338/eqbaskets_tradebook \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"Amenities and Comfort Basket","basketdate":"2025-07-03 12:48:58"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket. |
| basketdate |
datetime |
Date and time when the basket was created. |
Response Structure
[{"BasketName":"Amenities and Comfort Basket","BasketCreatedTime":"2025-07-03T12:48:58","TradeDateTime":"2025-07-03 12:48:59","Symbol":"MARICO","Action":"BUY","TradeQty":3.0,"TradePrice":713.65,"Status":"COMPLETE","Remarks":" "}...]
Response Parameters
| Field |
Type |
Description |
| BasketName |
string |
Name of the basket containing grouped services or trades |
| BasketCreatedTime |
datetime |
The timestamp when the basket was created |
| TradeDateTime |
datetime |
The timestamp when the trade was executed |
| Symbol |
string |
The stock symbol representing the traded security |
| Action |
string |
The type of trade action, such as buy or sell |
| TradeQty |
double |
The quantity of shares or units traded |
| TradePrice |
double |
The price at which the trade was executed |
| Status |
string |
The current status of the trade |
| Remarks |
string |
Additional notes or comments related to the trade |
Sector Weightage
Pie chart representing sector allocation within the basket.
curl --request POST \
--url https://localhost:44338/eqbaskets_dbsectorweightage \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"MAE Wealth Generator","basketdate":"2024-10-15 10:48:34","baskettype":"live"}
{"basketname":"MAE Wealth Generator","basketdate":"2024-10-15 10:48:34","baskettype":"exited"}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the investment basket. |
| basketdate |
datetime |
Date and time when the basket was created. |
| baskettype |
string |
Specifies the type of basket. |
Response Structure
[{"IndustryName":"Logistics","Weightage":7.37},{"IndustryName":"Construction - Real Estate","Weightage":7.33}...]
Response Parameters
| Field |
Type |
Description |
| IndustryName |
string |
The name of the industry. |
| Weightage |
double |
The percentage weight assigned to the industry. |
Trade Book
Detailed record of all executed trades for the basket.
curl --request POST \
--url https://localhost:44338/eqbasket_tb \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"Symbol":"UCOBANK","BasketName":"ALGO Basket 1Y-2Y","OrderTime":"2025-07-08 16:00:00","OrdQty":466,"Direction":"BUY","ClientCode":"XT00150","TrdedQty":0.0,"TradedPrice":0.0,"Status":"rejected","Remarks":"-","Action":"True"} ... ]
Response Parameters
| Field |
Type |
Description |
| Symbol |
string |
Stock symbol of the traded security |
| BasketName |
string |
Name of the basket to which the order belongs |
| OrderTime |
string |
Date and time when the order was placed |
| OrdQty |
int |
Total order quantity |
| Direction |
string |
Type of order direction (BUY or SELL) |
| ClientCode |
string |
Unique identifier for the client |
| TrdedQty |
double |
Quantity that has been executed |
| TradedPrice |
double |
Price at which the order was executed |
| Status |
string |
Current status of the order |
| Remarks |
string |
Additional notes or reasons related to the order status |
| Action |
string |
Flag indicating if an action is allowed |
Trade Book --> ReSend
Resend the trade details or confirmation.
curl --request POST \
--url https://localhost:44338/tradeeq_resend \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"UCOBANK","ordertime":"2025-07-08 16:00:00","direction":"BUY","ordqty":"466"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Trading symbol of the stock |
| ordertime |
string |
Order placement date and time in yyyy-MM-dd HH:mm:ss format |
| direction |
string |
Order action type (BUY or SELL) |
| ordqty |
string |
Quantity of the order to be placed |
Response Structure
{"status":"FAILURE","reason":"Trading hours have ended."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
AutoStrategy Dashboard
Monitor and control all your automated strategies in one place. Track, edit, and control all your automated strategies with ease
Automated Strategy
A strategy that runs automatically without manual intervention
curl --request POST \
--url https://localhost:44338/OrderBook_AT_Main \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"paperTrading":"false"}
Request Parameters
| Field |
Type |
Description |
| paperTrading |
string |
Indicates whether the service is in paper trading mode. |
Response Structure
[{"ip1":121795,"ip2":"NIFTY_20250709101639","disp_name":"NIFT_0909_124433","StrategyName":"NIFTY_20250709101639","ExpiryDate":"10JUL2025","NetPremium":0.0,"Defined Profit - Loss":"0.00 - 0.00","Live Premium":"-10533.75","Live FuturePrice":"25620.70","MTM":-26.25,"Profit":0.0,"Loss":0.0,"Status":"Started","Strikes":"","Start DateTime":"2025-07-09 10:16:39","End DateTime":"0000-00-00 00:00:00","History":"View","Model":"ALGO STRATEGY","Auto Start":"ON","IconSymbol":"StopSymbol","symbolonly":"NIFTY","symbolchart":"-","exchange":"NSE"}...]
Response Parameters
| Field |
Type |
Description |
| ip1 |
int |
Unique identifier of the strategy instance |
| ip2 |
string |
Unique name assigned to the strategy |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| StrategyName |
string |
Name of the trading strategy |
| ExpiryDate |
string |
Contract expiry date of the instrument |
| NetPremium |
double |
Total premium paid or received when the strategy starts |
| Defined Profit - Loss |
string |
Maximum possible profit and loss for the strategy |
| Live Premium |
string |
Current market premium of the strategy |
| Live FuturePrice |
string |
Current market price of the underlying future |
| MTM |
double |
Mark-to-market profit or loss of the strategy |
| Profit |
double |
Realized profit from the strategy |
| Loss |
double |
Realized loss from the strategy |
| Status |
string |
Current running status of the strategy |
| Strikes |
string |
Strike prices involved in the strategy |
| Start DateTime |
string |
Date and time when the strategy started |
| End DateTime |
string |
Date and time when the strategy ended |
| History |
string |
Action to view the historical data of the strategy |
| Model |
string |
Type of strategy model used |
| Auto Start |
string |
Indicates whether the strategy is set to start automatically |
| IconSymbol |
string |
Symbol representing the action icon for the strategy |
| symbolonly |
string |
Underlying instrument symbol |
| symbolchart |
string |
Chart-related symbol data |
| exchange |
string |
Exchange where the instrument is listed |
History
A record showing the past actions of a strategy along with their timestamps.
curl --request POST \
--url https://localhost:44338/getTradeLog \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName":"NIFTY_20250709101639","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Represents the name of the trading strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
[{"Log":"Orders Placed for the Strategy","LogTime":"2025-07-09 10:16:44"}...]
Response Parameters
| Field |
Type |
Description |
| Log |
string |
Message description of the logged event |
| LogTime |
string |
Date and time when the log entry was created |
SquareOff
A strategy that automatically closes open positions to exit the market.
curl --request POST \
--url https://localhost:44338/AT_Dashboard_manage \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName" : "NIFTY_20250624125711","Type" : "exit","papertradingnew" : "false"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Represents the name of the trading strategy. |
| Type |
string |
Indicates the type or status of the strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"status":"SUCCESS","reason":"Strategy Positions sent for Square Off Successfully"}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Delete Strategy
Removes the selected strategy from the system
curl --request POST \
--url https://localhost:44338/AT_Dashboard_manage \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName" : "NIFTY_20250708456017","Type" : "delete","papertradingnew" : "false"}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
Unique name for the Strategy used. |
| Type |
string |
Should be "delete" to delete the AutoStrategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"status":"SUCCESS","reason":"Deleted Successfully"}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
AutoStart ON/OFF
Enables or disables automatic startup of the strategy on system launch.
curl --request POST \
--url https://localhost:44338/AT_Dashboard_manage \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName" : "NIFTY_20250708080017","Type" : "ON","papertradingnew" : "false"}
{"StrategyName" : "NIFTY_20250708080017","Type" : "OFF","papertradingnew" : "false"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Represents the name of the trading strategy. |
| Type |
string |
Indicates the type or status of the strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"status":"SUCCESS","reason":"Strategy computation is started.To stop computation turn the switch 'OFF'"}
{"status":"SUCCESS","reason":"Strategy computation is stopped.To start computation turn the switch 'ON'"}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Booked Strategies
Strategies that have completed execution and recorded their results.
curl --request POST \
--url https://localhost:44338/historicaldata \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"type":"at_bookedstrategies","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| type |
string |
Represents the type of the booked strategy. |
| papertradingnew |
string |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
[{"StrategyName":"NIFTY_20250709101639","ExpiryDate":"10JUL2025","NetPremium":0.0,"Defined Profit - Loss":"0.00 - 0.00","Live Premium":"-10533.75","Live FuturePrice":"25616.60","MTM":"0","Profit":0.0,"Loss":0.0,"Status":"Started","Strikes":"","Start DateTime":"2025-07-09 10:16:39","End DateTime":"0000-00-00 00:00:00","Model":"ALLMERGE"}...]
Response Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Name of the trading strategy |
| ExpiryDate |
string |
Option contract expiry date |
| NetPremium |
double |
Net premium paid or received |
| Defined Profit - Loss |
string |
Predefined profit and loss range |
| Live Premium |
double |
Current premium value in live market |
| Live FuturePrice |
double |
Current futures price in live market |
| MTM |
double |
Mark to Market value |
| Profit |
double |
Calculated profit value |
| Loss |
double |
Calculated loss value |
| Status |
string |
Current status of the strategy |
| Strikes |
string |
Strike prices involved in the strategy |
| Start DateTime |
string |
Date and time when the strategy started |
| End DateTime |
string |
Date and time when the strategy ended |
| Model |
string |
Name of the pricing model used |
NetPositions
Monitor your net positions with Modern Algos. Track your active trades, view current holdings, and manage your open positions with ease
Equity Future
Displays the net position details of Equity Futures.
curl --request POST \
--url https://localhost:44338/NetPositioneqfut \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"paperTrading":"false"}
Request Parameters
| Field |
Type |
Description |
| papertradingnew |
string |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"TopRow":[{"Total Profit/Loss":-10393.0,"BuyQty":0.0,"BuyValue":0.0,"SellQty":20.0,"SellValue":11503.0,"NetValue":11503.0}],"ListData":[{"ip1":10,"ip2":"MW_BRIGADE_13092022132826","Category":"MarketWatch-Trade","Symbol":"BRIGADE","BuyQty":0.0,"BuyAvgPrice":"0.00","SellQty":20.0,"SellAvgPrice":"575.15","NetQty":-20.0,"LTP":1094.8,"Status":"OPEN","PType":"CNC","PL":-10393.0,"ClientCode":"XT00150","SymbolOnly":"BRIGADE"}...]}
Response Parameters
| Field |
Type |
Description |
| TopRow.Total Profit/Loss |
double |
Total profit or loss value in the top row summary |
| TopRow.BuyQty |
double |
Total quantity bought in the top row summary |
| TopRow.BuyValue |
double |
Total value of buy transactions in the top row summary |
| TopRow.SellQty |
double |
Total quantity sold in the top row summary |
| TopRow.SellValue |
double |
Total value of sell transactions in the top row summary |
| TopRow.NetValue |
double |
Net value after calculating buy and sell transactions in the top row summary |
| ListData.ip1 |
int |
Internal identifier or serial number |
| ListData.ip2 |
string |
Unique identifier for the market watch or trade |
| ListData.Category |
string |
Type or category of the data record |
| ListData.Symbol |
string |
Trading symbol or instrument name |
| ListData.BuyQty |
double |
Total quantity of buy orders for the symbol |
| ListData.BuyAvgPrice |
string |
Average price of buy orders for the symbol |
| ListData.SellQty |
double |
Total quantity of sell orders for the symbol |
| ListData.SellAvgPrice |
string |
Average price of sell orders for the symbol |
| ListData.NetQty |
double |
Net quantity after buy and sell transactions for the symbol |
| ListData.LTP |
double |
Last traded price of the symbol |
| ListData.Status |
string |
Current status of the order or trade |
| ListData.PType |
string |
Product type of the order |
| ListData.PL |
double |
Profit or loss value for the symbol |
| ListData.ClientCode |
string |
Code identifying the client or account |
| ListData.SymbolOnly |
string |
Trading symbol without additional identifiers |
Options
Displays the net position details of Options.
curl --request POST \
--url https://localhost:44338/NetPosition \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"paperTrading":"false"}
Request Parameters
| Field |
Type |
Description |
| paperTrading |
string |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"TopRow":[{"Total Profit/Loss":-13365.86,"BuyQty":840.0,"BuyValue":110406.0,"SellQty":453.0,"SellValue":45198.45,"NetValue":-65207.55}],"ListData":[{"ip1":"3195","ip2":"NIFTY_20250709103645","Category":"AutoTrade","disp_name":"NIFT_0909_124433","Strategyname":"NIFTY_20250709103645","EntryDate":"20250709","TotalPL":123.0,"ClientCode":"XT00150","Statusold":"-","Status":"Booked","Therotical Profit":0,"Therotical Loss":0,"Margin Used":0,"History":"View","SymbolOnly":"NIFTY"}...],"CombinePLStrategies":[]}
Response Parameters
| Field |
Type |
Description |
| TopRow.Total Profit/Loss |
double |
Total combined profit or loss in the top summary row. |
| TopRow.BuyQty |
double |
Total quantity of buy trades. |
| TopRow.BuyValue |
double |
Total value of buy trades. |
| TopRow.SellQty |
double |
Total quantity of sell trades. |
| TopRow.SellValue |
double |
Total value of sell trades. |
| TopRow.NetValue |
double |
Net value after subtracting buy and sell totals. |
| ListData.ip1 |
string |
Unique identifier for the trade. |
| ListData.ip2 |
string |
Internal or external strategy code. |
| ListData.Category |
string |
Type of trading category. |
| ListData.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| ListData.Strategyname |
string |
Name of the trading strategy. |
| ListData.EntryDate |
string |
Date when the trade entry was made (YYYYMMDD). |
| ListData.TotalPL |
double |
Total profit or loss of the individual trade. |
| ListData.ClientCode |
string |
Unique code identifying the client. |
| ListData.Statusold |
string |
Previous status of the trade. |
| ListData.Status |
string |
Current status of the trade. |
| ListData.Therotical Profit |
double |
Theoretical or expected profit based on calculations. |
| ListData.Therotical Loss |
double |
Theoretical or expected loss based on calculations. |
| ListData.Margin Used |
double |
Amount of margin utilized for the trade. |
| ListData.History |
string |
Option to view the trade history. |
| ListData.SymbolOnly |
string |
The symbol name of the traded instrument. |
Strategy Exit
Executes exit orders for both Equity Futures and Options positions.
curl --request POST \
--url https://localhost:44338/AT_Dashboard_manage \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName" : "MW_BRIGADE_13092022132826","Type" : "EXIT","papertradingnew" : "false"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Represents the name of the trading strategy. |
| Type |
string |
Indicates the type or status of the strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"status":"SUCCESS","reason":"Position Sent to Squared Off."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
History
Shows the strategy's execution logs along with timestamps.
curl --request POST \
--url https://localhost:44338/getTradeLog \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName":"NIFTY_20250709103645","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Represents the name of the trading strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
[{"Log":"Orders Placed for the Strategy","LogTime":"2025-07-09 10:16:44"}...]
Response Parameters
| Field |
Type |
Description |
| Log |
string |
Message description of the logged event |
| LogTime |
string |
Date and time when the log entry was created |
Netposition Options Depth
Displays the depth view of the Options net positions.
curl --request POST \
--url https://localhost:44338/NetPosition/Depth \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName":"NIFTY_20250709103645","paperTrading":"false"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Represents the name of the trading strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"Rows":[{"Symbol":"NIFTY2571025500CE","ExpDate":"0000-00-00","BuyQty":300.0,"BuyAvgPrice":"97.49","SellQty":300.0,"SellAvgPrice":"97.90","NetQty":0.0,"LTP":98.3,"PL":123.0,"BuySell":"BUY","LivePrice":98.3,"Symbol1":"NIFTY","FutPrice":0.0,"EntryPrice":97.49,"ProductType":"MIS","ip1":3195,"ip2":"NIFTY_20250709103645","StrikePrice":25500.0,"OType":"CE"}...],"Total":[{"TBuyQty":300.0,"TBuyQty1":29247.0,"TBuyQty2":300.0,"TBuyQty3":29370.0}]}
Response Parameters
| Field |
Type |
Description |
| Rows.Symbol |
string |
The trading symbol of the financial instrument |
| Rows.ExpDate |
string |
The expiry date of the contract in YYYY-MM-DD format |
| Rows.BuyQty |
double |
Total quantity bought for the instrument |
| Rows.BuyAvgPrice |
string |
Average price of the buy transactions |
| Rows.SellQty |
double |
Total quantity sold for the instrument |
| Rows.SellAvgPrice |
string |
Average price of the sell transactions |
| Rows.NetQty |
double |
Net quantity after buy and sell operations |
| Rows.LTP |
double |
Last traded price of the instrument |
| Rows.PL |
double |
Profit or loss from the trade |
| Rows.BuySell |
string |
The last trade action performed on the instrument |
| Rows.LivePrice |
double |
The current live price of the instrument |
| Rows.Symbol1 |
string |
The base symbol of the instrument |
| Rows.FutPrice |
double |
The future price of the contract, if applicable |
| Rows.EntryPrice |
double |
The price at which the trade was entered |
| Rows.ProductType |
string |
The type of product selected for the trade |
| Rows.ip1 |
int |
The first internal parameter or identifier |
| Rows.ip2 |
string |
The second internal parameter or identifier |
| Rows.StrikePrice |
double |
The strike price of the option contract |
| Rows.OType |
string |
The option type of the contract |
| Total.TBuyQty |
double |
Total buy quantity for the current row |
| Total.TBuyQty1 |
double |
Cumulative total buy quantity across multiple rows |
| Total.TBuyQty2 |
double |
Total buy quantity for a specific condition or category |
| Total.TBuyQty3 |
double |
Grand total buy quantity combining all relevant categories |
Add Leg and Send Request
Adds a leg to a strategy and sends the request, updating net positions.
curl --request POST \
--url https://localhost:44338/manual_buysellorder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"NIFTY_20250709101439","paperTrading":"false","ManualOrders":[{"exchange":"NFO","symbol":"NIFTY2571025500CE","qty":"75","price":"0","ordertype":"","clientcode":"XT00150","token":"0","direction":"BUY"}]}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
Name of the trading strategy |
| paperTrading |
string |
Indicates whether the strategy is running in paper trading mode |
| ManualOrders.exchange |
string |
The exchange where the order is to be placed |
| ManualOrders.symbol |
string |
Symbol of the financial instrument to trade |
| ManualOrders.qty |
string |
Quantity of the order |
| ManualOrders.price |
string |
Price at which the order is to be placed |
| ManualOrders.ordertype |
string |
Type of order to be placed |
| ManualOrders.clientcode |
string |
Client code associated with the order |
| ManualOrders.token |
string |
Token identifier of the financial instrument |
| ManualOrders.direction |
string |
Order direction indicating buy or sell |
Response Structure
{"status":"SUCCESS","reason":"Order Submitted to the Exchange. For details, please check the Order Book.","orderid":["25070900184450"]}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Netposition Options Depth Exit
Closes positions from the Options depth view.
curl --request POST \
--url https://localhost:44338/manual_buysellorder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"NIFTY_20250709101439","paperTrading":"false","ManualOrders":[{"exchange":"NSE","symbol":"NIFTY2571025400CE","qty":"150","price":"0","ordertype":"MIS","clientcode":"XT00150","token":"0","direction":"SELL"}]}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
The name of the trading strategy. |
| paperTrading |
string |
Indicates whether the trades are simulated or live. |
| ManualOrders.exchange |
string |
The exchange where the order will be placed. |
| ManualOrders.symbol |
string |
The trading symbol for the order. |
| ManualOrders.qty |
string |
The quantity of the order. |
| ManualOrders.price |
string |
The price at which the order is placed. |
| ManualOrders.ordertype |
string |
The order type for execution. |
| ManualOrders.clientcode |
string |
The client code placing the order. |
| ManualOrders.token |
string |
The unique token identifier for the order. |
| ManualOrders.direction |
string |
The trade direction, either buy or sell. |
Response Structure
{"status":"SUCCESS","reason":"Order Submitted to the Exchange. For details, please check the Order Book.","orderid":["25070900181677"]}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Historical Trades
Shows historical trade data for Equity Futures and Options.
curl --request POST \
--url https://localhost:44338/historicaldata \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"type":"netposition-options","papertradingnew":"false"}
{"type":"netposition-equity","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| type |
string |
Represents the type of the booked strategy. |
| papertradingnew |
string |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
[{"Category":"AutoTrade","StrategyName":"NIFTY_20250416094015","Symbol":"NIFTY2541723350CE","BuyQty":75.0,"BuyPrice":57.3,"SellQty":75.0,"SellPrice":56.05,"PL":-93.75,"PType":"MIS","EntryDate":"","ExitDate":""}...]
Response Parameters
| Field |
Type |
Description |
| Category |
string |
Indicates the type of trade category. |
| StrategyName |
string |
Name of the trading strategy used. |
| Symbol |
string |
Represents the financial instrument's symbol. |
| BuyQty |
double |
Quantity of the instrument purchased. |
| BuyPrice |
double |
Price at which the instrument was bought. |
| SellQty |
double |
Quantity of the instrument sold. |
| SellPrice |
double |
Price at which the instrument was sold. |
| PL |
double |
Profit or loss from the trade. |
| PType |
string |
Specifies the product type used for the trade. |
| EntryDate |
string |
Date and time when the trade was entered. |
| ExitDate |
string |
Date and time when the trade was exited. |
OrderBook
View and manage your order book with Modern Algos. Track all your active orders, monitor execution status
OrderBook
A real-time list of buy and sell orders for a specific financial instrument.
curl --request POST \
--url https://localhost:44338/OrderBook \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"category" : "OP","paperTrading" : "false"}
Request Parameters
| Field |
Type |
Description |
| category |
string |
Specifies the service category type. |
| paperTrading |
boolean |
Indicates whether paper trading mode is enabled. |
Response Structure
[{"Symbol":"NIFTY2571025700PE","disp_name":"NIFT_0909_124433","BuySell":"BUY","ProductType":"NRML","Qty":75.0,"Price":"209.25","LTP":"174.05","OrderTime":"2025-07-09 09:18:09","Status":"COMPLETE","OrderID":"25070900012060","Remarks":"COMPLETE","ip1":2841300,"ip2":"NIFTY_20250709091718","StrategyName":"NIFTY_20250709091718","LotSize":1.0,"idvalues":371468}...]
Response Parameters
| Field |
Type |
Description |
| Symbol |
string |
Represents the trading symbol of the instrument. |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| BuySell |
string |
Indicates whether the order is a buy or sell transaction. |
| ProductType |
string |
Specifies the product type of the trade. |
| Qty |
double |
Denotes the quantity of the instrument traded. |
| Price |
string |
The price at which the order was placed. |
| LTP |
string |
The last traded price of the instrument at the time of response. |
| OrderTime |
string |
Specifies the timestamp when the order was placed. |
| Status |
string |
Indicates the current status of the order. |
| OrderID |
string |
The unique identifier assigned to the order. |
| Remarks |
string |
Provides additional information or comments about the order status. |
| ip1 |
int |
Represents an internal process value related to the order. |
| ip2 |
string |
Represents an internal process string identifier related to the order. |
| StrategyName |
string |
The name of the trading strategy associated with the order. |
| LotSize |
double |
Denotes the lot size for the traded instrument. |
| idvalues |
int |
An identifier value used for tracking or reference. |
ReSend Order
A request to re-submit a previously failed or unconfirmed order
curl --request POST \
--url https://localhost:44338/push_reorder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"ip1" : "2841300","ip2" : "NIFTY_20250709091718","paperTrading" : "false"}
Request Parameters
| Field |
Type |
Description |
| ip1 |
string |
Unique identifier for the transaction or request. |
| ip2 |
string |
Represents an internal process string identifier related to the order. |
| paperTrading |
string |
Indicates whether the service is in paper trading mode ("true" or "false"). |
Response Structure
{"status":"SUCCESS","reason":"Order Sent Successful."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Modify Order
A request to change the details (price, quantity, etc.) of an existing order.
curl --request POST \
--url https://localhost:44338/ModifyOrder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"ip1" : "2841300","ip2" : "NIFTY_20250709091718","OrderID" : "25070900012060","Qty" : "75","Price" : "209.25","paperTrading" : "false"}
Request Parameters
| Field |
Type |
Description |
| ip1 |
string |
Unique identifier for the first IP or internal reference |
| ip2 |
string |
Represents an internal process string identifier related to the order. |
| OrderID |
string |
Unique order identifier generated for each transaction |
| Qty |
string |
Quantity of the instrument to be traded |
| Price |
string |
Trade price of the instrument |
| paperTrading |
string |
Indicates whether the trade is in simulation mode or live |
Response Structure
{"status":"SUCCESS","reason":"Modified Sent Successfully.Kindly check the status in OrderBook"}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Cancel Order
A request to remove an existing order from the order book.
curl --request POST \
--url https://localhost:44338/CancelOrder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"ip1" : "2841300","ip2" : "NIFTY_20250709091718","OrderID" : "25070900012060","paperTrading" : "false"}
Request Parameters
| Field |
Type |
Description |
| ip1 |
string |
Unique identifier for the first IP or internal reference |
| ip2 |
string |
Represents an internal process string identifier related to the order. |
| OrderID |
string |
Unique order identifier generated for each transaction |
| paperTrading |
string |
Indicates whether the trade is in simulation mode or live |
Response Structure
{"status":"SUCCESS","reason":"Cancel Sent Successfully.Kindly check the status in OrderBook"}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Historical Trades
A record of past executed orders reflecting trade history.
curl --request POST \
--url https://localhost:44338/historicaldata \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"type":"orderbook","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| Type |
string |
Indicates the type or status of the strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
[{"a_uniquename":"TAS_AP_ABFRL_2025-04-11","Symbol":"ABFRL","orderTime":"2025-04-11 15:17:07","ACTION":"BUY","Qty":99.0,"TradedQty":0.0,"TradePrice":0.0,"Status":"REJECTED","Remarks":"RED:Margin Shortfall:INR 25,081.65 Available:INR 0.00 for C-XT00150 [FYERS_RISK_CUG]"}...]
Response Parameters
| Field |
Type |
Description |
| a_uniquename |
string |
Unique identifier for the order in the system |
| Symbol |
string |
Trading symbol of the security |
| orderTime |
string |
Time when the order was placed (format: yyyy-MM-dd HH:mm:ss) |
| ACTION |
string |
Type of order action (e.g., BUY or SELL) |
| Qty |
double |
Total quantity placed in the order |
| TradedQty |
double |
Quantity of the order that has been executed |
| TradePrice |
double |
Price at which the order was executed |
| Status |
string |
Current status of the order |
| Remarks |
string |
Detailed message describing the reason for the order status or rejection |
Algo Strategy Builder
Build, analyze, and automate trading strategies with the Algo Strategy Builder. Execute trades seamlessly based on your defined conditions.
Algo Strategy Builder
A tool for creating and managing algorithmic trading strategies
curl --request POST \
--url https://localhost:44338/autotrade_paramters \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","modeltype":"allmerge"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the name of the financial instrument. |
| modeltype |
string |
Defines the type of model used for processing the data. |
Response Structure
{"AdjustParamters":[{"AdjustParamters":"Spot Points"}],"OrderParameters":[{"OrderParameters":"Market"}],"ATMParameters":[{"ATMParameters":"ATM"}],"ExitParameters":[{"ExitParameters":"None"}],"InputParameters":[{"InputParameters":"Pts"}],"TargetParameters":[{"TargetParameters":"None"}],"OTypeParameters":[{"CEPEParameters":"CE"}],"TargetTypeParameters":[{"InputParameters":"Value"}],"ModeType":[{"ModelType":"Intraday"}],"InstrumentParameters":[{"ModelType":"CE"}],"ScalpingInputParameters":[{"ScalpingInputParamters":"PRM Pts"}],"SpotPrice":[{"SpotPrice":25469.4}],"FuturePrice":[{"FuturePrice":25550.0}],"Scalping_CE":[{"Scalping_CE":"PRM Pts"}],"Scalping_PE":[{"Scalping_PE":"PRM Pts"}],"Scalping_XX":[{"Scalping_XX":"Fut Pts"}],"Scalping_FUT":[{"Scalping_FUT":"Fut Pts"}],"Reentry_individual":[{"ReentryIndividual":"None"}],"Reentry_Trade":[{"Reentry_Trade":"None"}],"Technical_Names":[{"TechnicalNames":"ADX"}],"Technical_Operators":[{"Technical_Operators":"Greater Than ( > )"}],"Technical_Timeframe":[{"Technical_Timeframe":"1 Min"}],"ScalpingRangeDropDown":[{"Scalping_Category":"Spot Price"}],"Scalping_EQ":[{"Scalping_EQ":"EQ Pts"}],"DefineRangeType":[{"DefineRangeType":"Future Price"}],"LotSize":[{"LotSize":75}],"ExpDate":[{"Expdate":"2025-07-10"}],"LiveTrend":[{"LiveTrend":"Bearish"}],"ATMStrike":[{"StrikePrice":25500.0}]}
Response Parameters
| Field |
Type |
Description |
| AdjustParamters.AdjustParamters |
string |
Defines the adjustment parameter for spot points. |
| OrderParameters.OrderParameters |
string |
Specifies the order type parameter. |
| ATMParameters.ATMParameters |
string |
Defines the at-the-money strike selection. |
| ExitParameters.ExitParameters |
string |
Specifies the exit parameter for the strategy. |
| InputParameters.InputParameters |
string |
Defines the input parameter for the trade in points. |
| TargetParameters.TargetParameters |
string |
Specifies the target parameter for the trade. |
| OTypeParameters.CEPEParameters |
string |
Defines the option type parameter. |
| TargetTypeParameters.InputParameters |
string |
Defines the target type based on input value. |
| ModeType.ModelType |
string |
Specifies the trading mode type. |
| InstrumentParameters.ModelType |
string |
Defines the instrument type used for trading. |
| ScalpingInputParameters.ScalpingInputParamters |
string |
Specifies the scalping input parameters in points. |
| SpotPrice.SpotPrice |
float |
Displays the current spot price of the instrument. |
| FuturePrice.FuturePrice |
float |
Displays the current future price of the instrument. |
| Scalping_CE.Scalping_CE |
string |
Defines the scalping parameter for CE options. |
| Scalping_PE.Scalping_PE |
string |
Defines the scalping parameter for PE options. |
| Scalping_XX.Scalping_XX |
string |
Defines the scalping parameter for future points. |
| Scalping_FUT.Scalping_FUT |
string |
Defines the scalping parameter for futures. |
| Reentry_individual.ReentryIndividual |
string |
Defines the re-entry condition for individual trades. |
| Reentry_Trade.Reentry_Trade |
string |
Defines the re-entry condition for overall trades. |
| Technical_Names.TechnicalNames |
string |
Specifies the technical indicator name. |
| Technical_Operators.Technical_Operators |
string |
Defines the operator used in technical analysis. |
| Technical_Timeframe.Technical_Timeframe |
string |
Specifies the timeframe for the technical indicator. |
| ScalpingRangeDropDown.Scalping_Category |
string |
Defines the category for scalping range selection. |
| Scalping_EQ.Scalping_EQ |
string |
Defines the scalping parameter for equities. |
| DefineRangeType.DefineRangeType |
string |
Defines the range type for the strategy. |
| LotSize.LotSize |
int |
Specifies the lot size for the instrument. |
| ExpDate.Expdate |
date |
Specifies the expiry date of the contract. |
| LiveTrend.LiveTrend |
string |
Defines the current live market trend. |
| ATMStrike.StrikePrice |
float |
Defines the at-the-money strike price. |
Add/Update
Functionality to add or update algorithmic trading strategies.
curl --request POST \
--url https://localhost:44338/AT_addinternal \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"validation":"20250709161612838","uid":"0","Tabname":"AT_Trade","disp_name":"NIFT_0909_124433","Request":"ADD","Validity":"Intraday","strategyname":"","modeltype":"allmerge","symbol":"CYIENT","expdate":"2025-07-31","ScalpingCustom":"false","scalping_atm_price":null,"papertradingnew":"false","paperownname":"","AT_TopParameters":[{"Spread":"","GreaterLesser":"greater than","EntryTime":"2025-07-10 9:43","ExitTime":"2025-07-11 15:29","BasedOnATM":"1","MoveStopLoss":"0","BasedOnPremium":"0","DesiredPremiumChkorNot":"0","OrderParametersChkorNot":"1","disp_name":"NIFT_0909_124433"}],"AT_EntryParameters":[{"Symbol":"CYIENT","ExpDate":"2025-07-31","Instrument":"CE","StrikePrice":"1280","BuySell":"SELL","Qty":"425","Delta":"0","Price":"49.1","StrikeType":"ATM","Type":"Pts","Exit":"Sq Off Leg","Tgt":"1","SL":"1","TrailTGT":"1","TrailSL":"1","PartialQuantity":"0","ip2":"0","PremiumCategory":"Range","PremiumValueFrom":"0","PremiumValueTo":"0"},{"Symbol":"CYIENT","ExpDate":"2025-07-31","Instrument":"PE","StrikePrice":"960","BuySell":"SELL","Qty":"425","Delta":"0","Price":"0","StrikeType":"ATM-16","Type":"Pts","Exit":"Sq Off Strategy","Tgt":"1","SL":"1","TrailTGT":"1","TrailSL":"1","PartialQuantity":"0","ip2":"0","PremiumCategory":"Range","PremiumValueFrom":"0","PremiumValueTo":"0"},{"Symbol":"CYIENT","ExpDate":"2025-07-31","Instrument":"CE","StrikePrice":"1300","BuySell":"BUY","Qty":"425","Delta":"0","Price":"40.1","StrikeType":"ATM+1","Type":"Pts","Exit":"Adj Tgt/SL","Tgt":"1","SL":"1","TrailTGT":"","TrailSL":"","PartialQuantity":"0","ip2":"0","PremiumCategory":"Range","PremiumValueFrom":"0","PremiumValueTo":"0"},{"Symbol":"CYIENT","ExpDate":"2025-07-31","Instrument":"PE","StrikePrice":"1260","BuySell":"BUY","Qty":"425","Delta":"0","Price":"30.5","StrikeType":"ATM-1","Type":"Pts","Exit":"Adj Future Pts","Tgt":"1","SL":"1","TrailTGT":"","TrailSL":"","PartialQuantity":"0","ip2":"0","PremiumCategory":"Range","PremiumValueFrom":"0","PremiumValueTo":"0"},{"Symbol":"CYIENT","ExpDate":"2025-07-31","Instrument":"CE","StrikePrice":"1240","BuySell":"BUY","Qty":"425","Delta":"0","Price":"79.3","StrikeType":"ATM-2","Type":"Pts","Exit":"Re Entry","Tgt":"","SL":"","TrailTGT":"","TrailSL":"","PartialQuantity":"0","ip2":"0","PremiumCategory":"Range","PremiumValueFrom":"0","PremiumValueTo":"0"}],"AT_SwitchParameters":[{"NoOfTimes":"","Tgt_Instrument":"","Tgt_ExpDate":"","Tgt_Strike":"","Tgt_Action":"","Tgt_Qty":"","SL_Strike":"","SL_Action":"","SL_Qty":"","SL_Instrument":"","SL_ExpDate":""},{"NoOfTimes":"","Tgt_Instrument":"","Tgt_ExpDate":"","Tgt_Strike":"","Tgt_Action":"","Tgt_Qty":"","SL_Strike":"","SL_Action":"","SL_Qty":"","SL_Instrument":"","SL_ExpDate":""},{"NoOfTimes":"1","Tgt_Instrument":"CE","Tgt_ExpDate":"2025-07-31","Tgt_Strike":"ATM+1","Tgt_Action":"BUY","Tgt_Qty":"425","SL_Strike":"ATM+1","SL_Action":"BUY","SL_Qty":"425","SL_Instrument":"CE","SL_ExpDate":"2025-07-31"},{"NoOfTimes":"","Tgt_Instrument":"","Tgt_ExpDate":"","Tgt_Strike":"","Tgt_Action":"","Tgt_Qty":"","SL_Strike":"","SL_Action":"","SL_Qty":"","SL_Instrument":"","SL_ExpDate":""},{"NoOfTimes":"","Tgt_Instrument":"","Tgt_ExpDate":"","Tgt_Strike":"","Tgt_Action":"","Tgt_Qty":"","SL_Strike":"","SL_Action":"","SL_Qty":"","SL_Instrument":"","SL_ExpDate":""}],"AT_ShiftingParameters":[{"NoOfTimes":"","UP_Instrument":"","UP_ExpDate":"","UP_Pts":"","UP_Strike":"","UP_Action":"","UP_Qty":"","DN_Pts":"","DN_Strike":"","DN_Action":"","DN_Qty":"","DN_Instrument":"","DN_ExpDate":""},{"NoOfTimes":"","UP_Instrument":"","UP_ExpDate":"","UP_Pts":"","UP_Strike":"","UP_Action":"","UP_Qty":"","DN_Pts":"","DN_Strike":"","DN_Action":"","DN_Qty":"","DN_Instrument":"","DN_ExpDate":""},{"NoOfTimes":"","UP_Instrument":"","UP_ExpDate":"","UP_Pts":"","UP_Strike":"","UP_Action":"","UP_Qty":"","DN_Pts":"","DN_Strike":"","DN_Action":"","DN_Qty":"","DN_Instrument":"","DN_ExpDate":""},{"NoOfTimes":"1","UP_Instrument":"PE","UP_ExpDate":"2025-07-31","UP_Pts":"1","UP_Strike":"ATM-1","UP_Action":"BUY","UP_Qty":"425","DN_Pts":"1","DN_Strike":"ATM-1","DN_Action":"BUY","DN_Qty":"425","DN_Instrument":"PE","DN_ExpDate":"2025-07-31"},{"NoOfTimes":"","UP_Instrument":"","UP_ExpDate":"","UP_Pts":"","UP_Strike":"","UP_Action":"","UP_Qty":"","DN_Pts":"","DN_Strike":"","DN_Action":"","DN_Qty":"","DN_Instrument":"","DN_ExpDate":""}],"AT_ScalpingParameters":[],"AT_OrderParameters":[{"Entry_OrderType":"Limit","Entry_Percentage":"1","Entry_Seconds":"1","Exit_OrderType":"Market-Limit","Exit_Percentage":"1","Exit_Seconds":"1","OrderSlicing_Selection":"1","orderSlicing_StepQuantity":"425"}],"AT_TargetParameters":[{"FixedProfit":"1000","Criteria":"Lock & Trail Profit","Type":"Value","Xvalue":"1","Yvalue":"1","Avalue":"1","Bvalue":"1"}],"AT_ExitParameters":[{"FixedLoss":"1"}],"AT_DailyParamters":[{"Monday":"True","Tuesday":"False","Wednesday":"True","Thursday":"False","Friday":"True","TimeFrame":"MONTHLY"}],"AT_ScalpingSpotParameters":[],"AT_TechnicalParameters":[],"AT_RentryParameters":[{"NoOfTimes":"","Instrument":"","ExpDate":"","StrikePrice":"","StrikeType":"","Criteria":"","Type":"","Tgt":"","SL":""},{"NoOfTimes":"","Instrument":"","ExpDate":"","StrikePrice":"","StrikeType":"","Criteria":"","Type":"","Tgt":"","SL":""},{"NoOfTimes":"","Instrument":"","ExpDate":"","StrikePrice":"","StrikeType":"","Criteria":"","Type":"","Tgt":"","SL":""},{"NoOfTimes":"","Instrument":"","ExpDate":"","StrikePrice":"","StrikeType":"","Criteria":"","Type":"","Tgt":"","SL":""},{"NoOfTimes":"1","Instrument":"CE","ExpDate":"2025-07-31","StrikePrice":"1240","StrikeType":"ATM-2","Criteria":"Immediate ReEntry on SL","Type":"Pts","Tgt":"1","SL":"1"}],"AT_RentryTradeParameters":[{"Criteria":"Immediate Entry Reverse on Stop Loss","NoOfTimes":"1"}],"AT_InitialOrder":[],"AT_ScalpingCustom":[]}
Request Parameters
| Field |
Type |
Description |
| validation |
string |
Unique validation key for the request |
| uid |
string |
User identification key |
| Tabname |
string |
Defines the operation table name |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| Request |
string |
Specifies the type of operation (ADD, EDIT) |
| Validity |
string |
Defines the order validity type |
| strategyname |
string |
If Strategy adding, pass the strategy name as an empty string (e,g:- " "); otherwise, pass the selected strategy name. |
| modeltype |
string |
Model type used in the strategy |
| symbol |
string |
Trading symbol of the stock or instrument |
| expdate |
string |
Expiry date of the contract |
| ScalpingCustom |
string |
Indicates if custom scalping is enabled |
| scalping_atm_price |
string |
ATM price used for scalping |
| papertradingnew |
string |
Indicates whether the trade is for paper trading |
| paperownname |
string |
Owner name for paper trading |
| AT_TopParameters.Spread |
string |
Spread between bid and ask prices |
| AT_TopParameters.GreaterLesser |
string |
Condition type for comparison |
| AT_TopParameters.EntryTime |
string |
Time to enter the trade |
| AT_TopParameters.ExitTime |
string |
Time to exit the trade |
| AT_TopParameters.BasedOnATM |
string |
Indicates if logic is based on ATM strike |
| AT_TopParameters.MoveStopLoss |
string |
Defines stop-loss movement condition |
| AT_TopParameters.BasedOnPremium |
string |
Indicates if logic is based on premium |
| AT_TopParameters.DesiredPremiumChkorNot |
string |
Check if the desired premium is met |
| AT_TopParameters.OrderParametersChkorNot |
string |
Check whether to apply order parameters |
| AT_TopParameters.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| AT_EntryParameters.Symbol |
string |
Trading symbol for the entry order |
| AT_EntryParameters.ExpDate |
string |
Expiry date of the entry contract |
| AT_EntryParameters.Instrument |
string |
Instrument type (CE/PE/FUT) |
| AT_EntryParameters.StrikePrice |
string |
Strike price of the option |
| AT_EntryParameters.BuySell |
string |
Defines Buy or Sell action |
| AT_EntryParameters.Qty |
string |
Quantity to trade |
| AT_EntryParameters.Delta |
string |
Delta value of the option |
| AT_EntryParameters.Price |
string |
Price for the entry order |
| AT_EntryParameters.StrikeType |
string |
Relative strike type (e.g., ATM, ATM+1) |
| AT_EntryParameters.Type |
string |
Defines the type of points calculation |
| AT_EntryParameters.Exit |
string |
Exit condition for the leg |
| AT_EntryParameters.Tgt |
string |
Target profit for the leg |
| AT_EntryParameters.SL |
string |
Stop-loss for the leg |
| AT_EntryParameters.TrailTGT |
string |
Trailing target for the leg |
| AT_EntryParameters.TrailSL |
string |
Trailing stop-loss for the leg |
| AT_EntryParameters.PartialQuantity |
string |
Partial quantity for the order |
| AT_EntryParameters.ip2 |
string |
Additional parameter for internal processing |
| AT_EntryParameters.PremiumCategory |
string |
Category of the premium range |
| AT_EntryParameters.PremiumValueFrom |
string |
Minimum premium value |
| AT_EntryParameters.PremiumValueTo |
string |
Maximum premium value |
| AT_SwitchParameters.NoOfTimes |
string |
Number of times to switch positions |
| AT_SwitchParameters.Tgt_Instrument |
string |
Target instrument type for switch |
| AT_SwitchParameters.Tgt_ExpDate |
string |
Target expiry date for switch |
| AT_SwitchParameters.Tgt_Strike |
string |
Target strike price for switch |
| AT_SwitchParameters.Tgt_Action |
string |
Target action for switch (BUY/SELL) |
| AT_SwitchParameters.Tgt_Qty |
string |
Target quantity for switch |
| AT_SwitchParameters.SL_Strike |
string |
Stop-loss strike price for switch |
| AT_SwitchParameters.SL_Action |
string |
Stop-loss action for switch (BUY/SELL) |
| AT_SwitchParameters.SL_Qty |
string |
Stop-loss quantity for switch |
| AT_SwitchParameters.SL_Instrument |
string |
Stop-loss instrument type |
| AT_SwitchParameters.SL_ExpDate |
string |
Stop-loss expiry date |
| AT_ShiftingParameters.NoOfTimes |
string |
Number of times to shift positions |
| AT_ShiftingParameters.UP_Instrument |
string |
Upward shift instrument type |
| AT_ShiftingParameters.UP_ExpDate |
string |
Upward shift expiry date |
| AT_ShiftingParameters.UP_Pts |
string |
Upward shift points |
| AT_ShiftingParameters.UP_Strike |
string |
Upward shift strike |
| AT_ShiftingParameters.UP_Action |
string |
Upward shift action (BUY/SELL) |
| AT_ShiftingParameters.UP_Qty |
string |
Upward shift quantity |
| AT_ShiftingParameters.DN_Pts |
string |
Downward shift points |
| AT_ShiftingParameters.DN_Strike |
string |
Downward shift strike |
| AT_ShiftingParameters.DN_Action |
string |
Downward shift action (BUY/SELL) |
| AT_ShiftingParameters.DN_Qty |
string |
Downward shift quantity |
| AT_ShiftingParameters.DN_Instrument |
string |
Downward shift instrument type |
| AT_ShiftingParameters.DN_ExpDate |
string |
Downward shift expiry date |
| AT_OrderParameters.Entry_OrderType |
string |
Order type for entry |
| AT_OrderParameters.Entry_Percentage |
string |
Percentage for entry trigger |
| AT_OrderParameters.Entry_Seconds |
string |
Time in seconds to wait before entry |
| AT_OrderParameters.Exit_OrderType |
string |
Order type for exit |
| AT_OrderParameters.Exit_Percentage |
string |
Percentage for exit trigger |
| AT_OrderParameters.Exit_Seconds |
string |
Time in seconds to wait before exit |
| AT_OrderParameters.OrderSlicing_Selection |
string |
Indicates whether order slicing is enabled |
| AT_OrderParameters.orderSlicing_StepQuantity |
string |
Quantity for each order slice |
| AT_TargetParameters.FixedProfit |
string |
Fixed profit amount |
| AT_TargetParameters.Criteria |
string |
Criteria to lock or trail profit |
| AT_TargetParameters.Type |
string |
Defines the target type |
| AT_TargetParameters.Xvalue |
string |
Parameter X value |
| AT_TargetParameters.Yvalue |
string |
Parameter Y value |
| AT_TargetParameters.Avalue |
string |
Parameter A value |
| AT_TargetParameters.Bvalue |
string |
Parameter B value |
| AT_ExitParameters.FixedLoss |
string |
Fixed loss amount |
| AT_DailyParamters.Monday |
string |
Enable trading on Monday |
| AT_DailyParamters.Tuesday |
string |
Enable trading on Tuesday |
| AT_DailyParamters.Wednesday |
string |
Enable trading on Wednesday |
| AT_DailyParamters.Thursday |
string |
Enable trading on Thursday |
| AT_DailyParamters.Friday |
string |
Enable trading on Friday |
| AT_DailyParamters.TimeFrame |
string |
Time frame for the strategy |
| AT_RentryParameters.NoOfTimes |
string |
Number of re-entries |
| AT_RentryParameters.Instrument |
string |
Re-entry instrument type |
| AT_RentryParameters.ExpDate |
string |
Re-entry expiry date |
| AT_RentryParameters.StrikePrice |
string |
Re-entry strike price |
| AT_RentryParameters.StrikeType |
string |
Re-entry strike type |
| AT_RentryParameters.Criteria |
string |
Re-entry criteria |
| AT_RentryParameters.Type |
string |
Type of re-entry condition |
| AT_RentryParameters.Tgt |
string |
Re-entry target |
| AT_RentryParameters.SL |
string |
Re-entry stop-loss |
| AT_RentryTradeParameters.Criteria |
string |
Re-entry trade criteria |
| AT_RentryTradeParameters.NoOfTimes |
string |
Number of times to re-enter trade |
Response Structure
{"status":"SUCCESS","reason":"Your Strategy Saved Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Fetch Data
Functionality to retrieve data for building or testing algorithmic strategies.
curl --request POST \
--url https://localhost:44338/AT_getdata_internal \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"CYIENT_20250709161620"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Name of the trading strategy |
Response Structure
{"AT_TopParameters":[{"Spread":0.0,"GreaterLesser":"greater than","EntryTime":"2025-07-10 09:43:00","ExitTime":"2025-07-11 15:29:00","BasedOnATM":1,"Validity":"Intraday","modeltype":"allmerge","MoveStopLoss":0,"BasedOnPremium":0,"ScalpingCustom":"false","paperownname":"-","papertradingnew":"false","scalping_atm_price":"atm","DesiredPremiumChkorNot":0,"OrderParametersChkorNot":1,"disp_name":"NIFT_0909_124433"}],"AT_EntryParameters":[{"Symbol":"CYIENT","ExpDate":"2025-07-31","Instrument":"CE","StrikePrice":1280.0,"BuySell":"SELL","Qty":425.0,"Price":49.1,"StrikeType":"ATM","Type":"Pts","Exit":"Sq Off Leg","Tgt":"1.00","SL":"1.00","TrailTGT":"1.00","TrailSL":"1.00","PartialQuantity":"","ip2":123101,"Delta":0.0,"PremiumCategory":"Range","PremiumValueFrom":0.0,"PremiumValueTo":0.0,"EditStatus":"Enable"}],"AT_SwitchParameters":[{"NoOfTimes":0,"Instrument":"","ExpDate":"0000-00-00","Tgt_Strike":"","Tgt_Action":"","Tgt_Qty":0,"SL_Strike":"","SL_Action":"","SL_Qty":0,"Tgt_Instrument":"","Tgt_ExpDate":"0000-00-00","SL_Instrument":"","SL_ExpDate":"0000-00-00"}],"AT_ShiftingParameters":[{"NoOfTimes":0,"Instrument":"","ExpDate":"0000-00-00","UP_Pts":"","UP_Strike":"","UP_Action":"","UP_Qty":0.0,"DN_Pts":"","DN_Strike":"","DN_Action":"","DN_Qty":0.0,"UP_Instrument":"","UP_ExpDate":"0000-00-00","DN_Instrument":"","DN_ExpDate":"0000-00-00"}],"AT_ScalpingParameters":[{"NoOfTimes":0,"Criteriatype":"-","UP_Pts":0.0,"UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"","UP_Type":"Pts","UP_TgtValue":"","UP_SLValue":"","DN_Pts":0.0,"DN_Instrument":"CE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"","DN_Type":"Pts","DN_TgtValue":"","DN_SLValue":"","WithoutEntry":"False","ContinuousBuySell":"False","rangetype":"","rangefrom":0.0,"rangeto":0.0,"rangesel":0,"UP_Expdate":"2025-07-31","DN_Expdate":"2025-07-31"}],"AT_OrderParameters":[{"Entry_OrderType":"Limit","Entry_Percentage":"1.00","Entry_Seconds":"1","Exit_OrderType":"Market-Limit","Exit_Percentage":"1.00","Exit_Seconds":"1","OrderSlicing_Selection":1,"orderSlicing_StepQuantity":425}],"AT_TargetParameters":[{"FixedProfit":"1000.00","Criteria":"Lock & Trail Profit","Type":"Value","Xvalue":"1.00","Yvalue":"1.00","Avalue":"1.00","Bvalue":"1.00"}],"AT_ExitParameters":[{"FixedLoss":"1.00"}],"AT_DailyParamters":[{"Monday":"True","Tuesday":"False","Wednesday":"True","Thursday":"False","Friday":"True","TimeFrame":"MONTHLY"}],"AT_ScalpingSpotParameters":[{"Checked":"False","Criteriatype":"-","UP_Price":0.0,"UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"","UP_TgtPrice":"","UP_SLPrice":"","DN_Price":0.0,"DN_Instrument":"PE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"","DN_TgtPrice":"","DN_SLPrice":""}],"DesiredPremiumStatus":[{"status":"Enable"}],"InitialOrderCompletedornot":[{"value":0}],"AT_TechnicalParameters":[],"AT_RentryTradeParameters":[{"Criteria":"Immediate Entry Reverse on Stop Loss","NoOfTimes":1}],"AT_RentryParameters":[{"Instrument":"","ExpDate":"0000-00-00","StrikeType":"","StrikePrice":0.0,"Criteria":"","Tgt":0.0,"SL":0.0,"Type":"","NoOfTimes":0}],"AT_InitialOrder":[],"AT_ScalpingCustom":[]}
Response Parameters
| Field |
Type |
Description |
| AT_TopParameters.Spread |
double |
Defines the spread difference used for entry conditions. |
| AT_TopParameters.GreaterLesser |
string |
Specifies the comparison condition to apply, such as greater than or less than. |
| AT_TopParameters.EntryTime |
datetime |
The time at which the strategy should begin execution. |
| AT_TopParameters.ExitTime |
datetime |
The time at which the strategy should stop execution. |
| AT_TopParameters.BasedOnATM |
integer |
Indicates whether the logic is based on ATM strike selection. |
| AT_TopParameters.Validity |
string |
Specifies how long the strategy remains active, such as Intraday or Positional. |
| AT_TopParameters.modeltype |
string |
The type of trading model applied in the strategy. |
| AT_TopParameters.MoveStopLoss |
double |
Specifies how much to move the stop loss dynamically. |
| AT_TopParameters.BasedOnPremium |
integer |
Indicates whether the strategy is based on premium values. |
| AT_TopParameters.ScalpingCustom |
string |
Defines if custom scalping logic is enabled. |
| AT_TopParameters.paperownname |
string |
The name used for identifying the paper trading session. |
| AT_TopParameters.papertradingnew |
string |
Specifies whether paper trading mode is enabled. |
| AT_TopParameters.scalping_atm_price |
string |
Indicates whether to use ATM price for scalping. |
| AT_TopParameters.DesiredPremiumChkorNot |
integer |
Enables or disables premium-based filtering for entry. |
| AT_TopParameters.OrderParametersChkorNot |
integer |
Enables or disables order parameter checks before placing orders. |
| AT_TopParameters.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| AT_EntryParameters.Symbol |
string |
The trading symbol of the instrument. |
| AT_EntryParameters.ExpDate |
date |
The expiry date of the instrument. |
| AT_EntryParameters.Instrument |
string |
The type of option instrument (CE/PE). |
| AT_EntryParameters.StrikePrice |
double |
The strike price of the option contract. |
| AT_EntryParameters.BuySell |
string |
Specifies whether to buy or sell the instrument. |
| AT_EntryParameters.Qty |
double |
The quantity of contracts for the order. |
| AT_EntryParameters.Price |
double |
The price at which the order is placed. |
| AT_EntryParameters.StrikeType |
string |
The type of strike selection (ATM, ITM, OTM). |
| AT_EntryParameters.Type |
string |
The unit type for target and stop loss (Pts or %). |
| AT_EntryParameters.Exit |
string |
The exit condition for the position. |
| AT_EntryParameters.Tgt |
double |
The fixed target for profit booking. |
| AT_EntryParameters.SL |
double |
The fixed stop loss value for the position. |
| AT_EntryParameters.TrailTGT |
double |
The trailing target value for adjusting profits. |
| AT_EntryParameters.TrailSL |
double |
The trailing stop loss value for managing risk. |
| AT_EntryParameters.PartialQuantity |
string |
Defines the quantity for partial order execution. |
| AT_EntryParameters.ip2 |
integer |
Used for internal tracking or identification. |
| AT_EntryParameters.Delta |
double |
The delta value of the option used in calculations. |
| AT_EntryParameters.PremiumCategory |
string |
The premium range category applied to the order. |
| AT_EntryParameters.PremiumValueFrom |
double |
The minimum premium value for the trade filter. |
| AT_EntryParameters.PremiumValueTo |
double |
The maximum premium value for the trade filter. |
| AT_EntryParameters.EditStatus |
string |
Indicates whether the entry parameters can be edited. |
| AT_SwitchParameters.NoOfTimes |
integer |
Specifies how many times the switch condition can be applied. |
| AT_SwitchParameters.Instrument |
string |
The instrument type for the switch action. |
| AT_SwitchParameters.ExpDate |
date |
The expiry date for the instrument used in the switch. |
| AT_SwitchParameters.Tgt_Strike |
string |
The target strike price for the switch action. |
| AT_SwitchParameters.Tgt_Action |
string |
The action to be taken at the target strike (BUY/SELL). |
| AT_SwitchParameters.Tgt_Qty |
integer |
The quantity for the target switch action. |
| AT_SwitchParameters.SL_Strike |
string |
The stop loss strike for the switch action. |
| AT_SwitchParameters.SL_Action |
string |
The action to be taken at the stop loss strike (BUY/SELL). |
| AT_SwitchParameters.SL_Qty |
integer |
The quantity for the stop loss switch action. |
| AT_SwitchParameters.Tgt_Instrument |
string |
The instrument type for the target leg. |
| AT_SwitchParameters.Tgt_ExpDate |
date |
The expiry date for the target leg. |
| AT_SwitchParameters.SL_Instrument |
string |
The instrument type for the stop loss leg. |
| AT_SwitchParameters.SL_ExpDate |
date |
The expiry date for the stop loss leg. |
| AT_ShiftingParameters.NoOfTimes |
integer |
Defines how many times the shifting logic can be applied. |
| AT_ShiftingParameters.Instrument |
string |
The instrument involved in the shift. |
| AT_ShiftingParameters.ExpDate |
date |
The expiry date of the shifting instrument. |
| AT_ShiftingParameters.UP_Pts |
string |
The point distance for shifting upwards. |
| AT_ShiftingParameters.UP_Strike |
string |
The strike price when shifting upwards. |
| AT_ShiftingParameters.UP_Action |
string |
The action when shifting upwards (BUY/SELL). |
| AT_ShiftingParameters.UP_Qty |
double |
The quantity for the upward shift action. |
| AT_ShiftingParameters.DN_Pts |
string |
The point distance for shifting downwards. |
| AT_ShiftingParameters.DN_Strike |
string |
The strike price when shifting downwards. |
| AT_ShiftingParameters.DN_Action |
string |
The action when shifting downwards (BUY/SELL). |
| AT_ShiftingParameters.DN_Qty |
double |
The quantity for the downward shift action. |
| AT_ShiftingParameters.UP_Instrument |
string |
The instrument for the upward leg. |
| AT_ShiftingParameters.UP_ExpDate |
date |
The expiry date for the upward shift instrument. |
| AT_ShiftingParameters.DN_Instrument |
string |
The instrument for the downward leg. |
| AT_ShiftingParameters.DN_ExpDate |
date |
The expiry date for the downward shift instrument. |
| AT_ScalpingParameters.NoOfTimes |
integer |
Defines how many times scalping logic applies. |
| AT_ScalpingParameters.Criteriatype |
string |
The criteria type used to trigger scalping. |
| AT_ScalpingParameters.UP_Pts |
double |
The upward point movement to trigger scalping entry. |
| AT_ScalpingParameters.UP_Instrument |
string |
The instrument type used in upward scalping action. |
| AT_ScalpingParameters.UP_StrikeType |
string |
The strike type for the upward scalping action. |
| AT_ScalpingParameters.UP_Action |
string |
The action to take when the upward criteria meets. |
| AT_ScalpingParameters.UP_Qty |
string |
The quantity used in the upward scalping action. |
| AT_ScalpingParameters.UP_Type |
string |
The unit type for upward target and stop loss. |
| AT_ScalpingParameters.UP_TgtValue |
string |
The target value for the upward scalping action. |
| AT_ScalpingParameters.UP_SLValue |
string |
The stop loss value for the upward scalping action. |
| AT_ScalpingParameters.DN_Pts |
double |
The downward point movement to trigger scalping entry. |
| AT_ScalpingParameters.DN_Instrument |
string |
The instrument type used in downward scalping action. |
| AT_ScalpingParameters.DN_StrikeType |
string |
The strike type for the downward scalping action. |
| AT_ScalpingParameters.DN_Action |
string |
The action to take when the downward criteria meets. |
| AT_ScalpingParameters.DN_Qty |
string |
The quantity used in the downward scalping action. |
| AT_ScalpingParameters.DN_Type |
string |
The unit type for downward target and stop loss. |
| AT_ScalpingParameters.DN_TgtValue |
string |
The target value for the downward scalping action. |
| AT_ScalpingParameters.DN_SLValue |
string |
The stop loss value for the downward scalping action. |
| AT_ScalpingParameters.WithoutEntry |
string |
Defines if scalping should occur without a prior entry. |
| AT_ScalpingParameters.ContinuousBuySell |
string |
Specifies if scalping continues in a buy/sell loop. |
| AT_ScalpingParameters.rangetype |
string |
The type of range applied in scalping filter. |
| AT_ScalpingParameters.rangefrom |
double |
The lower bound of the scalping price range. |
| AT_ScalpingParameters.rangeto |
double |
The upper bound of the scalping price range. |
| AT_ScalpingParameters.rangesel |
integer |
The selection method used for the range. |
| AT_ScalpingParameters.UP_Expdate |
date |
The expiry date of the upward instrument. |
| AT_ScalpingParameters.DN_Expdate |
date |
The expiry date of the downward instrument. |
| AT_OrderParameters.Entry_OrderType |
string |
The order type for entry orders. |
| AT_OrderParameters.Entry_Percentage |
string |
The percentage used in entry orders. |
| AT_OrderParameters.Entry_Seconds |
string |
The time in seconds before placing an entry order. |
| AT_OrderParameters.Exit_OrderType |
string |
The order type for exit orders. |
| AT_OrderParameters.Exit_Percentage |
string |
The percentage used in exit orders. |
| AT_OrderParameters.Exit_Seconds |
string |
The time in seconds before placing an exit order. |
| AT_OrderParameters.OrderSlicing_Selection |
integer |
Defines if order slicing is enabled. |
| AT_OrderParameters.orderSlicing_StepQuantity |
integer |
The quantity of each order slice. |
| AT_TargetParameters.FixedProfit |
double |
The fixed profit target for the strategy. |
| AT_TargetParameters.Criteria |
string |
The criteria type for locking and trailing profit. |
| AT_TargetParameters.Type |
string |
The calculation type for target parameters. |
| AT_TargetParameters.Xvalue |
double |
The X parameter value used in target calculations. |
| AT_TargetParameters.Yvalue |
double |
The Y parameter value used in target calculations. |
| AT_TargetParameters.Avalue |
double |
The A parameter value used in target calculations. |
| AT_TargetParameters.Bvalue |
double |
The B parameter value used in target calculations. |
| AT_ExitParameters.FixedLoss |
double |
The fixed stop loss amount for the strategy. |
| AT_DailyParamters.Monday |
boolean |
Indicates if the strategy is active on Monday. |
| AT_DailyParamters.Tuesday |
boolean |
Indicates if the strategy is active on Tuesday. |
| AT_DailyParamters.Wednesday |
boolean |
Indicates if the strategy is active on Wednesday. |
| AT_DailyParamters.Thursday |
boolean |
Indicates if the strategy is active on Thursday. |
| AT_DailyParamters.Friday |
boolean |
Indicates if the strategy is active on Friday. |
| AT_DailyParamters.TimeFrame |
string |
Defines the strategy's active time frame. |
| AT_ScalpingSpotParameters.Checked |
string |
Defines if scalping on spot prices is enabled. |
| AT_ScalpingSpotParameters.Criteriatype |
string |
The criteria type used for spot price scalping. |
| AT_ScalpingSpotParameters.UP_Price |
double |
The upward price point to trigger scalping. |
| AT_ScalpingSpotParameters.DN_Price |
double |
The downward price point to trigger scalping. |
| DesiredPremiumStatus.status |
string |
Defines if desired premium check is enabled. |
| InitialOrderCompletedornot.value |
integer |
Indicates whether the initial order has completed. |
| AT_RentryTradeParameters.Criteria |
string |
The criteria for re-entering a trade after stop loss. |
| AT_RentryTradeParameters.NoOfTimes |
integer |
Number of re-entry attempts allowed. |
| AT_RentryParameters.Instrument |
string |
The instrument used in the re-entry trade. |
| AT_RentryParameters.ExpDate |
date |
The expiry date of the re-entry instrument. |
| AT_RentryParameters.StrikeType |
string |
The strike type for re-entry. |
| AT_RentryParameters.StrikePrice |
double |
The strike price for the re-entry trade. |
| AT_RentryParameters.Criteria |
string |
The condition that triggers re-entry. |
| AT_RentryParameters.Tgt |
double |
The target for the re-entry trade. |
| AT_RentryParameters.SL |
double |
The stop loss for the re-entry trade. |
| AT_RentryParameters.Type |
string |
The type of re-entry trade logic. |
| AT_RentryParameters.NoOfTimes |
integer |
The number of allowed re-entry attempts. |
Scalping
Automate your scalping strategies with Modern Algos. Set your conditions for scalping and let algo run the strategy with automation
Scalping
A trading strategy involving quick, small-profit trades executed frequently throughout the day.
curl --request POST \
--url https://localhost:44338/autotrade_paramters \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","modeltype":"scalping"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the name of the financial instrument. |
| modeltype |
string |
Defines the type of model used for processing the data. |
Response Structure
{"AdjustParamters":[{"AdjustParamters":"Spot Points"}],"OrderParameters":[{"OrderParameters":"Market"}],"ATMParameters":[{"ATMParameters":"ATM+50"}],"ExitParameters":[{"ExitParameters":"None"}],"InputParameters":[{"InputParameters":"Pts"}],"TargetParameters":[{"TargetParameters":"None"}],"OTypeParameters":[{"CEPEParameters":"CE"}],"TargetTypeParameters":[{"InputParameters":"Value"}],"ModeType":[{"ModelType":"Intraday"}],"InstrumentParameters":[{"ModelType":"CE"}],"ScalpingInputParameters":[{"ScalpingInputParamters":"PRM Pts"}],"SpotPrice":[{"SpotPrice":25469.4}],"FuturePrice":[{"FuturePrice":25550.0}],"Scalping_CE":[{"Scalping_CE":"PRM Pts"}],"Scalping_PE":[{"Scalping_PE":"PRM Pts"}],"Scalping_XX":[{"Scalping_XX":"Fut Pts"}],"Scalping_FUT":[{"Scalping_FUT":"Fut Pts"}],"Reentry_individual":[{"ReentryIndividual":"None"}],"Reentry_Trade":[{"Reentry_Trade":"None"}],"Technical_Names":[{"TechnicalNames":"ADX"}],"Technical_Operators":[{"Technical_Operators":"Greater Than ( > )"}],"Technical_Timeframe":[{"Technical_Timeframe":"1 Min"}],"ScalpingRangeDropDown":[{"Scalping_Category":"Spot Price"}],"Scalping_EQ":[{"Scalping_EQ":"EQ Pts"}],"DefineRangeType":[{"DefineRangeType":"Future Price"}],"LotSize":[{"LotSize":75}],"ExpDate":[{"Expdate":"2025-07-10"}],"LiveTrend":[{"LiveTrend":"Bearish"}],"ATMStrike":[{"StrikePrice":25500.0}]}
Response Parameters
| Field |
Type |
Description |
| AdjustParamters.AdjustParamters |
string |
Defines adjustment options like Spot Points or Future Points |
| OrderParameters.OrderParameters |
string |
Specifies order execution type like Market or Limit |
| ATMParameters.ATMParameters |
string |
Specifies the strike distance from the ATM level |
| ExitParameters.ExitParameters |
string |
Determines the type of exit strategy to apply |
| InputParameters.InputParameters |
string |
Specifies the input unit type like points or percentage |
| TargetParameters.TargetParameters |
string |
Defines how targets are set, such as locking or trailing profits |
| OTypeParameters.CEPEParameters |
string |
Specifies the instrument type such as Call (CE), Put (PE), Futures, or Equity |
| TargetTypeParameters.InputParameters |
string |
Defines whether the target is a value or a percentage |
| ModeType.ModelType |
string |
Indicates the trading mode like Intraday or Positional |
| InstrumentParameters.ModelType |
string |
Specifies the instrument used for trading |
| ScalpingInputParameters.ScalpingInputParamters |
string |
Specifies scalping thresholds in points or percentage |
| SpotPrice.SpotPrice |
double |
Provides the current spot price of the instrument |
| FuturePrice.FuturePrice |
double |
Provides the current future price of the instrument |
| Scalping_CE.Scalping_CE |
string |
Defines scalping parameters for Call options |
| Scalping_PE.Scalping_PE |
string |
Defines scalping parameters for Put options |
| Scalping_XX.Scalping_XX |
string |
Defines scalping parameters for futures contracts |
| Scalping_FUT.Scalping_FUT |
string |
Specifies scalping parameters in futures trades |
| Reentry_individual.ReentryIndividual |
string |
Defines individual re-entry strategy on Stop Loss or Target |
| Reentry_Trade.Reentry_Trade |
string |
Specifies trade-level re-entry on Stop Loss scenarios |
| Technical_Names.TechnicalNames |
string |
Lists technical indicators used in strategy conditions |
| Technical_Operators.Technical_Operators |
string |
Defines comparison operators used in technical analysis |
| Technical_Timeframe.Technical_Timeframe |
string |
Specifies the timeframe for technical analysis evaluation |
| ScalpingRangeDropDown.Scalping_Category |
string |
Indicates the type of scalping range selected |
| Scalping_EQ.Scalping_EQ |
string |
Defines scalping parameters for equities |
| DefineRangeType.DefineRangeType |
string |
Specifies whether range is defined by future or spot price |
| LotSize.LotSize |
integer |
Defines the lot size of the instrument |
| ExpDate.Expdate |
string |
Specifies the expiry date of the instrument |
| LiveTrend.LiveTrend |
string |
Indicates the live market trend direction |
| ATMStrike.StrikePrice |
double |
Provides the strike price closest to the ATM level |
Add/Update
Adds or updates scalping-related trade configurations or parameters.
curl --request POST \
--url https://localhost:44338/AT_addinternal \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"validation":"20250709183355373","uid":"0","Tabname":"AT_Trade","disp_name":"NIFT_0909_124433","Request":"ADD","Validity":"Intraday","strategyname":"","modeltype":"scalping","symbol":"TCS","expdate":"2025-07-31","ScalpingCustom":"true","scalping_atm_price":"atm","papertradingnew":"false","paperownname":"","AT_TopParameters":[{"Spread":"0","GreaterLesser":"","EntryTime":"2025-07-10 9:17","ExitTime":"2025-07-11 9:18","BasedOnATM":"0","MoveStopLoss":"0","BasedOnPremium":"0","DesiredPremiumChkorNot":"0","OrderParametersChkorNot":"1","disp_name":"NIFT_0909_124433"}],"AT_EntryParameters":[],"AT_SwitchParameters":[],"AT_ShiftingParameters":[],"AT_ScalpingParameters":[{"NoOfTimes":"1","Criteriatype":"Spot Points","UP_Pts":"1","UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"175","UP_Type":"PRM Pts","UP_TgtValue":"1","UP_SLValue":"1","DN_Pts":"1","DN_Instrument":"CE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"175","DN_Type":"PRM Pts","DN_TgtValue":"1","DN_SLValue":"1","WithoutEntry":"true","ContinuousBuySell":"false","rangetype":"Future Price","rangefrom":"1","rangeto":"1","rangesel":"1","UP_Expdate":"2025-07-31","DN_Expdate":"2025-07-31"}],"AT_OrderParameters":[{"Entry_OrderType":"Limit","Entry_Percentage":"1","Entry_Seconds":"1","Exit_OrderType":"Market-Limit","Exit_Percentage":"1","Exit_Seconds":"1","OrderSlicing_Selection":"1","orderSlicing_StepQuantity":"175"}],"AT_TargetParameters":[{"FixedProfit":"1000","Criteria":"Lock & Trail Profit","Type":"Value","Xvalue":"1","Yvalue":"1","Avalue":"1","Bvalue":"1"}],"AT_ExitParameters":[{"FixedLoss":"1"}],"AT_DailyParamters":[{"Monday":"False","Tuesday":"True","Wednesday":"False","Thursday":"False","Friday":"True","TimeFrame":"Weekly"}],"AT_ScalpingSpotParameters":[],"AT_TechnicalParameters":[],"AT_RentryParameters":[],"AT_RentryTradeParameters":[],"AT_InitialOrder":[{"selection":"1","symbol":"TCS","expdate":"2025-07-31","instrument":"CE","strikeprice":"3380","qty":"175","stepqty":"175","rangetype":"Spot Price","rangefrom":"1","rangeto":"1","orderslicing":"1","Action":"BUY"}],"AT_ScalpingCustom":[{"Criteriatype":"Spot Price","Price":"1","UP_DN":"UP","Instrument":"CE","expdate":"2025-07-31","StrikePrice":"3380","Action":"BUY","Qty":"175","TgtPrice":"1","SLPrice":"1","ip1":"0"}]}
Request Parameters
| Field |
Type |
Description |
| validation |
string |
Unique validation ID for the request |
| uid |
string |
User identifier |
| Tabname |
string |
Specifies the tab name used for the trade |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| Request |
string |
Type of request action |
| Validity |
string |
Defines the order validity period |
| strategyname |
string |
If Strategy adding, pass the strategy name as an empty string (e,g:- " "); otherwise, pass the selected strategy name. |
| modeltype |
string |
Defines the model type for the strategy |
| symbol |
string |
Trading symbol of the instrument |
| expdate |
string |
Expiration date of the contract |
| ScalpingCustom |
string |
Indicates whether custom scalping logic is applied |
| scalping_atm_price |
string |
Defines the reference price type for scalping |
| papertradingnew |
string |
Indicates whether paper trading is enabled |
| paperownname |
string |
Name for paper trading ownership tracking |
| AT_TopParameters[0].Spread |
string |
Spread value for entry conditions |
| AT_TopParameters[0].GreaterLesser |
string |
Defines whether to compare greater or lesser |
| AT_TopParameters[0].EntryTime |
string |
Scheduled entry time |
| AT_TopParameters[0].ExitTime |
string |
Scheduled exit time |
| AT_TopParameters[0].BasedOnATM |
string |
Indicates if calculation is based on ATM |
| AT_TopParameters[0].MoveStopLoss |
string |
Defines whether stop loss moves dynamically |
| AT_TopParameters[0].BasedOnPremium |
string |
Indicates if calculation is based on premium |
| AT_TopParameters[0].DesiredPremiumChkorNot |
string |
Defines whether to check for a desired premium |
| AT_TopParameters[0].OrderParametersChkorNot |
string |
Defines whether to apply order parameter checks |
| AT_ScalpingParameters[0].NoOfTimes |
string |
Number of scalping attempts |
| AT_ScalpingParameters[0].Criteriatype |
string |
Type of criteria for scalping |
| AT_ScalpingParameters[0].UP_Pts |
string |
Upside trigger point value |
| AT_ScalpingParameters[0].UP_Instrument |
string |
Instrument for upside action |
| AT_ScalpingParameters[0].UP_StrikeType |
string |
Strike type for upside action |
| AT_ScalpingParameters[0].UP_Action |
string |
Action to perform on upside trigger |
| AT_ScalpingParameters[0].UP_Qty |
string |
Quantity for upside action |
| AT_ScalpingParameters[0].UP_Type |
string |
Defines the price type for upside action |
| AT_ScalpingParameters[0].UP_TgtValue |
string |
Target value for upside trigger |
| AT_ScalpingParameters[0].UP_SLValue |
string |
Stop loss value for upside trigger |
| AT_ScalpingParameters[0].DN_Pts |
string |
Downside trigger point value |
| AT_ScalpingParameters[0].DN_Instrument |
string |
Instrument for downside action |
| AT_ScalpingParameters[0].DN_StrikeType |
string |
Strike type for downside action |
| AT_ScalpingParameters[0].DN_Action |
string |
Action to perform on downside trigger |
| AT_ScalpingParameters[0].DN_Qty |
string |
Quantity for downside action |
| AT_ScalpingParameters[0].DN_Type |
string |
Defines the price type for downside action |
| AT_ScalpingParameters[0].DN_TgtValue |
string |
Target value for downside trigger |
| AT_ScalpingParameters[0].DN_SLValue |
string |
Stop loss value for downside trigger |
| AT_ScalpingParameters[0].WithoutEntry |
string |
Defines whether scalping occurs without entry |
| AT_ScalpingParameters[0].ContinuousBuySell |
string |
Specifies continuous buy/sell execution |
| AT_ScalpingParameters[0].rangetype |
string |
Type of price range for execution |
| AT_ScalpingParameters[0].rangefrom |
string |
Start value of the range |
| AT_ScalpingParameters[0].rangeto |
string |
End value of the range |
| AT_ScalpingParameters[0].rangesel |
string |
Range selection indicator |
| AT_ScalpingParameters[0].UP_Expdate |
string |
Expiration date for upside instrument |
| AT_ScalpingParameters[0].DN_Expdate |
string |
Expiration date for downside instrument |
| AT_OrderParameters[0].Entry_OrderType |
string |
Order type for entry execution |
| AT_OrderParameters[0].Entry_Percentage |
string |
Percentage used for entry calculation |
| AT_OrderParameters[0].Entry_Seconds |
string |
Delay in seconds before placing entry |
| AT_OrderParameters[0].Exit_OrderType |
string |
Order type for exit execution |
| AT_OrderParameters[0].Exit_Percentage |
string |
Percentage used for exit calculation |
| AT_OrderParameters[0].Exit_Seconds |
string |
Delay in seconds before placing exit |
| AT_OrderParameters[0].OrderSlicing_Selection |
string |
Indicates if order slicing is applied |
| AT_OrderParameters[0].orderSlicing_StepQuantity |
string |
Step quantity for order slicing |
| AT_TargetParameters[0].FixedProfit |
string |
Defines the fixed profit target |
| AT_TargetParameters[0].Criteria |
string |
Type of target criteria |
| AT_TargetParameters[0].Type |
string |
Indicates the target type |
| AT_TargetParameters[0].Xvalue |
string |
Auxiliary parameter X |
| AT_TargetParameters[0].Yvalue |
string |
Auxiliary parameter Y |
| AT_TargetParameters[0].Avalue |
string |
Auxiliary parameter A |
| AT_TargetParameters[0].Bvalue |
string |
Auxiliary parameter B |
| AT_ExitParameters[0].FixedLoss |
string |
Defines the fixed loss threshold |
| AT_DailyParamters[0].Monday |
string |
Defines if strategy runs on Monday |
| AT_DailyParamters[0].Tuesday |
string |
Defines if strategy runs on Tuesday |
| AT_DailyParamters[0].Wednesday |
string |
Defines if strategy runs on Wednesday |
| AT_DailyParamters[0].Thursday |
string |
Defines if strategy runs on Thursday |
| AT_DailyParamters[0].Friday |
string |
Defines if strategy runs on Friday |
| AT_DailyParamters[0].TimeFrame |
string |
Specifies the daily timeframe |
| AT_InitialOrder[0].selection |
string |
Indicates the selection type for the initial order |
| AT_InitialOrder[0].symbol |
string |
Trading symbol for the initial order |
| AT_InitialOrder[0].expdate |
string |
Expiration date for the initial order contract |
| AT_InitialOrder[0].instrument |
string |
Instrument type for the initial order |
| AT_InitialOrder[0].strikeprice |
string |
Strike price of the instrument for the initial order |
| AT_InitialOrder[0].qty |
string |
Order quantity for the initial order |
| AT_InitialOrder[0].stepqty |
string |
Step quantity used in order slicing |
| AT_InitialOrder[0].rangetype |
string |
Type of price range used for initial order |
| AT_InitialOrder[0].rangefrom |
string |
Start value of the initial order range |
| AT_InitialOrder[0].rangeto |
string |
End value of the initial order range |
| AT_InitialOrder[0].orderslicing |
string |
Indicates whether order slicing is enabled |
| AT_InitialOrder[0].Action |
string |
Order action to perform in the initial order |
| AT_ScalpingCustom[0].Criteriatype |
string |
Criteria type used for custom scalping |
| AT_ScalpingCustom[0].Price |
string |
Price value for scalping criteria |
| AT_ScalpingCustom[0].UP_DN |
string |
Defines direction for the scalping action |
| AT_ScalpingCustom[0].Instrument |
string |
Instrument type for custom scalping |
| AT_ScalpingCustom[0].expdate |
string |
Expiration date for the scalping instrument |
| AT_ScalpingCustom[0].StrikePrice |
string |
Strike price for custom scalping |
| AT_ScalpingCustom[0].Action |
string |
Action to perform for the scalping |
| AT_ScalpingCustom[0].Qty |
string |
Order quantity for scalping |
| AT_ScalpingCustom[0].TgtPrice |
string |
Target price for scalping |
| AT_ScalpingCustom[0].SLPrice |
string |
Stop loss price for scalping |
| AT_ScalpingCustom[0].ip1 |
string |
Additional parameter for scalping configuration |
Response Structure
{"status":"SUCCESS","reason":"Your Strategy Saved Successfully."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
The result of the service call indicating success or failure. |
| reason |
string |
The explanation message providing the reason for the status. |
Fetch Data
Retrieves market data or trade history relevant to scalping strategies.
curl --request POST \
--url https://localhost:44338/AT_getdata_internal \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"TCS_20250709183405"}
Request Parameters
| Field |
Type |
Description |
| StrategyName |
string |
Name of the trading strategy |
Response Structure
{"AT_TopParameters":[{"Spread":0.0,"GreaterLesser":"","EntryTime":"2025-07-10 09:17:00","ExitTime":"2025-07-11 09:18:00","BasedOnATM":0,"Validity":"Intraday","modeltype":"scalping","MoveStopLoss":0,"BasedOnPremium":0,"ScalpingCustom":"true","paperownname":"-","papertradingnew":"false","scalping_atm_price":"atm","DesiredPremiumChkorNot":0,"OrderParametersChkorNot":1,"disp_name":"NIFT_0909_124433"}],"AT_EntryParameters":[],"AT_SwitchParameters":[],"AT_ShiftingParameters":[],"AT_ScalpingParameters":[{"NoOfTimes":1,"Criteriatype":"Spot Points","UP_Pts":1.0,"UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"175","UP_Type":"PRM Pts","UP_TgtValue":"1.00","UP_SLValue":"1.00","DN_Pts":1.0,"DN_Instrument":"CE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"175","DN_Type":"PRM Pts","DN_TgtValue":"1.00","DN_SLValue":"1.00","WithoutEntry":"true","ContinuousBuySell":"false","rangetype":"Future Price","rangefrom":1.0,"rangeto":1.0,"rangesel":1,"UP_Expdate":"2025-07-31","DN_Expdate":"2025-07-31"}],"AT_OrderParameters":[{"Entry_OrderType":"Limit","Entry_Percentage":"1.00","Entry_Seconds":"1","Exit_OrderType":"Market-Limit","Exit_Percentage":"1.00","Exit_Seconds":"1","OrderSlicing_Selection":1,"orderSlicing_StepQuantity":175}],"AT_TargetParameters":[{"FixedProfit":"1000.00","Criteria":"Lock & Trail Profit","Type":"Value","Xvalue":"1.00","Yvalue":"1.00","Avalue":"1.00","Bvalue":"1.00"}],"AT_ExitParameters":[{"FixedLoss":"1.00"}],"AT_DailyParamters":[{"Monday":"False","Tuesday":"True","Wednesday":"False","Thursday":"False","Friday":"True","TimeFrame":"Weekly"}],"AT_ScalpingSpotParameters":[{"Checked":"False","Criteriatype":"-","UP_Price":0.0,"UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"","UP_TgtPrice":"","UP_SLPrice":"","DN_Price":0.0,"DN_Instrument":"PE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"","DN_TgtPrice":"","DN_SLPrice":""}],"DesiredPremiumStatus":[{"status":"Enable"}],"InitialOrderCompletedornot":[{"value":0}],"AT_TechnicalParameters":[],"AT_RentryTradeParameters":[{"Criteria":"-","NoOfTimes":0}],"AT_RentryParameters":[],"AT_InitialOrder":[{"selection":1,"symbol":"TCS","instrument":"CE","strikeprice":3380.0,"qty":175,"stepqty":175,"rangetype":"Spot Price","rangefrom":1.0,"rangeto":1.0,"expdate":"2025-07-31","orderslicing":1,"action":"BUY"}],"AT_ScalpingCustom":[{"Criteriatype":"Spot Price","Price":1.0,"UP_DN":"UP","Instrument":"CE","StrikePrice":3380.0,"Action":"BUY","Qty":175,"TgtPrice":1.0,"SLPrice":1.0,"ip1":24072,"Expdate":"2025-07-31","EnableDisable":"Enable"}]}
Response Parameters
| Field |
Type |
Description |
| AT_TopParameters.Spread |
number |
Defines the spread difference used in entry or exit calculation. |
| AT_TopParameters.GreaterLesser |
string |
Defines whether the comparison is greater than or lesser than. |
| AT_TopParameters.EntryTime |
string |
Start time for initiating the strategy. |
| AT_TopParameters.ExitTime |
string |
End time for terminating the strategy. |
| AT_TopParameters.BasedOnATM |
number |
Defines whether the strategy is based on ATM strike price. |
| AT_TopParameters.Validity |
string |
Defines how long the order or strategy remains valid. |
| AT_TopParameters.modeltype |
string |
Type of trading model being applied. |
| AT_TopParameters.MoveStopLoss |
number |
Enables or disables dynamic stop loss adjustments. |
| AT_TopParameters.BasedOnPremium |
number |
Defines whether the strategy is based on premium price. |
| AT_TopParameters.ScalpingCustom |
string |
Indicates whether scalping custom settings are applied. |
| AT_TopParameters.paperownname |
string |
Name assigned for paper trading configuration. |
| AT_TopParameters.papertradingnew |
string |
Indicates whether new paper trading mode is enabled. |
| AT_TopParameters.scalping_atm_price |
string |
Defines the ATM price source for scalping. |
| AT_TopParameters.DesiredPremiumChkorNot |
number |
Indicates whether to check for a specific desired premium. |
| AT_TopParameters.OrderParametersChkorNot |
number |
Indicates whether to apply order parameter validation. |
| AT_TopParameters.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| AT_ScalpingParameters.NoOfTimes |
number |
Number of times the scalping action should be attempted. |
| AT_ScalpingParameters.Criteriatype |
string |
Defines the condition type for scalping. |
| AT_ScalpingParameters.UP_Pts |
number |
Target points for upward action. |
| AT_ScalpingParameters.UP_Instrument |
string |
Instrument type for upward action. |
| AT_ScalpingParameters.UP_StrikeType |
string |
Strike type for upward action. |
| AT_ScalpingParameters.UP_Action |
string |
Action to perform when the upward condition is met. |
| AT_ScalpingParameters.UP_Qty |
string |
Quantity to buy or sell during upward action. |
| AT_ScalpingParameters.UP_Type |
string |
Type of parameter used for upward action. |
| AT_ScalpingParameters.UP_TgtValue |
string |
Target value for upward action. |
| AT_ScalpingParameters.UP_SLValue |
string |
Stop loss value for upward action. |
| AT_ScalpingParameters.DN_Pts |
number |
Target points for downward action. |
| AT_ScalpingParameters.DN_Instrument |
string |
Instrument type for downward action. |
| AT_ScalpingParameters.DN_StrikeType |
string |
Strike type for downward action. |
| AT_ScalpingParameters.DN_Action |
string |
Action to perform when the downward condition is met. |
| AT_ScalpingParameters.DN_Qty |
string |
Quantity to buy or sell during downward action. |
| AT_ScalpingParameters.DN_Type |
string |
Type of parameter used for downward action. |
| AT_ScalpingParameters.DN_TgtValue |
string |
Target value for downward action. |
| AT_ScalpingParameters.DN_SLValue |
string |
Stop loss value for downward action. |
| AT_ScalpingParameters.WithoutEntry |
string |
Determines whether the action occurs without an initial entry. |
| AT_ScalpingParameters.ContinuousBuySell |
string |
Enables or disables continuous buy and sell actions. |
| AT_ScalpingParameters.rangetype |
string |
Defines the price range type for executing actions. |
| AT_ScalpingParameters.rangefrom |
number |
Starting value of the price range. |
| AT_ScalpingParameters.rangeto |
number |
Ending value of the price range. |
| AT_ScalpingParameters.rangesel |
number |
Selection option for the price range. |
| AT_ScalpingParameters.UP_Expdate |
string |
Expiry date for upward action instruments. |
| AT_ScalpingParameters.DN_Expdate |
string |
Expiry date for downward action instruments. |
| AT_OrderParameters.Entry_OrderType |
string |
Order type used for entry (buy or sell). |
| AT_OrderParameters.Entry_Percentage |
string |
Percentage adjustment applied to the entry order price. |
| AT_OrderParameters.Entry_Seconds |
string |
Delay in seconds before placing the entry order. |
| AT_OrderParameters.Exit_OrderType |
string |
Order type used for exit (sell or buy). |
| AT_OrderParameters.Exit_Percentage |
string |
Percentage adjustment applied to the exit order price. |
| AT_OrderParameters.Exit_Seconds |
string |
Delay in seconds before placing the exit order. |
| AT_OrderParameters.OrderSlicing_Selection |
number |
Enables or disables order slicing feature. |
| AT_OrderParameters.orderSlicing_StepQuantity |
number |
Quantity to be executed per slicing step. |
| AT_TargetParameters.FixedProfit |
string |
Fixed profit amount at which the position should be exited. |
| AT_TargetParameters.Criteria |
string |
Defines the condition to trigger the target logic. |
| AT_TargetParameters.Type |
string |
Defines whether the target is based on a value or percentage. |
| AT_TargetParameters.Xvalue |
string |
Custom parameter for target condition X. |
| AT_TargetParameters.Yvalue |
string |
Custom parameter for target condition Y. |
| AT_TargetParameters.Avalue |
string |
Custom parameter for target condition A. |
| AT_TargetParameters.Bvalue |
string |
Custom parameter for target condition B. |
| AT_ExitParameters.FixedLoss |
string |
Fixed loss amount at which the position should be exited. |
| AT_DailyParamters.Monday |
string |
Indicates whether the strategy should run on Monday. |
| AT_DailyParamters.Tuesday |
string |
Indicates whether the strategy should run on Tuesday. |
| AT_DailyParamters.Wednesday |
string |
Indicates whether the strategy should run on Wednesday. |
| AT_DailyParamters.Thursday |
string |
Indicates whether the strategy should run on Thursday. |
| AT_DailyParamters.Friday |
string |
Indicates whether the strategy should run on Friday. |
| AT_DailyParamters.TimeFrame |
string |
Defines the overall time frame of the strategy execution. |
| AT_ScalpingSpotParameters.Checked |
string |
Indicates whether the scalping spot parameters are enabled. |
| AT_ScalpingSpotParameters.Criteriatype |
string |
Defines the criteria type for scalping based on spot price. |
| AT_ScalpingSpotParameters.UP_Price |
number |
Spot price for the upward action trigger. |
| AT_ScalpingSpotParameters.UP_Instrument |
string |
Instrument type for the upward scalping action. |
| AT_ScalpingSpotParameters.UP_StrikeType |
string |
Strike type for the upward scalping action. |
| AT_ScalpingSpotParameters.UP_Action |
string |
Action type for upward scalping. |
| AT_ScalpingSpotParameters.UP_Qty |
string |
Quantity for the upward scalping action. |
| AT_ScalpingSpotParameters.UP_TgtPrice |
string |
Target price for the upward scalping action. |
| AT_ScalpingSpotParameters.UP_SLPrice |
string |
Stop loss price for the upward scalping action. |
| AT_ScalpingSpotParameters.DN_Price |
number |
Spot price for the downward action trigger. |
| AT_ScalpingSpotParameters.DN_Instrument |
string |
Instrument type for the downward scalping action. |
| AT_ScalpingSpotParameters.DN_StrikeType |
string |
Strike type for the downward scalping action. |
| AT_ScalpingSpotParameters.DN_Action |
string |
Action type for downward scalping. |
| AT_ScalpingSpotParameters.DN_Qty |
string |
Quantity for the downward scalping action. |
| AT_ScalpingSpotParameters.DN_TgtPrice |
string |
Target price for the downward scalping action. |
| AT_ScalpingSpotParameters.DN_SLPrice |
string |
Stop loss price for the downward scalping action. |
| DesiredPremiumStatus.status |
string |
Status to enable or disable premium checking. |
| InitialOrderCompletedornot.value |
number |
Indicates whether the initial order has been completed. |
| AT_RentryTradeParameters.Criteria |
string |
Criteria for triggering re-entry into a trade. |
| AT_RentryTradeParameters.NoOfTimes |
number |
Number of times re-entry is allowed. |
| AT_InitialOrder.selection |
number |
Selection identifier for the initial order setup. |
| AT_InitialOrder.symbol |
string |
Trading symbol for the initial order. |
| AT_InitialOrder.instrument |
string |
Instrument type used in the initial order. |
| AT_InitialOrder.strikeprice |
number |
Strike price used in the initial order. |
| AT_InitialOrder.qty |
number |
Order quantity for the initial trade. |
| AT_InitialOrder.stepqty |
number |
Step quantity used when slicing orders. |
| AT_InitialOrder.rangetype |
string |
Price range type for initial order execution. |
| AT_InitialOrder.rangefrom |
number |
Start value of the price range for the initial order. |
| AT_InitialOrder.rangeto |
number |
End value of the price range for the initial order. |
| AT_InitialOrder.expdate |
string |
Expiry date for the initial order's instrument. |
| AT_InitialOrder.orderslicing |
number |
Enables or disables order slicing for the initial order. |
| AT_InitialOrder.action |
string |
Buy or sell action for the initial order. |
| AT_ScalpingCustom.Criteriatype |
string |
Criteria type used for custom scalping. |
| AT_ScalpingCustom.Price |
number |
Trigger price for the scalping action. |
| AT_ScalpingCustom.UP_DN |
string |
Indicates whether the custom scalping is for upward or downward action. |
| AT_ScalpingCustom.Instrument |
string |
Instrument type for the custom scalping. |
| AT_ScalpingCustom.StrikePrice |
number |
Strike price used in the custom scalping. |
| AT_ScalpingCustom.Action |
string |
Buy or sell action for the custom scalping. |
| AT_ScalpingCustom.Qty |
number |
Quantity for the custom scalping action. |
| AT_ScalpingCustom.TgtPrice |
number |
Target price for the custom scalping action. |
| AT_ScalpingCustom.SLPrice |
number |
Stop loss price for the custom scalping action. |
| AT_ScalpingCustom.ip1 |
number |
Internal parameter used for custom scalping reference. |
| AT_ScalpingCustom.Expdate |
string |
Expiry date for the custom scalping instrument. |
| AT_ScalpingCustom.EnableDisable |
string |
Enables or disables the custom scalping action. |
Trading View
Build and automate your trading strategies with TradingView charts on Modern Algos. Use technical indicators to streamline entry and exit points.
Get Candles Data
Retrieves historical or real-time candlestick chart data.
curl --request POST \
--url https://localhost:44338/get_candlesdata \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"exchange":"NSE","from":1717286400,"to":1752278400,"interval":"1D","symbol":"NIFTY"}
Request Parameters
| Field |
Type |
Description |
| exchange |
string |
The exchange where the symbol is traded |
| from |
int |
The start timestamp of the data range in Unix epoch format (seconds) |
| to |
int |
The end timestamp of the data range in Unix epoch format (seconds) |
| interval |
string |
The time interval for the data aggregation (e.g, 1D,1HR,30M,15M,5M,3M,1M ) |
| symbol |
string |
The trading symbol for which the data is requested |
Response Structure
[{"time":1714761000000,"open":22766.35,"high":22794.7,"low":22348.05,"close":22475.85,"volume":0,"tempcheck":"2024-05-03T00:00:00"}...]
Response Parameters
| Field |
Type |
Description |
| time |
int |
The timestamp of the data point in milliseconds since the Unix epoch (UTC). |
| open |
double |
The opening price at the start of the specified time period. |
| high |
double |
The highest price recorded during the specified time period. |
| low |
double |
The lowest price recorded during the specified time period. |
| close |
double |
The closing price at the end of the specified time period. |
| volume |
int |
The total traded volume for the specified time period. |
| tempcheck |
string |
The date in ISO 8601 format representing the time period for reference. |
Get Watchlist
Retrieves the list of saved financial instruments or stocks
curl --request POST \
--url https://localhost:44338/mkwatch_summary \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"LotSize":1,"Symbol":"BANKNIFTY","Open":57199.75,"High":57290.65,"Low":57037.9,"Close":57177.4,"PClose":57256.3,"Volume":0,"AvgPrice":0.0,"PriceChg":-0.14,"Token":0,"Exchange":"NSE","MAESymbol":"BANKNIFTY"}...]
Response Parameters
| Field |
Type |
Description |
| LotSize |
int |
Represents the lot size for the instrument |
| Symbol |
string |
Represents the trading symbol of the instrument |
| Open |
double |
The opening price of the instrument for the current trading session |
| High |
double |
The highest price recorded during the current trading session |
| Low |
double |
The lowest price recorded during the current trading session |
| Close |
double |
The latest closing price of the instrument |
| PClose |
double |
The previous closing price of the instrument |
| Volume |
int |
The total traded volume of the instrument |
| AvgPrice |
double |
The average traded price during the session |
| PriceChg |
double |
The percentage change in price compared to the previous close |
| Token |
int |
The unique token or identifier assigned to the instrument |
| Exchange |
string |
The exchange where the instrument is listed |
| MAESymbol |
string |
The mapped or alternate symbol for the instrument |
Add Symbol
Adds a new financial instrument or stock to the watchlist
curl --request POST \
--url https://localhost:44338/mkwatch_add \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","exchange":"NSE"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the trading symbol of the security. |
| exchange |
string |
Specifies the exchange on which the security is listed. |
Response Structure
{"status":"Success","reason":"Already Exists."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Delete Symbol
Removes a financial instrument or stock from the watchlist
curl --request POST \
--url https://localhost:44338/mkwatch_delete \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"ABCAPITAL"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the trading symbol of the security. |
Response Structure
{"status":"Success","reason":"Deleted Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Get Templates
Retrieves saved chart or trading configuration templates
curl --request POST \
--url https://localhost:44338/chart_show_template \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"Data":{"atrstddev":{"2cDe9J":{"name":"Volume","input":{"symbol":"","showMA":false,"length":20,"col_prev_close":false,"smoothingLine":"SMA","smoothingLength":9}},"IPQae2":{"name":"Average True Range","input":{"in_0":14}},"cbuqqp":{"name":"Standard Deviation","input":{"periods":14,"deviations":1}}}},"ip1":379},{"Data":{"stddev_atr":{"oZMsZg":{"name":"Volume","input":{"symbol":"","showMA":false,"length":20,"col_prev_close":false,"smoothingLine":"SMA","smoothingLength":9}},"iAgDob":{"name":"Standard Deviation","input":{"periods":20,"deviations":1}},"0eIfw3":{"name":"Average True Range","input":{"in_0":14}}}},"ip1":732},{"Data":{"ppppp":{"nXeGov":{"name":"Volume","input":{"symbol":"","showMA":false,"length":20,"col_prev_close":false,"smoothingLine":"SMA","smoothingLength":9}}}},"ip1":1192},{"Data":{"vwaps":{"Nul1k6":{"name":"VWAP","input":{}},"1JwUJX":{"name":"Volume","input":{"symbol":"","showMA":false,"length":20,"col_prev_close":false,"smoothingLine":"SMA","smoothingLength":9}}}},"ip1":1366},{"Data":{"sss":{"jVMe6Y":{"name":"Volume","input":{"symbol":"","showMA":false,"length":20,"col_prev_close":false,"smoothingLine":"SMA","smoothingLength":9}}}},"ip1":1391}]
Response Parameters
| Field |
Type |
Description |
| Data.atrstddev.2cDe9J.name |
string |
Name of the Volume indicator. |
| Data.atrstddev.2cDe9J.input.symbol |
string |
Symbol for the indicator input. |
| Data.atrstddev.2cDe9J.input.showMA |
boolean |
Flag to show or hide the moving average. |
| Data.atrstddev.2cDe9J.input.length |
int |
Length for the calculation period. |
| Data.atrstddev.2cDe9J.input.col_prev_close |
boolean |
Flag to use the previous close for calculation. |
| Data.atrstddev.2cDe9J.input.smoothingLine |
string |
Type of smoothing applied to the line. |
| Data.atrstddev.2cDe9J.input.smoothingLength |
int |
Length of the smoothing line. |
| Data.atrstddev.IPQae2.name |
string |
Name of the Average True Range indicator. |
| Data.atrstddev.IPQae2.input.in_0 |
int |
Period for the Average True Range calculation. |
| Data.atrstddev.cbuqqp.name |
string |
Name of the Standard Deviation indicator. |
| Data.atrstddev.cbuqqp.input.periods |
int |
Number of periods for standard deviation calculation. |
| Data.atrstddev.cbuqqp.input.deviations |
int |
Number of deviations for calculation. |
| ip1 |
int |
Unique identifier for the configuration. |
| Data.stddev_atr.oZMsZg.name |
string |
Name of the Volume indicator. |
| Data.stddev_atr.oZMsZg.input.symbol |
string |
Symbol for the indicator input. |
| Data.stddev_atr.oZMsZg.input.showMA |
boolean |
Flag to show or hide the moving average. |
| Data.stddev_atr.oZMsZg.input.length |
int |
Length for the calculation period. |
| Data.stddev_atr.oZMsZg.input.col_prev_close |
boolean |
Flag to use the previous close for calculation. |
| Data.stddev_atr.oZMsZg.input.smoothingLine |
string |
Type of smoothing applied to the line. |
| Data.stddev_atr.oZMsZg.input.smoothingLength |
int |
Length of the smoothing line. |
| Data.stddev_atr.iAgDob.name |
string |
Name of the Standard Deviation indicator. |
| Data.stddev_atr.iAgDob.input.periods |
int |
Number of periods for standard deviation calculation. |
| Data.stddev_atr.iAgDob.input.deviations |
int |
Number of deviations for calculation. |
| Data.stddev_atr.0eIfw3.name |
string |
Name of the Average True Range indicator. |
| Data.stddev_atr.0eIfw3.input.in_0 |
int |
Period for the Average True Range calculation. |
| ip1 |
int |
Unique identifier for the configuration. |
| Data.ppppp.nXeGov.name |
string |
Name of the Volume indicator. |
| Data.ppppp.nXeGov.input.symbol |
string |
Symbol for the indicator input. |
| Data.ppppp.nXeGov.input.showMA |
boolean |
Flag to show or hide the moving average. |
| Data.ppppp.nXeGov.input.length |
int |
Length for the calculation period. |
| Data.ppppp.nXeGov.input.col_prev_close |
boolean |
Flag to use the previous close for calculation. |
| Data.ppppp.nXeGov.input.smoothingLine |
string |
Type of smoothing applied to the line. |
| Data.ppppp.nXeGov.input.smoothingLength |
int |
Length of the smoothing line. |
| ip1 |
int |
Unique identifier for the configuration. |
| Data.vwaps.Nul1k6.name |
string |
Name of the VWAP indicator. |
| Data.vwaps.Nul1k6.input |
object |
Input parameters for the VWAP indicator. |
| Data.vwaps.1JwUJX.name |
string |
Name of the Volume indicator. |
| Data.vwaps.1JwUJX.input.symbol |
string |
Symbol for the indicator input. |
| Data.vwaps.1JwUJX.input.showMA |
boolean |
Flag to show or hide the moving average. |
| Data.vwaps.1JwUJX.input.length |
int |
Length for the calculation period. |
| Data.vwaps.1JwUJX.input.col_prev_close |
boolean |
Flag to use the previous close for calculation. |
| Data.vwaps.1JwUJX.input.smoothingLine |
string |
Type of smoothing applied to the line. |
| Data.vwaps.1JwUJX.input.smoothingLength |
int |
Length of the smoothing line. |
| ip1 |
int |
Unique identifier for the configuration. |
| Data.sss.jVMe6Y.name |
string |
Name of the Volume indicator. |
| Data.sss.jVMe6Y.input.symbol |
string |
Symbol for the indicator input. |
| Data.sss.jVMe6Y.input.showMA |
boolean |
Flag to show or hide the moving average. |
| Data.sss.jVMe6Y.input.length |
int |
Length for the calculation period. |
| Data.sss.jVMe6Y.input.col_prev_close |
boolean |
Flag to use the previous close for calculation. |
| Data.sss.jVMe6Y.input.smoothingLine |
string |
Type of smoothing applied to the line. |
| Data.sss.jVMe6Y.input.smoothingLength |
int |
Length of the smoothing line. |
| ip1 |
int |
Unique identifier for the configuration. |
Add Template
Saves a new chart or trading configuration template
curl --request POST \
--url https://localhost:44338/chart_add_template \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"data":{"service":{"C6V2d7":{"name":"Volume","input":{"symbol":"","showMA":false,"length":20,"col_prev_close":false,"smoothingLine":"SMA","smoothingLength":9}}}}}
Request Parameters
| Field |
Type |
Description |
| data.service.C6V2d7.name |
string |
Name of the service |
| data.service.C6V2d7.input.symbol |
string |
Trading symbol to analyze |
| data.service.C6V2d7.input.showMA |
boolean |
Specifies whether to display the moving average |
| data.service.C6V2d7.input.length |
int |
Period length for calculation |
| data.service.C6V2d7.input.col_prev_close |
boolean |
Determines whether to consider the previous close in calculations |
| data.service.C6V2d7.input.smoothingLine |
string |
Type of smoothing line used for analysis |
| data.service.C6V2d7.input.smoothingLength |
int |
Length of the smoothing period |
Response Structure
{"status":"SUCCESS","reason":"Added template Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Delete Template
Deletes an existing chart or trading configuration template
curl --request POST \
--url https://localhost:44338/chart_delete_template \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"ip1" : 1397}
Request Parameters
| Field |
Type |
Description |
| ip1 |
int |
Internal process identifier 1 |
Response Structure
{"status":"SUCCESS","reason":"Deleted template Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Get Technical Trading Data
Retrieves technical analysis data for trading
curl --request POST \
--url https://localhost:44338/autotrade_paramters \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","modeltype":"chart"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the name of the financial instrument. |
| modeltype |
string |
Defines the type of model used for processing the data. |
Response Structure
{"AdjustParamters":[{"AdjustParamters":"Spot Points"}],"OrderParameters":[{"OrderParameters":"Market"}],"ATMParameters":[{"ATMParameters":"ATM+50"}],"ExitParameters":[{"ExitParameters":"None"}],"InputParameters":[{"InputParameters":"Pts"}],"TargetParameters":[{"TargetParameters":"None"}],"OTypeParameters":[{"CEPEParameters":"CE"}],"TargetTypeParameters":[{"InputParameters":"Value"}],"ModeType":[{"ModelType":"Intraday"}],"InstrumentParameters":[{"ModelType":"CE"}],"ScalpingInputParameters":[{"ScalpingInputParamters":"PRM Pts"}],"SpotPrice":[{"SpotPrice":25390.3}],"FuturePrice":[{"FuturePrice":25462.0}],"Scalping_CE":[{"Scalping_CE":"PRM Pts"}],"Scalping_PE":[{"Scalping_PE":"PRM Pts"}],"Scalping_XX":[{"Scalping_XX":"Fut Pts"}],"Scalping_FUT":[{"Scalping_FUT":"Fut Pts"}],"Reentry_individual":[{"ReentryIndividual":"None"}],"Reentry_Trade":[{"Reentry_Trade":"None"}],"Technical_Names":[{"TechnicalNames":"ADX"}],"Technical_Operators":[{"Technical_Operators":"Greater Than ( > )"}],"Technical_Timeframe":[{"Technical_Timeframe":"1 Min"}],"ScalpingRangeDropDown":[{"Scalping_Category":"Spot Price"}],"Scalping_EQ":[{"Scalping_EQ":"EQ Pts"}],"DefineRangeType":[{"DefineRangeType":"Future Price"}],"LotSize":[{"LotSize":75}],"ExpDate":[{"Expdate":"2025-07-10"}],"LiveTrend":[{"LiveTrend":"Bearish"}],"ATMStrike":[{"StrikePrice":25400.0}]}
Response Parameters
| Field |
Type |
Description |
| AdjustParamters.AdjustParamters |
string |
Defines the adjustment points or parameters applied to a trading position. |
| OrderParameters.OrderParameters |
string |
Specifies the type of order execution strategy. |
| ATMParameters.ATMParameters |
string |
Defines the strike price adjustment relative to the at-the-money (ATM) level. |
| ExitParameters.ExitParameters |
string |
Determines the exit conditions or strategy for a trade. |
| InputParameters.InputParameters |
string |
Defines the input measurement units for the strategy. |
| TargetParameters.TargetParameters |
string |
Specifies the profit target conditions for the trade. |
| OTypeParameters.CEPEParameters |
string |
Defines the option type for the trade. |
| TargetTypeParameters.InputParameters |
string |
Specifies how the target is defined in terms of type. |
| ModeType.ModelType |
string |
Indicates the overall trading mode or strategy type. |
| InstrumentParameters.ModelType |
string |
Specifies the financial instrument type used in the trade. |
| ScalpingInputParameters.ScalpingInputParamters |
string |
Defines the scalping strategy input values for the trade. |
| SpotPrice.SpotPrice |
double |
Represents the live spot price of the underlying asset. |
| FuturePrice.FuturePrice |
double |
Represents the live future price of the underlying asset. |
| Scalping_CE.Scalping_CE |
string |
Defines scalping parameters for call options (CE). |
| Scalping_PE.Scalping_PE |
string |
Defines scalping parameters for put options (PE). |
| Scalping_XX.Scalping_XX |
string |
Defines scalping parameters for a generic future trade. |
| Scalping_FUT.Scalping_FUT |
string |
Defines scalping parameters specifically for futures contracts. |
| Reentry_individual.ReentryIndividual |
string |
Specifies individual re-entry conditions for a trade. |
| Reentry_Trade.Reentry_Trade |
string |
Defines the trade-wide re-entry strategy conditions. |
| Technical_Names.TechnicalNames |
string |
Specifies the technical indicator applied in the strategy. |
| Technical_Operators.Technical_Operators |
string |
Defines the comparison operator used with technical indicators. |
| Technical_Timeframe.Technical_Timeframe |
string |
Indicates the time interval used for technical analysis. |
| ScalpingRangeDropDown.Scalping_Category |
string |
Defines the category for scalping range selection. |
| Scalping_EQ.Scalping_EQ |
string |
Defines scalping parameters for equity instruments. |
| DefineRangeType.DefineRangeType |
string |
Specifies whether the strategy range is based on spot or future prices. |
| LotSize.LotSize |
int |
Specifies the lot size for the financial instrument being traded. |
| ExpDate.Expdate |
string |
Defines the expiry date of the trading contract. |
| LiveTrend.LiveTrend |
string |
Represents the current market trend direction. |
| ATMStrike.StrikePrice |
double |
Specifies the at-the-money strike price for the option. |
Function Data
Fetches data for specific technical indicators
curl --request POST \
--url https://localhost:44338/technical_param_right \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"indicator":"EMA High"}
Request Parameters
| Field |
Type |
Description |
| indicator |
string |
The technical indicator name used for analysis. |
Response Structure
{"After":[{"Name":"EMA High","a_label1":"Period","a_value1":"21","a_label2":"","a_value2":"","a_label3":"","a_value3":""}]}{"After":[{"Name":"EMA High","a_label1":"Period","a_value1":"21","a_label2":"","a_value2":"","a_label3":"","a_value3":""}]}
Response Parameters
| Field |
Type |
Description |
| After.Name |
string |
The name of the service property. |
| After.a_label1 |
string |
The first label of the property. |
| After.a_value1 |
string |
The first value associated with the label. |
| After.a_label2 |
string |
The second label of the property. |
| After.a_value2 |
string |
The second value associated with the label. |
| After.a_label3 |
string |
The third label of the property. |
| After.a_value3 |
string |
The third value associated with the label. |
Indicator Data
Fetches data for specific technical indicators
curl --request POST \
--url https://localhost:44338/technical_param \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"indicator":"EMA"}
Request Parameters
| Field |
Type |
Description |
| indicator |
string |
The technical indicator name used for analysis. |
Response Structure
{"Before":[{"Name":"EMA","a_label1":"Period","a_value1":"21","a_label2":"","a_value2":"","a_label3":"","a_value3":""}],"After":[{"Name":"EMA","a_label1":"Period","a_value1":"50","a_label2":"","a_value2":"","a_label3":"","a_value3":""}]}
Response Parameters
| Field |
Type |
Description |
| Before.Name |
string |
The name of the technical indicator. |
| Before.a_label1 |
string |
The first parameter label for the indicator. |
| Before.a_value1 |
string |
The first parameter value for the indicator. |
| Before.a_label2 |
string |
The second parameter label for the indicator. |
| Before.a_value2 |
string |
The second parameter value for the indicator. |
| Before.a_label3 |
string |
The third parameter label for the indicator. |
| Before.a_value3 |
string |
The third parameter value for the indicator. |
| After.Name |
string |
The name of the technical indicator. |
| After.a_label1 |
string |
The first parameter label for the indicator. |
| After.a_value1 |
string |
The first parameter value for the indicator. |
| After.a_label2 |
string |
The second parameter label for the indicator. |
| After.a_value2 |
string |
The second parameter value for the indicator. |
| After.a_label3 |
string |
The third parameter label for the indicator. |
| After.a_value3 |
string |
The third parameter value for the indicator. |
Add/Update
Adds a new record or updates an existing one
curl --request POST \
--url https://localhost:44338/AT_Chartadd \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"validation":"2025071011936972","uid":"0","Tabname":"AT_Trade","disp_name":"NIFT_0909_124433","Request":"ADD","Validity":"Intraday","strategyname":"","modeltype":"chart","symbol":"NIFTY","symbolchart":"NIFTY","exchange":"NSE","papertradingnew":"false","paperownname":"","AT_TopParameters":[{"Spread":"0","GreaterLesser":"greater than","EntryTime":"2025-07-10 12:53","ExitTime":"2025-07-11 15:29","BasedOnATM":"1","Continous_in_Exit":"1","entry_tgtsl":"1","exit_tgtsl":"1","tt_tgtparameters":"0","tt_definetime":"1","Order_Type":"Market"}],"AT_EntryParameters":[{"Symbol":"NIFTY","ExpDate":"2025-07-10","Instrument":"CE","StrikePrice":"25400","BuySell":"BUY","Qty":"75","Delta":"0","Price":"0","StrikeType":"ATM","Type":"Pts","Exit":"NONE","Tgt":"1","SL":"1","TrailTGT":"1","TrailSL":"1","PartialQuantity":"","ip2":"0","NoOfTimes":"1"}],"AT_EntryParameters_Reverse":[{"Symbol":"NIFTY","ExpDate":"2025-07-10","Instrument":"CE","StrikePrice":"25400","BuySell":"BUY","Qty":"75","Delta":"0","Price":"0","StrikeType":"ATM","Type":"Pts","Exit":"NONE","Tgt":"1","SL":"1","TrailTGT":"1","TrailSL":"1","PartialQuantity":"","ip2":"0","NoOfTimes":"1"}],"AT_TargetParameters":[{"FixedProfit":"0","Criteria":"None","Type":"Value","Xvalue":"0","Yvalue":"0","Avalue":"0","Bvalue":"0"}],"AT_ExitParameters":[{"FixedLoss":"0"}],"AT_TechnicalParameters":[{"value":"EMA,21,Greater Than ( > ),EMA High,21,AND","TimeFrame":"5"}],"AT_TechnicalParametersExit":[{"value":"Bollinger Band Lower,20,2,Greater Than ( > ),Close,AND","TimeFrame":"5"}],"AT_DailyParamters":[{"Monday":"True","Tuesday":"False","Wednesday":"True","Thursday":"False","Friday":"True","TimeFrame":"WEEKLY"}]}
Request Parameters
| Field |
Type |
Description |
| validation |
string |
Unique validation ID for the request. |
| uid |
string |
User ID associated with the request. |
| Tabname |
string |
Specifies the tab name under which the trade configuration is saved. |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| Request |
string |
Action to be performed on the configuration (e.g., ADD, UPDATE). |
| Validity |
string |
Defines the validity period of the trade setup. |
| strategyname |
string |
If Strategy adding, pass the strategy name as an empty string (e,g:- " "); otherwise, pass the selected strategy name. |
| modeltype |
string |
Indicates the type of model used for the strategy. |
| symbol |
string |
The trading symbol used in the strategy. |
| symbolchart |
string |
The symbol used for charting purposes. |
| exchange |
string |
The exchange where the trade is executed. |
| papertradingnew |
string |
Specifies whether paper trading is enabled. |
| paperownname |
string |
Name assigned to the paper trading account. |
| AT_TopParameters.Spread |
string |
The spread value considered for the strategy. |
| AT_TopParameters.GreaterLesser |
string |
Defines the comparison condition used for parameter evaluation. |
| AT_TopParameters.EntryTime |
string |
The entry time for initiating trades. |
| AT_TopParameters.ExitTime |
string |
The exit time for closing trades. |
| AT_TopParameters.BasedOnATM |
string |
Indicates if the strategy is based on ATM (At the Money) strikes. |
| AT_TopParameters.Continous_in_Exit |
string |
Specifies if exit conditions are continuously monitored. |
| AT_TopParameters.entry_tgtsl |
string |
Defines if entry-level target and stop-loss are applied. |
| AT_TopParameters.exit_tgtsl |
string |
Defines if exit-level target and stop-loss are applied. |
| AT_TopParameters.tt_tgtparameters |
string |
Defines target parameters for trailing or threshold setup. |
| AT_TopParameters.tt_definetime |
string |
Defines if the strategy considers a specific time for targets. |
| AT_TopParameters.Order_Type |
string |
The order type to be placed during execution. |
| AT_TopParameters.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| AT_EntryParameters.Symbol |
string |
The trading symbol for the entry order. |
| AT_EntryParameters.ExpDate |
string |
Expiry date of the contract being traded. |
| AT_EntryParameters.Instrument |
string |
The instrument type of the contract (e.g., CE or PE). |
| AT_EntryParameters.StrikePrice |
string |
Strike price for the option contract. |
| AT_EntryParameters.BuySell |
string |
Indicates whether the action is Buy or Sell. |
| AT_EntryParameters.Qty |
string |
Quantity to be traded. |
| AT_EntryParameters.Delta |
string |
The delta value considered for entry. |
| AT_EntryParameters.Price |
string |
The price at which the entry order is placed. |
| AT_EntryParameters.StrikeType |
string |
Specifies the strike type (e.g., ATM). |
| AT_EntryParameters.Type |
string |
The unit type for targets and stop-loss. |
| AT_EntryParameters.Exit |
string |
Exit condition applied on the entry order. |
| AT_EntryParameters.Tgt |
string |
The target value for the entry. |
| AT_EntryParameters.SL |
string |
The stop-loss value for the entry. |
| AT_EntryParameters.TrailTGT |
string |
The trailing target configuration. |
| AT_EntryParameters.TrailSL |
string |
The trailing stop-loss configuration. |
| AT_EntryParameters.PartialQuantity |
string |
Specifies if partial quantity is applied in the order. |
| AT_EntryParameters.ip2 |
string |
Custom parameter used for internal processing. |
| AT_EntryParameters.NoOfTimes |
string |
The number of times the entry is executed. |
| AT_TargetParameters.FixedProfit |
string |
Fixed profit amount targeted in the strategy. |
| AT_TargetParameters.Criteria |
string |
The condition applied for target achievement. |
| AT_TargetParameters.Type |
string |
The type of value considered for the target. |
| AT_TargetParameters.Xvalue |
string |
Additional value for advanced target calculation. |
| AT_TargetParameters.Yvalue |
string |
Additional value for advanced target calculation. |
| AT_TargetParameters.Avalue |
string |
Additional value for advanced target calculation. |
| AT_TargetParameters.Bvalue |
string |
Additional value for advanced target calculation. |
| AT_ExitParameters.FixedLoss |
string |
Fixed loss threshold at which to exit the trade. |
| AT_TechnicalParameters.value |
string |
The technical indicator condition applied for entry. |
| AT_TechnicalParameters.TimeFrame |
string |
Timeframe used for evaluating the entry technical indicator. |
| AT_TechnicalParametersExit.value |
string |
The technical indicator condition applied for exit. |
| AT_TechnicalParametersExit.TimeFrame |
string |
Timeframe used for evaluating the exit technical indicator. |
| AT_DailyParamters.Monday |
string |
Specifies if the strategy is active on Monday. |
| AT_DailyParamters.Tuesday |
string |
Specifies if the strategy is active on Tuesday. |
| AT_DailyParamters.Wednesday |
string |
Specifies if the strategy is active on Wednesday. |
| AT_DailyParamters.Thursday |
string |
Specifies if the strategy is active on Thursday. |
| AT_DailyParamters.Friday |
string |
Specifies if the strategy is active on Friday. |
| AT_DailyParamters.TimeFrame |
string |
The timeframe for daily strategy activation. |
Response Structure
{"status":"SUCCESS","reason":"Your Strategy Saved Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Fetch Data
Retrieves requested data from the source
curl --request POST \
--url https://localhost:44338/AT_Chartget \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"NIFTY_20250710110945","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
Represents the name of the trading strategy. |
| papertradingnew |
boolean |
Specifies whether the strategy runs in paper trading mode. |
Response Structure
{"AT_TopParameters":[{"Spread":0.0,"GreaterLesser":"greater than","EntryTime":"2025-07-10 12:53:00","ExitTime":"2025-07-11 15:29:00","BasedOnATM":1,"Validity":"Intraday","modeltype":"chart","Continous_in_Exit":1,"Exchange":"NSE","ChartSymbol":"NIFTY","paperownname":"","papertradingnew":"false","entry_tgtsl":1,"exit_tgtsl":1,"tt_tgtparameters":0,"tt_definetime":1,"Order_Type":"Market","symbolonly":"NIFTY"}],"AT_EntryParameters":[{"Symbol":"NIFTY","ExpDate":"2025-07-10","Instrument":"CE","StrikePrice":25400.0,"BuySell":"BUY","Qty":75.0,"Price":0.0,"StrikeType":"ATM","TYPE":"Pts","Exit":"Sq Off Leg","Tgt":"1.00","SL":"1.00","TrailTGT":"1.00","TrailSL":"1.00","PartialQuantity":"","IP2":123134,"Delta":0.0,"NoOfTimes":1}],"AT_SwitchParameters":[{"NoOfTimes":0,"Instrument":"CE","ExpDate":"2025-07-10","Tgt_Strike":"0","Tgt_Action":"-","Tgt_Qty":0,"SL_Strike":"0","SL_Action":"-","SL_Qty":0}],"AT_ShiftingParameters":[{"NoOfTimes":0,"Instrument":"CE","ExpDate":"2025-07-10","UP_Pts":"","UP_Strike":"0","UP_Action":"-","UP_Qty":0.0,"DN_Pts":"","DN_Strike":"0","DN_Action":"-","DN_Qty":0.0}],"AT_ScalpingParameters":[{"NoOfTimes":0,"Criteriatype":"-","UP_Pts":0.0,"UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"","UP_Type":"Pts","UP_TgtValue":"","UP_SLValue":"","DN_Pts":0.0,"DN_Instrument":"CE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"","DN_Type":"Pts","DN_TgtValue":"","DN_SLValue":"","WithoutEntry":"False","ContinuousBuySell":"False"}],"AT_OrderParameters":[{"Entry_OrderType":"Market","Entry_Percentage":"","Entry_Seconds":"","Exit_OrderType":"Market","Exit_Percentage":"","Exit_Seconds":""}],"AT_TargetParameters":[{"FixedProfit":"","Criteria":"None","Type":"Value","Xvalue":"","Yvalue":"","Avalue":"","Bvalue":""}],"AT_ExitParameters":[{"FixedLoss":""}],"AT_DailyParamters":[{"Monday":"True","Tuesday":"False","Wednesday":"True","Thursday":"False","Friday":"True","TimeFrame":"WEEKLY"}],"AT_ScalpingSpotParameters":[{"Checked":"False","Criteriatype":"-","UP_Price":0.0,"UP_Instrument":"CE","UP_StrikeType":"ATM","UP_Action":"BUY","UP_Qty":"","UP_TgtPrice":"","UP_SLPrice":"","DN_Price":0.0,"DN_Instrument":"PE","DN_StrikeType":"ATM","DN_Action":"BUY","DN_Qty":"","DN_TgtPrice":"","DN_SLPrice":""}],"DesiredPremiumStatus":[{"status":"Enable"}],"AT_TechnicalParameters":[{"value":"EMA,21,Greater Than ( > ),EMA High,21,AND","TimeFrame":"5"}],"AT_TechnicalParametersExit":[{"value":"Bollinger Band Lower,20,2,Greater Than ( > ),Close,AND","TimeFrame":"5"}],"AT_EntryParameters_Reverse":[{"Symbol":"NIFTY","ExpDate":"2025-07-10","Instrument":"CE","StrikePrice":25400.0,"BuySell":"BUY","Qty":75.0,"Price":0.0,"StrikeType":"ATM","TYPE":"Pts","Exit":"Sq Off Leg","Tgt":"1.00","SL":"1.00","TrailTGT":"1.00","TrailSL":"1.00","PartialQuantity":"","IP2":27248,"Delta":0.0,"NoOfTimes":1}],"AT_TechnicalSymbol":[{"chartsymbol":"NIFTY"}]}
Response Parameters
| Field |
Type |
Description |
| AT_TopParameters.Spread |
float |
Defines the spread value for the strategy. |
| AT_TopParameters.GreaterLesser |
string |
Specifies whether the comparison is greater than or less than. |
| AT_TopParameters.EntryTime |
datetime |
Defines the entry time for the trade. |
| AT_TopParameters.ExitTime |
datetime |
Defines the exit time for the trade. |
| AT_TopParameters.BasedOnATM |
integer |
Indicates whether the strike is based on ATM. |
| AT_TopParameters.Validity |
string |
Specifies the validity of the trade duration. |
| AT_TopParameters.modeltype |
string |
Represents the model type used for trade decisions. |
| AT_TopParameters.Continous_in_Exit |
integer |
Indicates if the exit should be continuous. |
| AT_TopParameters.Exchange |
string |
Exchange where the trade is placed. |
| AT_TopParameters.ChartSymbol |
string |
The trading symbol used on the chart. |
| AT_TopParameters.paperownname |
string |
Name identifier for paper trading. |
| AT_TopParameters.papertradingnew |
string |
Indicates if paper trading is enabled. |
| AT_TopParameters.entry_tgtsl |
integer |
Specifies if entry target and stop-loss are applied. |
| AT_TopParameters.exit_tgtsl |
integer |
Specifies if exit target and stop-loss are applied. |
| AT_TopParameters.tt_tgtparameters |
integer |
Defines target parameters for the trade. |
| AT_TopParameters.tt_definetime |
integer |
Indicates whether a defined time is used for the target. |
| AT_TopParameters.Order_Type |
string |
Specifies the type of order to be placed. |
| AT_TopParameters.symbolonly |
string |
Represents the symbol alone without any strike details. |
| AT_TopParameters.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| AT_EntryParameters.Symbol |
string |
The trading symbol for entry. |
| AT_EntryParameters.ExpDate |
date |
Expiry date of the option. |
| AT_EntryParameters.Instrument |
string |
Instrument type of the trade. |
| AT_EntryParameters.StrikePrice |
float |
Strike price of the option. |
| AT_EntryParameters.BuySell |
string |
Defines whether it is a buy or sell action. |
| AT_EntryParameters.Qty |
float |
Quantity of contracts for the trade. |
| AT_EntryParameters.Price |
float |
Price at which the order is placed. |
| AT_EntryParameters.StrikeType |
string |
Type of strike price used in the strategy. |
| AT_EntryParameters.TYPE |
string |
Represents the calculation type of targets and stop-loss. |
| AT_EntryParameters.Exit |
string |
Defines the exit strategy for the leg. |
| AT_EntryParameters.Tgt |
float |
Target profit value for the trade. |
| AT_EntryParameters.SL |
float |
Stop-loss value for the trade. |
| AT_EntryParameters.TrailTGT |
float |
Trailing target profit adjustment. |
| AT_EntryParameters.TrailSL |
float |
Trailing stop-loss adjustment. |
| AT_EntryParameters.PartialQuantity |
string |
Quantity used for partial booking. |
| AT_EntryParameters.IP2 |
integer |
Identifier for internal tracking. |
| AT_EntryParameters.Delta |
float |
Delta value of the option. |
| AT_EntryParameters.NoOfTimes |
integer |
Number of times the trade action should occur. |
| AT_SwitchParameters.NoOfTimes |
integer |
Number of times the switch action should be attempted. |
| AT_SwitchParameters.Instrument |
string |
Instrument type for the switch action. |
| AT_SwitchParameters.ExpDate |
date |
Expiry date for the switch instrument. |
| AT_SwitchParameters.Tgt_Strike |
string |
Target strike price for the switch action. |
| AT_SwitchParameters.Tgt_Action |
string |
Action to perform at the target strike. |
| AT_SwitchParameters.Tgt_Qty |
integer |
Quantity to switch at the target strike. |
| AT_SwitchParameters.SL_Strike |
string |
Stop-loss strike price for the switch action. |
| AT_SwitchParameters.SL_Action |
string |
Action to perform at the stop-loss strike. |
| AT_SwitchParameters.SL_Qty |
integer |
Quantity to switch at the stop-loss strike. |
| AT_ShiftingParameters.NoOfTimes |
integer |
Number of times the shift action should be attempted. |
| AT_ShiftingParameters.Instrument |
string |
Instrument type for shifting. |
| AT_ShiftingParameters.ExpDate |
date |
Expiry date for the shifting instrument. |
| AT_ShiftingParameters.UP_Pts |
string |
Upward shift points for the action. |
| AT_ShiftingParameters.UP_Strike |
string |
Upward strike price for the shift. |
| AT_ShiftingParameters.UP_Action |
string |
Action to perform on upward shift. |
| AT_ShiftingParameters.UP_Qty |
float |
Quantity for upward shift. |
| AT_ShiftingParameters.DN_Pts |
string |
Downward shift points for the action. |
| AT_ShiftingParameters.DN_Strike |
string |
Downward strike price for the shift. |
| AT_ShiftingParameters.DN_Action |
string |
Action to perform on downward shift. |
| AT_ShiftingParameters.DN_Qty |
float |
Quantity for downward shift. |
| AT_ScalpingParameters.NoOfTimes |
integer |
Number of scalping attempts allowed. |
| AT_ScalpingParameters.Criteriatype |
string |
Criteria used for triggering scalping trades. |
| AT_ScalpingParameters.UP_Pts |
float |
Points value for upward scalping trigger. |
| AT_ScalpingParameters.UP_Instrument |
string |
Instrument type for upward scalping action. |
| AT_ScalpingParameters.UP_StrikeType |
string |
Strike type for upward scalping. |
| AT_ScalpingParameters.UP_Action |
string |
Buy or sell action for upward scalping. |
| AT_ScalpingParameters.UP_Qty |
string |
Quantity for upward scalping trade. |
| AT_ScalpingParameters.UP_Type |
string |
Defines how upward target is calculated. |
| AT_ScalpingParameters.UP_TgtValue |
string |
Target profit value for upward scalping. |
| AT_ScalpingParameters.UP_SLValue |
string |
Stop-loss value for upward scalping. |
| AT_ScalpingParameters.DN_Pts |
float |
Points value for downward scalping trigger. |
| AT_ScalpingParameters.DN_Instrument |
string |
Instrument type for downward scalping action. |
| AT_ScalpingParameters.DN_StrikeType |
string |
Strike type for downward scalping. |
| AT_ScalpingParameters.DN_Action |
string |
Buy or sell action for downward scalping. |
| AT_ScalpingParameters.DN_Qty |
string |
Quantity for downward scalping trade. |
| AT_ScalpingParameters.DN_Type |
string |
Defines how downward target is calculated. |
| AT_ScalpingParameters.DN_TgtValue |
string |
Target profit value for downward scalping. |
| AT_ScalpingParameters.DN_SLValue |
string |
Stop-loss value for downward scalping. |
| AT_ScalpingParameters.WithoutEntry |
string |
Specifies if scalping is allowed without a prior entry. |
| AT_ScalpingParameters.ContinuousBuySell |
string |
Enables continuous buy-sell actions in scalping. |
| AT_OrderParameters.Entry_OrderType |
string |
Order type for entry trades. |
| AT_OrderParameters.Entry_Percentage |
string |
Percentage value for entry order adjustment. |
| AT_OrderParameters.Entry_Seconds |
string |
Delay in seconds before placing entry order. |
| AT_OrderParameters.Exit_OrderType |
string |
Order type for exit trades. |
| AT_OrderParameters.Exit_Percentage |
string |
Percentage value for exit order adjustment. |
| AT_OrderParameters.Exit_Seconds |
string |
Delay in seconds before placing exit order. |
| AT_TargetParameters.FixedProfit |
string |
Fixed profit target value. |
| AT_TargetParameters.Criteria |
string |
Criteria to trigger the target. |
| AT_TargetParameters.Type |
string |
Specifies the type of target value calculation. |
| AT_TargetParameters.Xvalue |
string |
X-axis parameter for the target condition. |
| AT_TargetParameters.Yvalue |
string |
Y-axis parameter for the target condition. |
| AT_TargetParameters.Avalue |
string |
Additional parameter A for complex targets. |
| AT_TargetParameters.Bvalue |
string |
Additional parameter B for complex targets. |
| AT_ExitParameters.FixedLoss |
string |
Defines the fixed loss threshold for exit. |
| AT_DailyParamters.Monday |
string |
Enables or disables trading on Monday. |
| AT_DailyParamters.Tuesday |
string |
Enables or disables trading on Tuesday. |
| AT_DailyParamters.Wednesday |
string |
Enables or disables trading on Wednesday. |
| AT_DailyParamters.Thursday |
string |
Enables or disables trading on Thursday. |
| AT_DailyParamters.Friday |
string |
Enables or disables trading on Friday. |
| AT_DailyParamters.TimeFrame |
string |
Defines the overall time frame for the week. |
| AT_ScalpingSpotParameters.Checked |
string |
Indicates whether scalping spot parameters are enabled. |
| AT_ScalpingSpotParameters.Criteriatype |
string |
Criteria used for scalping spot trades. |
| AT_ScalpingSpotParameters.UP_Price |
float |
Price level to trigger upward scalping spot trade. |
| AT_ScalpingSpotParameters.UP_Instrument |
string |
Instrument type for upward scalping spot trade. |
| AT_ScalpingSpotParameters.UP_StrikeType |
string |
Strike type for upward scalping spot trade. |
| AT_ScalpingSpotParameters.UP_Action |
string |
Buy or sell action for upward scalping spot trade. |
| AT_ScalpingSpotParameters.UP_Qty |
string |
Quantity for upward scalping spot trade. |
| AT_ScalpingSpotParameters.UP_TgtPrice |
string |
Target price for upward scalping spot trade. |
| AT_ScalpingSpotParameters.UP_SLPrice |
string |
Stop-loss price for upward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_Price |
float |
Price level to trigger downward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_Instrument |
string |
Instrument type for downward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_StrikeType |
string |
Strike type for downward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_Action |
string |
Buy or sell action for downward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_Qty |
string |
Quantity for downward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_TgtPrice |
string |
Target price for downward scalping spot trade. |
| AT_ScalpingSpotParameters.DN_SLPrice |
string |
Stop-loss price for downward scalping spot trade. |
| DesiredPremiumStatus.status |
string |
Enables or disables the desired premium status. |
| AT_TechnicalParameters.value |
string |
Technical indicator condition for trade entry. |
| AT_TechnicalParameters.TimeFrame |
string |
Time frame of the technical indicator condition. |
| AT_TechnicalParametersExit.value |
string |
Technical indicator condition for trade exit. |
| AT_TechnicalParametersExit.TimeFrame |
string |
Time frame of the exit technical indicator condition. |
| AT_EntryParameters_Reverse.Symbol |
string |
Trading symbol for the reverse entry. |
| AT_EntryParameters_Reverse.ExpDate |
date |
Expiry date for the reverse entry instrument. |
| AT_EntryParameters_Reverse.Instrument |
string |
Instrument type for the reverse entry. |
| AT_EntryParameters_Reverse.StrikePrice |
float |
Strike price for the reverse entry. |
| AT_EntryParameters_Reverse.BuySell |
string |
Buy or sell action for the reverse entry. |
| AT_EntryParameters_Reverse.Qty |
float |
Quantity of contracts for the reverse entry. |
| AT_EntryParameters_Reverse.Price |
float |
Price at which the reverse entry order is placed. |
| AT_EntryParameters_Reverse.StrikeType |
string |
Strike type for the reverse entry. |
| AT_EntryParameters_Reverse.TYPE |
string |
Calculation type for reverse entry targets and stop-loss. |
| AT_EntryParameters_Reverse.Exit |
string |
Exit strategy for the reverse entry leg. |
| AT_EntryParameters_Reverse.Tgt |
float |
Target profit for the reverse entry. |
| AT_EntryParameters_Reverse.SL |
float |
Stop-loss value for the reverse entry. |
| AT_EntryParameters_Reverse.TrailTGT |
float |
Trailing target adjustment for the reverse entry. |
| AT_EntryParameters_Reverse.TrailSL |
float |
Trailing stop-loss adjustment for the reverse entry. |
| AT_EntryParameters_Reverse.PartialQuantity |
string |
Partial quantity for the reverse entry booking. |
| AT_EntryParameters_Reverse.IP2 |
integer |
Internal identifier for reverse entry tracking. |
| AT_EntryParameters_Reverse.Delta |
float |
Delta value of the reverse entry option. |
| AT_EntryParameters_Reverse.NoOfTimes |
integer |
Number of times the reverse entry action should occur. |
| AT_TechnicalSymbol.chartsymbol |
string |
Symbol name for technical analysis charts. |
Save Template
Save a new template to the system for future use.
curl --request POST \
--url https://localhost:44338/AT_Chart_savetemplate \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"validation":"20250823231923332","uid":"0","Tabname":"AT_Trade","disp_name":"NIFT_0909_124433","Request":"ADD","Validity":"Positional","strategyname":"","modeltype":"chart","symbol":"TCS","symbolchart":"TCS","exchange":"NSE","papertradingnew":"false","paperownname":"","disp_name":"SAVETEMP","AT_TopParameters":[{"Spread":"0","GreaterLesser":"greater than","EntryTime":"","ExitTime":"","BasedOnATM":"0","Continous_in_Exit":"0","entry_tgtsl":"0","exit_tgtsl":"0","tt_tgtparameters":"1","tt_definetime":"0","Order_Type":"Market"}],"AT_EntryParameters":[{"Symbol":"TCS","ExpDate":"","Instrument":"","StrikePrice":"","BuySell":"","Qty":"0","Delta":"0","Price":"0","StrikeType":"","Type":"","Exit":"NONE","Tgt":"0","SL":"0","TrailTGT":"0","TrailSL":"0","PartialQuantity":"","ip2":"","NoOfTimes":"5"}],"AT_EntryParameters_Reverse":[],"AT_TargetParameters":[{"FixedProfit":"100.00","Criteria":"Lock & Trail Profit","Type":"Value","Xvalue":"100","Yvalue":"100","Avalue":"100","Bvalue":"100"}],"AT_ExitParameters":[{"FixedLoss":"100.00"}],"AT_TechnicalParameters":[{"value":"EMA,21,Greater Than ( > ),EMA,50,AND","TimeFrame":"5"}],"AT_TechnicalParametersExit":[{"value":"EMA,21,Greater Than ( > ),EMA,50,AND","TimeFrame":"5"}],"AT_DailyParamters":[{"Monday":"False","Tuesday":"False","Wednesday":"False","Thursday":"False","Friday":"False","TimeFrame":"WEEKLY"}]}
Request Parameters
| Field |
Type |
Description |
| validation |
string |
Unique validation identifier |
| uid |
string |
User identifier |
| Tabname |
string |
Tab name for the trade |
| disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| Request |
string |
Request type |
| Validity |
string |
Order validity type |
| strategyname |
string |
Name of the strategy |
| modeltype |
string |
Model type used |
| symbol |
string |
Trading symbol |
| symbolchart |
string |
Chart symbol |
| exchange |
string |
Exchange name |
| papertradingnew |
string |
Enable paper trading |
| paperownname |
string |
Paper trading account name |
| disp_name |
string |
Display name |
| AT_TopParameters.Spread |
string |
Spread value |
| AT_TopParameters.GreaterLesser |
string |
Comparison operator |
| AT_TopParameters.EntryTime |
string |
Entry time |
| AT_TopParameters.ExitTime |
string |
Exit time |
| AT_TopParameters.BasedOnATM |
string |
ATM reference value |
| AT_TopParameters.Continous_in_Exit |
string |
Continuous exit flag |
| AT_TopParameters.entry_tgtsl |
string |
Entry target/stop-loss |
| AT_TopParameters.exit_tgtsl |
string |
Exit target/stop-loss |
| AT_TopParameters.tt_tgtparameters |
string |
Target parameters |
| AT_TopParameters.tt_definetime |
string |
Define time parameter |
| AT_TopParameters.Order_Type |
string |
Order type |
| AT_TopParameters.disp_name |
string |
The display name of the entity, intended for user interfaces and presentations. |
| AT_EntryParameters.Symbol |
string |
Entry symbol |
| AT_EntryParameters.ExpDate |
string |
Expiry date |
| AT_EntryParameters.Instrument |
string |
Instrument type |
| AT_EntryParameters.StrikePrice |
string |
Strike price |
| AT_EntryParameters.BuySell |
string |
Buy or Sell indicator |
| AT_EntryParameters.Qty |
string |
Quantity |
| AT_EntryParameters.Delta |
string |
Delta value |
| AT_EntryParameters.Price |
string |
Price value |
| AT_EntryParameters.StrikeType |
string |
Strike type |
| AT_EntryParameters.Type |
string |
Order type |
| AT_EntryParameters.Exit |
string |
Exit condition |
| AT_EntryParameters.Tgt |
string |
Target value |
| AT_EntryParameters.SL |
string |
Stop-loss value |
| AT_EntryParameters.TrailTGT |
string |
Trailing target |
| AT_EntryParameters.TrailSL |
string |
Trailing stop-loss |
| AT_EntryParameters.PartialQuantity |
string |
Partial quantity |
| AT_EntryParameters.ip2 |
string |
Additional parameter |
| AT_EntryParameters.NoOfTimes |
string |
Number of times |
| AT_TargetParameters.FixedProfit |
string |
Fixed profit value |
| AT_TargetParameters.Criteria |
string |
Target criteria |
| AT_TargetParameters.Type |
string |
Target type |
| AT_TargetParameters.Xvalue |
string |
X-axis value |
| AT_TargetParameters.Yvalue |
string |
Y-axis value |
| AT_TargetParameters.Avalue |
string |
A-axis value |
| AT_TargetParameters.Bvalue |
string |
B-axis value |
| AT_ExitParameters.FixedLoss |
string |
Fixed loss value |
| AT_TechnicalParameters.value |
string |
Technical condition expression |
| AT_TechnicalParameters.TimeFrame |
string |
Time frame |
| AT_TechnicalParametersExit.value |
string |
Exit technical condition |
| AT_TechnicalParametersExit.TimeFrame |
string |
Exit time frame |
| AT_DailyParamters.Monday |
string |
Active on Monday |
| AT_DailyParamters.Tuesday |
string |
Active on Tuesday |
| AT_DailyParamters.Wednesday |
string |
Active on Wednesday |
| AT_DailyParamters.Thursday |
string |
Active on Thursday |
| AT_DailyParamters.Friday |
string |
Active on Friday |
| AT_DailyParamters.TimeFrame |
string |
Daily parameter timeframe |
Response Structure
{"status":"SUCCESS","reason":"Your Strategy Saved Successfully."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Show Template
Retrieves the details of a specific template by its unique identifier.
curl --request POST \
--url https://localhost:44338/AT_show_templates \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
{"TemplateNames":[{"TemplateName":"NWW"},{"TemplateName":"PREDTTPC"}]}
Response Parameters
| Field |
Type |
Description |
| TemplateNames.TemplateName |
string |
Name of the template |
Select Template
Choose a predefined template to use for your document
curl --request POST \
--url https://localhost:44338/AT_Chartget_template \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyname":"LOAD1","papertradingnew":"false"}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
Name of the trading strategy |
| papertradingnew |
boolean |
Indicates if paper trading mode is enabled |
Response Structure
{"AT_TopParameters":[{"Spread":0.0,"GreaterLesser":"greater than","EntryTime":"2025-08-11 15:44:16","ExitTime":"0000-00-00 00:00:00","BasedOnATM":0,"Validity":"Positional","modeltype":"chart","Continous_in_Exit":1,"Exchange":"NSE","ChartSymbol":"NIFTY","paperownname":"LOAD1","papertradingnew":"false","entry_tgtsl":0,"exit_tgtsl":0,"tt_tgtparameters":1,"tt_definetime":1,"Order_Type":"Market","symbolonly":"NIFTY","disp_name":"LOAD1"}],"AT_EntryParameters":[{"Symbol":"NIFTY","ExpDate":"2025-08-14","Instrument":"CE","StrikePrice":24600.0,"BuySell":"BUY","Qty":75.0,"Price":0.0,"StrikeType":"ATM","TYPE":"Pts","Exit":"NONE","Tgt":"","SL":"","TrailTGT":"","TrailSL":"","PartialQuantity":"","IP2":44,"Delta":0.0,"NoOfTimes":5},{"Symbol":"NIFTY","ExpDate":"2025-08-14","Instrument":"CE","StrikePrice":24600.0,"BuySell":"BUY","Qty":75.0,"Price":0.0,"StrikeType":"ATM","TYPE":"Pts","Exit":"NONE","Tgt":"","SL":"","TrailTGT":"","TrailSL":"","PartialQuantity":"","IP2":45,"Delta":0.0,"NoOfTimes":5}],"AT_SwitchParameters":[],"AT_ShiftingParameters":[],"AT_ScalpingParameters":[],"AT_OrderParameters":[{"Entry_OrderType":"Market","Entry_Percentage":"","Entry_Seconds":"","Exit_OrderType":"Market","Exit_Percentage":"","Exit_Seconds":""}],"AT_TargetParameters":[{"FixedProfit":"100.00","Criteria":"Trailing StopLoss","Type":"Value","Xvalue":"50.00","Yvalue":"10.00","Avalue":"","Bvalue":""}],"AT_ExitParameters":[{"FixedLoss":"100.00"}],"AT_DailyParamters":[],"AT_ScalpingSpotParameters":[],"DesiredPremiumStatus":[{"status":"Enable"}],"AT_TechnicalParameters":[{"value":"EMA,21,Greater Than ( > ),EMA,50,AND","TimeFrame":"5"},{"value":"DI Plus,14,Greater Than ( > ),DI Minus,14,AND","TimeFrame":"5"}],"AT_TechnicalParametersExit":[{"value":"EMA,21,Greater Than ( > ),EMA,50,AND","TimeFrame":"5"},{"value":"MACD,12,26,9,Greater Than ( > ),MACD Signal,12,26,9,AND","TimeFrame":"5"}],"AT_EntryParameters_Reverse":[],"AT_TechnicalSymbol":[{"chartsymbol":"NIFTY"}]}
Response Parameters
| Field |
Type |
Description |
| AT_TopParameters.Spread |
double |
Spread value for trade |
| AT_TopParameters.GreaterLesser |
string |
Comparison type condition |
| AT_TopParameters.EntryTime |
string |
Trade entry time |
| AT_TopParameters.ExitTime |
string |
Trade exit time |
| AT_TopParameters.BasedOnATM |
int |
Flag if based on ATM |
| AT_TopParameters.Validity |
string |
Trade validity type |
| AT_TopParameters.modeltype |
string |
Trading model type |
| AT_TopParameters.Continous_in_Exit |
int |
Enable continuous exit |
| AT_TopParameters.Exchange |
string |
Exchange name |
| AT_TopParameters.ChartSymbol |
string |
Chart symbol name |
| AT_TopParameters.paperownname |
string |
Paper trade strategy name |
| AT_TopParameters.papertradingnew |
string |
Flag for new paper trading |
| AT_TopParameters.entry_tgtsl |
double |
Entry target/stoploss flag |
| AT_TopParameters.exit_tgtsl |
double |
Exit target/stoploss flag |
| AT_TopParameters.tt_tgtparameters |
double |
Target parameters status |
| AT_TopParameters.tt_definetime |
double |
Define time status |
| AT_TopParameters.Order_Type |
string |
Order type used |
| AT_TopParameters.symbolonly |
string |
Only symbol name |
| AT_TopParameters.disp_name |
string |
Display name |
| AT_EntryParameters.Symbol |
string |
Trading symbol |
| AT_EntryParameters.ExpDate |
string |
Expiry date |
| AT_EntryParameters.Instrument |
string |
Instrument type |
| AT_EntryParameters.StrikePrice |
double |
Strike price |
| AT_EntryParameters.BuySell |
string |
Buy or Sell action |
| AT_EntryParameters.Qty |
int |
Quantity |
| AT_EntryParameters.Price |
double |
Entry price |
| AT_EntryParameters.StrikeType |
string |
Strike type |
| AT_EntryParameters.TYPE |
string |
Calculation type |
| AT_EntryParameters.Exit |
string |
Exit condition |
| AT_EntryParameters.Tgt |
string |
Target value |
| AT_EntryParameters.SL |
string |
Stop loss value |
| AT_EntryParameters.TrailTGT |
string |
Trailing target value |
| AT_EntryParameters.TrailSL |
string |
Trailing stoploss value |
| AT_EntryParameters.PartialQuantity |
string |
Partial quantity |
| AT_EntryParameters.IP2 |
int |
Internal parameter |
| AT_EntryParameters.Delta |
double |
Delta value |
| AT_EntryParameters.NoOfTimes |
int |
Number of times |
| AT_OrderParameters.Entry_OrderType |
string |
Entry order type |
| AT_OrderParameters.Entry_Percentage |
string |
Entry percentage |
| AT_OrderParameters.Entry_Seconds |
string |
Entry time in seconds |
| AT_OrderParameters.Exit_OrderType |
string |
Exit order type |
| AT_OrderParameters.Exit_Percentage |
string |
Exit percentage |
| AT_OrderParameters.Exit_Seconds |
string |
Exit time in seconds |
| AT_TargetParameters.FixedProfit |
string |
Fixed profit value |
| AT_TargetParameters.Criteria |
string |
Target exit criteria |
| AT_TargetParameters.Type |
string |
Target type |
| AT_TargetParameters.Xvalue |
string |
X parameter value |
| AT_TargetParameters.Yvalue |
string |
Y parameter value |
| AT_TargetParameters.Avalue |
string |
A parameter value |
| AT_TargetParameters.Bvalue |
string |
B parameter value |
| AT_ExitParameters.FixedLoss |
string |
Fixed loss value |
| DesiredPremiumStatus.status |
string |
Premium status |
| AT_TechnicalParameters.value |
string |
Entry technical condition |
| AT_TechnicalParameters.TimeFrame |
string |
Entry technical timeframe |
| AT_TechnicalParametersExit.value |
string |
Exit technical condition |
| AT_TechnicalParametersExit.TimeFrame |
string |
Exit technical timeframe |
| AT_TechnicalSymbol.chartsymbol |
string |
Technical chart symbol |
Delete Templte
Deletes a specific template by its unique identifier.
curl --request POST \
--url https://localhost:44338/AT_delete_template \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"StrategyName":"NWW"}
Request Parameters
| Field |
Type |
Description |
| strategyname |
string |
Name of the trading strategy. |
Response Structure
{"status":"SUCCESS","reason":"Deleted Successfully."}
Response Parameters
| Field |
Type |
Description |
| status |
string |
Represents the result of the request, indicating whether it was successful. |
| reason |
string |
Provides a descriptive message explaining the result of the operation. |
Equity Baskets
Discover curated equity baskets with Modern Algos. Diversify your investment with algo-driven portfolios
Equity Baskets Selection
Choose one or more predefined baskets for execution.
curl --request POST \
--url https://localhost:44338/eqplans \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"PlanName":"MAE Wealth Generator","Tenure1":"6M","Tenure2":"1Y","Tenure3":"2Y","Descp":"Suitable for: Investors who wish to enrol in MAE Wealth Generator Modelling, which will identify undervalued companies and invest them at early stage to create the wealth in the Long Term Perspective\r\n
Advantages: Undervalued but Quality Stock Investment, Long Term Time Horizon\r\n\r\n","DescriptionM":"Invests in undervalue stocks","StatusDisp":"Active","cagr_rtns":"CAGR:8.93%","MinInvest":"Min Ivestment:160336.13","BenchmarkName":"Nifty 500","LargCap":36,"MidCap":29,"SmallCap":35,"ImageURL":"https://modernalgos.com/App_Themes/images/equity/MAEWealthGenerator.png","ImageURLPNG":"https://modernalgos.com/App_Themes/images/equity/png/wealth_Generator_icon.png","ImageURLV3Web":"https://modernalgos.com/App_Themes/images/equity/v3web/wealth_Generator_icon.svg","advantagesM":"Moderate Risk,Mid-cap stocks,High Growth,Quarterly Rebalancing"}]
Response Parameters
| Field |
Type |
Description |
| PlanName |
string |
Name of the investment plan. |
| Tenure1 |
string |
First available investment tenure. |
| Tenure2 |
string |
Second available investment tenure. |
| Tenure3 |
string |
Third available investment tenure. |
| Descp |
string |
Detailed description of the investment plan including its suitability and benefits. |
| DescriptionM |
string |
Brief summary of the investment approach. |
| StatusDisp |
string |
Current status of the investment plan. |
| cagr_rtns |
string |
Compound annual growth rate of the plan. |
| MinInvest |
string |
Minimum investment amount required. |
| BenchmarkName |
string |
Name of the benchmark index used for comparison. |
| LargCap |
int |
Percentage allocation in large-cap stocks. |
| MidCap |
int |
Percentage allocation in mid-cap stocks. |
| SmallCap |
int |
Percentage allocation in small-cap stocks. |
| ImageURL |
string |
URL of the plan’s image in standard format. |
| ImageURLPNG |
string |
URL of the plan’s image in PNG format. |
| ImageURLV3Web |
string |
URL of the plan’s image in web-optimized SVG format. |
| advantagesM |
string |
Key highlights of the plan’s advantages. |
Theme Baskets
Invest in curated theme-based baskets with Modern Algos. Align your portfolio with market trends and specific investment themes for smarter investing.
Theme Baskets Selection
Choose one or more predefined baskets for execution.
curl --request POST \
--url https://localhost:44338/eqplans_thematic \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"PlanName":"Sharia Basket","Tenure1":"6M","Tenure2":"1Y","Tenure3":"2Y","Descp":"Suitable for: Investors who wish to enrol in Low Risk Equity Investment with diversification in Large/Mid Cap companies excluding investment in Cigarettes/Tobacco, Alcohol, Finance & Banking Industry\r\n
Advantages: Diversification, Low Risk, Periodic Reshuffling among Categories, Theme Driven.\r\n","DescriptionM":"Excludes tobacco, alcohol and finance stocks ","StatusDisp":"Active","cagr_rtns":"CAGR:-13.73%","MinInvest":"Min Ivestment:32943.00","BenchmarkName":"Nifty 200","LargCap":40,"MidCap":60,"SmallCap":0,"ImageURL":"https://modernalgos.com/App_Themes/images/equity/MAEThematicBasket.png","ImageURLPNG":"https://modernalgos.com/App_Themes/images/equity/png/sharia_basket_icon.png","ImageURLV3Web":"https://modernalgos.com/App_Themes/images/equity/v3web/sharia_basket_icon.svg","advantagesM":"Theme Driven,Large & Mid cap,High Growth,Quarterly Rebalancing"}]
Response Parameters
| Field |
Type |
Description |
| PlanName |
string |
Name of the investment plan. |
| Tenure1 |
string |
First available investment tenure. |
| Tenure2 |
string |
Second available investment tenure. |
| Tenure3 |
string |
Third available investment tenure. |
| Descp |
string |
Detailed description of the investment plan including its suitability and benefits. |
| DescriptionM |
string |
Brief summary of the investment approach. |
| StatusDisp |
string |
Current status of the investment plan. |
| cagr_rtns |
string |
Compound annual growth rate of the plan. |
| MinInvest |
string |
Minimum investment amount required. |
| BenchmarkName |
string |
Name of the benchmark index used for comparison. |
| LargCap |
int |
Percentage allocation in large-cap stocks. |
| MidCap |
int |
Percentage allocation in mid-cap stocks. |
| SmallCap |
int |
Percentage allocation in small-cap stocks. |
| ImageURL |
string |
URL of the plan’s image in standard format. |
| ImageURLPNG |
string |
URL of the plan’s image in PNG format. |
| ImageURLV3Web |
string |
URL of the plan’s image in web-optimized SVG format. |
| advantagesM |
string |
Key highlights of the plan’s advantages. |
Theme Baskets Details
Invest in curated theme-based baskets with Modern Algos. Align your portfolio with market trends and specific investment themes for smarter investing.
Basket Details
View detailed information about the selected baskets.
curl --request POST \
--url https://localhost:44338/eqbasket_details \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"planname":"Sharia Basket","period":"6M"}
{"planname":"Wellness Basket","period":"6M"}
{"planname":"Robotics Basket","period":"6M"}
{"planname":Country Side Basket","period":"6M"}
{"planname":"Amenities and Comfort Basket","period":"6M"}
{"planname":"Wheel and Vehicles Basket","period":"6M"}
{"planname":"Conveying Drive Basket","period":"6M"}
{"planname":"Money Matters Basket","period":"6M"}
Request Parameters
| Field |
Type |
Description |
| planname |
string |
The name of the investment plan. |
| period |
string |
The duration of the plan in months. {e.g, 6M,1Y,2Y,3Y} |
Response Structure
{"Details":[{"LargCap":40,"MidCap":60,"SmallCap":0,"ImageURL":"https://modernalgos.com/App_Themes/images/equity/MAEThematicBasket.png","ImageURLV3Web":"https://modernalgos.com/App_Themes/images/equity/v3web/sharia_basket_icon.svg","Description":"Suitable for: Investors who wish to enrol in Low Risk Equity Investment with diversification in Large/Mid Cap companies excluding investment in Cigarettes/Tobacco, Alcohol, Finance & Banking Industry\r\n
Advantages: Diversification, Low Risk, Periodic Reshuffling among Categories, Theme Driven.\r\n","DescriptionM":"Excludes tobacco, alcohol and finance stocks ","feature1":"Theme Driven","feature2":"Large & Mid cap","feature3":"High Growth","feature4":"Quarterly Rebalancing","BenchMarkName":"Nifty 200","investment":32943.0,"planname":"Sharia Basket","launchdate":"2021-02-01","lastupdate":"2025-07-01","nextupdate":"2025-10-01","frequency":"Quarterly","factsheet_url":"https://modernalgos.com/FactSheetGeneratedPdfs/Sharia_Basket.pdf"}],"Returns":[{"Terms":"1Y","MAE_Rtns":-13.73,"BenchMark_Rtns":6.1,"Name":"CAGR"}],"Ratios":[{"ProfilioBeta":1.14,"PortfolioSD":1.64,"SharpeRatio":-0.78,"TreynorRatio":-0.18,"LiveDate":"2021-02-01"}],"Graph":[{"DATE":"2024-12-31","niftyperform":0.0,"portfolioperform":0.0}],"TopStock":[{"Name":"Top3","Percent":30.0}],"SectorGraph":[{"IndustryName":"Travel Services","Weightage":10.0}],"StockDetails":[{"IndustryName":"Pharmaceuticals & Drugs","Symbol":"BLUEJET","CompanyName":"Blue Jet Healthcare Ltd.","ClosePrice":911.85,"Allocation":10.0,"Category":"MidCap","Investment":3647.4,"Shares":4.0}],"PeerComparision":[{"Industryname":"Air Conditioners","Symbol":"BLUESTARCO,VOLTAS,AMBER","6M":"-10.11,-20.89,-0.16","1YR":"-1.93,-6.95,68.38","2YR":"128.98,79.80,246.18","3YR":"308.19,41.11,220.57","Highlight":"TRUE,-,-"}]}
Response Parameters
| Field |
Type |
Description |
| Details.LargCap |
int |
Large-cap stock allocation percentage |
| Details.MidCap |
int |
Mid-cap stock allocation percentage |
| Details.SmallCap |
int |
Small-cap stock allocation percentage |
| Details.ImageURL |
string |
Image URL for the product |
| Details.ImageURLV3Web |
string |
Web version image URL for the product |
| Details.Description |
string |
Full product description with suitability and advantages |
| Details.DescriptionM |
string |
Short product description |
| Details.feature1 |
string |
Feature highlighting risk level |
| Details.feature2 |
string |
Feature highlighting stock type |
| Details.feature3 |
string |
Feature highlighting growth potential |
| Details.feature4 |
string |
Feature highlighting rebalancing frequency |
| Details.BenchMarkName |
string |
Name of the benchmark index |
| Details.investment |
double |
Investment amount in the product |
| Details.planname |
string |
Name of the investment plan |
| Details.launchdate |
string |
Launch date of the product |
| Details.lastupdate |
string |
Last update date of the portfolio |
| Details.nextupdate |
string |
Next scheduled update date |
| Details.frequency |
string |
Rebalancing frequency of the product |
| Details.factsheet_url |
string |
URL link to the product factsheet |
| Returns.Terms |
string |
Return term period |
| Returns.MAE_Rtns |
double |
Returns of the product |
| Returns.BenchMark_Rtns |
double |
Returns of the benchmark |
| Returns.Name |
string |
Name of the return calculation method |
| Ratios.ProfilioBeta |
number |
Portfolio beta value |
| Ratios.PortfolioSD |
double |
Standard deviation of the portfolio |
| Ratios.SharpeRatio |
double |
Sharpe ratio of the portfolio |
| Ratios.TreynorRatio |
double |
Treynor ratio of the portfolio |
| Ratios.LiveDate |
string |
Date when the portfolio went live |
| Graph.DATE |
string |
Date of the performance entry |
| Graph.niftyperform |
double |
Performance of the Nifty benchmark |
| Graph.portfolioperform |
double |
Performance of the portfolio |
| TopStock.Name |
string |
Top stock name group |
| TopStock.Percent |
double |
Percentage allocation of the top stock group |
| SectorGraph.IndustryName |
string |
Name of the industry sector |
| SectorGraph.Weightage |
double |
Weightage of the sector in the portfolio |
| StockDetails.IndustryName |
string |
Industry name of the stock |
| StockDetails.Symbol |
string |
Stock symbol |
| StockDetails.CompanyName |
string |
Full company name |
| StockDetails.ClosePrice |
double |
Last closing price of the stock |
| StockDetails.Allocation |
double |
Allocation percentage in the portfolio |
| StockDetails.Category |
string |
Category of the stock by market cap |
| StockDetails.Investment |
double |
Investment amount in the stock |
| StockDetails.Shares |
double |
Number of shares held |
| PeerComparision.Industryname |
string |
Industry name of peer companies |
| PeerComparision.Symbol |
string |
Symbols of peer companies |
| PeerComparision.6M |
string |
6-month return comparison of peers |
| PeerComparision.1YR |
string |
1-year return comparison of peers |
| PeerComparision.2YR |
string |
2-year return comparison of peers |
| PeerComparision.3YR |
string |
3-year return comparison of peers |
| PeerComparision.Highlight |
string |
Highlight flag for top-performing peers |
Execute Basket
Initiate the execution of the selected basket(s).
curl --request POST \
--url https://localhost:44338/eqbasket_execute1 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"Sharia Basket","investment":"32943","symbols":""}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the basket. |
| investment |
string |
Total invested amount in the basket. |
| symbols |
string |
Comma-separated list of stock symbols. |
Response Structure
{"stk_Details":[{"sno":1,"symbol":"BLUEJET","qty":4,"price":911.25,"investment":3645.0}],"portfolioid":"762202507101438030NLI0","basektname":"Sharia Basket","basketdatetime":"2025-07-10 14:38:03","buyvalue":33616.7,"buyvaluetemp":0.0,"sellvalue":0.0,"residualvalue":0.0,"rebalanceterm":"","status":"success","reason":null}
Response Parameters
| Field |
Type |
Description |
| stk_Details.sno |
int |
Serial number of the stock item |
| stk_Details.symbol |
string |
Stock symbol name |
| stk_Details.qty |
int |
Quantity of the stock |
| stk_Details.price |
double |
Price per stock unit |
| stk_Details.investment |
double |
Total investment in the stock |
| portfolioid |
string |
Unique identifier of the portfolio |
| basektname |
string |
Name of the investment basket |
| basketdatetime |
string |
Date and time of basket creation |
| buyvalue |
double |
Total buy value of the basket |
| buyvaluetemp |
double |
Temporary buy value placeholder |
| sellvalue |
double |
Total sell value of the basket |
| residualvalue |
double |
Remaining residual value of the basket |
| rebalanceterm |
string |
Term or period for portfolio rebalance |
| status |
string |
Status of the service response |
| reason |
string/null |
Reason for failure if the status is not success |
Submit Basket
Submit the selected basket(s) for final processing or execution.
curl --request POST \
--url https://localhost:44338/eqbasket_execute2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"portfolioid":"76220250737476383UrUT"}
Request Parameters
| Field |
Type |
Description |
| portfolioid |
string |
Unique identifier of the portfolio. |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Mix Baskets Details
Design custom equity baskets with Modern Algos. Tailor your portfolio to fit your investment goals for a personalized trading experience.
Mix Basket Details
View detailed information about the selected baskets.
curl --request POST \
--url https://localhost:44338/eqbasket_details \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"planname":"1 Year to 2 Year","period":"6M"}
{"planname":"1 Year to 2 Year","period":"6M"}
{"planname":"More than 2 Year","period":"6M"}
Request Parameters
| Field |
Type |
Description |
| planname |
string |
The name of the investment plan. |
| period |
string |
The duration of the plan in months. {e.g, 6M,1Y,2Y,3Y} |
Response Structure
{"Details":[{"LargCap":38,"MidCap":25,"SmallCap":38,"ImageURL":"https://modernalgos.com/App_Themes/images/equity/MAEValueBasket.png","ImageURLV3Web":"https://modernalgos.com/App_Themes/images/equity/v3web/mix_basket_icon.svg","Description":"Suitable for: Aggressive Risk Category Investors, MAE Value Basket primarily invests in Small Cap Stocks\r\n
Advantages: Value Creation, Longer Time Frame, Aggressive Rebalancing\r\n","DescriptionM":"-","feature1":"-","feature2":"-","feature3":"-","feature4":"-","BenchMarkName":"Nifty 500","investment":760506.21,"planname":"Mix Basket 1Y-2Y","launchdate":"2021-02-01","lastupdate":"2025-07-01","nextupdate":"2025-10-01","frequency":"Quarterly","factsheet_url":"https://modernalgos.com/FactSheetGeneratedPdfs/Mix_Basket_1Y_2Y.pdf"}],"Returns":[{"Terms":"1Y","MAE_Rtns":1.49,"BenchMark_Rtns":4.42,"Name":"CAGR"}],"Ratios":[{"ProfilioBeta":1.25,"PortfolioSD":1.66,"SharpeRatio":-0.2,"TreynorRatio":-0.04,"LiveDate":"2021-02-01"}],"Graph":[{"DATE":"2024-12-31","niftyperform":0.0,"portfolioperform":0.0}],"TopStock":[{"Name":"Top3","Percent":19.0}],"SectorGraph":[{"IndustryName":"Electric Equipment","Weightage":12.5}],"StockDetails":[{"IndustryName":"Construction - Real Estate","Symbol":"AJMERA","CompanyName":"Ajmera Realty & Infra India Ltd.","ClosePrice":915.4,"Allocation":6.25,"Category":"SmallCap","Investment":47600.8,"Shares":52.0}],"PeerComparision":[{"Industryname":"Batteries","Symbol":"HBLENGINE,EXIDEIND,ARE&M","6M":"4.15,-2.50,-11.20","1YR":"4.65,-33.01,-41.41","2YR":"270.93,56.31,39.81","3YR":"561.81,166.97,109.93","Highlight":"TRUE,-,-"}]}
Response Parameters
| Field |
Type |
Description |
| Details.LargCap |
int |
Large-cap stock allocation percentage |
| Details.MidCap |
int |
Mid-cap stock allocation percentage |
| Details.SmallCap |
int |
Small-cap stock allocation percentage |
| Details.ImageURL |
string |
Image URL for the product |
| Details.ImageURLV3Web |
string |
Web version image URL for the product |
| Details.Description |
string |
Full product description with suitability and advantages |
| Details.DescriptionM |
string |
Short product description |
| Details.feature1 |
string |
Feature highlighting risk level |
| Details.feature2 |
string |
Feature highlighting stock type |
| Details.feature3 |
string |
Feature highlighting growth potential |
| Details.feature4 |
string |
Feature highlighting rebalancing frequency |
| Details.BenchMarkName |
string |
Name of the benchmark index |
| Details.investment |
double |
Investment amount in the product |
| Details.planname |
string |
Name of the investment plan |
| Details.launchdate |
string |
Launch date of the product |
| Details.lastupdate |
string |
Last update date of the portfolio |
| Details.nextupdate |
string |
Next scheduled update date |
| Details.frequency |
string |
Rebalancing frequency of the product |
| Details.factsheet_url |
string |
URL link to the product factsheet |
| Returns.Terms |
string |
Return term period |
| Returns.MAE_Rtns |
double |
Returns of the product |
| Returns.BenchMark_Rtns |
double |
Returns of the benchmark |
| Returns.Name |
string |
Name of the return calculation method |
| Ratios.ProfilioBeta |
number |
Portfolio beta value |
| Ratios.PortfolioSD |
double |
Standard deviation of the portfolio |
| Ratios.SharpeRatio |
double |
Sharpe ratio of the portfolio |
| Ratios.TreynorRatio |
double |
Treynor ratio of the portfolio |
| Ratios.LiveDate |
string |
Date when the portfolio went live |
| Graph.DATE |
string |
Date of the performance entry |
| Graph.niftyperform |
double |
Performance of the Nifty benchmark |
| Graph.portfolioperform |
double |
Performance of the portfolio |
| TopStock.Name |
string |
Top stock name group |
| TopStock.Percent |
double |
Percentage allocation of the top stock group |
| SectorGraph.IndustryName |
string |
Name of the industry sector |
| SectorGraph.Weightage |
double |
Weightage of the sector in the portfolio |
| StockDetails.IndustryName |
string |
Industry name of the stock |
| StockDetails.Symbol |
string |
Stock symbol |
| StockDetails.CompanyName |
string |
Full company name |
| StockDetails.ClosePrice |
double |
Last closing price of the stock |
| StockDetails.Allocation |
double |
Allocation percentage in the portfolio |
| StockDetails.Category |
string |
Category of the stock by market cap |
| StockDetails.Investment |
double |
Investment amount in the stock |
| StockDetails.Shares |
double |
Number of shares held |
| PeerComparision.Industryname |
string |
Industry name of peer companies |
| PeerComparision.Symbol |
string |
Symbols of peer companies |
| PeerComparision.6M |
string |
6-month return comparison of peers |
| PeerComparision.1YR |
string |
1-year return comparison of peers |
| PeerComparision.2YR |
string |
2-year return comparison of peers |
| PeerComparision.3YR |
string |
3-year return comparison of peers |
| PeerComparision.Highlight |
string |
Highlight flag for top-performing peers |
Execute Basket
Initiate the execution of the selected basket(s).
curl --request POST \
--url https://localhost:44338/eqbasket_execute1 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"basketname":"Mix Basket 1Y-2Y","investment":"760506.21","symbols":""}
Request Parameters
| Field |
Type |
Description |
| basketname |
string |
Name of the basket. |
| investment |
string |
Total invested amount in the basket. |
| symbols |
string |
Comma-separated list of stock symbols. |
Response Structure
{"stk_Details":[{"sno":1,"symbol":"BLUEJET","qty":4,"price":911.25,"investment":3645.0}],"portfolioid":"762202507101438030NLI0","basektname":"Sharia Basket","basketdatetime":"2025-07-10 14:38:03","buyvalue":33616.7,"buyvaluetemp":0.0,"sellvalue":0.0,"residualvalue":0.0,"rebalanceterm":"","status":"success","reason":null}
Response Parameters
| Field |
Type |
Description |
| stk_Details.sno |
int |
Serial number of the stock item |
| stk_Details.symbol |
string |
Stock symbol name |
| stk_Details.qty |
int |
Quantity of the stock |
| stk_Details.price |
double |
Price per stock unit |
| stk_Details.investment |
double |
Total investment in the stock |
| portfolioid |
string |
Unique identifier of the portfolio |
| basektname |
string |
Name of the investment basket |
| basketdatetime |
string |
Date and time of basket creation |
| buyvalue |
double |
Total buy value of the basket |
| buyvaluetemp |
double |
Temporary buy value placeholder |
| sellvalue |
double |
Total sell value of the basket |
| residualvalue |
double |
Remaining residual value of the basket |
| rebalanceterm |
string |
Term or period for portfolio rebalance |
| status |
string |
Status of the service response |
| reason |
string/null |
Reason for failure if the status is not success |
Submit Basket
Submit the selected basket(s) for final processing or execution.
curl --request POST \
--url https://localhost:44338/eqbasket_execute2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"portfolioid":"7622025071014788383UrUT"}
Request Parameters
| Field |
Type |
Description |
| portfolioid |
string |
Unique identifier of the portfolio. |
Response Structure
{"status":"SUCCESS","reason":"Orders successfully sent to your Broker...!!! Kindly Check Tradebook in Equity Dashboard."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Shortterm - Weekly - Monthly Picks
Discover daily stock picks with Modern Algos. Get expert-curated recommendations based on real-time data and advanced algorithms to stay ahead in the market.
Shortterm-Weekly-Monthly Picks
Stock recommendations categorized by short-term, weekly, and monthly timeframes.
curl --request POST \
--url https://localhost:44338/ideas_positional \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"tabname":"shorttermpicks"}
{"tabname":"weeklypicks"}
{"tabname":"monthlypicks"}
Request Parameters
| Field |
Type |
Description |
| tabname |
string |
Specifies the tab name. |
Response Structure
{"TodayPicks":[{"EntryDate":"2025-07-10","Symbol":"PFC","IndustryName":"Finance Term Lending","Direction":"BUY","Rating":5,"Investment":99968.65,"Qty":233,"EntryPrice":"429.05","LivePrice":"433.35","PLPercent":"1.00"}],"OtherPicks":[{"EntryDate":"2025-07-10","Symbol":"PFC","Return(in %)":"1.00","ExitDate":"","IndustryName":"Finance Term Lending","Direction":"BUY","Rating":5,"Investment":99968.65,"Qty":233,"EntryPrice":"429.05","SL/TrailSL":"419.60","Live/Exit Price":"433.35","PL":"1001.90","PLPercent":"1.00"}]}
Response Parameters
| Field |
Type |
Description |
| TodayPicks.EntryDate |
string |
The date when the stock was recommended |
| TodayPicks.Symbol |
string |
The stock symbol of the recommended company |
| TodayPicks.IndustryName |
string |
The industry sector of the stock |
| TodayPicks.Direction |
string |
The recommended trade direction (BUY/SELL) |
| TodayPicks.Rating |
int |
The analyst rating of the stock |
| TodayPicks.Investment |
double |
The total invested amount |
| TodayPicks.Qty |
int |
The quantity of stocks purchased |
| TodayPicks.EntryPrice |
string |
The price at which the stock was purchased |
| TodayPicks.LivePrice |
string |
The current market price of the stock |
| TodayPicks.PLPercent |
string |
The profit or loss percentage of the investment |
| OtherPicks.EntryDate |
string |
The date when the stock was recommended |
| OtherPicks.Symbol |
string |
The stock symbol of the recommended company |
| OtherPicks.Return(in %) |
string |
The return percentage of the stock |
| OtherPicks.ExitDate |
string |
The date when the stock was exited, if applicable |
| OtherPicks.IndustryName |
string |
The industry sector of the stock |
| OtherPicks.Direction |
string |
The recommended trade direction (BUY/SELL) |
| OtherPicks.Rating |
int |
The analyst rating of the stock |
| OtherPicks.Investment |
double |
The total invested amount |
| OtherPicks.Qty |
int |
The quantity of stocks purchased |
| OtherPicks.EntryPrice |
string |
The price at which the stock was purchased |
| OtherPicks.SL/TrailSL |
string |
The stop loss or trailing stop loss price |
| OtherPicks.Live/Exit Price |
string |
The current price or exit price of the stock |
| OtherPicks.PL |
string |
The absolute profit or loss value |
| OtherPicks.PLPercent |
string |
The profit or loss percentage of the investment |
Autotrade Signals
Automated buy/sell signals generated for trading without manual intervention.
curl --request POST \
--url https://localhost:44338/ti_signals_autotrade_getdata \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"TradeAllEquity":"","TradeAllFutures":"","TradeAllindices":"","TradeAllWeekly":"Auto Trading is activated. View trades in the 'Net Positions' page.","amount_Equity":"","stopautotrade_Equity":"","squareoffall_Equity":"","profitpl_Equity":"","losspl_Equity":"","amount_Futures":"","stopautotrade_Futures":"","squareoffall_Futures":"","profitpl_Futures":"","losspl_Futures":"","amount_Indices":"","stopautotrade_Indices":"","squareoffall_Indices":"","profitpl_Indices":"","losspl_Indices":"","TradeAllActive":"Auto Trading paused. New recommendations will not be traded. To start again click edit and update.","amount_weeklyportfolio":"Auto Trading paused. New recommendations will not be traded. To start again click edit and update.","amount_weekly":"15000","stopautotrade_weekly":"False","squareoffall_weekly":"False","profitpl_weekly":"0","losspl_weekly":"0","amount_active":"20000","stopautotrade_active":"true","squareoffall_active":"False","profitpl_active":"1000","losspl_active":"0","TradeAllStockOfMonth":"Auto Trading is activated. View trades in the “Net Positions” page.","amount_stockofmonth":"100000","stopautotrade_stockofmonth":"FALSE","profitpl_stockofmonth":"0","squareoffall_stockofmonth":"FALSE","losspl_stockofmonth":"0","btn_start":"disable","btn_stopnew":"disable","btn_stopauto":"enable","btn_stopsquareoff":"enable","dropdownvalues":["Stop New Trades","Stop All Auto Trades","Stop & Square-Off All Trades"]}]
Response Parameters
| Field |
Type |
Description |
| TradeAllEquity |
string |
Indicates if auto trading for Equity is active or paused. |
| TradeAllFutures |
string |
Indicates if auto trading for Futures is active or paused. |
| TradeAllindices |
string |
Indicates if auto trading for Indices is active or paused. |
| TradeAllWeekly |
string |
Shows the trading status for Weekly Auto Trading and where to view trades. |
| amount_Equity |
string |
Specifies the allocated amount for Equity auto trading. |
| stopautotrade_Equity |
string |
Indicates if Equity auto trading is stopped. |
| squareoffall_Equity |
string |
Indicates if all Equity trades are squared off. |
| profitpl_Equity |
string |
Tracks the profit and loss of Equity trades. |
| losspl_Equity |
string |
Tracks the loss threshold of Equity trades. |
| amount_Futures |
string |
Specifies the allocated amount for Futures auto trading. |
| stopautotrade_Futures |
string |
Indicates if Futures auto trading is stopped. |
| squareoffall_Futures |
string |
Indicates if all Futures trades are squared off. |
| profitpl_Futures |
string |
Tracks the profit and loss of Futures trades. |
| losspl_Futures |
string |
Tracks the loss threshold of Futures trades. |
| amount_Indices |
string |
Specifies the allocated amount for Indices auto trading. |
| stopautotrade_Indices |
string |
Indicates if Indices auto trading is stopped. |
| squareoffall_Indices |
string |
Indicates if all Indices trades are squared off. |
| profitpl_Indices |
string |
Tracks the profit and loss of Indices trades. |
| losspl_Indices |
string |
Tracks the loss threshold of Indices trades. |
| TradeAllActive |
string |
Shows the global auto trading status when paused and how to resume. |
| amount_weeklyportfolio |
string |
Shows the weekly portfolio auto trading status and how to resume. |
| amount_weekly |
string |
Specifies the allocated amount for Weekly auto trading. |
| stopautotrade_weekly |
string |
Indicates if Weekly auto trading is stopped. |
| squareoffall_weekly |
string |
Indicates if all Weekly trades are squared off. |
| profitpl_weekly |
string |
Tracks the profit and loss of Weekly trades. |
| losspl_weekly |
string |
Tracks the loss threshold of Weekly trades. |
| amount_active |
string |
Specifies the allocated amount for Active auto trading. |
| stopautotrade_active |
string |
Indicates if Active auto trading is stopped. |
| squareoffall_active |
string |
Indicates if all Active trades are squared off. |
| profitpl_active |
string |
Tracks the profit and loss of Active trades. |
| losspl_active |
string |
Tracks the loss threshold of Active trades. |
| TradeAllStockOfMonth |
string |
Shows the auto trading status for Stock of the Month and where to view trades. |
| amount_stockofmonth |
string |
Specifies the allocated amount for Stock of the Month auto trading. |
| stopautotrade_stockofmonth |
string |
Indicates if Stock of the Month auto trading is stopped. |
| profitpl_stockofmonth |
string |
Tracks the profit and loss of Stock of the Month trades. |
| squareoff_stockofmonth |
string |
Indicates if all Stock of the Month trades are squared off. |
| losspl_stockofmonth |
string |
Tracks the loss threshold of Stock of the Month trades. |
| btn_start |
string |
Controls the enable/disable state of the Start button. |
| btn_stopnew |
string |
Controls the enable/disable state of the Stop New Trades button. |
| btn_stopauto |
string |
Controls the enable/disable state of the Stop Auto Trades button. |
| btn_stopsquareoff |
string |
Controls the enable/disable state of the Stop & Square-Off button. |
| dropdownvalues |
array of string |
Lists the available actions in the auto trade control dropdown. |
Update
Refreshes the latest data or trading signals
curl --request POST \
--url https://localhost:44338/ti_signals_autotrade \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"tabname":"shorttermpicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"update"}
{"tabname":"weeklypicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"update"}
{"tabname":"monthlypicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"update"}
Request Parameters
| Field |
Type |
Description |
| tabname |
string |
Specifies the tab identifier for categorizing the data |
| amount |
string |
Represents the transaction amount or investment value |
| profitpl |
string |
Indicates the profit or gain in the transaction |
| losspl |
string |
Indicates the loss or deficit in the transaction |
| btn_action |
string |
Defines the button action to perform for this record |
Response Structure
{"status":"SUCCESS","reason":"Auto Trade setup updated successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Start/Stop Auto Trade
Enables or disables automatic trading based on signals.
curl --request POST \
--url https://localhost:44338/ti_signals_autotrade \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"tabname":"shorttermpicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"start"}
Request Parameters
| Field |
Type |
Description |
| tabname |
string |
The tab or section name to categorize the service. {e.g, shorttermpicks,weeklypicks,monthlypicks} |
| amount |
string |
The total investment or input amount for the service |
| profitpl |
string |
The profit or gain amount expected or generated from the service |
| losspl |
string |
The loss amount, if any, associated with the service |
| btn_action |
string |
The action to trigger the process (e.g., start, stopnew, stopauto,stopsquareoff) |
Response Structure
{"status":"SUCCESS","reason":"Auto Trading Stopped.All auto trading for recommendations has been disabled.Any existing open positions can be managed in the 'Net Positions' page."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Intraday Picks
Get algo-driven Intraday Picks in Equity, Options and Indices. Automate buy/sell by defining your capital and P/L
Intraday Picks
Trading recommendations for same-day buying and selling.
curl --request POST \
--url https://localhost:44338/ideas_intraday \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"tabname":"indices"}
{"tabname":"equity"}
{"tabname":"futures"}
Request Parameters
| Field |
Type |
Description |
| tabname |
string |
Specifies the tab identifier for categorizing the data |
Response Structure
[{"ScripName":"ACC","BuySell":"SELL","Qty":100,"EntryPrice":1999.0,"Tgt":1984.35,"SL":1997.0,"LTP":1997.0,"TotPL":200.0,"Investment":200000.0,"PERIOD":"Intraday","EntryTime":"2025-07-11 11:01:25","MaxPL":1030.0,"aStatus":"TrailSL","MaxPLPerReached":70.31,"entryqty":0,"exitqty":0}]
Response Parameters
| Field |
Type |
Description |
| ScripName |
string |
The name of the trading symbol. |
| BuySell |
string |
Indicates the trade direction. |
| Qty |
int |
The quantity of stocks traded. |
| EntryPrice |
double |
The price at which the trade was entered. |
| Tgt |
double |
The target price for the trade. |
| SL |
double |
The stop-loss price for the trade. |
| LTP |
double |
The latest traded price of the stock. |
| TotPL |
double |
Total profit or loss of the trade. |
| Investment |
double |
Total investment amount for the trade. |
| PERIOD |
string |
The duration type of the trade. |
| EntryTime |
string |
The timestamp when the trade was entered. |
| MaxPL |
double |
The maximum profit or loss achieved during the trade. |
| aStatus |
string |
The current active status of the trade. |
| MaxPLPerReached |
double |
The maximum profit percentage reached during the trade. |
| entryqty |
int |
The quantity entered in the trade process. |
| exitqty |
int |
The quantity exited in the trade process. |
Autotrade Signals
Automated buy/sell signals generated for trading without manual intervention.
curl --request POST \
--url https://localhost:44338/ti_signals_autotrade_getdata \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"TradeAllEquity":"","TradeAllFutures":"","TradeAllindices":"","TradeAllWeekly":"Auto Trading paused. New recommendations will not be traded. To start again click edit and update.","amount_Equity":"","stopautotrade_Equity":"","squareoffall_Equity":"","profitpl_Equity":"","losspl_Equity":"","amount_Futures":"","stopautotrade_Futures":"","squareoffall_Futures":"","profitpl_Futures":"","losspl_Futures":"","amount_Indices":"","stopautotrade_Indices":"","squareoffall_Indices":"","profitpl_Indices":"","losspl_Indices":"","TradeAllActive":"All auto trading for recommendations has been disabled.","amount_weeklyportfolio":"All auto trading for recommendations has been disabled.","amount_weekly":"15000","stopautotrade_weekly":"true","squareoffall_weekly":"False","profitpl_weekly":"0","losspl_weekly":"0","amount_active":"20000","stopautotrade_active":"False","squareoffall_active":"False","profitpl_active":"1000","losspl_active":"0","TradeAllStockOfMonth":"Auto Trading paused. New recommendations will not be traded. To start again click edit and update.","amount_stockofmonth":"100000","stopautotrade_stockofmonth":"true","profitpl_stockofmonth":"0","squareoffall_stockofmonth":"False","losspl_stockofmonth":"0","btn_start":"enable","btn_stopnew":"disable","btn_stopauto":"disable","btn_stopsquareoff":"disable","dropdownvalues":["Stop New Trades","Stop All Auto Trades","Stop & Square-Off All Trades"]}]
Response Parameters
| Field |
Type |
Description |
| TradeAllEquity |
string |
Controls auto trading status for equity recommendations. |
| TradeAllFutures |
string |
Controls auto trading status for futures recommendations. |
| TradeAllindices |
string |
Controls auto trading status for indices recommendations. |
| TradeAllWeekly |
string |
Displays the status message when auto trading for weekly portfolio is paused. |
| amount_Equity |
string |
Defines the trade amount for equity recommendations. |
| stopautotrade_Equity |
string |
Indicates whether auto trading for equity is stopped. |
| squareoffall_Equity |
string |
Indicates whether to square off all equity trades. |
| profitpl_Equity |
string |
Defines the profit limit for equity trades. |
| losspl_Equity |
string |
Defines the loss limit for equity trades. |
| amount_Futures |
string |
Defines the trade amount for futures recommendations. |
| stopautotrade_Futures |
string |
Indicates whether auto trading for futures is stopped. |
| squareoffall_Futures |
string |
Indicates whether to square off all futures trades. |
| profitpl_Futures |
string |
Defines the profit limit for futures trades. |
| losspl_Futures |
string |
Defines the loss limit for futures trades. |
| amount_Indices |
string |
Defines the trade amount for indices recommendations. |
| stopautotrade_Indices |
string |
Indicates whether auto trading for indices is stopped. |
| squareoffall_Indices |
string |
Indicates whether to square off all indices trades. |
| profitpl_Indices |
string |
Defines the profit limit for indices trades. |
| losspl_Indices |
string |
Defines the loss limit for indices trades. |
| TradeAllActive |
string |
Displays the message when all auto trading is disabled. |
| amount_weeklyportfolio |
string |
Displays the message when weekly portfolio auto trading is disabled. |
| amount_weekly |
string |
Defines the trade amount for weekly portfolio trades. |
| stopautotrade_weekly |
string |
Indicates whether auto trading for weekly portfolio is stopped. |
| squareoffall_weekly |
string |
Indicates whether to square off all weekly portfolio trades. |
| profitpl_weekly |
string |
Defines the profit limit for weekly portfolio trades. |
| losspl_weekly |
string |
Defines the loss limit for weekly portfolio trades. |
| amount_active |
string |
Defines the active trading amount across all segments. |
| stopautotrade_active |
string |
Indicates whether all active auto trading is stopped. |
| squareoffall_active |
string |
Indicates whether to square off all active trades. |
| profitpl_active |
string |
Defines the profit limit across all active trades. |
| losspl_active |
string |
Defines the loss limit across all active trades. |
| TradeAllStockOfMonth |
string |
Displays the message when auto trading for stock of the month is paused. |
| amount_stockofmonth |
string |
Defines the trade amount for stock of the month recommendations. |
| stopautotrade_stockofmonth |
string |
Indicates whether auto trading for stock of the month is stopped. |
| profitpl_stockofmonth |
string |
Defines the profit limit for stock of the month trades. |
| squareoffall_stockofmonth |
string |
Indicates whether to square off all stock of the month trades. |
| losspl_stockofmonth |
string |
Defines the loss limit for stock of the month trades. |
| btn_start |
string |
Indicates whether the start button is enabled or disabled. |
| btn_stopnew |
string |
Indicates whether the stop new trades button is enabled or disabled. |
| btn_stopauto |
string |
Indicates whether the stop auto trades button is enabled or disabled. |
| btn_stopsquareoff |
string |
Indicates whether the stop and square-off button is enabled or disabled. |
| dropdownvalues |
array string |
Contains the list of available dropdown options for stopping trades. |
Update
Refreshes the latest data or trading signals.
curl --request POST \
--url https://localhost:44338/ti_signals_autotrade \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"tabname":"shorttermpicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"update"}
{"tabname":"weeklypicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"update"}
{"tabname":"monthlypicks","amount":"20000","profitpl":"1000","losspl":"0","btn_action":"update"}
Request Parameters
| Field |
Type |
Description |
| tabname |
string |
Specifies the tab identifier for categorizing the data |
| amount |
string |
Represents the transaction amount or investment value |
| profitpl |
string |
Indicates the profit or gain in the transaction |
| losspl |
string |
Indicates the loss or deficit in the transaction |
| btn_action |
string |
Defines the button action to perform for this record |
Response Structure
{"status":"SUCCESS","reason":"Auto Trade setup updated successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Start/Stop Auto Trade
Enables or disables automatic trading based on signals.
curl --request POST \
--url https://localhost:44338/ti_signals_autotrade \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"tabname":"futures","amount":"1","profitpl":"0","losspl":"0","btn_action":"start"}
Request Parameters
| Field |
Type |
Description |
| tabname |
string |
The tab or section name to categorize the service. {e.g, indices,equity,futures} |
| amount |
string |
The total investment or input amount for the service |
| profitpl |
string |
The profit or gain amount expected or generated from the service |
| losspl |
string |
The loss amount, if any, associated with the service |
| btn_action |
string |
The action to trigger the process (e.g., start, stopnew, stopauto,stopsquareoff) |
Response Structure
{"status":"SUCCESS","reason":"Auto Trading Activated! All new recommendations generated in this product will now be automatically traded in your broker account.You can view and manage your trades in the “Net Positions” page in Dashboards."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Strategy Picks
Explore ready-made trading strategies with Modern Algos. Choose from proven strategies designed to enhance your trading performance and save time.
Strategy Picks
Stock picks generated from predefined trading strategies.
curl --request POST \
--url https://localhost:44338/st_picks_1 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"insttype":"indices"}
{"insttype":"equity"}
Request Parameters
| Field |
Type |
Description |
| insttype |
string |
Specifies the instrument type used for the trade |
Response Structure
{"Table":[{"UniqueStrategyNO":1771,"DateOnly":"2025-07-11T00:00:00","Publish_Date":"11 Jul 2025 10:00 AM","Direction":"Neutral","Symbol":"BANKNIFTY","StrategyName":"Short Straddle","Target_Date":"11 Jul 2025 03:30 PM","Future_Price":57096.0,"Capital":301738.93,"Status":"ExitTime Triggered","Suggestion":"ExitTime Triggered","Upfront_Margin":381437.36,"DirectionTrend":"Neutral"}]}
Response Parameters
| Field |
Type |
Description |
| Table.UniqueStrategyNO |
int |
Unique identifier for the strategy |
| Table.DateOnly |
string |
The strategy's effective date |
| Table.Publish_Date |
string |
The date and time when the strategy was published |
| Table.Direction |
string |
The market outlook direction of the strategy |
| Table.Symbol |
string |
The symbol representing the trading instrument |
| Table.StrategyName |
string |
The name of the trading strategy |
| Table.Target_Date |
string |
The expected completion time of the strategy |
| Table.Future_Price |
double |
The price of the underlying future contract |
| Table.Capital |
double |
The capital allocated for the strategy |
| Table.Status |
string |
The current execution status of the strategy |
| Table.Suggestion |
string |
The recommended action for the strategy |
| Table.Upfront_Margin |
double |
The initial margin required to enter the strategy |
| Table.DirectionTrend |
string |
The directional trend based on analysis |
Strategy Picks Details
Detailed view of each stock pick from trading strategies.
curl --request POST \
--url https://localhost:44338/st_picks_2 \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"strategyid":"1770"}
Request Parameters
| Field |
Type |
Description |
| strategyid |
string |
The unique identifier of the strategy. |
Response Structure
{"StockPicks2Title":[{"UniqueStrategyNO":"1770","Direction":"Neutral","Symbol":"TATASTEEL","StrategyName":"Short Straddle","FuturePrice":"162.05","Tip":"ExitTime Triggered"}],"StockPicks2Summary":[{"PublishedDate":"11 Jul 2025 09:45 AM","ValidTillDate":"11 Jul 2025 03:30 PM","EQStopLoss":"0","EQEntry":"0","EQTgt":"0","EQSL":"0","CreditDebit":"0","Capital":"195927.05","Status":"ExitTime Triggered","MaxProfit":"2500","MaxLoss":"2000","LiveProfitLoss":"1650","UpfrontMargin":"258039.10","Description":""}],"StockPicks2Legs":[{"Symbol":"TATASTEEL","UPrice":"162.05","Instrument":"PE","ExpDate":"2025-07-31","StrikePrice":"161.4","BUYSELL":"SELL","Qty":"5500","LTP":"3.5","Lots":"1","SymbolFull":"TATASTEEL25JUL161.4PE"}]}
Response Parameters
| Field |
Type |
Description |
| StockPicks2Title.UniqueStrategyNO |
string |
Unique identifier number for the strategy |
| StockPicks2Title.Direction |
string |
Indicates the market outlook of the strategy |
| StockPicks2Title.Symbol |
string |
Stock symbol for which the strategy is applied |
| StockPicks2Title.StrategyName |
string |
Name of the trading strategy used |
| StockPicks2Title.FuturePrice |
string |
Price of the future contract for the symbol |
| StockPicks2Title.Tip |
string |
Status or recommendation of the strategy |
| StockPicks2Summary.PublishedDate |
string |
Date and time when the strategy was published |
| StockPicks2Summary.ValidTillDate |
string |
End time until which the strategy is valid |
| StockPicks2Summary.EQStopLoss |
string |
Stop loss price for equity trades |
| StockPicks2Summary.EQEntry |
string |
Entry price for equity trades |
| StockPicks2Summary.EQTgt |
string |
Target price for equity trades |
| StockPicks2Summary.EQSL |
string |
Stop loss level for the equity trade |
| StockPicks2Summary.CreditDebit |
string |
Total credit or debit for the trade |
| StockPicks2Summary.Capital |
string |
Total capital required for the strategy |
| StockPicks2Summary.Status |
string |
Current status of the strategy |
| StockPicks2Summary.MaxProfit |
string |
Maximum possible profit from the strategy |
| StockPicks2Summary.MaxLoss |
string |
Maximum possible loss from the strategy |
| StockPicks2Summary.LiveProfitLoss |
string |
Current profit or loss from the live strategy |
| StockPicks2Summary.UpfrontMargin |
string |
Margin required upfront to execute the trade |
| StockPicks2Summary.Description |
string |
Additional details about the strategy |
| StockPicks2Legs.Symbol |
string |
Stock symbol of the option leg |
| StockPicks2Legs.UPrice |
string |
Underlying stock price at the time of the trade |
| StockPicks2Legs.Instrument |
string |
Type of derivative instrument |
| StockPicks2Legs.ExpDate |
string |
Expiry date of the option contract |
| StockPicks2Legs.StrikePrice |
string |
Strike price of the option contract |
| StockPicks2Legs.BUYSELL |
string |
Indicates whether the leg is a buy or sell |
| StockPicks2Legs.Qty |
string |
Quantity of contracts traded |
| StockPicks2Legs.LTP |
string |
Last traded price of the option leg |
| StockPicks2Legs.Lots |
string |
Number of lots involved in the trade |
| StockPicks2Legs.SymbolFull |
string |
Complete symbol representation of the option contract |
Market Watch
Track real-time market data on stocks, indices, and trends with Modern Algos' Market Watch. Stay informed and make smarter trading decisions.
Market Watch List
A list displaying selected stocks or financial instruments to monitor their real-time market performance.
curl --request POST \
--url https://localhost:44338/mkwatch_summary \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"LotSize":1,"Symbol":"BANKNIFTY","Open":56843.45,"High":57091.05,"Low":56607.75,"Close":56708.45,"PClose":56956.0,"Volume":0,"AvgPrice":0.0,"PriceChg":-0.43,"Token":0,"Exchange":"NSE","MAESymbol":"BANKNIFTY"}]
Response Parameters
| Field |
Type |
Description |
| LotSize |
int |
Specifies the lot size of the trading instrument. |
| Symbol |
string |
Represents the trading symbol of the instrument. |
| Open |
double |
Indicates the opening price of the instrument for the current trading session. |
| High |
double |
Records the highest price reached during the trading session. |
| Low |
double |
Records the lowest price reached during the trading session. |
| Close |
double |
Represents the last traded price of the instrument for the session. |
| PClose |
double |
Holds the previous trading session’s closing price. |
| Volume |
int |
Displays the total number of shares or contracts traded. |
| AvgPrice |
double |
Shows the average traded price of the instrument for the session. |
| PriceChg |
double |
Indicates the percentage change in price compared to the previous close. |
| Token |
int |
Identifies the unique token assigned to the trading instrument. |
| Exchange |
string |
Specifies the exchange on which the instrument is listed. |
| MAESymbol |
string |
Represents the symbol used in Market Access Entry systems. |
Add
To include a new item in a list or system.
curl --request POST \
--url https://localhost:44338/mkwatch_add \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"ACC","exchange":"NSE"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the stock symbol of the company listed in the exchange. |
| exchange |
string |
Indicates the name of the stock exchange where the company is listed. |
Response Structure
{"status":"Success","reason":"Added Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Delete
To remove an existing item from a list or system.
curl --request POST \
--url https://localhost:44338/mkwatch_delete \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"TCS"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the stock symbol of the company listed in the exchange. |
Response Structure
{"status":"Success","reason":"Deleted Successfully."}
Response Parameters
| Field |
Type |
Description |
| Status |
string |
The result of the service call indicating success or failure. |
| Reason |
string |
The explanation message providing the reason for the status. |
Strategy Builder
Build and analyze option strategies with advanced tools. Test and optimize your trades for better risk management and returns.
Information about the Symbol
Metrics that measure the sensitivity of an option’s price to various market factors.
curl --request POST \
--url https://localhost:44338/sb_displaydetails \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Symbol name of the stock. |
Response Structure
[{"Spot Price":25149.85,"Live Net premium":58.15,"IV Percentile":0.4,"IV Rank":10.91,"Trend Analyser":"Bearish","StdDev":327.16,"Lot Size":75,"PCR":0.81,"Max Pain":25350.0,"ATMStrike":25150.0}]
Response Parameters
| Field |
Type |
Description |
| Spot Price |
double |
Represents the current market trading price of the underlying asset. |
| Live Net premium |
double |
Indicates the real-time premium difference between option prices and the spot price. |
| IV Percentile |
double |
Shows where the current implied volatility stands relative to its past values over a period. |
| IV Rank |
double |
Represents the current implied volatility rank compared to its historical high and low values. |
| Trend Analyser |
string |
Displays the current trend direction of the underlying asset. |
| StdDev |
double |
Indicates the standard deviation of price movements, reflecting market volatility. |
| Lot Size |
int |
Specifies the quantity of the underlying asset per options or futures contract. |
| PCR |
double |
Shows the Put Call Ratio, used to measure market sentiment. |
| Max Pain |
double |
Represents the strike price where the highest number of options buyers will lose money at expiration. |
| ATMStrike |
double |
Indicates the strike price that is closest to the current spot price of the underlying asset. |
Readymade Strategies
Predefined option trading strategies designed for quick implementation.
curl --request POST \
--url https://localhost:44338/sb_images \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
{"List":[{"Direction":"UpSide","Direction2":"Bullish","StrategyName":"Naked CE","ImageURL":"https://modernalgos.com/App_Themes/images/at_strategies/bullish-buy-call.svg","No of Trades":1,"Profit/Loss":1.0,"Success Rate":1.0,"Tooltip":"Naked CE"},{"Direction":"DownSide","Direction2":"Bearish","StrategyName":"Short Strangle","ImageURL":"https://modernalgos.com/App_Themes/images/at_strategies/neutral-short-strangle.svg","No of Trades":7,"Profit/Loss":70.0,"Success Rate":17.0,"Tooltip":"Short Strangle"}]}
Response Parameters
| Field |
Type |
Description |
| List.Direction |
string |
Represents the market movement direction |
| List.Direction2 |
string |
Provides the directional bias description |
| List.StrategyName |
string |
Name of the trading strategy |
| List.ImageURL |
string |
URL of the strategy icon image |
| List.No of Trades |
int |
Total number of trades for the strategy |
| List.Profit/Loss |
double |
Profit or loss percentage of the strategy |
| List.Success Rate |
double |
Percentage of successful trades |
| List.Tooltip |
string |
Short tooltip text describing the strategy |
Readymade Strategies Data
Information and parameters related to predefined trading strategies.
curl --request POST \
--url https://localhost:44338/sb_getstrategy \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","strategyname":"Naked CE","expdate":"2025-07-17"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the market symbol. |
| strategyname |
string |
Name of the trading strategy. |
| expdate |
string |
Expiry date of the contract in YYYY-MM-DD format. |
Response Structure
[{"Symbol":"NIFTY","UPrice":25208,"Instrument":"CE","ExpDate":"2025-07-17","StrikePrice":25150.0,"BUYSELL":"BUY","LTP":"135.1","Qty":75,"Lots":1,"OI":0,"OI Chg":0,"Flag":"","Delta":"0.5361","IV":9.46,"Gamma":0.0013,"Theta":-10.1108,"Vega":12.8245}]
Response Parameters
| Field |
Type |
Description |
| Symbol |
string |
Represents the symbol of the traded instrument |
| UPrice |
double |
Underlying price of the instrument |
| Instrument |
string |
Type of instrument |
| ExpDate |
string |
Expiry date of the contract in YYYY-MM-DD format |
| StrikePrice |
double |
Strike price of the option contract |
| BUYSELL |
string |
Indicates whether the position is a buy or sell |
| LTP |
string |
Last traded price of the instrument |
| Qty |
int |
Total quantity of the order |
| Lots |
int |
Number of lots traded |
| OI |
double |
Open interest for the contract |
| OI Chg |
double |
Change in open interest |
| Flag |
string |
Optional flag for additional status or remarks |
| Delta |
string |
Delta value representing the sensitivity of option price |
| IV |
double |
Implied volatility of the option |
| Gamma |
string |
Gamma value representing the rate of change of delta |
| Theta |
string |
Theta value representing the time decay of the option |
| Vega |
string |
Vega value representing the sensitivity to volatility changes |
Futureprice & Price
The projected future price and the current market price of an asset.
curl --request POST \
--url https://localhost:44338/getlatestiv_for_price \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","expdate":"2025-07-17","strikeprice":"25150","instrument":"CE","buysell":"Buy","price":"9","futureprice":"6"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
The trading symbol of the financial instrument |
| expdate |
string |
The expiry date of the contract in YYYY-MM-DD format |
| strikeprice |
string |
The strike price of the option contract |
| instrument |
string |
The type of option instrument (e.g., call or put) |
| buysell |
string |
Indicates whether the position is a buy or sell order |
| price |
string |
The trade execution price of the instrument |
| futureprice |
string |
The corresponding futures price of the underlying asset |
Response Structure
[{"Price":"135.10","Delta":"0.5361","Gamma":"0.0013","Theta":"-10.1108","Vega":"12.8245","IV":"9.46","FuturePrice":"6","LotSize":"75"}]
Response Parameters
| Field |
Type |
Description |
| Price |
string |
The current price of the service. |
| Delta |
string |
The rate of change of the option's price with respect to the underlying asset's price. |
| Gamma |
string |
The rate of change of Delta with respect to the underlying asset's price. |
| Theta |
string |
The rate of time decay of the option's value. |
| Vega |
string |
The sensitivity of the option's price to changes in volatility. |
| IV |
string |
The implied volatility of the option expressed as a percentage. |
| FuturePrice |
string |
The estimated future price of the underlying asset. |
| LotSize |
string |
The standard quantity of units in a single lot. |
IV
To get the latest price for IV
curl --request POST \
--url https://localhost:44338/getlatestprice_foriv \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","expdate":"2025-07-17","strikeprice":"25150","instrument":"CE","buysell":"Buy","iv":"9","futureprice":"6"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the index or asset symbol. |
| expdate |
string |
Specifies the expiry date of the contract in YYYY-MM-DD format. |
| strikeprice |
string |
Indicates the strike price of the option contract. |
| instrument |
string |
Defines the type of the instrument (CE for Call option or PE for Put option). |
| buysell |
string |
Specifies whether the position is a Buy or Sell. |
| iv |
string |
Represents the implied volatility percentage of the option. |
| futureprice |
string |
Denotes the price of the corresponding future contract. |
Response Structure
[{"Price":"0.00","Delta":"0.0000","Gamma":"0.0000","Theta":"0.0000","Vega":"0.0000","IV":"9.00","FuturePrice":"6","LotSize":"75"}]
Response Parameters
| Field |
Type |
Description |
| Price |
string |
The price value of the service. |
| Delta |
string |
The sensitivity of the option's price to the underlying asset's price change. |
| Gamma |
string |
The rate of change of Delta relative to the underlying asset's price change. |
| Theta |
string |
The rate of decline in the option's value over time. |
| Vega |
string |
The sensitivity of the option's price to volatility changes in the underlying asset. |
| IV |
string |
The implied volatility percentage of the option. |
| FuturePrice |
string |
The future price of the underlying asset. |
| LotSize |
string |
The number of units in one lot for trading. |
Payoff Chart
A graph showing potential profit or loss of a trading strategy at different price levels.
curl --request POST \
--url https://localhost:44338/payoff_chart \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"slidervalue":"0","Legsdata":[{"symbol":"NIFTY","price":"135.1","futprice":"25208","strike":"25150","qty":"75","action":"Buy","instrument":"CE","iv":"9.46","expdate":"2025-07-17"}]}
Request Parameters
| Field |
Type |
Description |
| slidervalue |
string |
The slider control's selected value representing a numeric setting. |
| Legsdata.symbol |
string |
The symbol name of the traded instrument. |
| Legsdata.price |
string |
The premium or price of the option contract. |
| Legsdata.futprice |
string |
The futures price of the underlying asset. |
| Legsdata.strike |
string |
The strike price of the option contract. |
| Legsdata.qty |
string |
The quantity of the contracts traded. |
| Legsdata.action |
string |
The trade action indicating Buy or Sell. |
| Legsdata.instrument |
string |
The type of instrument, such as CE or PE. |
| Legsdata.iv |
string |
The implied volatility percentage of the option. |
| Legsdata.expdate |
string |
The expiry date of the option contract. |
Response Structure
{"Upfront_Margin":"10132.50","Investment":"10132.50","Breakeven_Down":"0.00","Breakeven_Up":"25286.00","Max_Profit":"123","Max_Loss":"-10132.50","Risk_Reward":"NA","Total_Delta":"40.21","Total_Gamma":"0.10","Total_Theta":"-758.31","Total_Vega":"961.84","Total_IV":"9.46","Stddev2_minus":"24825.55","Stddev1_minus":"24987.70","Stddev1_plus":"25312.00","Stddev2_plus":"25474.15","xyArray":["25275:-758","25276:-683","25277:-608","25278:-533","25279:-458","25280:-383","25281:-308","25282:-233","25283:-158","25284:-82","25285:-7"],"xyArrayslider":["24269:-10118","24270:-10118","24271:-10118","24272:-10118","24273:-10117","24274:-10117","24275:-10117","24276:-10117","24277:-10117","24278:-10117","24279:-10116","24280:-10116","24281:-10116","24282:-10116","24283:-10116","24284:-10115","24285:-10115","24286:-10115","25150:5","25151:46","25152:86","25153:126","25154:167","25155:208","25156:248","25157:289","25158:330","25159:371","25160:412","25161:454","25162:495","25163:536","25164:578","25165:620"],"SliderRange":6,"CurrentPrice":25149.85,"SliderSelection":6,"box1_value1":"BEP DOWN : 0","box1_value2":"-% from CMP","box2_value1":"BEP UP : 25286","box2_value2":"0.54% from CMP","box3_value1":"Max profit : Undefined","box3_value2":"-% on Investment","box4_value1":"Max Loss : -10132.50","box4_value2":"-100.00% on Investment"}
Response Parameters
| Field |
Type |
Description |
| Upfront_Margin |
string |
The total upfront margin required to initiate the trade. |
| Investment |
string |
The total capital invested in the trade. |
| Breakeven_Down |
string |
The lower breakeven price point where no profit or loss occurs. |
| Breakeven_Up |
string |
The upper breakeven price point where no profit or loss occurs. |
| Max_Profit |
string |
The maximum possible profit from the trade. |
| Max_Loss |
string |
The maximum potential loss from the trade. |
| Risk_Reward |
string |
The calculated risk-to-reward ratio of the trade. |
| Total_Delta |
string |
The overall delta value representing sensitivity to price changes. |
| Total_Gamma |
string |
The overall gamma value representing the rate of change of delta. |
| Total_Theta |
string |
The overall theta value representing time decay. |
| Total_Vega |
string |
The overall vega value representing sensitivity to volatility changes. |
| Total_IV |
string |
The implied volatility percentage of the trade. |
| Stddev2_minus |
string |
The price level at minus two standard deviations from the current price. |
| Stddev1_minus |
string |
The price level at minus one standard deviation from the current price. |
| Stddev1_plus |
string |
The price level at plus one standard deviation from the current price. |
| Stddev2_plus |
string |
The price level at plus two standard deviations from the current price. |
| xyArray[index] |
string |
The coordinate pairs showing price and corresponding theta value. |
| xyArrayslider[index] |
string |
The coordinate pairs used for slider visualization showing price and value. |
| SliderRange |
string |
The selected range value on the slider control. |
| CurrentPrice |
string |
The current market price of the underlying asset. |
| SliderSelection |
string |
The currently selected slider value. |
| box1_value1 |
string |
The first line of breakeven down information. |
| box1_value2 |
string |
The second line of breakeven down information. |
| box2_value1 |
string |
The first line of breakeven up information. |
| box2_value2 |
string |
The second line of breakeven up information. |
| box3_value1 |
string |
The first line of maximum profit information. |
| box3_value2 |
string |
The second line of maximum profit information. |
| box4_value1 |
string |
The first line of maximum loss information. |
| box4_value2 |
string |
The second line of maximum loss information. |
Option Chain
Analyze real-time options data with Modern Algos' Option Chain. Track prices, volume, OI, and strike-wise Greeks to refine your trading strategies.
Information about the Symbol
Metrics that measure the sensitivity of an option’s price to various market factors.
curl --request POST \
--url https://localhost:44338/sb_displaydetails \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
The trading symbol of the instrument |
Response Structure
[{"Spot Price":25149.85,"Live Net premium":58.15,"IV Percentile":0.4,"IV Rank":10.91,"Trend Analyser":"Bearish","StdDev":327.16,"Lot Size":75,"PCR":0.81,"Max Pain":25350.0,"ATMStrike":25150.0}]
Response Parameters
| Field |
Type |
Description |
| Spot Price |
double |
Represents the current market trading price of the underlying asset. |
| Live Net premium |
double |
Indicates the real-time premium difference between option prices and the spot price. |
| IV Percentile |
double |
Shows where the current implied volatility stands relative to its past values over a period. |
| IV Rank |
double |
Represents the current implied volatility rank compared to its historical high and low values. |
| Trend Analyser |
string |
Displays the current trend direction of the underlying asset. |
| StdDev |
double |
Indicates the standard deviation of price movements, reflecting market volatility. |
| Lot Size |
int |
Specifies the quantity of the underlying asset per options or futures contract. |
| PCR |
double |
Shows the Put Call Ratio, used to measure market sentiment. |
| Max Pain |
double |
Represents the strike price where the highest number of options buyers will lose money at expiration. |
| ATMStrike |
double |
Indicates the strike price that is closest to the current spot price of the underlying asset. |
Options Data with Greeks
Metrics that measure the sensitivity of an option’s price to various market factors.
curl --request POST \
--url https://localhost:44338/oc_data \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"NIFTY","expdate":"2025-07-17"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
The trading symbol of the instrument |
| expdate |
string |
Expiry date of the contract |
Response Structure
{"GeneralData":[{"HighestVolumeStrike":"25200","Highest Net OI Strike":"25150","Excepted Range":"25000-25500","Trend Analyser":"Bearish","Highlight Strike":"25150","Chart1Infoicon":"Short Build UP","Chart2Infoicon":"Short Build UP","PCR":""}],"Chart_NIFTY":[{"XaxisTime":"2025-07-11 09:20:00","Symbol":"NIFTY","FutPrice":25336.2,"OIValue":295500,"PCRData":0.63}],"Chart_SelectedSymbol":[{"XaxisTime":"2025-07-11 09:20:00","Symbol":"NIFTY","FutPrice":25336.2,"OIValue":295500,"PCRData":0.63}],"RecommendedStrategy":[{"Direction":"DnSide","Name":"Short Strangle","ImageURL":"https://modernalgos.com/AasmaaPortfolio/template2images/Short Strangle.svg"}],"StrikesData":[{"CallInterpretation":"Short Build UP","CallOIChange":"UP","CallPricechange":"DN","CallIV":16.87,"CallVolume":8325.0,"CallOI":300.0,"CallOIChg":1.97,"CallPriceChg":-10.89,"CallLTP":982.9,"StrikePrice":24200.0,"PutLTP":5.4,"PutPriceChg":24.14,"PutOIChg":83.44,"PutOI":1041975.0,"PutVolume":20315475.0,"PutContracts":270873.0,"PutIV":16.09,"PutPricechange":"UP","PutOIChange":"UP","PutInterpretation":"Long Build UP","ExpDate":"2025-07-17","UPrice":25208.0,"Qty":75.0,"CallDelta":0.967,"CallGamma":0.0001,"CallTheta":-3.338,"CallVega":2.3748,"PutDelta":-0.027,"PutGamma":0.0001,"PutTheta":-2.7009,"PutVega":2.0141}]}
Response Parameters
| Field |
Type |
Description |
| GeneralData.HighestVolumeStrike |
string |
Strike price where the highest trading volume has been recorded. |
| GeneralData.Highest Net OI Strike |
string |
Strike price with the highest Open Interest (OI) indicating significant market positions. |
| GeneralData.Excepted Range |
string |
Expected price range for the underlying asset. |
| GeneralData.Trend Analyser |
string |
Market trend analysis result. |
| GeneralData.Highlight Strike |
string |
Key strike price highlighted based on analysis. |
| GeneralData.Chart1Infoicon |
string |
Interpretation of market activity for Chart 1. |
| GeneralData.Chart2Infoicon |
string |
Interpretation of market activity for Chart 2. |
| GeneralData.PCR |
string |
Put-Call Ratio value. |
| Chart_NIFTY.XaxisTime |
string |
Timestamp for the chart data point. |
| Chart_NIFTY.Symbol |
string |
Trading symbol for the instrument. |
| Chart_NIFTY.FutPrice |
double |
Futures price of the symbol at the given time. |
| Chart_NIFTY.OIValue |
double |
Open Interest value at the given time. |
| Chart_NIFTY.PCRData |
double |
Put-Call Ratio data point for the chart. |
| Chart_SelectedSymbol.XaxisTime |
string |
Timestamp for the selected symbol's chart data point. |
| Chart_SelectedSymbol.Symbol |
string |
Trading symbol for the selected instrument. |
| Chart_SelectedSymbol.FutPrice |
double |
Futures price of the selected symbol at the given time. |
| Chart_SelectedSymbol.OIValue |
double |
Open Interest value for the selected symbol at the given time. |
| Chart_SelectedSymbol.PCRData |
double |
Put-Call Ratio data point for the selected symbol chart. |
| RecommendedStrategy.Direction |
string |
Market direction for the recommended strategy. |
| RecommendedStrategy.Name |
string |
Name of the recommended trading strategy. |
| RecommendedStrategy.ImageURL |
string |
URL for the strategy's illustrative image. |
| StrikesData.CallInterpretation |
string |
Market interpretation of the call option's behavior. |
| StrikesData.CallOIChange |
string |
Change direction of Open Interest for call options. |
| StrikesData.CallPricechange |
string |
Price change direction for the call option. |
| StrikesData.CallIV |
double |
Implied Volatility (IV) of the call option. |
| StrikesData.CallVolume |
int |
Traded volume of the call option. |
| StrikesData.CallOI |
double |
Open Interest of the call option. |
| StrikesData.CallOIChg |
double |
Change in Open Interest of the call option. |
| StrikesData.CallPriceChg |
double |
Price change value of the call option. |
| StrikesData.CallLTP |
double |
Last traded price of the call option. |
| StrikesData.StrikePrice |
double |
Strike price for the option. |
| StrikesData.PutLTP |
double |
Last traded price of the put option. |
| StrikesData.PutPriceChg |
double |
Price change value of the put option. |
| StrikesData.PutOIChg |
double |
Change in Open Interest of the put option. |
| StrikesData.PutOI |
double |
Open Interest of the put option. |
| StrikesData.PutVolume |
int |
Traded volume of the put option. |
| StrikesData.PutContracts |
double |
Total contracts traded for the put option. |
| StrikesData.PutIV |
double |
Implied Volatility (IV) of the put option. |
| StrikesData.PutPricechange |
string |
Price change direction for the put option. |
| StrikesData.PutOIChange |
string |
Change direction of Open Interest for put options. |
| StrikesData.PutInterpretation |
string |
Market interpretation of the put option's behavior. |
| StrikesData.ExpDate |
string |
Expiry date of the option contract. |
| StrikesData.UPrice |
double |
Underlying asset's current price. |
| StrikesData.Qty |
numintber |
Lot size or quantity of contracts for the strike. |
| StrikesData.CallDelta |
double |
Delta value representing the sensitivity of the call option price to the underlying price. |
| StrikesData.CallGamma |
double |
Gamma value showing the rate of change of delta for the call option. |
| StrikesData.CallTheta |
double |
Theta value showing time decay impact on the call option. |
| StrikesData.CallVega |
double |
Vega value representing sensitivity of the call option to volatility changes. |
| StrikesData.PutDelta |
double |
Delta value representing the sensitivity of the put option price to the underlying price. |
| StrikesData.PutGamma |
double |
Gamma value showing the rate of change of delta for the put option. |
| StrikesData.PutTheta |
double |
Theta value showing time decay impact on the put option. |
| StrikesData.PutVega |
double |
Vega value representing sensitivity of the put option to volatility changes. |
Margin Calculator
Easily calculate trading margins with Modern Algos' Margin Calculator. Determine required margins for smarter and more informed trading decisions.
Margin Calculator
A Margin Calculator is a tool used to determine the profit margin or markup percentage based on cost and selling price.
curl --request POST \
--url https://localhost:44338/span_margin \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"position":[{"exch":"FO","symbolfull":"TCS25JULFUT","product":"Futures","Action":"Buy","strike":"0","qty":"175"}]}
Request Parameters
| Field |
Type |
Description |
| position.exch |
string |
Exchange segment of the position. |
| position.symbolfull |
string |
Full symbol name of the security. |
| position.product |
string |
Type of product for the position. |
| position.Action |
string |
Action type for the position (Buy or Sell). |
| position.strike |
string |
Strike price applicable for options, zero for futures. |
| position.qty |
string |
Quantity of the position. |
Response Structure
{"position":[{"symbolfull":"TCS25JULFUT","initial":"91406.00","exposure":"11425.75","total":"102831.75"}],"Main":[{"Span":"84508.00","Exposure Margin":"20013.44","Spread Benefit":"0.00","Premium Receivable":"571060.00","Total Margin":"104521.44"}]}
Response Parameters
| Field |
Type |
Description |
| position.symbolfull |
string |
Full symbol name of the position |
| position.initial |
string |
Initial margin amount |
| position.exposure |
string |
Exposure margin amount |
| position.total |
string |
Total margin amount for the position |
| Main.Span |
string |
Span margin amount |
| Main.Exposure Margin |
string |
Exposure margin amount |
| Main.Spread Benefit |
string |
Spread benefit amount |
| Main.Premium Receivable |
string |
Total premium receivable |
| Main.Total Margin |
string |
Total calculated margin |
Strategy Scanner
Find the right trading strategy with Modern Algos' Strategy Scanner. Analyze and filter strategies to match your goals and enhance trading performance.
Market Direction
Choose the overall market trend as Bullish , Bearish or neutral.
curl --request POST \
--url https://localhost:44338/stra_algor_direction \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Response Structure
[{"MarketDirection":"Bullish"},{"MarketDirection":"Bearish"},{"MarketDirection":"Neutral"}]
Response Parameters
| Field |
Type |
Description |
| MarketDirection |
string |
Indicates the market trend direction. Possible values are Bullish, Bearish, or Neutral. |
Target View
Specify whether the target level is above or below the current price.
curl --request POST \
--url https://localhost:44338/stra_algor_initial \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"acc","direction":""}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the symbol or code of the item. |
| direction |
string |
Specifies the direction of the transaction or movement. |
Response Structure
{"View":[{"View":"Above"},{"View":"Between"},{"View":"Below"}],"TargetDate":[{"TargetDate":"2025-07-31"}]}
Response Parameters
| Field |
Type |
Description |
| View.View |
string |
Defines the position type, such as Above, Between, or Below. |
| TargetDate.TargetDate |
string |
Specifies the target date in YYYY-MM-DD format. |
Select Target View
Select if the target price level is above or below the current level.
curl --request POST \
--url https://localhost:44338/stra_algor_get_target \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"TCS","view":"Above"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the stock ticker or code of the company. |
| view |
string |
Represents the type of stock recommendation or trend indication. {e.g, above,between,below} |
Response Structure
[{"LowerLimit":3250.0,"UpperLimit":3282.0,"Target":3264.5}]
Response Parameters
| Field |
Type |
Description |
| LowerLimit |
double |
The minimum value of the range. |
| UpperLimit |
double |
The maximum value of the range. |
| Target |
double |
The target value within the range. |
Select Market Direction
Select the market trend direction as Bullish , Bearish or neutral.
curl --request POST \
--url https://localhost:44338/stra_algor_strategies \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"TCS","direction":"Bearish"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Represents the stock or asset symbol. |
| direction |
string |
Indicates the market sentiment direction.{e.g, bullish,bearish,neutral} |
Response Structure
[{"StrategyNames":"BearCallSpread"},{"StrategyNames":"BearPutSpread"},{"StrategyNames":"NakedPutLong"},{"StrategyNames":"NakedCallShort"}]
Response Parameters
| Field |
Type |
Description |
| StrategyNames |
string |
The name of the trading strategy |
Target
Set the price target to a level above the current market price.
curl --request POST \
--url https://localhost:44338/stra_algor_onview \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"TCS","view":"Above","target":"3264.5","upperlimit":"","lowerlimit":"","targetdate":"2025-07-31"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
Stock symbol name |
| view |
string |
Indicates the market sentiment direction |
| target |
string |
Expected price target of the stock |
| upperlimit |
string |
Upper price limit for the stock (optional) |
| lowerlimit |
string |
Lower price limit for the stock (optional) |
| targetdate |
string |
Target achievement date in YYYY-MM-DD format |
Response Structure
[{"Symbolall":"TCS25JUL3240CE TCS25JUL3300CE","buysellall":"BUY SELL","a_symbol1":"TCS25JUL3240CE","a_symbol2":"TCS25JUL3300CE","lut":"2025-07-12T01:10:16","priceall":"70.55 41.05","qtyall":"175.00 175.00","a_futprice":3263.2,"a_strategyno":0,"a_buysell1":"BUY","a_buysell2":"SELL","a_lotsize":175.0,"a_strategyname":"BullCallSpread","a_legs":"3240-3300","a_price1":70.55,"a_price2":41.05,"a_symbol":"TCS","a_signal":"BUY-SELL","a_maxprofit":"5337.5","a_maxloss":"5162.5","a_breakeven":3269.5,"a_investment":20714.75,"ReturnsPer":1.03,"series":"CE-CE","DisplaySymbol":"25JUL3240CE 25JUL3300CE","DirectionTrend":"Bullish"}]
Response Parameters
| Field |
Type |
Description |
| Symbolall |
string |
Represents the combined symbols of the legs separated by a line break. |
| buysellall |
string |
Represents the combined buy/sell actions of the legs separated by a line break. |
| a_symbol1 |
string |
Represents the symbol for the first leg of the strategy. |
| a_symbol2 |
string |
Represents the symbol for the second leg of the strategy. |
| lut |
string |
Last updated timestamp of the strategy details in ISO format. |
| priceall |
string |
Represents the combined prices of the legs separated by a line break. |
| qtyall |
string |
Represents the combined quantities of the legs separated by a line break. |
| a_futprice |
double |
Represents the underlying future price of the symbol. |
| a_strategyno |
int |
Represents the strategy number identifier. |
| a_buysell1 |
string |
Represents the buy/sell action of the first leg. |
| a_buysell2 |
string |
Represents the buy/sell action of the second leg. |
| a_lotsize |
int |
Represents the lot size of the strategy. |
| a_strategyname |
string |
Represents the name of the strategy. |
| a_legs |
string |
Represents the strike price range of the legs. |
| a_price1 |
string |
Represents the price of the first leg. |
| a_price2 |
string |
Represents the price of the second leg. |
| a_symbol |
string |
Represents the underlying symbol of the strategy. |
| a_signal |
string |
Represents the combined signal action of the strategy. |
| a_maxprofit |
string |
Represents the maximum profit achievable in the strategy. |
| a_maxloss |
string |
Represents the maximum loss possible in the strategy. |
| a_breakeven |
string |
Represents the breakeven price point of the strategy. |
| a_investment |
string |
Represents the total investment required for the strategy. |
| ReturnsPer |
string |
Represents the return percentage of the strategy. |
| series |
string |
Represents the series type of the strategy legs. |
| DisplaySymbol |
string |
Represents the display-friendly format of the strategy symbols separated by a line break. |
| DirectionTrend |
string |
Represents the directional trend of the strategy. |
Direction
Select the BullCallSpread as the trading strategy direction.
curl --request POST \
--url https://localhost:44338/stra_algor_onstrategies \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'
Request Structure
{"symbol":"TCS","strategyname":"BullCallSpread","targetdate":"2025-07-31"}
Request Parameters
| Field |
Type |
Description |
| symbol |
string |
The stock or instrument symbol to which the strategy applies |
| strategyname |
string |
The name of the trading strategy used |
| targetdate |
string |
The expiry or target date of the strategy in yyyy-mm-dd format |
Response Structure
[{"Symbol":"TCS25JUL3280CE TCS25JUL3420CE","Direction":"BUY SELL","LUT":"11-07-2025 15:24:35","a_futprice":3267.0,"a_strategyno":0,"Qtys":"175.00 175.00","a_strategyname":"BullCallSpread","a_legs":"3280-3420","Prices":"49.30 12.40","a_price1":49.3,"a_price2":12.4,"a_symbol":"TCS","a_signal":"BUY-SELL","MaxPL":"18042.5","MaxLoss":"6457.5","a_breakeven":3316.9,"a_investment":20714.75,"RRRatio":2.79,"DisplaySymbol":"25JUL3280CE 25JUL3420CE","series":"CE-CE","DirectionTrend":"Bullish"}]
Response Parameters
| Field |
Type |
Description |
| Symbol |
string |
Option symbols of the strategy legs separated by line break |
| Direction |
string |
Trade direction for each leg separated by line break |
| LUT |
string (datetime) |
Last updated timestamp of the strategy |
| a_futprice |
double |
Underlying future price of the symbol |
| a_strategyno |
int |
Unique identifier for the strategy |
| Qtys |
string |
Quantities for each leg separated by line break |
| a_strategyname |
string |
Name of the options strategy used |
| a_legs |
string |
Strike prices of the legs separated by hyphen |
| Prices |
string |
Trade prices for each leg separated by line break |
| a_price1 |
double |
Trade price for the first leg |
| a_price2 |
double |
Trade price for the second leg |
| a_symbol |
string |
Underlying stock symbol |
| a_signal |
string |
Signal direction for both legs separated by hyphen |
| MaxPL |
double |
Maximum potential profit for the strategy |
| MaxLoss |
double |
Maximum potential loss for the strategy |
| a_breakeven |
double |
Breakeven price of the strategy |
| a_investment |
double |
Total capital required for the strategy |
| RRRatio |
double |
Risk-to-reward ratio of the strategy |
| DisplaySymbol |
string |
Display symbols of the legs separated by line break |
| series |
string |
Option series types separated by hyphen |
| DirectionTrend |
string |
Overall market trend direction |
Support
Contact us at Modern Algos Pvt. Ltd. for support.
H. No. 6-3-1192/1/1, Office No. 212, Whitehouse, Block II, Begumpet, Hyderabad, Telangana, 500016
support@modernalgos.com
+91 8282828063