The Lab

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


If a Customer request, namely SubmitOrder, ModifyOrder, and CancelOrder, results in no acknowledgement from the venue within some configurable amount of time, the Whisperer APIServer will send an EventReport message to be processed by the onEventReport callback in the MFHandler.

This EventReport message will have the eventCode field set to ERROR and the eventContents field will contain a JSON-encoded object. This allows for arbitrary fields to be added on a per-venue basis. Upon receiving an error event, the Customer may search the contents for "format": "json"
and proceed to parse as JSON if found. Example contents:

{
"format": "json",
"source": "marketfactory",
"type": "OrderError",
"orderID": LongLong,
"clOrdID": "String",
"reason": "No order response received within time constraint: 0.5s"
}