You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The round_down function used in client.create_order and client.create_market_order seems to suffer from floating point precision issues.
See the attached example that demonstrates unexpected behavior when rounding certain values, which causes the makerAmount and takerAmount to be slightly off .
Perhaps using the Decimal library here would fix this issue.