lbilli / rib

An R implementation of Interactive Brokers API
GNU General Public License v3.0
34 stars 7 forks source link

Decimal vs floating point data type for sizes #11

Open lbilli opened 2 years ago

lbilli commented 2 years ago

As of API v163, official IB implementations (except C++, see InteractiveBrokers/tws-api#1061) started reporting market data sizes and volumes as decimals instead of integers.

Here numeric (i.e. standard 64-bit floating point) are used instead, which limits the precision to ~16 decimal digits.