Saltar al contenido principal
GET
/
api
/
external
/
bars
/
{symbol}
/
{timeframe}
curl -X GET "https://api.innova-trading.com/api/external/bars/EURUSD/60?limit=100" \
  -H "Authorization: Bearer TU_API_KEY"
{
  "success": true,
  "symbol": "EURUSD",
  "timeframe": 60,
  "count": 100,
  "bars": [
    {
      "time": 1765534800,
      "open": 1.0915,
      "high": 1.0938,
      "low": 1.0910,
      "close": 1.0932,
      "volume": 12500
    },
    {
      "time": 1765538400,
      "open": 1.0932,
      "high": 1.0945,
      "low": 1.0925,
      "close": 1.0940,
      "volume": 11200
    }
  ]
}

Solicitud

symbol
string
required
Simbolo de trading (ej: EURUSD, GBPUSD, XAUUSD)
timeframe
integer
required
Timeframe en minutos. Valores soportados: 1, 5, 15, 30, 60, 240, 1440
limit
integer
default:"100"
Numero de barras a obtener (maximo 500)

Respuesta

success
boolean
Indica si la solicitud fue exitosa
symbol
string
El simbolo solicitado
timeframe
integer
El timeframe en minutos
count
integer
Numero de barras retornadas
bars
array
Array de barras OHLC
curl -X GET "https://api.innova-trading.com/api/external/bars/EURUSD/60?limit=100" \
  -H "Authorization: Bearer TU_API_KEY"
{
  "success": true,
  "symbol": "EURUSD",
  "timeframe": 60,
  "count": 100,
  "bars": [
    {
      "time": 1765534800,
      "open": 1.0915,
      "high": 1.0938,
      "low": 1.0910,
      "close": 1.0932,
      "volume": 12500
    },
    {
      "time": 1765538400,
      "open": 1.0932,
      "high": 1.0945,
      "low": 1.0925,
      "close": 1.0940,
      "volume": 11200
    }
  ]
}

Notas

Las barras se retornan ordenadas por tiempo de mas antigua a mas reciente. La ultima barra del array es la mas reciente.
El campo time es critico para enviar indicadores. Siempre usa los valores de time de esta respuesta al crear puntos de senal.

Timeframes Soportados

TimeframeMinutosDescripcion
M111 minuto
M555 minutos
M151515 minutos
M303030 minutos
H1601 hora
H42404 horas
D11440Diario