Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shahradelahi/tsetmc-client
Simple client for communicating with TseTmc.com API
https://github.com/shahradelahi/tsetmc-client
nodejs tsetmc
Last synced: about 12 hours ago
JSON representation
Simple client for communicating with TseTmc.com API
- Host: GitHub
- URL: https://github.com/shahradelahi/tsetmc-client
- Owner: shahradelahi
- License: mit
- Created: 2023-02-17T05:29:51.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-20T01:26:34.000Z (6 days ago)
- Last Synced: 2024-12-21T01:36:21.913Z (5 days ago)
- Topics: nodejs, tsetmc
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/tsetmc-client
- Size: 2.56 MB
- Stars: 160
- Watchers: 2
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[TseTmc.com]: http://www.tsetmc.com
# TseTmc Client Library for NodeJS
[![npm](https://img.shields.io/npm/v/tsetmc-client)](https://www.npmjs.com/package/tsetmc-client)
[![npm bundle size](https://packagephobia.now.sh/badge?p=tsetmc-client)](https://packagephobia.now.sh/result?p=tsetmc-client)This library is for getting tehran stock market data from the [TseTmc.com] website.
### Installation
```bash
npm install tsetmc-client
```### 📖 Usage
```javascript
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](https://paka.dev/npm/tsetmc-client/api).
### License
[MIT](LICENSE) © [Shahrad Elahi](https://github.com/shahradelahi)