getUserOpenOrders function retrieves all open orders for a specific trader on the Exponent orderbook.
Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
user | PublicKey | Yes | The trader’s wallet public key |
Returns
Returns an array ofOffer objects with the following fields:
type- The offer type (BuyYT or SellYT)priceApy- The price in APY termsamount- The offer amountuserEscrow- The user’s escrow public keyexpiryAt- Unix timestamp when the offer expirescreatedAt- Unix timestamp when the offer was createdisVirtual- Whether this is a virtual offerofferIndex- The index of the offer (used for removal)