morningstar-equity-classification-system
v1.2.2
Published
Morningstar Global Equity Classification Structure
Downloads
6
Maintainers
Readme
Installation
Yarn
yarn add morningstar-equity-classification-system
NPM
npm install morningstar-equity-classification-system
Usage
import * as mecs from 'morningstar-equity-classification-system';
mecs.all()
/** Output:
[
{
"superSector": "Cyclical",
"superSectorId": 1,
"description": "..."
},
{
...
}
]
**/
mecs.search('finance');
/** Output:
[
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": ...,
"industryGroup": "...",
"industryGroupId": ...,
"industry": "...",
"industryId": ...,
"description": "..."
},
{
...
}
]
**/
mecs.find('31169148');
/** Output:
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": ...,
"industryGroup": "...",
"industryGroupId": ...,
"industry": "...",
"industryId": ...,
"description": "..."
}
**/
mecs.above('31169148');
/** Output:
[
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": ...,
"industryGroup": "...",
"industryGroupId": ...,
"industry": "...",
"industryId": 31169148,
"description": "..."
},
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": ...,
"industryGroup": "...",
"industryGroupId": 31169,
"description": "..."
},
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": 311,
"description": "..."
},
{
"superSector": "...",
"superSectorId": 3,
"description": "..."
}
]
**/
mecs.below('311');
/** Output:
[
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": ...,
"industryGroup": "...",
"industryGroupId": 31169,
"description": "..."
},
{
"superSector": "...",
"superSectorId": ...,
"sector": "...",
"sectorId": ...,
"industryGroup": "...",
"industryGroupId": ...,
"industry": "...",
"industryId": 31169148,
"description": "..."
}
]
**/