Skip to main content
GET
/
api
/
accounts
/
{id}
/
ohlc
/
{symbol}
OHLC by date range
curl --request GET \
  --url https://api.easierprop.com/api/accounts/{id}/ohlc/{symbol} \
  --header 'X-API-Key: <api-key>'
{
  "ok": true,
  "data": [
    {
      "time": "<string>",
      "open": 123,
      "high": 123,
      "low": 123,
      "close": 123,
      "tickVolume": 123
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Client API key (prefixed with sk_)

Path Parameters

id
string<uuid>
required

Account ID

symbol
string
required

Instrument name (e.g. EURUSD)

Query Parameters

from
string
required

Start datetime (YYYY-MM-DDTHH:mm:ss)

to
string
required

End datetime (YYYY-MM-DDTHH:mm:ss)

timeframe
integer
default:60

Timeframe in minutes (1=M1, 5=M5, 15=M15, 60=H1, 240=H4, 1440=D1)

Response

200 - application/json

OHLC bars

ok
boolean
Example:

true

data
object[]