Vaults
TODO: How to access to the vaults space.
Rust
let vaults = indexer_client.vaults();Get MegaVault Historical Pnl
MegaVault historical PnL.
Method Declaration
Python
async def get_megavault_historical_pnl(self, resolution)Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
resolution | query | PnlTickInterval | true | PnL tick resolution. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | PnlTicksResponseObject ⛁ | The PnL ticks data. |
400 | Bad Request | The request was malformed or invalid. |
API Example
Get Vaults Historical Pnl
Vaults historical PnL.
Method Declaration
Python
async def get_vaults_historical_pnl(self, resolution)Parameters
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
resolution | query | PnlTickInterval | true | PnL tick resolution. |
Response
| Status | Meaning | Schema | Description |
|---|---|---|---|
200 | OK | VaultHistoricalPnl ⛁ | The vault historical PnL data. |
400 | Bad Request | The request was malformed or invalid. |
API Example
Get MegaVaults Positions
MegaVault positions.
Method Declaration
Python
async def get_megavault_positions(self)Parameters
Response
| Status | Meaning | Schema |
|---|---|---|
200 | OK | VaultPosition ⛁ |