Caplin Trader 4.7.1

Class: module:caplin/trading/trademodel/SubjectMapper

module:caplin/trading/trademodel/SubjectMapper

A Subject is the name for identifying a particular dataSource that is published by a server. The purpose of this class is to translate between the name of standard financial instrument code and the subject on the server that provides data for that instrument.

Constructor

new module:caplin/trading/trademodel/SubjectMapper()

Constructs a new SubjectMapper.

Methods

getInstrumentName(instrument) → {String}

Returns the instrument name for a particular sSubject.
Parameters:
Name Type Description
instrument String The instrument name.
Returns:
The instrument name.
Type
String

getSubject(subject) → {String}

Returns the subject for a particular instrument.
Parameters:
Name Type Description
subject String The subject name.
Returns:
The subject
Type
String