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

[PFT-839] Add additional fields to orders query #47

Merged
merged 2 commits into from
Apr 23, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/subgraph/orders/subgraphQueries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,13 @@ export const fetchOrdersByUserQuery = (userAddress: string, count: number = 10,
orderDirection: desc
) {
id
market {
id
market {
id
pyth {
id
price
lastUpdatedTimestamp
}
}
user { id }
deadline
Expand Down Expand Up @@ -93,6 +98,11 @@ export const fetchOrdersByIdQuery = (orderId: string) =>
}
market {
id
pyth {
id
price
lastUpdatedTimestamp
}
}
orderType
isLong
Expand Down
Loading