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: market data and trading. They differ in the following manner:

• Market data Subscriptions: The Customer Application must specify the Feed and Market combination in which it is interested: subscribeMD(int feedID, int marketID).
• Trading: The Customer Application must only specify the Feed on which it wants trading enabled. Once the trading subscription is made: subscribeOF(int feedID) and an acknowledgement is received, the Customer Application is able to place trades on the specified Feed.

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 disable subscriptions, the Customer Application must call the corresponding unsubscribeMD()
or unsubscribeOF() method.

If the Customer Application becomes 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).