-
Notifications
You must be signed in to change notification settings - Fork 36
Liquidity-depth & slippage estimation endpoint #84
Copy link
Copy link
Open
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:apiREST / GraphQL APIREST / GraphQL APIarea:pricingBest-route / mathBest-route / mathdifficulty:advancedMulti-day projectMulti-day projecthelp wantedExtra attention is neededExtra attention is neededpoints:200Advanced tier — 200 Wave pointsAdvanced tier — 200 Wave points
Description
Activity
Metadata
Metadata
Assignees
Labels
Stellar WaveIssues in the Stellar wave programIssues in the Stellar wave programarea:apiREST / GraphQL APIREST / GraphQL APIarea:pricingBest-route / mathBest-route / mathdifficulty:advancedMulti-day projectMulti-day projecthelp wantedExtra attention is neededExtra attention is neededpoints:200Advanced tier — 200 Wave pointsAdvanced tier — 200 Wave points
Background
Bots need more than a spot price — they need to know how much a given trade size will move the price. A depth/slippage endpoint answers "what price for size X?".
What to build
From order-book / AMM pool data, expose an endpoint that returns expected execution price and slippage for a requested trade size, plus available depth at price levels.
Key files
src/pricing/depth.ts(new)src/api/rest.tsAcceptance criteria
End of catalog (232 issues)
Required: Before submitting, join the contributor Telegram so your work can be tracked and counted toward the Stellar Wave: https://t.me/+fxHXq8f1SwlkZDBk