Skip to main content
Virtual offers let you trade PT on an orderbook that internally quotes everything in YT. When you set virtualOffer: true, the orderbook converts between PT and YT using strip and merge operations — no extra steps on your end.

Available Routes

All four routes share the same underlying liquidity:

How It Works

Strip (SY → PT + YT)

When you buy PT (virtual SellYt), the orderbook:
  1. Takes SY from you
  2. Strips SY into PT + YT
  3. Gives PT to you
  4. Uses the YT to fill against existing YT sell orders

Merge (PT + YT → SY)

When you sell PT (virtual BuyYt), the orderbook:
  1. Takes PT from you
  2. Obtains YT from matched buy orders
  3. Merges PT + YT into SY
  4. Gives SY to you

Direct YT Trading

Non-virtual orders trade YT directly against counter-orders — no strip or merge required.

Using Virtual Offers in the SDK

Pass virtualOffer: true when posting or executing PT orders:
Use getQuote with QuoteDirection.SY_TO_PT or QuoteDirection.PT_TO_SY to preview virtual order execution before submitting.