UNPKG

ccxws

Version:

Websocket client for 37 cryptocurrency exchanges

63 lines (55 loc) 1.33 kB
import { testClient } from "../TestRunner"; import { FtxClient } from "../../src/exchanges/FtxClient"; testClient({ clientFactory: () => new FtxClient(), clientName: "FtxClient", exchangeName: "FTX", markets: [ { id: "BTC/USD", base: "BTC", quote: "USD", }, ], testConnectEvents: true, testDisconnectEvents: true, testReconnectionEvents: true, testCloseEvents: true, hasTickers: true, hasTrades: true, hasCandles: false, hasLevel2Snapshots: false, hasLevel2Updates: true, hasLevel3Snapshots: false, hasLevel3Updates: false, ticker: { hasTimestamp: true, hasLast: true, hasOpen: false, hasHigh: false, hasLow: false, hasVolume: false, hasQuoteVolume: false, hasChange: false, hasChangePercent: false, hasAsk: true, hasBid: true, hasAskVolume: true, hasBidVolume: true, }, trade: { hasTradeId: true, tradeIdPattern: /[0-9]+/, }, l2snapshot: { hasTimestampMs: true, hasSequenceId: false, hasCount: false, }, l2update: { hasSnapshot: true, hasTimestampMs: true, hasSequenceId: false, hasCount: false, }, });