> For the complete documentation index, see [llms.txt](https://docs.openalgo.in/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openalgo.in/api-documentation/v1/accounts-api/analyzer-status.md).

# Analyzer Status

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

| Parameter | Description           | Mandatory/Optional | Default Value |
| --------- | --------------------- | ------------------ | ------------- |
| apikey    | Your OpenAlgo API key | Mandatory          | -             |

## Response Fields

| Field  | Type   | Description          |
| ------ | ------ | -------------------- |
| status | string | "success" or "error" |
| data   | object | Analyzer status data |

### Data Object Fields

| Field         | Type    | Description                              |
| ------------- | ------- | ---------------------------------------- |
| analyze\_mode | boolean | true if analyzer mode is active          |
| mode          | string  | "analyze" or "live"                      |
| total\_logs   | number  | Number 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:

| Feature               | Live Mode       | Analyzer Mode               |
| --------------------- | --------------- | --------------------------- |
| Orders sent to broker | Yes             | No                          |
| Real money at risk    | Yes             | No                          |
| Order IDs             | Real broker IDs | Simulated IDs               |
| Response format       | Same            | Same (with mode: "analyze") |
| Uses sandbox capital  | No              | Yes (₹1 Crore)              |

## Notes

* Check analyzer status before placing important orders
* **total\_logs** shows how many simulated orders have been placed
* Use [AnalyzerToggle](/api-documentation/v1/accounts-api/analyzer-toggle.md) to switch between modes
* Analyzer mode is ideal for:
  * Strategy testing
  * API integration testing
  * Demo purposes

***

**Back to**: [API Documentation](/api-documentation/v1.md)
