sparkstartconsulting / IBKR-API-Rust

Port of Interactive Broker's trading API written in Rust
MIT License
138 stars 41 forks source link

API version upgrade request #33

Open orbli opened 2 years ago

orbli commented 2 years ago

Hello. When using your library, I receive the following message:

Your API version does not support fractional size rules. Please upgrade to a minimum version 163

I'm subscribing the following:

let contract = {
            let mut c = Contract::default();
            c.symbol = "eth".to_string();
            c.sec_type = "crypto".to_string();
            c.currency = "usd".to_string();
            c.exchange = "paxos".to_string();
            c
};

app.lock().await.req_tick_by_tick_data(req_id, &contract, TickByTickType::AllLast, 0, false)?;
Uzaaft commented 2 years ago

https://www.reddit.com/r/interactivebrokers/comments/q2923p/ib_api_weird_error/

sparkstartconsulting commented 2 years ago

I created a branch to upgrade to 10.12.01. I don't have a lot of time to work on this much anymore, but will as time allows. Contributors are welcome. The branch is "Version_1012.01_in_progress"

EMCP commented 1 year ago

question on this @sparkstartconsulting , I am thinking to start wrapping the C++ library itself.. does this code already do that or is it written all in Rust and mimicing the C++ library calls ? I am new to rust but eager to get off of C++ in order to increase safety and development output.. but want to make it as seamless as possible to keep up with whatever IBKR releases/changes in their API

EDIT: also thank you for doing this.. C++ for me has been interesting to try and learn but boy am I slow at it.. and I am eager to build something that can parallelize the calls properly

Uzaaft commented 1 year ago

@EMCP The code does not use the C++ library. A quick look at the code and the cargo.toml file would've answered your question, next time you might have the question for another crate.