Fetch positions by address
Execution
You can execute this query on our Optimism subgraph, here.
Query
Get all positions from a user by wallet address. This query will return information like:
Name of the token used to buy
Name token to be bought
Total deposited into the position (expressed in
from
token with applied decimals)Total withdrawn from the position (expressed in
to
token with applied decimals)Current will hold the current state of the position.
Rate with which the position will swap
Remaining swaps of the position
Swap interval
Interval (expressed in
seconds
)
Status (
ACTIVE
, orTERMINATED
)Block at which the position was created
Timestamp of the block at which the position was created
Response
Last updated