npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

whitebit-typescript-sdk

v1.0.6

Published

A TypeScript SDK for WhiteBit cryptocurrency exchange API

Readme


Prerequisites

| Requirement | Details | |-------------|---------| | TypeScript Node.js ≥ 18 | Required runtime | | WhiteBit account | Sign up at whitebit.com | | WhiteBit API key | Profile → API keys → Create key (Read and/or Trade permissions) |


Installation

npm install whitebit-typescript-sdk

Quick Start

1. Get your API credentials

  1. Log in to whitebit.comProfile → API keys
  2. Create a new key — choose Read and/or Trade permissions as needed
  3. Copy your API Key and Token

Public endpoints (market data, tickers, order book) work without credentials. Private endpoints (account, trading) require both.

2. Initialize the client

import { WhitebitApiClient } from "whitebit-typescript-sdk";

const client = new WhitebitApiClient({
  txcApikey: "YOUR_API_KEY",
  token: "YOUR_TOKEN",
});

Usage Examples

// Market data (no credentials required)
const tickers = await client.publicApiV4.getMarketActivity();
const depth   = await client.publicApiV4.getOrderbook({ market: "BTC_USDT" });

// Account
const balance = await client.accountEndpoints.getTradingBalance();

// Spot trading
const order   = await client.spotTrading.createLimitOrder({
  market: "BTC_USDT",
  side: "buy",
  amount: "0.01",
  price: "95000",
});
await client.spotTrading.cancelOrder({ market: "BTC_USDT", orderId: order.orderId });

// Main account — transfer & withdraw
await client.transfer.transfer({ from: "main", to: "spot", ticker: "USDT", amount: "100" });
await client.withdraw.createWithdraw({ ticker: "USDT", amount: "500", address: "0x..." });

Available Modules

| Module | Description | |--------|-------------| | publicApiV4 | Tickers, order book, trade history, klines, assets | | spotTrading | Limit, market, stop-limit, stop-market, bulk orders | | collateralTrading | Collateral orders, OCO, positions | | accountEndpoints | Trading balance, open orders, order history | | mainAccount | Main balances, deposit addresses, fee info | | transfer | Transfer between main and trade accounts | | withdraw | Withdrawal requests | | codes | WhiteBit codes — create, apply, history | | cryptoLendingFixed | Fixed lending plans | | cryptoLendingFlex | Flex lending plans | | fees | Trading fees | | subAccount | Sub-account management | | miningPool | Hashrate and rewards |


Resources

| | | |---|---| | WhiteBIT API Documentation | Official API reference | | API Platform Overview | REST, WebSocket, authentication, rate limits | | Use with AI | Use API docs with Claude, Cursor, VS Code via MCP | | GitHub Repository | Source code | | Releases | Binaries and changelog | | Contributing | Development setup and contribution guide | | Report an Issue | Bug reports and feature requests | | WhiteBIT Exchange | The exchange |


License

Apache 2.0