Documentation Index
Fetch the complete documentation index at: https://v2-docs.exponent.finance/llms.txt
Use this file to discover all available pages before exploring further.
Offer
The Offer struct represents a single order on the orderbook.Offer Structure
Fields
| Field | Type | Description |
|---|---|---|
amount | u64 | Order size in lamports |
expiry_at | u32 | Unix timestamp when the offer expires |
created_at | u32 | Unix timestamp when the offer was created |
virtual_offer | u8 | 1 if this is a virtual (PT) order, 0 otherwise |
offer_type_flag | u8 | Offer type (SellYt or BuyYt) |
fill_or_kill | u8 | 1 if order must fill completely or cancel |
OfferType
| Variant | Value | Description |
|---|---|---|
SellYt | 1 | Selling YT for SY |
BuyYt | 2 | Buying YT with SY |
Virtual Offers
Whenvirtual_offer is set to 1, the offer represents a PT order rather than a direct YT order. The orderbook converts between PT and YT using strip/merge at the taker level.
virtual_offer = 0: Direct YT ordervirtual_offer = 1: Virtual PT order (converted via strip/merge)