woopwoop

Trade

Buy and sell woopcurve coins instantly or in a Fair Block.

POST /api/v1/trades builds a buy or a sell for a wallet and returns a quote and the transaction to sign.

bash
curl https://usewoop.xyz/api/v1/trades \
  -H "Authorization: Bearer woop_…" \
  -H "Content-Type: application/json" \
  -d '{ "wallet": "8hyP…vMh6", "mint": "7xKX…", "side": "buy", "amount": "0.25", "mode": "instant" }'
Field
walletrequiredThe trader's wallet
mintrequiredThe coin
siderequiredbuy or sell
amountrequiredBuys: pair token to spend (fees included). Sells: coins to sell
modeoptionalinstant (default) or block for a Fair Block order
slippageBpsoptionalInstant trades: the most the price may move, in basis points
payWithoptionalsol to pay with SOL on a non-SOL pair (swapped in the same transaction)
refoptionalA promoter wallet: it earns 0.25% of the trade
json
{
  "transaction": "AQAAAA…",
  "lastValidBlockHeight": 312345690,
  "side": "buy",
  "mode": "instant",
  "amountIn": "0.25",
  "expectedOut": "4580211.33",
  "minOut": "4534409.21",
  "priceImpactPct": 0.84,
  "fee": "0.00375",
  "exitQueue": { "coins": "1200000", "quote": "0.065", "dip": false, "discountPct": 0 },
  "block": null
}

Sign transaction with the trader's wallet and post it to /api/v1/transactions.

Instant or Fair Block

  • Instant fills now. A buy takes from the Exit Queue first (no price impact), then the curve. Instant sells cost more and take at most a fifth of a position at a time.
  • Fair Block (mode: "block") joins the open block. Every order in it settles together, at one price, a few seconds later, and is paid out automatically. Nobody can jump or sandwich it.

After graduation, trades go through the coin's WAMM pool.

Earn on trades you bring

Pass your own wallet as ref and it earns 0.25% of every trade your app sends, paid in the pair token. See share links.