PerpSnapshotMulticallResult

Documentation for eth_defi.derive.api.PerpSnapshotMulticallResult Python class.

class PerpSnapshotMulticallResult

Bases: object

Result of a single instrument from fetch_perp_snapshots_multicall().

Groups the three on-chain reads (OI, perp price, index price) for one instrument at one block.

Attributes summary

open_interest

perp_price

index_price

Methods summary

__init__(open_interest, perp_price, index_price)

__init__(open_interest, perp_price, index_price)
Parameters
Return type

None