Skip to content

GET /positions/best-cloneable, server-side best parent selection#25

Merged
jonathanchw merged 3 commits intodevelopfrom
feat/api-best-cloneable-endpoint
Mar 13, 2026
Merged

GET /positions/best-cloneable, server-side best parent selection#25
jonathanchw merged 3 commits intodevelopfrom
feat/api-best-cloneable-endpoint

Conversation

@jonathanchw
Copy link
Collaborator

@jonathanchw jonathanchw commented Mar 11, 2026

Adds GET /positions/best-cloneable?collateral=0x... that returns the highest-price cloneable parent position for a given collateral, filtering out closed, denied, expired, in-cooldown, under-collateralized, and challenged positions. Moves this logic from the bapp client to the API.

related to : JuiceDollar/bapp#150

@jonathanchw jonathanchw requested a review from lapatric March 11, 2026 18:59
@jonathanchw jonathanchw merged commit dde10a3 into develop Mar 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant