This library is for getting tehran stock market data from the TseTmc.com website.
npm install tsetmc-client
import { DayDetails } from 'tsetmc-client';
const parameters = {
insId: '35331248532537562',
dEven: 20230201 // Date in format of YYYYMMDD
};
DayDetails.getPriceData(parameters).then((data) => {
console.log(data); // {"priceChange": 740.00, "low":15630.00, ...}
});
For all configuration options, please see the API docs.
MIT © Shahrad Elahi