agent0.core.hyperdrive.agent.trade_result
The resulting deltas of a market action
Classes
A data object that stores all information of an executed trade. |
Module Contents
- class agent0.core.hyperdrive.agent.trade_result.TradeResult
A data object that stores all information of an executed trade.
- trade_successful: bool
The status of the trade.
- account: eth_account.signers.local.LocalAccount | None = None
The agent that was executing the trade.
- wallet: agent0.core.hyperdrive.agent.hyperdrive_wallet.HyperdriveWallet | None = None
The wallet of the agent that was executing the trade.
- policy: agent0.core.hyperdrive.policies.HyperdriveBasePolicy | None = None
The policy that was executing the trade.
- trade_object: agent0.core.base.Trade[agent0.core.hyperdrive.agent.hyperdrive_actions.HyperdriveMarketAction] | None = None
The trade object for the trade.
- hyperdrive_event: pypechain.core.BaseEvent | None = None
The transaction receipt of the trade.
- contract_call: dict[str, Any] | None = None
A dictionary detailing the underlying contract call.
- is_slippage: bool = False
If the trade failed due to slippage.
- is_invalid_balance: bool = False
If the trade failed due to invalid balance.
- is_insufficient_allowance: bool = False
If the trade failed due to insufficient approval.
- is_min_txn_amount: bool = False
If the trade failed due to minimum transaction amount.
- is_long_proceeds_less_than_fees: bool = False
If the trade failed due long proceeds less than fees.
- block_number: int | None = None
The block number of the transaction.
- block_timestamp: int | None = None
The block timestamp of the transaction.
- exception: Exception | None = None
The exception that was thrown.
- orig_exception: Exception | list[Exception] | BaseException | None = None
If exception was wrapped, the original exception that was thrown.
- pool_config: dict[str, Any] | None = None
The pool config information.
- pool_info: dict[str, Any] | None = None
The pool info information.
- checkpoint_info: dict[str, Any] | None = None
The checkpoint info information.
- contract_addresses: dict[str, Any] | None = None
The contract addresses.
- additional_info: dict[str, Any] | None = None
Additional information used for crash reporting.
- raw_transaction: dict[str, Any] | None = None
The raw transaction sent to the chain.
- raw_pool_config: dict[str, Any] | None = None
The raw pool config.
- raw_pool_info: dict[str, Any] | None = None
The raw pool info.
- raw_checkpoint: dict[str, Any] | None = None
The raw checkpoint info.
- anvil_state: str | None = None
The dumped anvil state.