UnknownTokenPositionFix#

API documentation for tradeexecutor.strategy.account_correction.UnknownTokenPositionFix Python class in Trading Strategy framework.

class UnknownTokenPositionFix[source]#

Bases: Enum

How to fix tokens we see in the wallet, but for which we do not have a position open in the state.

__init__()#

Attributes

open_missing_position

Try to match the token with a spot position

transfer_away

Attempt to transfer unknown tokens to the hot wallet

open_missing_position = 'open_missing_position'#

Try to match the token with a spot position

Open a new spot position with a fix trade for the token

transfer_away = 'tranfer_away'#

Attempt to transfer unknown tokens to the hot wallet