Skip to main content

Analyzer Status

Endpoint URL

This API Function fetches the stock holdings details from the broker

Hosted URL   :  POST https://imc.layr0.org/api/v1/analyzer

Sample API Request

{
"apikey": "<your_app_apikey>"
}

Sample API Response

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

Request Body

ParameterTypeRequiredDescription
apikeystringYesYour IMC API key

Response Fields

FieldTypeDescription
statusstringStatus of the API call (success/error)
dataobjectContainer for response data
modestringCurrent mode in human-readable format ("analyze" or "live")
analyze_modebooleanCurrent analyzer mode flag (true = analyze, false = live)
total_logsintegerTotal number of analyzer logs stored

Notes

  • Live Mode: When analyze_mode is false, all API calls execute actual broker operations
  • Analyze Mode: When analyze_mode is true, all API calls return simulated responses without executing real trades
  • The total_logs field shows the cumulative count of all analyzer mode operations logged in the system
  • This endpoint is useful for checking the current mode before executing trading operations
  • Rate limited to 10 requests per second per API key