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

Run-time environment CPU queries.

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

Functions to determine whether a series is monotonically increasing or decreasing.

tradeexecutor.utils.jupyter_notebook_folder

Normalise folder locations across different Jupyter run-time environment.

tradeexecutor.utils.jupyter_notebook_name

Get Jupyter notebook filename.

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_function

Python function utilities.

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

Sort helpers.

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.