PairFetchPartition#

API documentation for tradingstrategy.transport.pair_candle_cache.PairFetchPartition Python class in Trading Strategy framework.

class PairFetchPartition[source]#

Bases: NamedTuple

Return type for PairCandleMetadata.partition_for_fetch()

__init__()#

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

delta_fetch_ids

Alias for field number 1

full_fetch_ids

Alias for field number 0

full_fetch_ids: set[int]#

Alias for field number 0

delta_fetch_ids: set[int]#

Alias for field number 1

static __new__(_cls, full_fetch_ids, delta_fetch_ids)#

Create new instance of PairFetchPartition(full_fetch_ids, delta_fetch_ids)

Parameters:
  • full_fetch_ids (set[int]) –

  • delta_fetch_ids (set[int]) –