create_pair_universe#

API documentation for tradeexecutor.ethereum.universe.create_pair_universe Python function.

create_pair_universe(web3, exchange, pairs)[source]#

Creates a PairUniverse from on-chain test data.

A test trading universe.

Parameters:
  • web3 (Web3) – Web3 connection to the test backend

  • exchange (Exchange) – Exchange under which pairs are assigned

  • pairs (List[TradingPairIdentifier]) – Trading pairs that will form this pair universe

Return type:

PandasPairUniverse