PerpSnapshotMulticallResult
Documentation for eth_defi.derive.api.PerpSnapshotMulticallResult Python class.
- class PerpSnapshotMulticallResult
Bases:
objectResult 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_interestperp_priceindex_priceMethods summary
__init__(open_interest, perp_price, index_price)- __init__(open_interest, perp_price, index_price)
- Parameters
open_interest (Optional[decimal.Decimal]) –
perp_price (Optional[decimal.Decimal]) –
index_price (Optional[decimal.Decimal]) –
- Return type
None