UNPKG

ccxws

Version:

Websocket client for 37 cryptocurrency exchanges

29 lines (27 loc) 815 B
import { BinanceBase, BinanceClientOptions } from "./BinanceBase"; export class BinanceUsClient extends BinanceBase { constructor({ useAggTrades = true, requestSnapshot = true, socketBatchSize = 200, socketThrottleMs = 1000, restThrottleMs = 1000, watcherMs, l2updateSpeed, l2snapshotSpeed, }: BinanceClientOptions = {}) { super({ name: "BinanceUS", wssPath: "wss://stream.binance.us:9443/stream", restL2SnapshotPath: "https://api.binance.us/api/v1/depth", useAggTrades, requestSnapshot, socketBatchSize, socketThrottleMs, restThrottleMs, watcherMs, l2updateSpeed, l2snapshotSpeed, }); } }