Exit Queue
Queue a big sell so it fills into buys at the curve's price, never below a floor.
A big sell can wait in the Exit Queue instead of hitting the curve. Every instant buy fills from the queue first, at the curve's price and never below the seller's floor, so the chart doesn't drop. The seller is paid automatically as it fills.
Queue a sell
curl https://usewoop.xyz/api/v1/exits \
-H "Authorization: Bearer woop_…" \
-H "Content-Type: application/json" \
-d '{ "wallet": "8hyP…vMh6", "mint": "7xKX…", "amount": "20000000", "floorPct": -5 }'amount is in coins. floorPct is the lowest price you'll accept against the price now: -5 means up to 5% below (the default). It returns transaction and lastValidBlockHeight to sign and send.
See the queue
GET /api/v1/coins/{mint}/queue?wallet=… returns the orders waiting now (orders, each with its slot) and the queue's history: every order it has had (waiting, filled, partly filled or cancelled) with what each sold and got.
Cancel
curl https://usewoop.xyz/api/v1/exits/cancel \
-H "Authorization: Bearer woop_…" \
-H "Content-Type: application/json" \
-d '{ "wallet": "8hyP…vMh6", "mint": "7xKX…", "slot": 0 }'The unsold coins and anything the order has sold for go back to the wallet.
