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

Register Now to Explore the world of Automated Trading with 360algos.

Signup -> ReSendOtp

Resend OTP during the signup process.

curl --request POST \
--url https://localhost:44349/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:44349/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

Log in to 360algos and connect your broker account. Access automated trading bots and trade seamlessly with 25+ integrated brokers.

Login

Authenticate the user with credentials to access the account.

curl --request POST \
--url https://localhost:44349/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

Select Broker

Log in to 360algos and connect your broker account. Access automated trading bots and trade seamlessly with 25+ integrated brokers.

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:44349/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

Profile

Manage your user profile with 360algos.

Profile Info

User's personal information

curl --request POST \
--url https://localhost:44349/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:44349/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:44349/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.

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: 360algos'



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.

Product Page

Discover automated trading bots at 360algos. Choose from pre-built strategies tailored to different trading styles and risk preferences.

Strategies

Planned methods designed to achieve specific goals or outcomes.

curl --request POST \
--url https://localhost:44349/ab_main \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'



Response Structure

{"Details":[{"ModelName":"Straddle Shield","Description":"A strategy using Bollinger Bands and volatility breakouts to capture extreme price moves and trends, with precise entries, risk control, and integrated hedging.","TimeFrame":"Intraday","Capital":250000.0,"fee":700.0,"maxdrawdown":2.88,"Avg Trade Loss":4208.0,"Max Realised Loss / Day":7211.0,"Max Realised Loss / Week":20666.0,"Consecutive Week Losses":21131.0,"Consecutive Day Losses count":4.0,"Consecutive Week Losses count":4.0,"nextstartdate":"2025-08-11","model_ticket":1,"model_week":4,"symbolonly":"NIFTY","modelno":13,"infoicon":"Max Drawdown is for the Day. 
Max Drawdown Threshold for the strategy is 11.52%."}]}


Response Parameters

Field Type Description
Details.ModelName string Name of the trading strategy.
Details.Description string Brief overview of the strategy's approach.
Details.TimeFrame string Time interval in which the strategy operates.
Details.Capital double Capital allocated for the strategy.
Details.fee double Service or execution fee charged.
Details.maxdrawdown double Maximum percentage loss in a single day.
Details.Avg Trade Loss double Average loss per trade.
Details.Max Realised Loss / Day double Highest realised loss recorded in a day.
Details.Max Realised Loss / Week double Highest realised loss recorded in a week.
Details.Consecutive Week Losses double Total loss over consecutive losing weeks.
Details.Consecutive Day Losses count double Number of consecutive losing days.
Details.Consecutive Week Losses count double Number of consecutive losing weeks.
Details.nextstartdate string Date when the strategy will restart.
Details.model_ticket int Unique ticket identifier for the model.
Details.model_week int Week number for the current model cycle.
Details.symbolonly string Symbol or market index traded.
Details.modelno int Numeric model identifier.
Details.infoicon string Additional notes or tooltip information.

Dashboard

Monitor and control all your automated bots in one place. Track and control all your automated bots with ease.

Strategies

Planned methods designed to achieve specific goals or outcomes

curl --request POST \
--url https://localhost:44349/ab_client \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'



Response Structure

{"Details":[{"ip1":161,"modelname":"ranjithtest1","timeframe":"Intraday","status":"Active","validity":"2025-07-09","weeks_total":4,"weeks_traded":0,"week_success":0,"weeks_failure":0,"weeks_remain":4,"capital":100000.0,"booked_pl":0.0,"booked_plper":0.0,"booked_lots":0.0,"current_pl":0.0,"current_plper":0.0,"current_lots":0,"button_name":"pause","model_capital":100000.0,"model_fee":100.0,"nextstartdate":"2025-07-08","model_tickets":1,"client_tickets":1,"model_week":4,"symbolonly":"NIFTY","modelno":43,"exitbtnstatus":"enable","label_tf":"false","planimage":""}],"Content":[{"label":"-"}]}
            


Response Parameters

Field Type Description
Details.ip1 int Unique identifier for the service record
Details.modelname string Name of the trading model
Details.timeframe string Type of trading timeframe
Details.status string Current status of the service
Details.validity string Service validity end date
Details.weeks_total int Total number of weeks in the plan
Details.weeks_traded int Number of weeks trading has occurred
Details.week_success int Number of successful trading weeks
Details.weeks_failure int Number of failed trading weeks
Details.weeks_remain int Number of weeks remaining in the plan
Details.capital double Total capital allocated
Details.booked_pl double Booked profit or loss amount
Details.booked_plper double Booked profit or loss percentage
Details.booked_lots double Total lots used in booked trades
Details.current_pl double Current unrealized profit or loss
Details.current_plper double Current unrealized profit or loss percentage
Details.current_lots double Lots currently held in trades
Details.button_name string Name of the control button (e.g., pause/resume)
Details.model_capital double Capital specified by the model
Details.model_fee double Fee charged for the model
Details.nextstartdate string Date when the next session starts
Details.model_tickets int Number of tickets assigned to the model
Details.client_tickets int Number of tickets assigned to the client
Details.model_week int Total weeks defined in the model
Details.symbolonly string Trading symbol associated with the service
Details.modelno int Unique number identifying the model
Details.exitbtnstatus string Status of the exit button (enabled/disabled)
Details.label_tf string Flag for displaying timeframe label
Details.planimage string Path or URL of the plan image
Content.label string Text label related to the content section

Strategies Pause/Resume Exit

Controls to temporarily stop, restart, or exit trading strategies.

curl --request POST \
--url https://localhost:44349/ab_update_status \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"modelname":"ranjithtest1","ip1":"161","otype":"pause"}
            

Request Parameters

Field Type Description
modelname string Name of the model configuration
ip1 string Primary IP identifier or reference
otype string Status type or operational mode

Response Structure

{"status":"SUCCESS","reason":"Updated Successfully."}


Response Parameters

Field Type Description
status string Status of the service response
reason string Message indicating the result of the update operation

Order Book

A real-time list of buy and sell orders for a specific asset, organized by price level.

curl --request POST \
--url https://localhost:44349/OrderBook \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"bots":"true"}
            

Request Parameters

Field Type Description
bots boolean Indicates whether bots are enabled or supported.

Response Structure

[{"Symbol":"NIFTY2571725100CE","BuySell":"BUY","ProductType":"NRML","Qty":75.0,"Price":"74.50","LTP":"11.50","OrderTime":"2025-07-18 15:42:49","Status":"TRADEDU","OrderID":"14120399164903","Remarks":"RED:Margin Shortfall:INR 4,565.00 Available:INR 0.00 for C-XT00150 [FYERS_RISK_CUG]","ip1":2806393,"ip2":"NIFTY_20250717_TDSRH_117","StrategyName":"NIFTY_20250717_TDSRH_117","LotSize":75.0,"resendlabel":"False"}]


Response Parameters

Field Type Description
Symbol string Trading symbol of the instrument
BuySell string Indicates trade direction (BUY or SELL)
ProductType string Type of product used for order execution
Qty int Quantity of contracts ordered
Price string Order price entered
LTP string Last traded price at the time of order
OrderTime string Date and time when the order was placed
Status string Current status of the order
OrderID string Unique identifier for the order
Remarks string Additional notes or system-generated remarks
ip1 int Internal parameter 1 (custom use)
ip2 string Internal parameter 2 (custom use)
StrategyName string Name of the strategy used for this order
LotSize double Lot size applicable to the instrument
resendlabel string Flag indicating if the order is eligible for resend

Resend Order

Resend the order request for processing.

curl --request POST \
--url https://localhost:44349/push_reorder \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"ip1":"90","ip2":"16_apiplan_RAM25072025150129","paperTrading":"false","bots":"true"}
            

Request Parameters

Field Type Description
ip1 string IP identifier or code for internal reference
ip2 string API plan identifier with timestamp
paperTrading boolean Specifies whether the strategy runs in paper trading mode.
bots boolean Specifies whether the strategy runs in bots mode.

Response Structure

{"status":"SUCCESS","reason":"Order Sent Successful."}


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.

NetPosition

The overall value of open positions, calculated as total buys minus total sells.

curl --request POST \
--url https://localhost:44349/NetPosition \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"bots":"true"}
            

Request Parameters

Field Type Description
bots boolean Indicates whether bots are enabled or supported.

Response Structure

{"TopRow":[{"Total Profit/Loss":11435.25,"BuyQty":2100.0,"BuyValue":72180.75,"SellQty":2100.0,"SellValue":83616.0,"NetValue":11435.25}],"ListData":[{"ip1":3715,"ip2":"NIFTY_20250717_TDSRH_117","Category":"Theta Edge","Strategyname":"NIFTY_20250717_TDSRH_117","EntryDate":"117","TotalPL":"11435.25","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 net profit or loss for the trades.
TopRow.BuyQty double Total quantity of buy trades executed.
TopRow.BuyValue double Total value of all buy trades.
TopRow.SellQty double Total quantity of sell trades executed.
TopRow.SellValue double Total value of all sell trades.
TopRow.NetValue double Net value calculated as sell value minus buy value.
ListData.ip1 int Internal identifier or code for the strategy.
ListData.ip2 string Unique identifier representing strategy and contract details.
ListData.Category string Type or classification of the strategy.
ListData.Strategyname string Name or title of the trading strategy.
ListData.EntryDate string Date of entry or creation of the strategy.
ListData.TotalPL double Total profit or loss of the specific strategy.
ListData.ClientCode string Client's unique identification code.
ListData.Statusold string Previous status of the strategy or trade.
ListData.Status string Current status of the strategy or trade.
ListData.Therotical Profit double Theoretical maximum profit possible from the strategy.
ListData.Therotical Loss double Theoretical maximum loss possible from the strategy.
ListData.Margin Used int Total margin utilized for executing the strategy.
ListData.History string Link or reference to view the strategy’s past activity.
ListData.SymbolOnly string Underlying symbol or instrument involved in the trade.

NetPosition/Depth

Displays current net holdings and market order book depth.

curl --request POST \
--url https://localhost:44349/NetPosition/Depth \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"StrategyName":"NIFTY_20250717_TDSRH_117","bots":"true"}
            

Request Parameters

Field Type Description
StrategyName string Name of the trading strategy
bots string Indicates whether bots are enabled

Response Structure

{"Rows":[{"Symbol":"NIFTY2571724450PE","ExpDate":"2025-07-17","BuyQty":75.0,"BuyAvgPrice":"7.15","SellQty":75.0,"SellAvgPrice":"4.95","NetQty":0.0,"LTP":4.95,"PL":-165.0,"BuySell":"-","LivePrice":4.95,"Symbol1":"NIFTY","FutPrice":0.0,"EntryPrice":7.15,"ProductType":"NRML","ip1":3695,"ip2":"NIFTY_20250717_TDSRH_117","StrikePrice":0.0,"OType":"EQ"}],"Total":[{"TBuyQty":2100.0,"TBuyQty1":72180.75,"TBuyQty2":2100.0,"TBuyQty3":83616.0}]}


Response Parameters

Field Type Description
Rows.Symbol string Option contract symbol
Rows.ExpDate string Option expiry date
Rows.BuyQty double Total quantity bought
Rows.BuyAvgPrice string Average buy price
Rows.SellQty double Total quantity sold
Rows.SellAvgPrice string Average sell price
Rows.NetQty double Net quantity (Buy - Sell)
Rows.LTP double Last traded price
Rows.PL double Profit or Loss
Rows.BuySell string Buy/Sell indicator
Rows.LivePrice double Current market price
Rows.Symbol1 string Underlying symbol
Rows.FutPrice double Futures price if applicable
Rows.EntryPrice double Entry price of the position
Rows.ProductType string Type of product
Rows.ip1 int Internal identifier 1
Rows.ip2 string Internal identifier 2
Rows.StrikePrice double Strike price of option
Rows.OType string Option type
Total.TBuyQty double Total buy quantity
Total.TBuyQty1 double Total buy amount (variation 1)
Total.TBuyQty2 double Total quantity bought again
Total.TBuyQty3 double Total buy amount (variation 2)

View History

Shows a detailed history of executed trades.

curl --request POST \
--url https://localhost:44349/getTradeLog \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"StrategyName":"NIFTY_20250717_TDSRH_117","bots":"true"}
            

Request Parameters

Field Type Description
StrategyName string Name of the trading strategy
bots string Indicates whether bots are enabled

Response Structure

[{"Log":"NIFTY2571725100CE TRADEDU BUY Qty 75@74.50","LogTime":"2025-07-18 15:42:49"},{"Log":"NIFTY2571724800PE TRADEDU SELL Qty 75@0.40","LogTime":"2025-07-17 14:12:03"}]


Response Parameters

Field Type Description
Log string Trade message showing instrument, trade type, quantity, and price
LogTime string (datetime) Date and time of the trade log

Strategy Exit

Executes exit orders for both Equity Futures and Options positions.

curl --request POST \
--url https://localhost:44349/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","bots":"true"}
            

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.
bots boolean Specifies whether the strategy runs in bots 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.

Common Services

A set of frequently used features or tools available across the platform.

Terms and Condition OTP

OTP verification required to accept terms and conditions.

curl --request POST \
--url https://localhost:44349/ab_otp_request \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"modelname":"ranjithtest1"}
            

Request Parameters

Field Type Description
modelname string The name of the model.

Response Structure

{"status":"SUCCESS","reason":"OTP Sent Successfully "}


Response Parameters

Field Type Description
status string Status of the service response
reason string Message indicating the result of the update operation

Terms and Condition -> Confirm -> OTP

Accept terms, confirm action, then verify with OTP.

curl --request POST \
--url https://localhost:44349/ab_otp_confirm \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"modelname":"ranjithtest1","otpvalue":"993409"}
            

Request Parameters

Field Type Description
modelname string Name of the model.
otpvalue string One-time password value used for verification.

Response Structure

{"status":"SUCCESS","reason":"OTP Confirmed"}


Response Parameters

Field Type Description
status string Status of the service response
reason string Message indicating the result of the update operation

Subscription

Enroll for a recurring service or feature.

curl --request POST \
--url https://localhost:44349/getpayment_orderid_global \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"modelname":"ranjithtest1","ip1":"161","category":"bots","amount":"300","tickets":"1","weeks":"12","autorenewal":"false","symbolonly":"NIFTY","modelno":"43","utmsource":"","utmmedium":"","utmcampagin":""}
            

Request Parameters

Field Type Description
modelname string Name of the model
ip1 string Primary IP identifier
category string Type or classification of the model
amount string Assigned value or cost
tickets string Number of tickets allowed or allocated
weeks string Duration in weeks
autorenewal boolean Indicates whether the service renews automatically
symbolonly string Specific symbol targeted
modelno string Unique identifier number for the model
utmsource string UTM source for tracking
utmmedium string UTM medium for tracking
utmcampagin string UTM campaign for tracking

Response Structure

[{"status":"SUCCESS","order_id":"order_QuaRjLqo5pz7uR","plan_id":"","subscription_id":"","category":"bots","plan_model_name":"ranjithtest1","period":"","name":"Ranjith","emailid":"tns.ranjith@gmail.com","mobile":"9866466279","amount":"300","reason":""}]


Response Parameters

Field Type Description
response.status string Indicates the result of the request process
response.order_id string Unique identifier for the order
response.plan_id string Identifier for the selected plan
response.subscription_id string Identifier for the subscription
response.category string Type of the service category
response.plan_model_name string Name of the plan model
response.period string Duration of the plan or subscription
response.name string Name of the user
response.emailid string Email address of the user
response.mobile string Mobile number of the user
response.amount string Total transaction amount
response.reason string Additional information or cause for status

Subscription Cancel

Cancel the active subscription service.

curl --request POST \
--url https://localhost:44349/updatepayment_orderid_global \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"orderid":"order_QuaRjLqo5pz7uR","status":"cancelled","category":"bots"}
            

Request Parameters

Field Type Description
orderid string Unique identifier for the order
status string Current state of the order
category string Type of service associated with the order

Response Structure

{"status":"SUCCESS","reason":"Payment Cancelled"}


Response Parameters

Field Type Description
status string Status of the service response
reason string Message indicating the result of the update operation

Report

Generate or view a summary of relevant data or issues.

curl --request POST \
--url https://localhost:44349/historicaldata \
--header 'Content-Type: application/json' \
----header 'Authorization: Bearer AccessToken' \
--header 'Source: SourceName'


Request Structure

{"type":"orderbook","papertradingnew":"false","bots":"true"}
            

Request Parameters

Field Type Description
type string Specifies the type of trading data or interface mode.{e.g, orderbook,netposition-options}
papertradingnew string Indicates whether the new paper trading feature is enabled.
bots string Specifies if trading bots functionality is enabled.

Response Structure

[{"EntryDate":"2024-12-17","Category":"RVDRH","StrategyName":"NIFTY_20241217_RVDRH_116","Symbol":"NIFTY24D1924600CE","BuyQty":150.0,"BuyPrice":47.75,"SellQty":0.0,"SellPrice":0.0,"PL":-7155.0,"PType":"NRML"}]


Response Parameters

Field Type Description
EntryDate string Trade entry date in YYYY-MM-DD format
Category string Strategy classification code
StrategyName string Name of the trading strategy used
Symbol string Trading symbol of the instrument
BuyQty double Quantity of units bought
BuyPrice double Price at which units were bought
SellQty double Quantity of units sold
SellPrice double Price at which units were sold
PL double Profit or Loss from the trade
PType string Product type used for the trade

Support

Contact us at ModernAlgos for support.
H. No. 6-3-1192/1/1, Office No. 212, Whitehouse, Block II, Begumpet, Hyderabad, Telangana, 500016
support@modernalgos.com
+91 8282828063