Skip to main content

Offer

The Offer struct represents a single order on the orderbook.

Offer Structure

Fields

OfferType

Virtual Offers

When virtual_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 order
  • virtual_offer = 1: Virtual PT order (converted via strip/merge)