AssetManagementMode#

API documentation for tradeexecutor.strategy.execution_model.AssetManagementMode Python class in Trading Strategy framework.

class AssetManagementMode[source]#

Bases: Enum

Default execution options.

What kind of trade instruction execution model the strategy does.

Give options for command line parameters and such.

__init__(*args, **kwds)#

Methods

is_live_trading()

Is this a live trading setup.

is_vault()

Are we trading using a vault smart contract

Attributes

dummy

Does not make any trades, just captures and logs them

hot_wallet

Server-side normal Ethereum private eky account

enzyme

Trading using Enzyme Protocol vault, single oracle mode

velvet

Trading using Velvet Capital vault, single oracle mode

lagoon

Trading using Lagoon Protocol vault, single oracle mode

backtest

Simulate execution using backtest data

dummy = 'dummy'#

Does not make any trades, just captures and logs them

hot_wallet = 'hot_wallet'#

Server-side normal Ethereum private eky account

enzyme = 'enzyme'#

Trading using Enzyme Protocol vault, single oracle mode

velvet = 'velvet'#

Trading using Velvet Capital vault, single oracle mode

lagoon = 'lagoon'#

Trading using Lagoon Protocol vault, single oracle mode

backtest = 'backtest'#

Simulate execution using backtest data

  • Does not make any real trades

  • Does not connect to any network or blockchain

is_live_trading()[source]#

Is this a live trading setup.

Are we executing against a blockchain (including test chains).

Return type:

bool

is_vault()[source]#

Are we trading using a vault smart contract

Return type:

bool