tardis-dev
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -281,4 +281,5 @@ "use strict"; | ||
if (message.data.e === 'markPriceUpdate') { | ||
if ('r' in message.data) { | ||
if ('r' in message.data && message.data.r !== '') { | ||
// only perpetual futures have funding rate info in mark price | ||
// delivery futures sometimes send empty ('') r value | ||
pendingTickerInfo.updateFundingRate(Number(message.data.r)); | ||
@@ -285,0 +286,0 @@ pendingTickerInfo.updateFundingTimestamp(new Date(message.data.T)); |
{ | ||
"name": "tardis-dev", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -324,4 +324,5 @@ import { debug } from '../debug' | ||
if (message.data.e === 'markPriceUpdate') { | ||
if ('r' in message.data) { | ||
if ('r' in message.data && message.data.r !== '') { | ||
// only perpetual futures have funding rate info in mark price | ||
// delivery futures sometimes send empty ('') r value | ||
pendingTickerInfo.updateFundingRate(Number(message.data.r)) | ||
@@ -328,0 +329,0 @@ pendingTickerInfo.updateFundingTimestamp(new Date(message.data.T!)) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
955873
17078