• Home
  • Products
    • Login
    • Product Info
    • User Guide
    • Pricing
  • Services
    • Stock Brokers
    • Freelancers
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
    • Terms & Conditions
  • Home
  • Products
    • Login
    • Product Info
    • User Guide
    • Pricing
  • Services
    • Stock Brokers
    • Freelancers
  • Help
    • Documentation
    • Knowledge Base
    • FAQ
  • Company
    • About Us
    • Contact Us
    • Terms & Conditions

AutoTrader Web

home/Documentation/AutoTrader Web
Expand All Collapse All
  • Index
  • Getting Started
  • Portfolio Management System (PMS)
  •  Copy Trading (Master-Child Auto-Copy)
    • Master-Child Copy - Performance
  • PMS vs Master-Child
  • Trading View
  •  Supported Brokers
    • Symphony XTS
    • Zerodha
    • Angel Broking
    • Dhan
    • Aliceblue
    • Fyers
    • Nuvama
    • IIFL
    • Zebu
    • Finvasia
    • Motilal Oswal
    • Kotak
    • Mastertrust
    • Five Paisa
    • Choice Broking
    • FlatTrade
    • Tradejini
    • Upstox
    • SAS Online
    • Profitmart
  •  Client Setup
    • Desktop Client
    • AmiBroker Library
    • Excel Library or Tools
    • Java Library
    • MetaTrader Library
    • C# Library
    • Python Library
    • HTTP REST
  •  User Interface
    • User Registration
    •   Settings
      • General
      • Trading Accounts
      • Pseudo Accounts
      • Group Accounts
      • API Key
    •   AutoTrader
      • Activity
      • Instruments
    •   Trading
      • Summary
      • Positions
      • Orders
      • Margins
      • Holdings
      • Trade
    •   User
      • Account
      • Profile
  •  API (Application Programming Interface)
    • Place Regular Order
    • Place Cover Order
    • Place Bracket Order
    • Place Advanced Order
    • Cancel Order
    • Cancel Child Orders
    • Cancel All Orders
    • Modify Order
    • Modify Order Price
    • Modify Order Quantity
    • Square-off Position
    • Square-off Portfolio
    • Read Orders
    • Read Positions
    • Read Margins
    • Read Holdings
    • Read Portfolio Summary
    • Fetch All Trading Accounts
    • Create or Update Trading Account
    • Validate Trading Account Credentials
    • API Parameters
    • API Rate Limits
    • Email Limits
    • Postman
  • Pricing
  • Precautions
  •  Broker Independence
    • API Functions
    • Pseudo Account
    • Instruments (Trading Symbols)
  • Quantity Multiplier
  • Architecture

Validate Trading Account Credentials

1169 views Pritesh 2

API functions to validate trading account credentials. In validation, AutoTrader Web tries to login to the stock broker’s trading platform. This method can be used every morning before market starts, to identify accounts which have incorrect/expired credentials.

There are 3 different apis:

  1. Validate Credentials (This shall be used to validate credentials before adding an account in the system)
  2. Validate Account (This shall be used to validate credentials of a single trading account which is already present in the system)
  3. Validate All Accounts (This shall be used to validate credentials of ALL accounts available under your user).
    • Note: This validate all method only checks LIVE accounts.

This API is primarily designed for application developers who are going to create customized trading applications using our broker independent trading APIs.

  • HTTP

Example – Validate Credentials

curl https://apix.stocksdeveloper.in/account/validateCredentials \
-H "api-key: <your_api_key>" \
-d "broker=broker_name" \
-d "loginId=login_id" \
-d "password=password" \
-d "totpKey=totp_key"

Response [Success]

{
"result": true,
"message": null,
"status": true,
"commandId": "d26a6efb-0690-4fc2-bba1-04fda58db03e"
}

Response [Failure]

{
"result": false,
"message": "Error from Choice: [10002 - Incorrect Client ID or Password. Attempt 1 of 5]",
"status": true,
"commandId": "cc577516-0de1-4e1e-bc61-0b8007db1722"
}


Example – Validate Account

curl https://apix.stocksdeveloper.in/account/validateAccount \
-H "api-key: <your_api_key>" \
-d "tradingAccId=23502007"

Response

Response structure is same as Validate Credentials response shown above.


Example – Validate All Accounts

curl https://apix.stocksdeveloper.in/account/validateAllAccounts \
-H "api-key: <your_api_key>"

Response [Success]

{
"result": [
{
"tradingAccId": 23409730,
"pseudoAccId": 23409731,
"valid": true,
"result": "SUCCESS",
"message": "SUCCESS",
"tradingAccLoginId": "NM291"
},
{
"tradingAccId": 23502007,
"pseudoAccId": 23502008,
"valid": false,
"result": "FAILURE",
"message": "Error from Upstox: [Access denied]",
"tradingAccLoginId": "159401"
}
],
"message": null,
"status": true,
"commandId": null
}


Parameters

  1. Validate Credentials – The parameters are same as Create Trading Account Parameters
  2. Validate Account
    • tradingAccId – Unique trading account id generated by AutoTrader Web [Number – Long]. This can be obtained from Fetch All Trading Accounts API
  3. Validate All Accounts – No parameters

Response Fields

  • Validate Credentials/Validate Account
    • result – SUCCESS or FAILURE (depending on whether the trading account credential validation was successful)
    • message – Success or error message
  • Validate All Accounts
    • result – A list of validation results for each trading account of the user
      • result – SUCCESS or FAILURE
      • message – Failure reason
      • valid – true or false [Boolean]
      • tradingAccLoginId – Trading account login id
      • tradingAccId – Unique trading account id (internal)
      • pseudoAccId – Unique pseudo account id (internal)

API Limits

This api is not expected to be used repeatedly, hence it has stricter API Limits compared to the other apis.

  • Validate Credentials/Validate Account
    • Max 100 requests are allowed in 1 min
    • Max 1000 requests are allowed in 1 hour
  • Validate All Accounts
    • Max 10 requests are allowed in 1 min
    • Max 100 requests are allowed in 1 hour

Was this helpful?

2 Yes  No
Related Articles
  • Master-Child Copy – Performance
  • Tradejini
  • Dhan
  • FlatTrade
  • Supported Brokers
  • Symphony XTS

© 2025 Stocks Developer. All Rights Reserved.