Skip to content

AnalyzerStatus

Get the current status of the analyzer (sandbox) mode.

Endpoint URL

http
Local Host   :  POST http://127.0.0.1:5000/api/v1/analyzer
Ngrok Domain :  POST https://<your-ngrok-domain>.ngrok-free.app/api/v1/analyzer
Custom Domain:  POST https://<your-custom-domain>/api/v1/analyzer

Sample API Request

json
{
  "apikey": "<your_app_apikey>"
}

Sample cURL Request

bash
curl -X POST http://127.0.0.1:5000/api/v1/analyzer \
  -H 'Content-Type: application/json' \
  -d '{
  "apikey": "<your_app_apikey>"
}'

Sample API Response (Analyzer Mode ON)

json
{
  "status": "success",
  "data": {
    "analyze_mode": true,
    "mode": "analyze",
    "total_logs": 2
  }
}

Sample API Response (Live Mode)

json
{
  "status": "success",
  "data": {
    "analyze_mode": false,
    "mode": "live",
    "total_logs": 0
  }
}

Request Body

ParameterDescriptionMandatory/OptionalDefault Value
apikeyYour Tradeboard API keyMandatory-

AnalyzerSchema declares only apikey. Any other field returns HTTP 400.

Response Fields

FieldTypeDescription
statusstring"success" or "error"
dataobjectAnalyzer status data

Data Object Fields

FieldTypeDescription
analyze_modebooleantrue if analyzer mode is active
modestring"analyze" or "live"
total_logsnumberNumber of orders logged in analyzer mode

What is Analyzer Mode?

Analyzer mode (sandbox mode) allows you to test your trading strategies without placing real orders:

FeatureLive ModeAnalyzer Mode
Orders sent to brokerYesNo
Real money at riskYesNo
Order IDsReal broker IDsSimulated IDs
Response formatSameSame (with mode: "analyze")
Uses sandbox capitalNoYes (₹1 Crore)

Notes

  • Check analyzer status before placing important orders
  • total_logs shows how many simulated orders have been placed
  • Use AnalyzerToggle to switch between modes
  • Analyzer mode is ideal for:
    • Strategy testing
    • API integration testing
    • Demo purposes

Back to: API Documentation