tadawul-symbol
v2.0.1
Published
A library for retrieving the latest symbols from the Saudi Exchange (Tadawul)
Maintainers
Readme
TadawulSymbol
TadawulSymbol is a TypeScript library for fetching up to date symbols from the Saudi Exchange (Tadawul).
External data sources that provide market data for the Saudi Stock Exchange often overlook critical details, such as whether a company has been delisted, acquired, or transitioned between markets, such as moving from the Parallel Market (Nomu) to the Main Market (Tadawul).
Using Saudi Exchange "UNOFFICIAL API" to fetch the current listed and tradable symbols directly from the exchange website.
Features
- Fetch market symbols for
TASIandNOMUCmarkets. - Support for both Arabic and English.
Installation (Package Manager)
Use Yarn to install the package:
yarn add tadawul-symbolOr with npm:
npm install tadawul-symbolInstallation (Cloning Repository)
Clone the Repository
To set up the project locally, first clone the repository:
git clone https://github.com/cyancaesar/tadawul-symbol.git
cd tadawul-symbolInstall Dependencies
Install the required dependencies using Yarn:
yarn installBuild
yarn buildRun
yarn tsx index.tsUsage
import { fetchSymbols } from "tadawul-symbol";
// Fetch all Main Market "TASI" symbols
const tasiSymbols = await fetchSymbols("TASI");
// Fetch all Parallel Market "NOMUC" symbols
const nomucSymbols = await fetchSymbols("NOMUC");
/*
Symbols are returned in this shape:
{
symbol: string;
nameAr: string;
nameEn: string;
tradingNameAr: string;
tradingNameEn: string;
sectorAr: string;
sectorEn: string;
isin: string;
marketType: MarketType;
profileUrl: string;
}[]
*/License
This project is licensed under the MIT License. See the LICENSE file for details.
