tardis-dev
Advanced tools
Comparing version 13.28.2 to 13.28.3
@@ -134,2 +134,3 @@ "use strict"; | ||
*map(message, localTimestamp) { | ||
//MATIC_USDC-9MAR24-1d02-C | ||
const optionInfo = message.params.data; | ||
@@ -139,3 +140,7 @@ //e.g., BTC-8JUN20-8750-P | ||
const isPut = symbolParts[3] === 'P'; | ||
const strikePrice = Number(symbolParts[2]); | ||
let strikePriceString = symbolParts[2]; | ||
if (strikePriceString.includes('d')) { | ||
strikePriceString = strikePriceString.replace('d', '.'); | ||
} | ||
const strikePrice = Number(strikePriceString); | ||
const expirationDate = new Date(symbolParts[1] + 'Z'); | ||
@@ -142,0 +147,0 @@ expirationDate.setUTCHours(8); |
{ | ||
"name": "tardis-dev", | ||
"version": "13.28.2", | ||
"version": "13.28.3", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=12" |
@@ -159,2 +159,3 @@ import { asNumberIfValid, upperCaseSymbols } from '../handy' | ||
*map(message: DeribitOptionTickerMessage, localTimestamp: Date) { | ||
//MATIC_USDC-9MAR24-1d02-C | ||
const optionInfo = message.params.data | ||
@@ -167,3 +168,7 @@ | ||
const strikePrice = Number(symbolParts[2]) | ||
let strikePriceString = symbolParts[2] | ||
if (strikePriceString.includes('d')) { | ||
strikePriceString = strikePriceString.replace('d', '.') | ||
} | ||
const strikePrice = Number(strikePriceString) | ||
const expirationDate = new Date(symbolParts[1] + 'Z') | ||
@@ -170,0 +175,0 @@ expirationDate.setUTCHours(8) |
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
1928321
35637