dust#

API documentation for tradeexecutor.strategy.dust Python module in Trading Strategy.

Module description#

Dust amounts and epsilon rounding.

Because of very small and very accurate token units, a lot of trades may end up having rounding artifacts. We need to deal with these rounding artifacts by checking for “dust”.

Functions#

get_dust_epsilon_for_asset(asset)

Get the dust threshold for a trading pair.

get_dust_epsilon_for_pair(pair)

Get the dust threshold for a trading pair.

get_relative_epsilon_for_asset(asset)

Get the relative threshold for a trading pair.

get_relative_epsilon_for_pair(pair)