Fei

Examples

fei

Reference

async ctc.protocols.fei_utils.async_create_payload(*, blocks=None, timestamps=None, timescale=None, end_time=None, window_size=None, interval_size=None, provider=None)

create data payload from scratch

Parameters
  • blocks (Sequence[BlockNumberReference] | None) –

  • timestamps (Sequence[int] | None) –

  • timescale (TimescaleSpec | None) –

  • end_time (Timestamp | None) –

  • window_size (str | None) –

  • interval_size (str | None) –

  • provider (ProviderSpec) –

Return type

AnalyticsPayload

async ctc.protocols.fei_utils.async_get_pcv_stats(block=None, wrapper=False, provider=None)
Parameters
  • block (BlockNumberReference | None) –

  • wrapper (bool) –

  • provider (ProviderSpec) –

Return type

FeiPcvStats

async ctc.protocols.fei_utils.async_get_pcv_stats_by_block(blocks, wrapper=False, provider=None)
Parameters
  • blocks (Sequence[Union[SupportsRound, str, int, Literal['latest'], Literal['earliest'], Literal['pending']]]) –

  • wrapper (<class 'bool'>) –

  • provider (Union[str, PartialProvider, Provider, NoneType]) –

Return type

Any

async ctc.protocols.fei_utils.async_print_pcv_assets(block=None)
Parameters

block (BlockNumberReference | None) –

Return type

None

async ctc.protocols.fei_utils.async_print_pcv_deposits(block=None)
Parameters

block (Union[SupportsRound, str, int, Literal['latest'], Literal['earliest'], Literal['pending'], NoneType]) –

Return type

<class ‘NoneType’>