Skip to main content
POST
/
api
/
moex
/
securities
/
candles
/moex/securities/candles
curl --request POST \
  --url https://api.anysite.io/api/moex/securities/candles \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "security": "<string>",
  "count": 2,
  "timeout": 300,
  "interval": "24",
  "engine": "stock",
  "market": "shares",
  "date_from": "2024-01-01",
  "date_to": "2024-12-31"
}
'
[
  {
    "begin": "<string>",
    "@type": "@moex_candle",
    "end": "<string>",
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "value": 123,
    "volume": 123
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
security
string
required

Security ticker (SECID)

Minimum string length: 1
Examples:

"SBER"

"GAZP"

count
integer
required

Number of candles to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
interval
enum<string>
default:24

Candle interval

Available options:
1,
10,
60,
24,
7,
31,
4
engine
enum<string>
default:stock

Trading engine

Available options:
stock,
currency,
futures,
commodity,
agro,
otc,
money,
quotes,
state
market
enum<string>
default:shares

Market within the engine

Available options:
shares,
bonds,
index,
foreignshares,
ndm,
repo,
ccp,
otc,
standard,
classica,
selt,
forts,
options,
indicativerates
date_from
string | null

Start date or datetime (YYYY-MM-DD)

Example:

"2024-01-01"

date_to
string | null

End date or datetime (YYYY-MM-DD)

Example:

"2024-12-31"

Response

Successful Response

begin
string
required
@type
string
default:@moex_candle
end
string | null
open
number | null
high
number | null
low
number | null
close
number | null
value
number | null
volume
integer | null