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

bitso-bert-api

v0.0.13

Published

<h1 align="center">bitso-bert-api</h1>

Readme

Getting started

The first step will be to get your API Keys (for private endpoints). In order to get your API Keys, please refer to their documentation

You will need the following environment variables in your project

BITSO_API_KEY=""
BITSO_API_SECRET=""
BITSO_API_URL="https://api.bitso.com"

When working on integrations, bitso recommends that you use their dev server before running your code against production. The URL for this server is https://api-dev.bitso.com/v3/

npm install bitso-bert-api

usage

try {
  const ticker = await BitsoApi.public.getTicker('btc_mxn')
  const { book, last, volume, low, high } = ticker
} catch (err) {
  const { code, message } = err
}

Rate Limits

Rate limits are based on one minute windows. For public API requests, the limit is by IP address and allows 60 requests per minute. For private API requests, the limit is by user and allows 300 requests per minute. If you exceed these limits, you will get locked out for one minute. Continuous one minute lockouts may result in a 24-hour block. Order cancellations aren’t subject to API rate limiting.

Implemented REST API

The API is divided in two sections: public, private and undocumented

Public API

| | | | | | | --- | --------------- | --- | -------------------------------- | ----------------------------------------------------------- | | | Available Books | ✅ | getAvailableBooks() | | | | Ticker | ✅ | getTicker('btc_mxn') | | | | Order Book | ✅ | getOrderBook('btc_mxn', params?) | { aggregate?: boolean } | | | Trades | ✅ | getTrades('btc_mxn', params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } |

Private API

| | | | | | | --- | -------------------------------- | --- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------ | | 🔒 | Account Status | ✅ | getAccountStatus() | | | 🔒 | Document Upload | ☑️ | | | | 🔒 | Mobile Phone Number Registration | ✅ | mobilePhone.register(phoneNumber) | | | 🔒 | Mobile Phone Number Verification | ✅ | mobilePhone.verify(verificationCode) | | | 🔒 | Account Balance | ✅ | getBalance() | | | 🔒 | Fees | ✅ | getFees() | | | 🔒 | Ledger | | | | | 🔒 | - all | ✅ | ledger.getLedger(params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } | | 🔒 | - trades | ✅ | ledger.getTrades(params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } | | 🔒 | - fees | ✅ | ledger.getFees(params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } | | 🔒 | - fundings | ✅ | ledger.getFundings(params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } | | 🔒 | - withdrawals | ✅ | ledger.getWithdrawals(params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } | | 🔒 | Withdrawals | | | | | 🔒 | - all | ✅ | withdrawals.getAll(params?) | { marker?: string, limit?: number, status?: string, method?: string } | | 🔒 | - by wid | ✅ | withdrawals.getByWid(wid) | | | 🔒 | - by wids | ✅ | withdrawals.getByWids([wid1, wid2]) | | | 🔒 | - by origin_ids | ✅ | withdrawals.getByOriginIds([originId1, originId2]) | | | 🔒 | Fundings | | | | | 🔒 | - all | ✅ | fundings.getAll(params?) | { marker?: string, limit?: number, status?: string, method?: string, txids?: string } | | 🔒 | - by fid | ✅ | fundings.getByFid(fid) | | | 🔒 | - by fids | ✅ | fundings.getByFids([fid1, fid2]) | | | 🔒 | User Trades | | | | | 🔒 | - by book | ✅ | userTrades.getByBook('btc_mxn', params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number } | | 🔒 | - by id | ✅ | userTrades.getByTid(tid) | | | 🔒 | - by ids | ✅ | userTrades.getByTids([tid1, tid2]) | | | 🔒 | Order Trades | | | | | 🔒 | - by oid | ✅ | orderTrades.getByOid(oid) | | | 🔒 | - by origin id | ✅ | orderTrades.getByOriginId(originId) | | | 🔒 | Open Orders | ✅ | getOpenOrders(params?) | { marker?: string, sort?: 'asc'\|'desc', limit?: number, book?: Book } | | 🔒 | Lookup Orders | | | | | 🔒 | - by oid | ✅ | lookupOrders.getByOid(oid) | | | 🔒 | - by list of oids | ✅ | lookupOrders.getByOids([oid1, oid2]) | | | 🔒 | - by list of origin_ids | ✅ | lookupOrders.getByOriginIds([originId1, originId2]) | | | 🔒 | Cancel Order | | | | | 🔒 | - all | ✅ | cancelOrder.cancelAll() | | | 🔒 | - by oid | ✅ | cancelOrder.cancelByOid(oid) | | | 🔒 | - by list of oids | ✅ | cancelOrder.cancelByOids([oid1, oid2]) | | | 🔒 | - by list of origin_ids | ✅ | cancelOrder.cancelByOrderIds([originId1, originId2]) | | | 🔒 | Place an Order (buy, sell) | | | | | 🔒 | - market | ✅ | market(book, amount, currency) | | | 🔒 | - limit | ✅ | limit(book, amount, currency, price, executionType?) | executionType = 'goodtillcancelled' \| 'fillorkill' \| 'immediateorcancel' \| 'postonly' | | 🔒 | - stopLoss | ✅ | stopLoss(book, amount, stopPrice) | | | 🔒 | - stopLimit | ✅ | stopLimit(book, amount, currency, price, stopPrice, executionType?) | executionType = 'goodtillcancelled' \| 'fillorkill' \| 'immediateorcancel' \| 'postonly' | | 🔒 | Funding Destination | ✅ | getFundingDestination(currency) | | | 🔒 | Crypto Withdrawals | ☑️ | | | | 🔒 | SPEI Withdrawal | ☑️ | | | | 🔒 | Bank Codes | ✅ | getBankCodes() | | | 🔒 | Debit Card Withdrawal | ☑️ | | | | 🔒 | Phone Number Withdrawal | ☑️ | | |

Undocumented API

| | | | | | | --- | -------------------------------- | --- | --------------------------------------------------------- | --- | | | Charts | | | | | | - Charting Information | ✅ | charts.getChartInfo(book, timeBucket, startDate, endDate) | | | | - Charting Trades | ✅ | charts.getChartTrades(book, timeframe) | | | | Catalogues | | | | | | - Available Currency Conversions | ✅ | catalogues.availableCurrencyConversions.public() | | | 🔒 | - Available Currency Conversions | ✅ | catalogues.availableCurrencyConversions.private() | | | | - Countries | ✅ | catalogues.getCountries() | | | | - Currencies | ✅ | catalogues.getCurrencies() | | | 🔒 | Tickers | ✅ | getTickers() | | | 🔒 | Settings | ✅ | getSettings() | |