Skip to content

Releases: barchart/marketdata-api-js

v5.13.0

16 Jul 04:48
Compare
Choose a tag to compare

New Features

  • Added the formatFraction function which converts numbers into fractional notation (e.g. 12-213) directly — without requiring a UnitCode reference.

Other

  • Refactored the formatPrice function to use the new formatFraction function.

v5.12.0

14 Jul 20:42
Compare
Choose a tag to compare

New Features

  • Added the AssetClass enumeration to describe instrument types (e.g. stocks, futures, options, etc).
  • Added the Profile.asset property which references an AssetClass 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

01 Jul 21:36
Compare
Choose a tag to compare

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

29 Jun 22:36
Compare
Choose a tag to compare

New Features

  • Added Connection.setExtendedQuoteMode function which causes additional Quote properties to be populated.
  • Added Quote.contractHigh and Quote.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's server parameter to hostname and added the Connection.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

04 Mar 17:35
Compare
Choose a tag to compare

New Features

  • Added convert/monthCodeToName.js and convert/monthCodeToName.js functions.

Bug Fixes

  • Updated monthCodes.getCodeToNameMap and monthCodes.getCodeToNumberMap functions to return copied objects, thereby protecting internal state from consumers.

v5.8.1

01 Mar 16:07
Compare
Choose a tag to compare

Bug Fixes

  • Fixed SymbolParser.parseInstrumentType handling of futures expiring between the year 2000 and 2009. Prior to the fix, a symbol ZCH08 would have had its year set to 2028 instead of 2008. Please note that this is different from the ZCH8 which does imply year 2028.

v5.8.0

24 Feb 01:16
Compare
Choose a tag to compare

New Features

  • Added utility function — called SymbolParser.getIsPit — to detect pit-traded instruments.

v5.7.5

07 Feb 22:11
Compare
Choose a tag to compare

Bug Fixes

  • Updated SymbolParser.getIsEquityOption and SymbolParser.parseInstrumentType functions to recognize equity option symbols which include a dot character in the underlying equity (e.g. BRK.B|20210205|170.00C or BRK.B2|20210205|170.00C).

v5.7.4

31 Jan 22:33
Compare
Choose a tag to compare

Technical Enhancements

  • Upgraded the axios dependency to version 0.21.1. No functional changes are included in this release.

v5.7.3

26 Jan 22:43
Compare
Choose a tag to compare

Technical Enhancements

  • Upgraded the @barchart/common-js dependency to version 4.0.0. No functional changes are included in this release.