GET /v1/indicator Indicators
Bollinger Bands (BB)
Retrieve real-time BB values for any supported symbol and timeframe. Bollinger Bands consist of a middle SMA band with upper and lower bands at standard deviations.
GET
https://tickatlas.com/v1/indicator ! Authentication Required
All requests require an API key passed in the X-API-Key header.
header
X-API-Key: YOUR_API_KEY Don't have an API key? Get started here.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
symbol | string | Required | — | Trading symbol (e.g., EURUSD, GBPUSD, XAUUSD) |
indicator | string | Required | BB_upper | Indicator name. Use: BB_upper |
timeframe | string | Optional | H1 | Timeframe: M1, M5, M15, M30, H1, H4, D1 (default: H1) |
Request Examples
cURL
curl -H "X-API-Key: YOUR_API_KEY" "https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=BB_upper&timeframe=H1" Python
import requests
url = "https://tickatlas.com/v1/indicator"
headers = {"X-API-Key": "YOUR_API_KEY"}
params = {"symbol": "EURUSD", "indicator": "BB_upper", "timeframe": "H1"}
response = requests.get(url, headers=headers, params=params)
data = response.json()["data"]
print(f"BB: {data['value']}") JavaScript
const response = await fetch(
"https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=BB_upper&timeframe=H1",
{ headers: { "X-API-Key": "YOUR_API_KEY" } }
);
const { data } = await response.json();
console.log(`BB: ${data.value}`); PHP
<?php
$url = "https://tickatlas.com/v1/indicator";
$params = http_build_query(["symbol" => "EURUSD", "indicator" => "BB_upper", "timeframe" => "H1"]);
$ctx = stream_context_create(["http" => ["header" => "X-API-Key: YOUR_API_KEY"]]);
$body = json_decode(file_get_contents("$url?$params", false, $ctx), true);
echo "BB: " . $body["data"]["value"];
?> Go
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
url := "https://tickatlas.com/v1/indicator?symbol=EURUSD&indicator=BB_upper&timeframe=H1"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
var payload struct {
Data map[string]interface{} `json:"data"`
}
json.Unmarshal(body, &payload)
fmt.Printf("BB: %v\n", payload.Data["value"])
} Response
200 Success Response
200 OK
{
"success": true,
"data": {
"symbol": "EURUSD",
"indicator": "BB_upper",
"timeframe": "H1",
"value": 1.0889,
"bid": 1.08432,
"ask": 1.08443,
"updated_at": 1711548000,
"server_time": "2024-03-27T14:00:00+00:00"
}
} Error Responses
400 Bad Request
400
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Parameter \"symbol\" is required"
}
} 401 Unauthorized
401
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "Invalid API key"
}
} 429 Rate Limited
429
{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"reset_in_seconds": 60
}
} See full error documentation for all error codes.
Playground
Shows the documented example response. Live values come from the API, called with your key.
Example response — illustrative values
Common Use Cases
Build a BB-based trading bot
Create a market screener filtering by BB values
Feed BB data into machine learning models