Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tardis-dev

Package Overview
Dependencies
Maintainers
1
Versions
272
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tardis-dev - npm Package Compare versions

Comparing version 13.1.2 to 13.1.3

16

dist/mappers/okex.d.ts

@@ -196,9 +196,11 @@ import { BookChange, BookTicker, DerivativeTicker, Exchange, Liquidation, OptionSummary, Trade } from '../types';

};
data: [{
fundingRate: '0.00048105';
fundingTime: '1640131200000';
instId: string;
instType: 'SWAP';
nextFundingRate: '0.00114';
}];
data: [
{
fundingRate: '0.00048105' | undefined;
fundingTime: '1640131200000';
instId: string;
instType: 'SWAP';
nextFundingRate: '0.00114';
}
];
};

@@ -205,0 +207,0 @@ declare type OkexV5LiquidationMessage = {

@@ -202,5 +202,8 @@ "use strict";

const fundingRateMessage = dataMessage;
pendingTickerInfo.updateFundingRate(Number(fundingRateMessage.fundingRate));
//
pendingTickerInfo.updateFundingTimestamp(new Date(Number(fundingRateMessage.fundingTime)));
if (fundingRateMessage.fundingRate !== undefined) {
pendingTickerInfo.updateFundingRate(Number(fundingRateMessage.fundingRate));
}
if (fundingRateMessage.fundingTime !== undefined) {
pendingTickerInfo.updateFundingTimestamp(new Date(Number(fundingRateMessage.fundingTime)));
}
if (fundingRateMessage.nextFundingRate !== undefined) {

@@ -207,0 +210,0 @@ pendingTickerInfo.updatePredictedFundingRate(Number(fundingRateMessage.nextFundingRate));

{
"name": "tardis-dev",
"version": "13.1.2",
"version": "13.1.3",
"engines": {

@@ -5,0 +5,0 @@ "node": ">=12"

@@ -239,5 +239,8 @@ import { asNumberIfValid, upperCaseSymbols } from '../handy'

pendingTickerInfo.updateFundingRate(Number(fundingRateMessage.fundingRate))
//
pendingTickerInfo.updateFundingTimestamp(new Date(Number(fundingRateMessage.fundingTime)))
if (fundingRateMessage.fundingRate !== undefined) {
pendingTickerInfo.updateFundingRate(Number(fundingRateMessage.fundingRate))
}
if (fundingRateMessage.fundingTime !== undefined) {
pendingTickerInfo.updateFundingTimestamp(new Date(Number(fundingRateMessage.fundingTime)))
}

@@ -548,3 +551,5 @@ if (fundingRateMessage.nextFundingRate !== undefined) {

arg: { channel: 'funding-rate'; instId: string }
data: [{ fundingRate: '0.00048105'; fundingTime: '1640131200000'; instId: string; instType: 'SWAP'; nextFundingRate: '0.00114' }]
data: [
{ fundingRate: '0.00048105' | undefined; fundingTime: '1640131200000'; instId: string; instType: 'SWAP'; nextFundingRate: '0.00114' }
]
}

@@ -551,0 +556,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc