var end = new DateTimeOffset(beginDate, TimeSpan.Zero);
var start = beginDate.AddDays(-1);
var retExpandedChain = searchcontext.HistoricalCriteriaSearch(HistoricalCriteriaSearchRequest.Create(
null, // regex pattern, this pattern finds all instruments that end with ".N".
null, //description
null, //bond type
null, //contributer
null, //country
null, //currency
new[] { "NMQ" }, //exchange
null, //future months code
null, //instrument type
null,//option month
null, //option type
null, //coupon rate
null, //strike
null, //expiration date
null,//maturity date
DateTimeRange.Create(start, end),//range
HistoricalResultsBy.Ric));
I also tried NMQ,NSQ,NYQ,PCQ exchange codes. This used to work in TrthV1
I get error Request from client is invalid. { Detail : Invalid exchange , MessageId : REQ_0001 }