wboayue / rust-ibapi

An implementation of the Interactive Brokers API for Rust
MIT License
38 stars 17 forks source link

Examples of getting different tick types as RT Volume #98

Open Pl0414141 opened 1 year ago

Pl0414141 commented 1 year ago

Hi,

Can you provide a minimal example of getting RT Volume (tickid 48) or another of list as Trade Count (tickid 54) with the aim of know how create a code to get these type of ticks?

https://interactivebrokers.github.io/tws-api/tick_types.html

Thanks a lot!

wboayue commented 1 year ago

I ported the order builder is rust here https://docs.rs/ibapi/latest/ibapi/orders/order_builder/fn.bracket_order.html https://github.com/wboayue/rust-ibapi/blob/0986fa70799528e2aa9320ebb9f22b718fdd74f6/src/orders/order_builder.rs#L386