apipositions
Time travel for positions: as-of-ledger and from-to history reads
Every position is recorded per ledger and kept, so the Positions API can answer questions about the past as well as the present.
- Pass
as_of_ledgerto any positions route to read a wallet exactly as it stood at that ledger. - Walk a range with from-to history reads on a Blend pool, on an account’s Blend summary, and on an Aquarius pair.
- Current state is derived from the same history, so a point-in-time read and a live read never disagree.