Fetch positions by address
Last updated
Was this helpful?
Last updated
Was this helpful?
You can execute this query on our Optimism subgraph, .
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
, or TERMINATED
)
Block at which the position was created
Timestamp of the block at which the position was created