Caplin Trader 4.8.0

Class: module:caplin/trading/testing/InstrumentDataSubscriberStub

module:caplin/trading/testing/InstrumentDataSubscriberStub

Constructor

new module:caplin/trading/testing/InstrumentDataSubscriberStub()

Constructs an instance of caplin.trading.testing.InstrumentDataSubscriberStub.

A InstrumentDataSubscriberStub replaces the module:caplin/trading/trademodel/SL4BInstrumentDataSubscriber for the purpose of testing ESP trades and trading components in acceptance tests and workbenches by propagating instrument data sent from a mock server component to the subscribed trade leg.

Implements:

Methods

receiveData(mData)

This method is called by a mock trade server to simulate the receipt of instrument data from Liberator via SL4B. The event is propagated to the subscribed trade leg. This stub will print out the message to a logger if one has been defined.
Parameters:
Name Type Description
mData Map the instrument data being received