Greetings All
I am using TRTH API to request EndOfDay Data.
I set rs.requestInGMT = true; and rs.displayInGMT = true; But the result is still for local exchange time as below, can anyone show me what is wrong?
#RIC Date[L] Time[L] MSFT.O 10-OCT-2016 MSFT.O 10-OCT-2016 MSFT.O 11-OCT-2016As followed is the code:
DateRange dtrange = new DateRange(); dtrange.start = DateTime.Today.AddDays(-1); dtrange.end = DateTime.Today; TimeRange tmrange = new TimeRange(); tmrange.start = "0:00:00"; tmrange.end = "23:59:59.999"; Instrument[] instList = { new Instrument { code = "MSFT.O" } }; Data[] domains = { new Data { field = FieldType.Domain, value = "EQU" } }; MessageType[] messageTypes = api.GetMessageTypes(ref creds, domains, RequestType.EndOfDay); LargeRequestSpec rs = new LargeRequestSpec(); rs.delivery = deliveryPushButton.Checked ? RequestDelivery.Push : RequestDelivery.Pull; rs.friendlyName = "MSFT EoD demo"; rs.requestInGMT = true; rs.displayInGMT = true; rs.displayMicroseconds = false; rs.dateRange = dtrange; rs.timeRange = tmrange; rs.instrumentList = instList; rs.requestType = RequestType.EndOfDay; rs.messageTypeList = messageTypes; rs.dateFormat = RequestDateFormat.DDMMMYYYY; rs.disableDataPersistence = true; rs.includeCurrentRIC = false; reqId = api.SubmitFTPRequest(ref creds, rs);