MockClient#

API documentation for tradingstrategy.testing.mock_client.MockClient Python class in Trading Strategy framework.

class MockClient[source]#

Bases: BaseClient

Have all methods marked as not implemented

__init__()#

Methods

__init__()

clear_caches(fname)

fetch_all_candles()

fetch_all_liquidity_samples(bucket)

fetch_candle_dataset(bucket)

fetch_candles_by_pair_ids()

fetch_exchange_universe()

fetch_pair_universe()

fetch_trading_data_availability()

get_default_quote_token_address([...])

Get the quote token address used in the generated pair map.

get_default_quote_token_address(factory_address=None)[source]#

Get the quote token address used in the generated pair map.

Helper method for setting up simple local dev routing.

Returns a the first quote token address found in the pair universe.

Parameters:

factory_address (str | None) – The factory address to get the quote token address from.

Return type:

str