coin-bbo
A crawler to get realtime BBO messages from crypto exchanges.
How to use
const crawl = require('coin-bbo').default;
function processMsgCallback(msg) {
console.info(msg);
}
(async () => {
await crawl('CoinbasePro', 'Spot', ['BTC_USD'], processMsgCallback);
})();
Quickstart
npx coin-bbo CoinbasePro --marketType Spot --pairs BTC_USD
Help
npx coin-bbo --help
API Manual
There is only one API in this library:
export default function crawlBbo(
exchange: string,
pairs?: string[],
bboMessageCallback?: BboMessageCallback,
): Promise<void>;
Related Projects
- crypto-order, a library to place and cancel orders at crypto exchanges.