Crates.io | ib_tws_tokio |
lib.rs | ib_tws_tokio |
version | 0.2.0 |
source | src |
created_at | 2022-11-19 05:17:34.584935 |
updated_at | 2022-11-24 05:37:21.100041 |
description | An Interactive Broker's TWS API client for Tokio |
homepage | |
repository | https://github.com/fourbytes/ib_tws_rs |
max_upload_size | |
id | 718389 |
size | 37,365 |
A transport implementation using Tokio, intended to be used with the ib_tws_core::AsyncClient
.
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");