@barchart/marketdata-api-js
Advanced tools
Comparing version 5.7.4 to 5.7.5
@@ -5,4 +5,4 @@ module.exports = (() => { | ||
return { | ||
version: '5.7.4' | ||
version: '5.7.5' | ||
}; | ||
})(); |
@@ -376,3 +376,3 @@ const is = require('@barchart/common-js/lang/is'); | ||
types.equities = {}; | ||
types.equities.options = /^([A-Z\$][A-Z\-]{0,})([0-9]?)(\.[A-Z]{2})?\|([[0-9]{4})([[0-9]{2})([[0-9]{2})\|([0-9]+\.[0-9]+)[P|W]?(C|P)/i; | ||
types.equities.options = /^([A-Z\$][A-Z\-]{0,}(\.[A-Z]{1})?)([0-9]?)(\.[A-Z]{2})?\|([[0-9]{4})([[0-9]{2})([[0-9]{2})\|([0-9]+\.[0-9]+)[P|W]?(C|P)/i; | ||
@@ -475,3 +475,3 @@ types.forex = /^\^([A-Z]{3})([A-Z]{3})$/i; | ||
if (match !== null) { | ||
const suffix = typeof match[3] !== 'undefined' ? match[3] : ''; | ||
const suffix = typeof match[4] !== 'undefined' ? match[4] : ''; | ||
@@ -483,11 +483,11 @@ definition = {}; | ||
definition.option_type = match[8] === 'C' ? 'call' : 'put'; | ||
definition.strike = parseFloat(match[7]); | ||
definition.option_type = match[9] === 'C' ? 'call' : 'put'; | ||
definition.strike = parseFloat(match[8]); | ||
definition.root = `${match[1]}${suffix}`; | ||
definition.month = parseInt(match[5]); | ||
definition.day = parseInt(match[6]); | ||
definition.year = parseInt(match[4]); | ||
definition.month = parseInt(match[6]); | ||
definition.day = parseInt(match[7]); | ||
definition.year = parseInt(match[5]); | ||
definition.adjusted = match[2] !== ''; | ||
definition.adjusted = match[3] !== ''; | ||
} | ||
@@ -494,0 +494,0 @@ |
{ | ||
"name": "@barchart/marketdata-api-js", | ||
"version": "5.7.4", | ||
"version": "5.7.5", | ||
"description": "SDK for streaming market data from Barchart.com", | ||
@@ -5,0 +5,0 @@ "author": { |
217817