filter_for_single_pair#

API documentation for tradingstrategy.utils.groupeduniverse.filter_for_single_pair Python function.

filter_for_single_pair(samples, pair)[source]#

Filter dataset so that it only contains data for a single trading pair.

Useful to construct single trading pair universe.

Parameters:
  • samples (DataFrame) – Candles or liquidity dataframe

  • pair (DEXPair) –

Return type:

DataFrame