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

feat: add query trader positions #985

Merged
merged 10 commits into from
Oct 8, 2022
Merged

feat: add query trader positions #985

merged 10 commits into from
Oct 8, 2022

Conversation

matthiasmatt
Copy link
Contributor

Description

Add a query for all positions from a trader

Purpose

used by front end.

@matthiasmatt matthiasmatt requested a review from a team as a code owner October 5, 2022 23:03
@matthiasmatt matthiasmatt enabled auto-merge (squash) October 5, 2022 23:04
Copy link
Contributor

@NibiruHeisenberg NibiruHeisenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check the linter and tests?

x/perp/keeper/grpc_query.go Outdated Show resolved Hide resolved
@Unique-Divine
Copy link
Member

Since we have the chance to throw in breaking changes, can the two queries be called "position" and "all-positions" instead of "trader-position" and "trader-positions"?

The prefix, "trader", seems like an unnecessary qualifier since there's no other type of position.

x/perp/client/cli/query.go Outdated Show resolved Hide resolved
x/perp/keeper/grpc_query.go Outdated Show resolved Hide resolved
x/perp/keeper/grpc_query.go Outdated Show resolved Hide resolved
@matthiasmatt matthiasmatt merged commit c79db67 into master Oct 8, 2022
@matthiasmatt matthiasmatt deleted the mat/query-positions branch October 8, 2022 18:40
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.

feat: A query for all of a trader's positions (every vpool)
3 participants