GMXOrderVerificationResult

Documentation for eth_defi.gmx.verification.GMXOrderVerificationResult Python class.

class GMXOrderVerificationResult

Bases: object

Result 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

success

order_key

status

account

execution_price

size_delta_usd

size_delta_in_tokens

collateral_delta

pnl_usd

price_impact_usd

is_long

position_key

collateral_token

collateral_token_price

fees

reason

reason_bytes

decoded_error

error_selector

event_count

event_names

Methods 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
Return type

None