🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

vnstock-js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vnstock-js

An open source package for fetching stock market data in Vietnam Stock Market.

0.3.1
latest
npm
Version published
Weekly downloads
12
200%
Maintainers
1
Weekly downloads
 
Created
Source

📈 vnstock-js

vnstock-js is an NPM package for fetching stock market data from source VCI. It provides functionality to retrieve trading data, symbol listings, and more.

inspired by thinh-vu/vnstock

vnstock-js docs

vnstock-js-docs.vercel.app

🚀 Features

  • Support VCI stock market data.
  • Retrieve trading prices, historical quotes and symbols listings.
  • Support Commodity Prices (Gold Price Vietnam).

📦 Installation

To install the package using npm:

npm install vnstock-js

Yarn:

yarn add vnstock-js

⚙️ Usage

Simple usage

import { Vnstock } from "vnstock-js";

const { stock } = new Vnstock();

// Get Symbols Price 
await stock.trading.priceBoard(["VCB"]);

// Get Symbols History 
await stock.quote.history({
  start: "2024-12-01",
  symbols: ["VCB"]
});

// Get All Symbols
await stock.listing.allSymbols();

✅ Testing

Run tests using Jest:

npm test

License

Apache 2.0 License Ⓒ ttqteo 2024

Keywords

vnstock

FAQs

Package last updated on 02 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts