Based on version 9.79
Ported from official IB library and updated to support RX TPL and DI
Nuget library
Install-Package Wikiled.IB.Market.Api
using (var client = new IBClientWrapper(factory))
{
client.Connect("127.0.0.1", 7496, 1);
IObservable<HistoricalDataMessage> amd = client.GetManager<HistoricalDataManager>()
.Request(
new MarketDataRequest(
GetMDContract("VXX"),
new DateTime(2016, 01, 01).ToUtc(client.TimeZone),
new Duration(5, DurationType.Years),
BarSize.Day,
WhatToShow.ASK));
HistoricalDataMessage[] data = await amd.ToArray();
}