GMXOrderVerificationResult
Documentation for eth_defi.gmx.verification.GMXOrderVerificationResult Python class.
- class GMXOrderVerificationResult
Bases:
objectResult of GMX order execution verification.
This dataclass contains the verification result and extracted execution details from GMX events.
- Variables
success – Whether the order executed successfully
order_key – The order key (32-byte identifier)
status – Order status: “executed”, “cancelled”, or “frozen”
account – Account address that owns the order
execution_price – Execution price (converted to float USD)
size_delta_usd – Size delta in USD (converted to float)
pnl_usd – Realised PnL in USD (converted to float)
price_impact_usd – Price impact in USD (converted to float)
fees – Execution fees from GMX
reason – Error reason string (for failed orders)
decoded_error – Decoded error message
error_selector – 4-byte error selector hex string
event_count – Number of GMX events in the transaction
event_names – List of event names found
Attributes summary
successorder_keystatusaccountexecution_pricesize_delta_usdsize_delta_in_tokenscollateral_deltapnl_usdprice_impact_usdis_longposition_keycollateral_tokencollateral_token_pricefeesreasonreason_bytesdecoded_errorerror_selectorevent_countevent_namesMethods summary
__init__(success[, order_key, status, ...])- __init__(success, order_key=None, status=None, account=None, execution_price=None, size_delta_usd=None, size_delta_in_tokens=None, collateral_delta=None, pnl_usd=None, price_impact_usd=None, is_long=None, position_key=None, collateral_token=None, collateral_token_price=None, fees=None, reason=None, reason_bytes=None, decoded_error=None, error_selector=None, event_count=0, event_names=<factory>)
- Parameters
success (bool) –
status (Optional[Literal['executed', 'cancelled', 'frozen']]) –
account (Optional[eth_typing.evm.HexAddress]) –
collateral_token (Optional[eth_typing.evm.HexAddress]) –
fees (Optional[eth_defi.gmx.events.OrderFees]) –
event_count (int) –
- Return type
None