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:
- https://holdwins.com/en/stock-lookup/ (English bStocks Symbol Lookup)
- https://holdwins.com/stock-lookup/ (币安美股代码查询)
- https://holdwins.com/en/guides/how-to-buy-us-stocks/
- https://holdwins.com/guides/how-to-buy-nvidia-nvda/
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 ¶
func Search(query string) []StockEntry
Search returns all tokenized US stock entries matching the query string.