Skip to main content
POST
/
api
/
moex
/
indices
/
history
/moex/indices/history
curl --request POST \
  --url https://api.anysite.io/api/moex/indices/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "index": "<string>",
  "count": 2,
  "timeout": 300,
  "date_from": "2024-01-01",
  "date_to": "2024-12-31"
}
'
[
  {
    "indexid": "<string>",
    "@type": "@moex_index_bar",
    "trade_date": "<string>",
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "value": 123,
    "capitalization": 123,
    "currency": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
index
string
required

Index identifier (e.g. IMOEX)

Minimum string length: 1
Examples:

"IMOEX"

"RTSI"

count
integer
required

Number of daily bars to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
date_from
string | null

Start date (YYYY-MM-DD)

Example:

"2024-01-01"

date_to
string | null

End date (YYYY-MM-DD)

Example:

"2024-12-31"

Response

Successful Response

indexid
string
required
@type
string
default:@moex_index_bar
trade_date
string | null
open
number | null
high
number | null
low
number | null
close
number | null
value
number | null
capitalization
number | null
currency
string | null