accuracy#
API documentation for tradeexecutor.utils.accuracy Python module in Trading Strategy.
Module description#
Make sure we use accurate enough Decimal math to cover token asset quantity.
Ethereum assets have 18 decimals.
Functions#
|
Ensure that we hit precise zero. |
Make sure we can handle Decimals up to 18 digits. |
|
|
Make sure our calculated quantity does not exceed max available tokens. |
|
Decimal safe sum(). |