/tsetmc-client

Simple client for communicating with TseTmc.com API

Primary LanguageTypeScriptMIT LicenseMIT

TseTmc Client Library for NodeJS

npm npm bundle size

This library is for getting tehran stock market data from the TseTmc.com website.

Installation

npm install tsetmc-client

📖 Usage

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, ...}
});

📚 Documentation

For all configuration options, please see the API docs.

License

MIT © Shahrad Elahi