Skip to content

mock_signal

mainsequence.virtualfundbuilder.contrib.time_series.mock_signal

MockSignal

Bases: WeightsBase, TimeSerie

Mock Signal to test strategies. Creates a signal with long/short of ETH and BTC in frequency.

update(latest_value, *args, **kwargs)

Args: latest_value (Union[datetime, None]): The timestamp of the most recent data point.

Returns: DataFrame: A DataFrame containing updated signal weights, indexed by time and asset symbol.