is_order_pending

Documentation for eth_defi.gmx.order_tracking.is_order_pending function.

is_order_pending(web3, order_key, chain)

Quick check if an order is still pending in the DataStore.

This is a lighter-weight alternative to check_order_status() when you only need to know if the order is still pending, without needing the execution receipt.

Parameters
  • web3 (web3.main.Web3) – Web3 instance

  • order_key (bytes) – The 32-byte order key

  • chain (str) – Chain name

Returns

True if order is still pending, False if executed/cancelled

Return type

bool