Releases: barchart/marketdata-api-js
Releases · barchart/marketdata-api-js
v5.13.0
New Features
- Added the
formatFraction
function which converts numbers into fractional notation (e.g. 12-213) directly — without requiring aUnitCode
reference.
Other
- Refactored the
formatPrice
function to use the newformatFraction
function.
v5.12.0
New Features
- Added the
AssetClass
enumeration to describe instrument types (e.g. stocks, futures, options, etc). - Added the
Profile.asset
property which references anAssetClass
item, assuming the asset class can be inferred from the instrument's symbol. - Added the
Profile.setPriceFormatterCustom
function which allows the consumer to specify their own price format function, completely overriding the default price formatting logic.
v5.11.0
New Features
- Added
Quote.refresh
property to hold the most recent DDF refresh message.
Bug Fixes
- Adjusted
Quoute.message
property to hold the most recent DDF message (regardless of type).
v5.10.0
New Features
- Added
Connection.setExtendedQuoteMode
function which causes additionalQuote
properties to be populated. - Added
Quote.contractHigh
andQuote.contractLow
properties, which are populated in "extended" quote mode. - Added
SymbolParser.getFuturesExplicitFormat
function. - Added undocumented functions for interacting with a replay server.
Bug Fixes
- Suppressed requests to download out-of-band profile data, if the data has already been downloaded.
Technical Enhancements
- Updated the
ws
library from version 7.0.1 to 7.4.6. - Updated the
xmldom
library from version 0.1.27 to 0.6.0. - Corrected unit tests for
SymbolParser.getIsPit
function.
Other
- Renamed the
ConnectionBase.connect
function'sserver
parameter tohostname
and added theConnection.getHostname
function. - Added a Node.js script which captures market data feed messages to a file (for diagnostic purposes).
- Added a Node.js script which replays market data feed messages from a file (for diagnostic purposes).
v5.9.0
New Features
- Added
convert/monthCodeToName.js
andconvert/monthCodeToName.js
functions.
Bug Fixes
- Updated
monthCodes.getCodeToNameMap
andmonthCodes.getCodeToNumberMap
functions to return copied objects, thereby protecting internal state from consumers.
v5.8.1
Bug Fixes
- Fixed
SymbolParser.parseInstrumentType
handling of futures expiring between the year 2000 and 2009. Prior to the fix, a symbolZCH08
would have had its year set to 2028 instead of 2008. Please note that this is different from theZCH8
which does imply year 2028.
v5.8.0
New Features
- Added utility function — called
SymbolParser.getIsPit
— to detect pit-traded instruments.
v5.7.5
Bug Fixes
- Updated
SymbolParser.getIsEquityOption
andSymbolParser.parseInstrumentType
functions to recognize equity option symbols which include a dot character in the underlying equity (e.g.BRK.B|20210205|170.00C
orBRK.B2|20210205|170.00C
).
v5.7.4
v5.7.3
Technical Enhancements
- Upgraded the
@barchart/common-js
dependency to version 4.0.0. No functional changes are included in this release.