← All packages

@lacspace/nepse-ipo

v1.0.0StockKit0 deps

Pure parsers for Nepal (NEPSE) IPO data, with no fetching inside. Turns the nepalipaisa.com GetIpos JSON into clean Issue objects: ordinary/local/migrant-worker tranches mapped to general/locals/foreign_employment eligibility, mutual-fund detection by sector or name (Fund, Yojana, Scheme), one issue per symbol and opening date (ordinary tranche preferred), and open/close/extended-close times converted from Nepal Time (UTC+05:45) to UTC by hand. Also reads the latest row of the SEBON IPO pipeline page (title, date, absolute English PDF link) with a small tolerant HTML table reader, and has archive helpers (lastRelevant, isArchivable). Zero dependencies, Hermes/React Native safe (no Intl time zones, no DOM, no node: imports, no lookbehind regex).

npm i @lacspace/nepse-ipo

Usage

nepse-ipo.ts
import { parseNepaliPaisaIpos, parseSebonPipeline, nptDate, isArchivable } from "@lacspace/nepse-ipo";

const res = await fetch(
  "https://nepalipaisa.com/api/GetIpos?stockSymbol=&pageNo=1&itemsPerPage=50&pagePerDisplay=5",
);
const issues = parseNepaliPaisaIpos(await res.json());
// [{ symbol: "ABCL", companyName: "ABC Hydropower Limited", type: "ipo", eligibility: "general",
//    units: 1000000, pricePerUnit: 100, openDate: 2026-09-07T04:15:00Z, closeDate: 2026-09-10T11:15:00Z, ... }]

const html = await (await fetch("https://www.sebon.gov.np/ipo-pipeline")).text();
parseSebonPipeline(html);
// { title: "List of Application for IPO (2083-06-20)", date: "2026-10-06",
//   url: "https://www.sebon.gov.np/uploads/2026/10/06/....pdf" }

nptDate("2026-09-10", "5:00 PM")?.toISOString(); // "2026-09-10T11:15:00.000Z"
isArchivable(issues[0]!, Date.now(), 30);        // true once 30 days have passed since the last relevant date

Exports 13

NPT_OFFSET_MINUTESSEBON_IPO_PIPELINE_URLdecodeEntitieseligibilityOfisArchivableissueTypeOflastRelevantnptDateparseNepaliPaisaIposparseSebonPipelinereadTablesresolveUrltoNumber

Keywords

nepseiponepalsebonnepalipaisashare-market

More in StockKit

@lacspace/marketwrap

Deterministic, no-AI stock-market wrap writer in English and Nepali (Devanagari). From the index close/change, breadth, turnover, sector moves and top gainers/losers it writes a factual daily wrap such as "NEPSE fell 11.90 points (−0.45%) to 2,587.25. Decliners led 238 to 95. Turnover Rs 4.29 arba." / "नेप्से ११.९० अंक (−०.४५%) घटेर २,५८७.२५ मा बन्द भयो।", with seeded phrasing variants so it doesn't read the same every day, South-Asian number formatting (lakh/crore/arba), a headline, and the computed facts. Every number comes from your input; no advice language. Zero-dependency.

@lacspace/patterns

Rule-based chart-pattern detection on OHLCV bars: ATR-sized swings (zigzag), harmonic XABCD patterns (Gartley, Bat, Butterfly, Crab, Cypher, AB=CD) with potential-reversal zones, an Elliott impulse count that obeys the three hard rules, classic chart patterns (double tops/bottoms, head & shoulders, triangles, wedges, channels, ranges) with necklines and measured moves, per-session TPO market profiles and volume profiles, and Kagi / Point & Figure transforms. Drawing-ready paths and zones plus plain data. Descriptive geometry, never a forecast. Zero-dependency.

@lacspace/portfolio

Portfolio analytics from holdings {symbol, qty, wacc} and daily closes: unrealised P/L vs WACC per holding and in total, market-value weights, HHI concentration (0–10,000) and effective number of holdings, sector weights, annualised volatility (daily log returns × √periods, default 240 for NEPSE), beta and correlation against an index on shared dates, max drawdown with peak/trough dates, Sharpe and Sortino with a risk-free rate. Duplicate lots merged, missing closes forward-filled. Deterministic, zero-dependency.

@lacspace/rules

Trading rules as data: a small, safe JSON rule language for "buy when …, sell when …" (price, SMA/EMA, RSI, MACD, ATR, Bollinger, Supertrend direction, N-candle high/low, average volume, % change; above / below / crosses above / crosses below; all/any groups; ATR stop and target), evaluated per candle on OHLCV arrays. Includes a validator that coerces AI-written JSON (no code execution), plain-English descriptions, a next-open backtester (stop-first, costs both sides) and a last-candle screener with sector/price/turnover filters and ranking — all on the same engine. Zero-dependency.

@lacspace/indicators

30+ streaming technical indicators (RSI, MACD, EMA, Bollinger, ATR, Supertrend, ADX, VWAP, Ichimoku, Parabolic SAR, StochRSI, CCI, MFI, Keltner, Donchian, OBV, CMF and more) with O(1) incremental next() updates for live price feeds, plus batch helpers. Zero-dependency.

@lacspace/market

Stock-market money math — P&L, returns, CAGR, XIRR, tick/lot rounding, circuit limits, position sizing and an Indian brokerage & charges calculator (STT, GST, SEBI, stamp), plus OHLCV candle resampling & gap detection, VWAP, corporate-action adjusted-close and beta/log-returns. Zero-dependency.