utils#

API documentation for tradeexecutor.utils Python module in Trading Strategy.

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.binance

Binance data loading.

tradeexecutor.utils.blockchain

Blockchain related utilities.

tradeexecutor.utils.crossover

Provides functions to detect crossovers.

tradeexecutor.utils.dataclass

Dataclass helpers.

tradeexecutor.utils.default_strategies

Helper for default strategies distributed with the package itself.

tradeexecutor.utils.format

tradeexecutor.utils.fullname

Python helpers.

tradeexecutor.utils.leverage_calculations

Helpers for leverage calculations.

tradeexecutor.utils.notebook

Jupyter notebook utilities for backtesting.

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.state_downloader

tradeexecutor.utils.summarydataframe

Summary table dataframe helpers.

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.