1.1.1 • Published 2 years ago

moex-api v1.1.1

Weekly downloads
8
License
MIT
Repository
github
Last release
2 years ago

Moex API / API Московской Биржи

version license codecov

MOEX ISS API - http://moex.com/iss/reference/.

Forked from stan-ros/micex.api.

ru

Доступ к данным Московской Бирже через ISS API.

Installation

npm install moex-api

const MoexAPI = require("moex-api");

const moexApi = new MoexAPI();

Request example

Get current USD/RUB value.

moexApi.securityMarketData("USD000UTSTOM").then((security) => {
        console.log(security.node.last); // e.g. 64.04
        console.log(security);
    });

part of output

{ SPREAD: 0.009,
  HIGH: 64.7,
  LOW: 63.455,
  OPEN: 64.098,
  LAST: 64.04,
  LASTCNGTOLASTWAPRICE: -0.0359,
  VALTODAY: 303942518535,
  VOLTODAY: 4738709000,
  VALTODAY_USD: 4738709000,
  WAPRICE: 64.1404,
  WAPTOPREVWAPRICE: 0.0645,
  CLOSEPRICE: 63.8399,
  NUMTRADES: 58453,

More examples

moexApi.securityMarketData("IMOEX"); //MOEX INDEX
moexApi.securityMarketData("RTSI"); //RTS INDEX
moexApi.securityMarketData("SBER"); //SBERBANK SHARES
moexApi.securityMarketData("VTBA", "USD"); //VTB WIDE MARKET IN USD

Available methods

moexApi.index;
moexApi.engines;
moexApi.markets(engine);
moexApi.boards(engine, market);
moexApi.securitiesDefinitions(query);
moexApi.securityDefinition(security);
moexApi.securityMarketData(engine, market, query);
moexApi.securitiesDataRaw(engine, market, query);
moexApi.getSecurityInfo(security);
moexApi.securityMarketData(security);

More info

API class - api.js
Usage examples / tests - test/test-api.js

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago