Releases: barchart/marketdata-api-js
Releases · barchart/marketdata-api-js
v5.13.1
Bug Fixes
- Corrected signature of
formatFractionfunction, removing unused parameter.
v5.13.0
New Features
- Added the
formatFractionfunction which converts numbers into fractional notation (e.g. 12-213) directly — without requiring aUnitCodereference.
Other
- Refactored the
formatPricefunction to use the newformatFractionfunction.
v5.12.0
New Features
- Added the
AssetClassenumeration to describe instrument types (e.g. stocks, futures, options, etc). - Added the
Profile.assetproperty which references anAssetClassitem, assuming the asset class can be inferred from the instrument's symbol. - Added the
Profile.setPriceFormatterCustomfunction 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.refreshproperty to hold the most recent DDF refresh message.
Bug Fixes
- Adjusted
Quoute.messageproperty to hold the most recent DDF message (regardless of type).
v5.10.0
New Features
- Added
Connection.setExtendedQuoteModefunction which causes additionalQuoteproperties to be populated. - Added
Quote.contractHighandQuote.contractLowproperties, which are populated in "extended" quote mode. - Added
SymbolParser.getFuturesExplicitFormatfunction. - 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
wslibrary from version 7.0.1 to 7.4.6. - Updated the
xmldomlibrary from version 0.1.27 to 0.6.0. - Corrected unit tests for
SymbolParser.getIsPitfunction.
Other
- Renamed the
ConnectionBase.connectfunction'sserverparameter tohostnameand added theConnection.getHostnamefunction. - 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.jsandconvert/monthCodeToName.jsfunctions.
Bug Fixes
- Updated
monthCodes.getCodeToNameMapandmonthCodes.getCodeToNumberMapfunctions to return copied objects, thereby protecting internal state from consumers.
v5.8.1
Bug Fixes
- Fixed
SymbolParser.parseInstrumentTypehandling of futures expiring between the year 2000 and 2009. Prior to the fix, a symbolZCH08would have had its year set to 2028 instead of 2008. Please note that this is different from theZCH8which 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.getIsEquityOptionandSymbolParser.parseInstrumentTypefunctions to recognize equity option symbols which include a dot character in the underlying equity (e.g.BRK.B|20210205|170.00CorBRK.B2|20210205|170.00C).