Skip to content

fourbytes/ib_tws_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Brokers TWS API (Rust)

Examples

Overview

Min. TWS API Version: 149

Goals

  • Keep core code separate so it can be used in both async and sync clients.
  • Compatible with stable Rust.

Non Goals

  • Design parity with the official API.

Usage

Tokio

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");

Crates

crates.io docs.rs

Contains core components including messages and encoding/decoding utilities, as well as a high-level AsyncClient.

crates.io docs.rs

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

Credits

ib_tws_core is forked from chrisdamba's ib_async.

About

Rust crates for the IB TWS API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages