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

Commit

Permalink
refactor: fixing Binance futures types
Browse files Browse the repository at this point in the history
  • Loading branch information
bmancini55 committed Jun 4, 2021
1 parent 4be3321 commit 0085e77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/exchanges/BinanceFuturesCoinmClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
import { Level2Point } from "../Level2Point";
import { Level2Snapshot } from "../Level2Snapshots";
import { Level2Update } from "../Level2Update";
import { Market } from "../Market";
import { BinanceBase } from "./BinanceBase";
import { BinanceClientOptions } from "./BinanceBase";
Expand Down Expand Up @@ -68,7 +69,7 @@ export class BinanceFuturesCoinmClient extends BinanceBase {
const previousLastSequenceId = msg.data.pu;
const asks = msg.data.a.map(p => new Level2Point(p[0], p[1]));
const bids = msg.data.b.map(p => new Level2Point(p[0], p[1]));
return new Level2Snapshot({
return new Level2Update({
exchange: this.name,
base: market.base,
quote: market.quote,
Expand Down
3 changes: 2 additions & 1 deletion src/exchanges/BinanceFuturesUsdtmClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import { Level2Point } from "../Level2Point";
import { Level2Snapshot } from "../Level2Snapshots";
import { Level2Update } from "../Level2Update";
import { Market } from "../Market";
import { BinanceBase, BinanceClientOptions } from "./BinanceBase";

Expand Down Expand Up @@ -67,7 +68,7 @@ export class BinanceFuturesUsdtmClient extends BinanceBase {
const previousLastSequenceId = msg.data.pu;
const asks = msg.data.a.map(p => new Level2Point(p[0], p[1]));
const bids = msg.data.b.map(p => new Level2Point(p[0], p[1]));
return new Level2Snapshot({
return new Level2Update({
exchange: this.name,
base: market.base,
quote: market.quote,
Expand Down

0 comments on commit 0085e77

Please sign in to comment.