fix orderbook

This commit is contained in:
tjs 2022-12-02 18:57:36 -05:00
parent 3b41277099
commit 616e6160da
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ import { INITIAL_ANIMATION_SETTINGS } from '@components/settings/AnimationSettin
export const decodeBookL2 = (book: SpotOrderBook | BookSide): number[][] => {
const depth = 40
if (book instanceof SpotOrderBook) {
book.getL2(depth).map(([price, size]) => [price, size])
return book.getL2(depth).map(([price, size]) => [price, size])
} else if (book instanceof BookSide) {
return book.getL2Ui(depth)
}