Skip to main content
GET
/
v1
/
indicator
Get Technical Indicator Data
curl --request GET \
  --url https://api.aries.com/v1/indicator \
  --header 'Authorization: Bearer <token>'
{
  "sma": [
    0,
    0,
    74.23916,
    73.74833,
    73.72416,
    70.676666,
    70.045,
    68.911,
    67.41666,
    66.802
  ],
  "t": [
    1583107200,
    1583193600,
    1583280000,
    1583366400,
    1583452800,
    1583712000,
    1583798400,
    1583884800,
    1583971200,
    1584057600
  ]
}

Authorizations

Authorization
string
header
required

OAuth2 Bearer token: obtain an access token from the token endpoint and send it in the Authorization header.

Query Parameters

symbol
string
required

Stock ticker to query (required). Send the plain uppercase symbol exactly as you'd type it on a brokerage screen, e.g. AAPL, MSFT, TSLA.

resolution
enum<string>
required

How long each bar covers. Use a number of minutes (1, 5, 15, 30, 60, 240), a letter for daily/weekly/monthly (D, W, M), or an N-trade tick bar (100T, 500T). See ChartResolution for the full list. How long each candle/bar on the chart should cover. Three families of values are supported:

Intraday (minute bars)1, 3, 5, 15, 30, 45, 60, 120, 180, 240 — the number is the bar's length in minutes (e.g. 5 = five-minute bars, 60 = hourly).

Daily and longerD / 1D = daily, W / 1W = weekly, M / 1M = monthly, 3M / 6M / 12M = three-/six-/twelve-month bars.

Tick-based1T, 5T, 10T, 25T, 50T, 100T, 250T, 500T, 1000T — bars that close every N trades instead of every N minutes. Useful for fast-moving markets where time-based bars are too noisy.

Available options:
1,
3,
5,
15,
30,
45,
60,
120,
180,
240,
D,
W,
M,
1D,
1W,
1M,
3M,
6M,
12M,
1T,
5T,
10T,
25T,
50T,
100T,
250T,
500T,
1000T
Example:

"D"

indicator
enum<string>
required

Which technical indicator to compute. Common picks: sma (simple moving average), ema (exponential moving average), rsi (relative strength index), macd (moving-average convergence-divergence), bbands (Bollinger Bands). See TechnicalIndicatorType for the full list of supported slugs. Technical indicator slug (e.g. sma, ema, rsi, macd, bbands). Pass this with the indicator endpoint to compute that indicator over the requested bars.

Available options:
sma,
ema,
rsi,
macd,
bbands,
stoch,
adx,
cci,
willr,
mfi
Example:

"rsi"

from
integer<int64>
required

(Required) Start timestamp (Unix seconds)

to
integer<int64>
required

(Required) End timestamp (Unix seconds)

timeperiod
integer

(Optional) Period for SMA/RSI/BBANDS

fast_period
integer

MACD fast EMA length, in bars. The shorter of the two moving averages used to compute MACD. Standard value is 12. Only used when indicator=macd.

slow_period
integer

MACD slow EMA length, in bars. The longer of the two moving averages used to compute MACD. Standard value is 26. Only used when indicator=macd.

signal_period
integer

MACD signal EMA length, in bars. Used to smooth the MACD line into the signal line; crossovers between the two are the basic MACD trading cue. Standard value is 9. Only used when indicator=macd.

Response

Successful response

sma
integer[]
t
integer[]