@barchart/marketdata-api-js
Advanced tools
Comparing version 5.7.5 to 5.8.0
@@ -5,4 +5,4 @@ module.exports = (() => { | ||
return { | ||
version: '5.7.5' | ||
version: '5.8.0' | ||
}; | ||
})(); |
@@ -234,2 +234,16 @@ const is = require('@barchart/common-js/lang/is'); | ||
/** | ||
* Returns true if the symbol represents a pit-traded instrument. The | ||
* name must also be included. | ||
* | ||
* @public | ||
* @static | ||
* @param {String} symbol | ||
* @param {String} name | ||
* @returns {Boolean} | ||
*/ | ||
static getIsPit(symbol, name) { | ||
return is.string(symbol) && is.string(name) && predicates.pit.test(name); | ||
} | ||
/** | ||
* Returns a simple instrument definition containing information which | ||
@@ -364,2 +378,3 @@ * can be inferred from the symbol. A null value is returned if nothing | ||
predicates.percent = /(\.RT)$/; | ||
predicates.pit = /\(P(it)?\)/; | ||
@@ -366,0 +381,0 @@ const types = {}; |
{ | ||
"name": "@barchart/marketdata-api-js", | ||
"version": "5.7.5", | ||
"version": "5.8.0", | ||
"description": "SDK for streaming market data from Barchart.com", | ||
@@ -5,0 +5,0 @@ "author": { |
218191
6979