Search…
Querying our subgraph
We use TheGraph to index and fetch all open orders which can be used to cancel orders, list open orders, and view all past orders. For your respective chain use the following subgraph API endpoint
You can use the following to fetch all orders that belong to a particular account
1
query GetOrdersByOwner($owner: String) {
2
orders(where:{owner:$owner,status:open}) {
3
id
4
owner
5
createdAt
6
module
7
inputToken
8
outputToken
9
inputAmount
10
minReturn
11
witness
12
secret
13
status
14
}
15
}
Copied!
Last modified 6mo ago
Copy link