Micex (MOEX) ISS API
http://moex.com/iss/reference/
Доступ к данным ММВБ через ISS API.
npm install micex.api
Micex = require('micex.api');
Get current USD/RUB value.
Micex.securityMarketdata('USD000UTSTOM')
.then(function (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,
Micex.securityMarketdata('MICEXINDEXCF'); //MICEX INDEX
Micex.securityMarketdata('RTSI'); //RTS INDEX
Micex.securityMarketdata('SBER'; //SBERBANK SHARES
Micex.securityMarketdata('RIZ5'); //FUTURES RTS 12.15
Micex.index;
Micex.engines;
Micex.markets(engine);
Micex.boards(engine, market);
Micex.securitiesDefinitions(query);
Micex.securityDefinition(security);
Micex.securitiesMarketData(engine, market, query);
Micex.securitiesDataRaw(engine, market, query);
Micex.getSecurityInfo(security);
Micex.securityMarketData(security);
Micex class - lib/mices.js
Usage examples / tests - test/micex.spec.js