Skip to content

Commit

Permalink
fix: update kraken book_ticker mapper to correctly map symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
thaaddeus committed Nov 8, 2021
1 parent 63c4a2f commit 9d875e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mappers/kraken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const krakenBookTickerMapper: Mapper<'kraken', BookTicker> = {

const ticker: BookTicker = {
type: 'book_ticker',
symbol: message[2],
symbol: message[3],
exchange: 'kraken',

askAmount: asNumberIfValid(askVolume),
Expand Down
2 changes: 1 addition & 1 deletion test/__snapshots__/mappers.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5951,7 +5951,7 @@ Array [
"bidPrice": 0.00917717,
"exchange": "kraken",
"localTimestamp": 2019-09-01T00:00:01.275Z,
"symbol": "spread",
"symbol": "XBT/USD",
"timestamp": 2021-10-01T02:02:59.916Z,
"type": "book_ticker",
},
Expand Down

0 comments on commit 9d875e5

Please sign in to comment.