Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
kraken: convert to TS
Browse files Browse the repository at this point in the history
  • Loading branch information
bmancini55 committed Jun 16, 2021
1 parent b2b8d2a commit 0b4bc14
Show file tree
Hide file tree
Showing 4 changed files with 742 additions and 709 deletions.
64 changes: 64 additions & 0 deletions __tests__/exchanges/KrakenClient.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import { testClient } from "../TestRunner";
import { KrakenClient } from "../../src/exchanges/KrakenClient";

testClient({
clientFactory: () => new KrakenClient(),
clientName: "KrakenClient",
exchangeName: "Kraken",
markets: [
{
id: "XXBTZEUR",
base: "BTC",
quote: "EUR",
},
],

testConnectEvents: true,
testDisconnectEvents: true,
testReconnectionEvents: true,
testCloseEvents: true,

hasTickers: true,
hasTrades: true,
hasCandles: true,
hasLevel2Snapshots: false,
hasLevel2Updates: true,
hasLevel3Snapshots: false,
hasLevel3Updates: false,

ticker: {
hasTimestamp: true,
hasLast: true,
hasOpen: true,
hasHigh: true,
hasLow: true,
hasVolume: true,
hasQuoteVolume: true,
hasChange: true,
hasChangePercent: true,
hasAsk: true,
hasBid: true,
hasAskVolume: true,
hasBidVolume: true,
},

trade: {
hasTradeId: true,
tradeIdPattern: /\d{19,}/,
},

candle: {},

l2snapshot: {
hasTimestampMs: true,
hasSequenceId: false,
hasCount: false,
},

l2update: {
hasSnapshot: true,
hasTimestampMs: true,
hasSequenceId: false,
hasCount: false,
},
});
64 changes: 0 additions & 64 deletions __tests__/exchanges/kraken-client.spec.js

This file was deleted.

Loading

0 comments on commit 0b4bc14

Please sign in to comment.