# Technical Analysis

### :construction: Under Maintenance (as of 2/6/25) :construction:

### Get Technical Analysis

Get technical indicators using 4-hour intervals

**Endpoint:** `GET /technical-analysis`

**Parameters:**

* `token_id` (exclusive): Token ID to receive technical indicator values
* `contract_address` (exclusive): Contract address of the token to receive technical indicator values

**Example:**

```json
{
  "token_id": "4"
  // or
  "contract_address": "0x12345..."
}
```

### Success Response (HTTP 200)

When successful, the endpoint returns a JSON object containing a success status, a message, and the cached TA data. &#x20;

```json
{
  "status": "success",
  "message": "Technical analysis retrieved successfully.",
  "result": {
    "pivotPoints": {
      "keyLevel": 123.45,
      "Resistance1": 130.0,
      "Support1": 117.0,
      "Resistance2": 136.0,
      "Support2": 110.0,
      "dailyHigh": 140.0,
      "dailyLow": 110.0,
      "dailyClose": 125.0,
      "volume24": 1000000
    },
    "ma50": 120.34,
    "ma100": 118.67,
    "ma200": 115.89,
    "rsi": 55.3,
    "macd": {
      "macd": 1.23,
      "signal": 1.10,
      "histogram": 0.13
    },
    "timestamp": "2025-01-31T12:34:56.789Z",
    "token": {
      "id": "1",
      "name": "Ethereum",
      "symbol": "ETH",
      "decimals": 18,
      "contractAddress": "0x1234..."
    }
  }
}
```

### Error Responses

**Missing Parameters (HTTP 400)**

If required parameters are missing, you may receive an error like:

```json
{
  "status": "error",
  "message": "Missing required parameters: token_id is required."
}
```

**Server Error (HTTP 500)**

If an error occurs while fetching data:

```json
{
  "status": "error",
  "message": "Error fetching technical analysis data: <error details>"
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://breakout-bro.gitbook.io/breakout-bro-api/technical-analysis.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
