Skip to content

AndMu/Wikiled.IB.Market.Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Brockers API C#

Based on version 9.79

Ported from official IB library and updated to support RX TPL and DI

Nuget library

nuget

Install-Package Wikiled.IB.Market.Api

Configure AutoFac

Receive Historical Data

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();                
}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages