Help with bookpublisher


Macrux <kmacrux@...>
 

Hi there,

Could someone, please, give me a hand with the MamdaBookPublisher.java example, I haven't been able to run it, I mean, I don't know which are the arguments I've to pass. Thank you all.

kind regards,

Nestor


Stuart Beattie <s.beattie@...>
 

Hi Nestor,

 

The key command line arguments for MamdaBookPublisherJava are:

 

-SP – the source name on which book data is published.

-s Symbol to publish (can be passed multiple times)

-p Participant ID (optional)

 

As well as standard options like –tport, -m etc.

 

Any market data subscriber example application, eg MamaListen, can be used to listen to the dummy orderbook data that MamdaBookPublisherJava publishes.

 

Example command line for MamdaBookPublisherJava:

 

java -cp com.wombat.mamda.examples.MamdaBookPublisher -SP STUARTB2 -s STUBOOK -m wmw -tport pub

 

Corresponding MamaListen command:

 

java com.wombat.mama.examples.MamaListen -S STUARTB2 -s STUBOOK -m wmw -tport sub

 

MamaListen output:

 

STUBOOK Type: BOOK_INITIAL Status: OK

   MdMsgType            | 1    | U8         | 16

    wNumLevels           | 651  | I16        | 0

    MamaSenderId         | 20   | U64        | 5841862551486352289

    MdSeqNum             | 10   | U32        | 1

    MdMsgStatus          | 2    | U8         | 0

TRANSPORT CONNECTED!

STUBOOK Type: BOOK_UPDATE Status: OK

   MdMsgType            | 1    | U8         | 17

    wPriceLevels         | 699  | VECTOR_MSG |

   {

      wPlPrice             | 653  | F64        | 100.0

       wPlSize              | 655  | U32        | 1000

       wPlSizeChange        | 656  | U32        | 1000

       wPlTime              | 658  | TIME       | 2015-07-10 15:49:27.208294

       wPlNumAttach         | 659  | U32        | 0

    }

   {

      wPlPrice             | 653  | F64        | 101.0

       wPlSize              | 655  | U32        | 2000

       wPlSizeChange        | 656  | U32        | 2000

       wPlTime              | 658  | TIME       | 2015-07-10 15:49:27.212162

       wPlNumAttach         | 659  | U32        | 0

    }

   wNumLevels           | 651  | U32        | 2

    MdMsgStatus          | 2    | U8         | 0

    MdSeqNum             | 10   | U32        | 2

    MamaSenderId         | 20   | U64        | 5841862551486352289

 

Note that for MamaBookPublisherJava to work, it will also need to subscribe to another source which is publishing a MAMA dictionary.

 

Thanks

Stuart

 

From: openmama-dev-bounces@... [mailto:openmama-dev-bounces@...] On Behalf Of Macrux
Sent: 02 July 2015 15:59
To: openmama-dev@...
Subject: [Openmama-dev] Help with bookpublisher

 

Hi there,

Could someone, please, give me a hand with the MamdaBookPublisher.java example, I haven't been able to run it, I mean, I don't know which are the arguments I've to pass. Thank you all.

kind regards,

Nestor