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

Add database API to query for liquidity pools by any one asset in the pool #2365

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

abitmore
Copy link
Member

This PR adds a new database API which is more friendly than the old get_liquidity_pools_by_asset_a and get_liquidity_pools_by_asset_b API pair:

  • get_liquidity_pools_by_one_asset( asset, limit, start_pool_id, with_statistics )

The api_helper_indexes plugin is required for this API.

Resolves #2356.

@abitmore abitmore added this to the 5.2.0 - Feature Release milestone Feb 27, 2021
@abitmore abitmore linked an issue Feb 27, 2021 that may be closed by this pull request
17 tasks
@abitmore abitmore merged commit 1c49a4c into develop Mar 3, 2021
@abitmore abitmore deleted the lp-secondary-index branch March 3, 2021 17:37
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.

More friendly API to find liquidity pools with one asset
1 participant