accuracy#

tradeexecutor.utils.accuracy Python module in Trading Strategy framework.

Module description#

Make sure we use accurate enough Decimal math to cover token asset quantity.

Ethereum assets have 18 decimals.

Functions#

setup_decimal_accuracy()

Make sure we can handle Decimals up to 18 digits.

sum_decimal(numbers)

Decimal safe sum().