I'm trying to download TimeAndSales transaction data using the TRTH Java API. I've adapted the quick start template by setting the message type:
MessageType[] types = { new MessageType("TimeAndSales", new ArrayOfString(fields)) };
And I set the request type from intraday to the following:
request.setRequestType(RequestType.TimeAndSales);
But I'm getting the following error when I run the code:
Bad request --> Invalid transaction type TimeAndSales for RequestType.TimeAndSales
I viewed the messageType.java and the requestType.java and can't seem to see any indication of the types of transaction messages I should be setting to get Time and Sales to work.
Any help is greatly appreciated. Thank you.