Skip to content

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

ParameterLocationTypeRequiredDescription
resolutionqueryPnlTickIntervaltruePnL tick resolution.

Response

StatusMeaningSchemaDescription
200OKPnlTicksResponseObject ⛁The PnL ticks data.
400Bad RequestThe 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

ParameterLocationTypeRequiredDescription
resolutionqueryPnlTickIntervaltruePnL tick resolution.

Response

StatusMeaningSchemaDescription
200OKVaultHistoricalPnl ⛁The vault historical PnL data.
400Bad RequestThe request was malformed or invalid.

API Example

Get MegaVaults Positions

MegaVault positions.

Method Declaration

Python
async def get_megavault_positions(self)

Parameters

Response

StatusMeaningSchema
200OKVaultPosition ⛁
API Example