Skip to main content
POST
/
api
/
moex
/
securities
/
history
/moex/securities/history
curl --request POST \
  --url https://api.anysite.io/api/moex/securities/history \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "security": "<string>",
  "count": 2,
  "timeout": 300,
  "engine": "stock",
  "market": "shares",
  "board": "<string>",
  "date_from": "2024-01-01",
  "date_to": "2024-12-31"
}
'
[
  {
    "secid": "<string>",
    "@type": "@moex_history_bar",
    "board_id": "<string>",
    "trade_date": "<string>",
    "open": 123,
    "high": 123,
    "low": 123,
    "close": 123,
    "legal_close_price": 123,
    "wa_price": 123,
    "volume": 123,
    "value": 123,
    "num_trades": 123,
    "market_price": 123,
    "currency": "<string>"
  }
]

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 daily bars to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
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
board
string | null

Board ID to restrict history to a single board (e.g. TQBR)

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

secid
string
required
@type
string
default:@moex_history_bar
board_id
string | null
trade_date
string | null
open
number | null
high
number | null
low
number | null
close
number | null
wa_price
number | null
volume
integer | null
value
number | null
num_trades
integer | null
market_price
number | null
currency
string | null