tardis-dev 13.12.0 → 13.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mappers/binance.js
CHANGED
|
@@ -377,7 +377,7 @@ class BinanceBookTickerMapper {
|
|
|
377
377
|
askPrice: binanceBookTicker.a !== undefined ? Number(binanceBookTicker.a) : undefined,
|
|
378
378
|
bidPrice: binanceBookTicker.b !== undefined ? Number(binanceBookTicker.b) : undefined,
|
|
379
379
|
bidAmount: binanceBookTicker.B !== undefined ? Number(binanceBookTicker.B) : undefined,
|
|
380
|
-
timestamp: binanceBookTicker.
|
|
380
|
+
timestamp: binanceBookTicker.E !== undefined ? new Date(binanceBookTicker.E) : localTimestamp,
|
|
381
381
|
localTimestamp: localTimestamp
|
|
382
382
|
};
|
|
383
383
|
yield ticker;
|
package/package.json
CHANGED
package/src/mappers/binance.ts
CHANGED
|
@@ -439,7 +439,7 @@ export class BinanceBookTickerMapper implements Mapper<'binance-futures' | 'bina
|
|
|
439
439
|
askPrice: binanceBookTicker.a !== undefined ? Number(binanceBookTicker.a) : undefined,
|
|
440
440
|
bidPrice: binanceBookTicker.b !== undefined ? Number(binanceBookTicker.b) : undefined,
|
|
441
441
|
bidAmount: binanceBookTicker.B !== undefined ? Number(binanceBookTicker.B) : undefined,
|
|
442
|
-
timestamp: binanceBookTicker.
|
|
442
|
+
timestamp: binanceBookTicker.E !== undefined ? new Date(binanceBookTicker.E) : localTimestamp,
|
|
443
443
|
localTimestamp: localTimestamp
|
|
444
444
|
}
|
|
445
445
|
|
|
@@ -545,5 +545,5 @@ type BinanceBookTickerData = {
|
|
|
545
545
|
B: string // best bid qty
|
|
546
546
|
a: string // best ask price
|
|
547
547
|
A: string // best ask qty
|
|
548
|
-
|
|
548
|
+
E?: number // transaction time
|
|
549
549
|
}
|