bstocks

package module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

bstocks-symbol-map

Zero-dependency Python & JavaScript (ESM) dataset + CLI mapping 105 tokenized US equities (bStocks) to their underlying US stock/ETF tickers (NVDA, TSLA, AAPL, MSFT, GOOGL, AMZN, QQQ, SPY, SPCX, CRWV, etc.), spot pair symbols (<TICKER>B), first trading dates, and matching USDT-margined perpetual contract symbols (<TICKER>USDT).


Python Installation & Quick Start

pip install bstocks-symbol-map
bstocks-lookup NVDA
from bstocks_symbol_map import lookup_stock_symbol

print(lookup_stock_symbol("NVDA"))

Naming Convention: US Ticker vs bStocks vs Perpetuals

Instrument Example (NVIDIA) Market Type Key Characteristics
US Equity / ETF NVDA / QQQ Regulated Securities Broker Direct share ownership, voting rights, dividend distribution
bStocks Spot NVDAB / QQQB Tokenized Security Spot Tracks underlying price (Ticker + B); distinct issuer terms & regional eligibility
USDT Perpetual NVDAUSDT Crypto Derivatives Margin/leverage, periodic funding fees, no share ownership

Quick Start

import { lookupStockSymbol, searchStockSymbols } from './src/index.mjs';

console.log(lookupStockSymbol('NVDA'));
// { ticker: 'NVDA', symbol: 'NVDAB', name: 'NVIDIA', firstTrade: '2026-06-11', perp: 'NVDAUSDT', perpListed: '2026-03-26' }

console.log(searchStockSymbols('etf').length);

License

MIT © HoldWins


Go Module Installation (pkg.go.dev)

go get github.com/dalangdalang934/bstocks-symbol-map@latest
import "bstocks" // github.com/dalangdalang934/bstocks-symbol-map

nvda, ok := bstocks.Lookup("NVDA")

Documentation

Overview

Package bstocks provides an embedded zero-dependency lookup table mapping 105 tokenized US equities (bStocks) to underlying US stock tickers (NVDA, TSLA, AAPL, MSFT, QQQ, SPY) and USDⓈ-M perpetual symbols.

Live symbol lookup & tokenized US equity guides:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StockEntry

type StockEntry struct {
	Ticker string `json:"ticker"`
	Symbol string `json:"symbol"`
	Pair   string `json:"pair"`
	Perp   string `json:"perp"`
	Name   string `json:"name"`
	NameZh string `json:"nameZh,omitempty"`
}

StockEntry represents a single tokenized US equity mapping.

func All

func All() []StockEntry

All returns a copy of all 105 mapped tokenized US equity entries.

func Lookup

func Lookup(query string) (StockEntry, bool)

Lookup finds a tokenized US stock entry by US ticker ("NVDA"), spot symbol ("NVDAB"), or company name.

func Search(query string) []StockEntry

Search returns all tokenized US stock entries matching the query string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL