Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Query all liquidity pools an account is participating in. #4005

Closed
Shaptic opened this issue Oct 11, 2021 · 0 comments · Fixed by #4043
Closed

Feature Request: Query all liquidity pools an account is participating in. #4005

Shaptic opened this issue Oct 11, 2021 · 0 comments · Fixed by #4043
Assignees
Labels
amm support cap 38 (automated market makers) in horizon feature request

Comments

@Shaptic
Copy link
Contributor

Shaptic commented Oct 11, 2021

What problem does your feature solve?

It can be unwieldy to determine which pools an account is participating in if you don't track this client-side.

What would you like to see?

GET /liquidity_pools?account=<id> returning a list of pools that have <id> as a participant (in other words, any pools to which <id> has a trustline established).

What alternatives are there?

One can query an account to get its balances, then query the specific liquidity pool IDs for each of the pool shares. One can also store the pool IDs locally whenever the account starts participating in a pool.

@Shaptic Shaptic added feature request amm support cap 38 (automated market makers) in horizon labels Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
amm support cap 38 (automated market makers) in horizon feature request
Projects
None yet
2 participants