Once a connection to the Whisperer server is established, the Customer Application needs to make subscriptions to the Feeds and Markets in which it is interested. There are two types of subscriptions: pricing and trading. They differ in the following manner:
• Pricing subscribePricing(int feedID, String clSubID)
• Trading subscribeTrading(int feedID, String clSubID)
Note that the subscription request identifier clSubID should be used to track the subscription request. Once subscribed to both pricing and trading, the client will receive quote requests for instruments to stream to the venue.
When making subscriptions the Customer Application should check the return code. For example, if the provided feed id is invalid the method will return APIResult.INVALID_FEED and the subscription request will not be sent to the Whisperer server.
To stop receiving quote requests call the corresponding unsubscribePricing() or unsubscribeTrading()
method.
If the Customer Application is disconnected from the Whisperer server, all outstanding subscriptions to both market-data and trading are automatically cancelled. Subscriptions do not persist across disconnections (unless the client is using sticky subscriptions).