utils#

tradeexecutor.utils Python module in Trading Strategy framework.

Module description#

Utility functions.

Generic utility functions.

Submodules#

tradeexecutor.utils.accuracy

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

tradeexecutor.utils.blockchain

Blockchain related utilities.

tradeexecutor.utils.dataclass

Dataclass helpers.

tradeexecutor.utils.format

tradeexecutor.utils.fullname

Python helpers.

tradeexecutor.utils.price

Price insight helpers.

tradeexecutor.utils.python_module_loader

Python module loading helpers.

tradeexecutor.utils.ring_buffer_logging_handler

A Python logger that keeps logs in a ring buffer in-memory.

tradeexecutor.utils.timer

Function wall clock time tracking.

tradeexecutor.utils.timestamp

Timestamp and timedelta helpers

tradeexecutor.utils.typing

Typing helpers.

tradeexecutor.utils.url

URL helpers.