pysnowball-node
v0.1.0
Published
TypeScript client for Snowball market and financial APIs
Readme
pysnowball-node
TypeScript client for the first (P0) group of pysnowball APIs. Requires Node 20 or newer.
import { createClient } from "pysnowball-node";
const client = createClient({ token: process.env.XUEQIUTOKEN });
const quote = await client.quoteDetail("SH600000");
console.log(quote.data);
console.log(quote.raw); // complete upstream payloadThe client currently exposes suggestStock, quote, quoteDetail, pankou, kline,
the legacy and detailed finance methods (cashFlow, cashFlowV2, indicator,
indicatorV2, balance, balanceV2, income, incomeV2, business).
data is a conservative view of the upstream data property. No numeric, date, or
percentage coercion is performed; use raw for fields not yet covered by an adapter.
Development
npm install
npm test
npm run buildTo fetch the raw upstream responses for all P0 methods (the token is never printed):
XUEQIUTOKEN='xq_a_token=...;u=...' npm run probe:p0The command writes one pretty-printed raw JSON file per P0 endpoint to node/data/.
The directory is gitignored and contains no request headers or token values.
