Aquarius

Get Aquarius pair history

GET
/v1/users/{address}/positions/aquarius/{pair}/history

Path Parameters

address*string

Stellar account address

pair*string

Aquarius pool address

Query Parameters

range?|

Predefined range shortcut: 24h (1h buckets), 7d (4h buckets), or 30d (1d buckets). An explicit interval overrides the preset's; combining range with explicit from/to is rejected.

from?|

ISO 8601 start timestamp, inclusive. Raw (unbucketed) filter unless interval is also given.

to?|

ISO 8601 end timestamp, inclusive. Raw (unbucketed) filter unless interval is also given.

resolution?|

Reserved for resampling (e.g. "1m", "15m", "1h", "1d"). Currently rejected; interval is the supported spelling.

interval?|

Wall-clock bucket width. Switches this endpoint into time-bucketed mode. Mutually exclusive with ledger_bucket/from_ledger/to_ledger.

ledger_bucket?|

Ledger bucket size (>= 1). Switches this endpoint into ledger-bucketed mode over blend_position_snapshots.ledger. Requires from_ledger and to_ledger. Mutually exclusive with interval/range/from/to.

Formatint64
Range0 <= value
from_ledger?|

Start ledger for the ledger-bucketed read, inclusive. Requires ledger_bucket.

Formatint64
Range0 <= value
to_ledger?|

End ledger for the ledger-bucketed read, inclusive. Requires ledger_bucket.

Formatint64
Range0 <= value
fill?|

Gap-fill behavior for buckets with no snapshot. Requires an active bucketed mode (interval, range, or ledger_bucket); locf requires finite bounds on whichever axis is active.

as_of_ledger?|

Return snapshots at or before this ledger sequence number. Mutually exclusive with any bucketed mode.

Formatint64
Range0 <= value

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/users/string/positions/aquarius/string/history"
{  "data": {    "points": [      {        "borrowed_usd": "string",        "ledger": 0,        "net_usd": "string",        "supplied_usd": "string",        "timestamp": "2019-08-24T14:15:22Z"      }    ],    "pool_id": "string"  },  "enrichment": {    "assets": {      "property1": {        "decimals": 0,        "price_source": null,        "price_usd": "string",        "symbol": "string",        "tags": [          "string"        ]      },      "property2": {        "decimals": 0,        "price_source": null,        "price_usd": "string",        "symbol": "string",        "tags": [          "string"        ]      }    },    "contracts": {      "property1": {        "name": "string",        "position_types": [          "collateral"        ],        "protocol": "string",        "status": "active",        "version": "string"      },      "property2": {        "name": "string",        "position_types": [          "collateral"        ],        "protocol": "string",        "status": "active",        "version": "string"      }    }  },  "meta": {    "attribution_confidence": 0.1,    "data_staleness_seconds": 0,    "last_indexed_ledger": 0,    "oracle_staleness_seconds": 0,    "partial_result": true,    "response_time_ms": 0,    "sources": [      "soroban_rpc"    ]  }}