#finance #library #interactive-brokers

ib_tws_tokio

An Interactive Broker's TWS API client for Tokio

11 releases

0.2.0 Nov 24, 2022
0.2.0-alpha.1 Nov 23, 2022
0.1.0 Nov 22, 2022
0.1.0-beta.4 Nov 21, 2022
0.1.0-alpha.4 Nov 19, 2022

#521 in Asynchronous

24 downloads per month

LGPL-3.0-only

300KB
8K SLoC

Interactive Brokers TWS API - Tokio

Examples

A transport implementation using Tokio, intended to be used with the ib_tws_core::AsyncClient.

Usage

let client = {
	let transport = ib_tws_tokio::Transport::connect(
		"127.0.0.1:4001".parse().unwrap(),
		Duration::from_secs(5),
	)
	.await?;
	ib_tws_core::AsyncClient::setup(transport, 0).await?
};
info!(version = client.server_version(), "connected to client");

Dependencies

~6–11MB
~183K SLoC