Skip to main content
The getUserOpenOrders function retrieves all open orders for a specific trader on the Exponent orderbook.

Usage

Parameters

Returns

Returns an array of Offer objects with the following fields:
  • type - The offer type (BuyYT or SellYT)
  • priceApy - The price in APY terms
  • amount - The offer amount
  • userEscrow - The user’s escrow public key
  • expiryAt - Unix timestamp when the offer expires
  • createdAt - Unix timestamp when the offer was created
  • isVirtual - Whether this is a virtual offer
  • offerIndex - The index of the offer (used for removal)