From 2cd41189e5ab09794105940e90a06a48b2d1186b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sun, 16 Jun 2024 14:55:08 +0400 Subject: [PATCH 001/125] WIP, redesigning forecast.py; using composition to break forecasters into elementary ones; will add logic to manage "workspace" in BaseForecast so each is evaled only once; need to untangle EMW-MW logic which was too complicated; hopefully will make more advanced forecasters easier to develop; will also merge cache.py into BaseForecast and remove related logic from simulator.py in this branch and merge for 1.4.0 --- cvxportfolio/estimator.py | 5 +- cvxportfolio/forecast.py | 421 ++++++++++++++++++++++++++++++++++++-- cvxportfolio/policies.py | 5 +- 3 files changed, 406 insertions(+), 25 deletions(-) diff --git a/cvxportfolio/estimator.py b/cvxportfolio/estimator.py index 0c02c73eb..411925f36 100644 --- a/cvxportfolio/estimator.py +++ b/cvxportfolio/estimator.py @@ -81,6 +81,7 @@ def initialize_estimator_recursive(self, **kwargs): subestimator.initialize_estimator_recursive(**kwargs) if hasattr(self, "initialize_estimator"): self.initialize_estimator(**kwargs) + self._current_value = None def finalize_estimator(self, **kwargs): """Finalize estimator instance (currently unused). @@ -96,7 +97,6 @@ def finalize_estimator(self, **kwargs): :param kwargs: Reserved for future expansion. :type kwargs: dict """ - # we don't raise NotImplementedError because this is called # on classes that don't re-define it @@ -115,6 +115,7 @@ def finalize_estimator_recursive(self, **kwargs): subestimator.finalize_estimator_recursive(**kwargs) if hasattr(self, "finalize_estimator"): self.finalize_estimator(**kwargs) + self._current_value = None _current_value = None @@ -195,7 +196,7 @@ def values_in_time_recursive(self, **kwargs): # pylint: disable=assignment-from-no-return self._current_value = self.values_in_time(**kwargs) return self.current_value - return None # pragma: no cover + return self.current_value # pragma: no cover def collect_hyperparameters(self): """Collect (recursively) all hyperparameters defined in a policy. diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 978cdc9c1..f86e4b5ee 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -117,7 +117,8 @@ class BaseForecast(Estimator): # Will be exposed to the user, for now it's a class-level constant _CACHED = False - def values_in_time_recursive(self, t, cache=None, **kwargs): + def values_in_time_recursive( # pylint: disable=arguments-differ + self, t, cache=None, **kwargs): """Override default method to handle caching. :param t: Current timestamp in execution or back-test. @@ -128,24 +129,7 @@ def values_in_time_recursive(self, t, cache=None, **kwargs): :type kwargs: dict """ - if not self._CACHED: - return super().values_in_time_recursive(t=t, cache=cache, **kwargs) - else: - # this part is copied from Estimator - # TODO: could refactor upstream to avoid copy-pasting these clauses - for _, subestimator in self.__dict__.items(): - if hasattr(subestimator, "values_in_time_recursive"): - subestimator.values_in_time_recursive( - t=t, cache=cache, **kwargs) - for subestimator in self.__subestimators__: - subestimator.values_in_time_recursive( - t=t, cache=cache, **kwargs) - - # here goes caching - if hasattr(self, "values_in_time"): - - if cache is None: # e.g., in execute() cache is disabled - cache = {} + if self._CACHED and cache is not None: # in execute() cache is disabled if str(self) not in cache: cache[str(self)] = {} @@ -156,14 +140,52 @@ def values_in_time_recursive(self, t, cache=None, **kwargs): self, t) self._current_value = cache[str(self)][t] else: - self._current_value = self.values_in_time( + self._current_value = super().values_in_time_recursive( t=t, cache=cache, **kwargs) logger.info('%s.values_in_time at time %s is stored in cache.', self, t) - cache[str(self)][t] = self._current_value + cache[str(self)][t] = self.current_value + return self.current_value - return None # pragma: no cover + return super().values_in_time_recursive(t=t, cache=cache, **kwargs) + + # if not self._CACHED: + # return super().values_in_time_recursive(t=t, cache=cache, **kwargs) + # else: + # # this part is copied from Estimator + # # TODO: could refactor upstream to avoid copy-pasting these clauses + # for _, subestimator in self.__dict__.items(): + # if hasattr(subestimator, "values_in_time_recursive"): + # subestimator.values_in_time_recursive( + # t=t, cache=cache, **kwargs) + # for subestimator in self.__subestimators__: + # subestimator.values_in_time_recursive( + # t=t, cache=cache, **kwargs) + + # # here goes caching + # if hasattr(self, "values_in_time"): + + # if cache is None: # e.g., in execute() cache is disabled + # cache = {} + + # if str(self) not in cache: + # cache[str(self)] = {} + + # if t in cache[str(self)]: + # logger.info( + # '%s.values_in_time at time %s is retrieved from cache.', + # self, t) + # self._current_value = cache[str(self)][t] + # else: + # self._current_value = self.values_in_time( + # t=t, cache=cache, **kwargs) + # logger.info('%s.values_in_time at time %s is stored in cache.', + # self, t) + # cache[str(self)][t] = self._current_value + # return self.current_value + + # return None # pragma: no cover def initialize_estimator( # pylint: disable=arguments-differ self, **kwargs): @@ -262,6 +284,361 @@ def _is_timedelta(value): '(Exponential) moving average window can only be' ' pandas Timedeltas or np.inf.') +class SingleDataFrameForecaster(BaseForecast): + """Base forecaster that only operates on one DataFrame.""" + + def _dataframe_selector(self, **kwargs): + """Return dataframe we work with. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + raise NotImplementedError # pragma: no cover + + def _get_last_row(self, **kwargs): + """Return last row of the dataframe we work with. + + This method receives the **kwargs passed to :meth:`values_in_time`. + + You may redefine it if obtaining the full dataframe is expensive, + during online update (in most cases) only this method is required. + """ + return self._dataframe_selector(**kwargs).iloc[-1] + + def values_in_time(self, **kwargs): + """Temporary.""" + return self._agnostic_update(**kwargs) + +class OnPastReturns(SingleDataFrameForecaster): + """Intermediate class, operate on past returns.""" + + def _dataframe_selector(self, past_returns, **kwargs): + """Returns, skipping cash.""" + return past_returns.iloc[:, :-1] + +class OnPastReturnsSquared(SingleDataFrameForecaster): + """Intermediate class, operate on past returns squared, override update.""" + + def _dataframe_selector(self, past_returns, **kwargs): + """Past returns squared, skipping cash.""" + return past_returns.iloc[:, :-1]**2 + + def _get_last_row(self, past_returns, **kwargs): + """Most recent past returns.""" + return past_returns.iloc[-1, :-1]**2 + +class OnPastVolumes(SingleDataFrameForecaster): + """Intermediate class, operate on past volumes.""" + + def _dataframe_selector(self, past_volumes, **kwargs): + """Past volumes.""" + return past_volumes + +class VectorCount(SingleDataFrameForecaster): + """Count of non-NaN values of vectors.""" + + # TODO: checks that too few counts + + def _initial_compute(self, **kwargs): + """Compute from scratch.""" + return self._dataframe_selector(**kwargs).count() + + def _online_update(self, **kwargs): + """Update with last observation.""" + return self.current_value + ~(self._get_last_row(**kwargs).isnull()) + + +# def _compute(self, df, emw_weights): +# """Exponential moving window (optional) denominator.""" +# if emw_weights is None: +# return df.count() +# ones = (~df.isnull()) * 1. +# return ones.multiply(emw_weights, axis=0).sum() + +# def _add_update(self, last_row): +# """Update with last observation. + +# Emw (if any) is applied upstream. +# """ +# return ~(last_row.isnull()) + +class CountPastReturns(VectorCount, OnPastReturns): + """Count non-nan past returns, excluding cash.""" + +class CountPastVolumes(VectorCount, OnPastVolumes): + """Count non-nan past volumes.""" + + +class VectorSum(SingleDataFrameForecaster): + """Sum of non-NaN values of vectors.""" + + def _initial_compute(self, **kwargs): + """Compute from scratch.""" + return self._dataframe_selector(**kwargs).sum() + + def _online_update(self, **kwargs): + """Update with last observation.""" + return self.current_value + self._get_last_row(**kwargs).fillna(0.) + +class SumPastReturns(VectorSum, OnPastReturns): + """Sum non-nan past returns, excluding cash.""" + +class SumPastReturnsSquared(VectorSum, OnPastReturnsSquared): + """Sum non-nan past returns squared, excluding cash.""" + +class SumPastVolumes(VectorCount, OnPastVolumes): + """Sum non-nan past volumes.""" + +class NewMeanHistoricalReturns(BaseForecast): + """Test.""" + + def __init__(self): + self._denominator = CountPastReturns() + self._numerator = SumPastReturns() + + def values_in_time(self, **kwargs): + """Current value.""" + return self._numerator.current_value / self._denominator.current_value + +class NewHistoricalVariance(BaseForecast): + """Test.""" + + def __init__(self, kelly=True): + self.kelly = kelly + self._denominator = CountPastReturns() + self._numerator = SumPastReturnsSquared() + if not self.kelly: + self._correction = NewMeanHistoricalReturns() + + def values_in_time(self, **kwargs): + """Current value.""" + result = self._numerator.current_value / self._denominator.current_value + if not self.kelly: + result -= self._correction.current_value ** 2 + return result + +class NewHistoricalStandardDeviation(BaseForecast): + """Test.""" + + def __init__(self, kelly=True): + self.kelly = kelly + self._variance = NewHistoricalVariance(kelly=kelly) + + def values_in_time(self, **kwargs): + """Current value.""" + return np.sqrt(self._variance.current_value) + +class NewMeanHistoricalVolumes(BaseForecast): + """Test.""" + + def __init__(self): + self._denominator = CountPastVolumes() + self._numerator = SumPastVolumes() + + def values_in_time(self, **kwargs): + """Current value.""" + return self._numerator.current_value / self._denominator.current_value + +class MatrixCount(SingleDataFrameForecaster): + """Joint count, for the denominator of covariances.""" + + # TODO: checks that too few counts + + def _initial_compute(self, **kwargs): + """Compute from scratch.""" + df = self._dataframe_selector(**kwargs) + nonnull = (~df.isnull()) * 1. + return nonnull.T @ nonnull + + def _online_update(self, **kwargs): + """Update with last observation.""" + last_row = self._get_last_row(**kwargs) + nonnull = ~(last_row.isnull()) + return self.current_value + np.outer(nonnull, nonnull) + + # def _compute_denominator(self, df, emw_weights): + # """Exponential moving window (optional) denominator.""" + # ones = (~df.isnull()) * 1. + # if emw_weights is None: + # return ones.T @ ones + # tmp = ones.multiply(emw_weights, axis=0) + # return tmp.T @ ones + + # def _update_denominator(self, last_row): + # """Update with last observation. + + # Emw (if any) is applied upstream. + # """ + # nonnull = ~(last_row.isnull()) + # return np.outer(nonnull, nonnull) + +class CovarianceDenominator(MatrixCount, OnPastReturns): + """Compute denominator of (Kelly) covariance of past returns.""" + +class MatrixSum(SingleDataFrameForecaster): + """Joint sum, for the numerator of covariances.""" + + def _initial_compute(self, **kwargs): + """Compute from scratch.""" + df = self._dataframe_selector(**kwargs) + filled = df.fillna(0.) + return filled.T @ filled + + def _online_update(self, **kwargs): + """Update with last observation.""" + last_row = self._get_last_row(**kwargs) + filled = last_row.fillna(0.) + return self.current_value + np.outer(filled, filled) + + # def _compute_numerator(self, df, emw_weights): + # """Exponential moving window (optional) numerator.""" + # filled = df.fillna(0.) + # if emw_weights is None: + # return filled.T @ filled + # tmp = filled.multiply(emw_weights, axis=0) + # return tmp.T @ filled + + # def _update_numerator(self, last_row): + # """Update with last observation. + + # Emw (if any) is applied upstream. + # """ + # filled = last_row.fillna(0.) + # return np.outer(filled, filled) + +class CovarianceNumerator(MatrixSum, OnPastReturns): + """Compute numerator of (Kelly) covariance of past returns.""" + + +class BaseEmwMwForecast(BaseForecast): + """Base class containing EMW + MW logic for mean and var forecasters.""" + + _emw_mw_value = None + _last_time = None + + def __init__(self, half_life=np.inf, rolling=np.inf): + self.half_life = half_life + self.rolling = rolling + + def _get_last_row(self, **kwargs): + """Return last row of the dataframe we work with. + + This method receives the **kwargs passed to :meth:`values_in_time`. + + You may redefine it if obtaining the full dataframe is expensive, + during online update (in most cases) only this method is required. + """ + return self._dataframe_selector(**kwargs).iloc[-1] + + def _dataframe_selector(self, **kwargs): + """Return dataframe we work with. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + raise NotImplementedError # pragma: no cover + + def _emw_weights(self, index, t): + """Get weights to apply to the past obs for EMW.""" + index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) + return np.exp(index_in_halflifes * np.log(2)) + + def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ + """Make forecast from scratch. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + df = self._dataframe_selector(t=t, **kwargs) + + # Moving average window logic + if _is_timedelta(_resolve_hyperpar(self.rolling)): + df = df.loc[df.index >= t-_resolve_hyperpar(self.rolling)] + + # If EMW, compute weights here + if _is_timedelta(_resolve_hyperpar(self.half_life)): + emw_weights = self._emw_weights(df.index, t) + else: + emw_weights = None + + self._emw_mw_value = self._compute(df, emw_weights) + # self._check_denominator_valid(t) + # self._numerator = self._compute_numerator(df, emw_weights) + # self._last_time = t + + # used by covariance forecaster + # return df, emw_weights + + def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ + """Update forecast from period before. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + last_row = self._get_last_row(t=t, **kwargs) + + # if emw discount past + if _is_timedelta(_resolve_hyperpar(self.half_life)): + time_passed_in_halflifes = ( + self._last_time - t)/_resolve_hyperpar(self.half_life) + discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) + self._emw_mw_value *= discount_factor + else: + discount_factor = 1. + + # for emw we also need to discount last element + self._emw_mw_value += self._add_update(last_row) * discount_factor + + # Moving average window logic: subtract elements that have gone out + if _is_timedelta(_resolve_hyperpar(self.rolling)): + df = self._dataframe_selector(t=t, **kwargs) + # observations_to_subtract, emw_weights_of_subtract = \ + self._remove_part_gone_out_of_ma(df, t) + #else: + # observations_to_subtract, emw_weights_of_subtract = None, None + + self._last_time = t + + # used by covariance forecaster + # return ( + # discount_factor, observations_to_subtract, emw_weights_of_subtract) + + def _remove_part_gone_out_of_ma(self, df, t): + """Subtract too old observations.""" + + observations_to_subtract = df.loc[ + (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) + & (df.index < (t - _resolve_hyperpar(self.rolling)))] + + # If EMW, compute weights here + if _is_timedelta(_resolve_hyperpar(self.half_life)): + emw_weights = self._emw_weights(observations_to_subtract.index, t) + else: + emw_weights = None + + self._emw_mw_value -= self._compute( + observations_to_subtract, emw_weights) + # self._check_denominator_valid(t) + # self._numerator -= self._compute_numerator( + # observations_to_subtract, emw_weights).fillna(0.) + + # used by covariance forecaster + # return observations_to_subtract, emw_weights + + +# class VectorCount(BaseForecast): +# """Count of non-NaN values of vectors, like returns.""" + +# def _compute(self, df, emw_weights): +# """Exponential moving window (optional) denominator.""" +# if emw_weights is None: +# return df.count() +# ones = (~df.isnull()) * 1. +# return ones.multiply(emw_weights, axis=0).sum() + +# def _add_update(self, last_row): +# """Update with last observation. + +# Emw (if any) is applied upstream. +# """ +# return ~(last_row.isnull()) + class BaseMeanVarForecast(BaseForecast): """This class contains logic common to mean and (co)variance forecasters. diff --git a/cvxportfolio/policies.py b/cvxportfolio/policies.py index c6bc942b3..4a2517cbb 100644 --- a/cvxportfolio/policies.py +++ b/cvxportfolio/policies.py @@ -68,7 +68,10 @@ def execute(self, h, market_data, t=None): :param h: Holdings vector, in dollars, including the cash account - (the last element). + (the last element). Making sure that the last element is the cash + accont is particularly important if you run without market data + (``market_data=None``), because Cvxportfolio has no other way to + check it. :type h: pandas.Series :param market_data: :class:`MarketData` instance used to provide data to the policy. If set to ``None``, the policy needs to From 85f3bcfc8760466b22bfb991108f9f4dafb1a1f9 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sun, 16 Jun 2024 22:26:22 +0400 Subject: [PATCH 002/125] getting shape --- cvxportfolio/forecast.py | 146 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 140 insertions(+), 6 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index f86e4b5ee..2e4f2c305 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -189,7 +189,16 @@ def values_in_time_recursive( # pylint: disable=arguments-differ def initialize_estimator( # pylint: disable=arguments-differ self, **kwargs): - """Re-initialize whenever universe changes. + """Initialize internal variables. + + :param kwargs: Unused arguments to :meth:`initialize_estimator`. + :type kwargs: dict + """ + self._last_time = None + + def finalize_estimator( # pylint: disable=arguments-differ + self, **kwargs): + """Dereference internal variables. :param kwargs: Unused arguments to :meth:`initialize_estimator`. :type kwargs: dict @@ -250,19 +259,21 @@ def estimate(self, market_data, t=None): return forecast, t - def _agnostic_update(self, t, past_returns, **kwargs): + def _agnostic_update(self, t, past_returns, **kwargs): # TODO rename this to values_in_time """Choose whether to make forecast from scratch or update last one.""" if (self._last_time is None) or ( self._last_time != past_returns.index[-1]): logger.debug( '%s.values_in_time at time %s is computed from scratch.', self, t) - self._initial_compute(t=t, past_returns=past_returns, **kwargs) + return self._initial_compute( + t=t, past_returns=past_returns, **kwargs) else: logger.debug( '%s.values_in_time at time %s is updated from previous value.', self, t) - self._online_update(t=t, past_returns=past_returns, **kwargs) + return self._online_update( + t=t, past_returns=past_returns, **kwargs) def _initial_compute(self, **kwargs): """Make forecast from scratch.""" @@ -346,6 +357,118 @@ def _online_update(self, **kwargs): """Update with last observation.""" return self.current_value + ~(self._get_last_row(**kwargs).isnull()) +class WithEmwMw(SingleDataFrameForecaster): + """Intermediate class, add EMW+MW logic. + + Blueprint: + - put this stuff in the single dataframe f'c + + EMW: + - add logic to the _initial_compute of all other guys to get the weights + - add a super() call in the online updates, which does EMW discounting + + MW: + - add logic in all DF selectors to call method defined here that slices + by rolling + - create instance in __init__ from self, override its dataframe selector + helper method using + https://stackoverflow.com/questions/48210900/is-it-possible-to-do-dynamic-method-overriding-from-a-method-of-another-class-i + simply, the dynamically overridden method is defined by a lambda; + that is the "scraps" forecaster, and override values_in_time here + to subtract from my current_value the current_value of the scraps + """ + + # TODO: Think about edge cases, what happens if the MA window is shorter + # than t - (t-1) ? + + def __init__(self, half_life=np.inf, rolling=np.inf): + self.half_life = half_life + self.rolling = rolling + self._last_time = None + + def initialize_estimator(self, **kwargs): + self._last_time = None + + def finalize_estimator(self, **kwargs): + self._last_time = None + + def _compute_weights(self, index, t, **kwargs): + """Get weights to apply to the past obs for EMW.""" + index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) + return np.exp(index_in_halflifes * np.log(2)) + + # TODO: method above make it based in SingleDataFrameForecaster with + # return None, each guy below implements logic to deal with it if it returns + # something else than None + + def _dataframe_selector(self, t, **kwargs): + """Select only part that is in the MW.""" + all_past = super()._dataframe_selector(t=t, **kwargs) + if _is_timedelta(_resolve_hyperpar(self.rolling)): # TODO: rename that function + return all_past.loc[ + all_past.index >= (t - _resolve_hyperpar(self.rolling))] + return all_past + + def _online_update(self, **kwargs): + """Apply EMW and MW logic.""" + + def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ + """Update forecast from period before. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + last_row = self._get_last_row(t=t, **kwargs) + + # TODO: this breaks if loaded from cache last value but computing this one + assert self._last_time is not None, "online update called ..." + + super()._online_update(self, t=t, **kwargs) + + # if emw discount past + if _is_timedelta(_resolve_hyperpar(self.half_life)): + time_passed_in_halflifes = ( + self._last_time - t)/_resolve_hyperpar(self.half_life) + discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) + self._current_value *= discount_factor + + self._current_value -= self._values_out_of_mw.current_value + + # Moving average window logic: subtract elements that have gone out + if _is_timedelta(_resolve_hyperpar(self.rolling)): + df = self._dataframe_selector(t=t, **kwargs) + # observations_to_subtract, emw_weights_of_subtract = \ + self._remove_part_gone_out_of_ma(df, t) + #else: + # observations_to_subtract, emw_weights_of_subtract = None, None + + self._last_time = t + + # used by covariance forecaster + # return ( + # discount_factor, observations_to_subtract, emw_weights_of_subtract) + + def _remove_part_gone_out_of_ma(self, df, t): + """Subtract too old observations.""" + + observations_to_subtract = df.loc[ + (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) + & (df.index < (t - _resolve_hyperpar(self.rolling)))] + + # If EMW, compute weights here + if _is_timedelta(_resolve_hyperpar(self.half_life)): + emw_weights = self._emw_weights(observations_to_subtract.index, t) + else: + emw_weights = None + + self._emw_mw_value -= self._compute( + observations_to_subtract, emw_weights) + # self._check_denominator_valid(t) + # self._numerator -= self._compute_numerator( + # observations_to_subtract, emw_weights).fillna(0.) + + # used by covariance forecaster + # return observations_to_subtract, emw_weights + # def _compute(self, df, emw_weights): # """Exponential moving window (optional) denominator.""" @@ -439,7 +562,7 @@ def values_in_time(self, **kwargs): return self._numerator.current_value / self._denominator.current_value class MatrixCount(SingleDataFrameForecaster): - """Joint count, for the denominator of covariances.""" + """Joint count, e.g., for the denominator of covariances.""" # TODO: checks that too few counts @@ -475,7 +598,7 @@ class CovarianceDenominator(MatrixCount, OnPastReturns): """Compute denominator of (Kelly) covariance of past returns.""" class MatrixSum(SingleDataFrameForecaster): - """Joint sum, for the numerator of covariances.""" + """Joint sum, e.g., for the numerator of covariances.""" def _initial_compute(self, **kwargs): """Compute from scratch.""" @@ -509,6 +632,17 @@ class CovarianceNumerator(MatrixSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" +class NewHistoricalCovariance(NewHistoricalVariance): + """Test.""" + + def __init__(self, kelly=True): + self.kelly = kelly + self._denominator = CovarianceDenominator() + self._numerator = CovarianceNumerator() + # if not self.kelly: # TODO: implement + # self._correction = NewMeanHistoricalReturns() + + class BaseEmwMwForecast(BaseForecast): """Base class containing EMW + MW logic for mean and var forecasters.""" From 78d5cec7b495d7328e26cb625850a58a29381690 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 24 Jun 2024 14:40:11 +0400 Subject: [PATCH 003/125] working it out --- cvxportfolio/forecast.py | 589 +++++++++++++--------------- cvxportfolio/tests/test_forecast.py | 7 +- 2 files changed, 284 insertions(+), 312 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 2e4f2c305..307658e8c 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -129,6 +129,18 @@ def values_in_time_recursive( # pylint: disable=arguments-differ :type kwargs: dict """ + # # better to make sure in callers cache is never None + # if cache is not None: + + # # initialize workspace + # if 'workspace' not in cache: + # cache['workspace'] = {} + # cache['workspace']['t'] = t + + # # move things from workspace into long term + # if cache['workspace']['t'] != t: + # for stored_key in cache['workspace'] + if self._CACHED and cache is not None: # in execute() cache is disabled if str(self) not in cache: @@ -283,7 +295,7 @@ def _online_update(self, **kwargs): """Update forecast from period before.""" raise NotImplementedError # pragma: no cover -def _is_timedelta(value): +def _is_timedelta_or_inf(value): if isinstance(value, pd.Timedelta): if value <= pd.Timedelta('0d'): raise ValueError( @@ -295,9 +307,120 @@ def _is_timedelta(value): '(Exponential) moving average window can only be' ' pandas Timedeltas or np.inf.') -class SingleDataFrameForecaster(BaseForecast): +class AssociativeForecaster(BaseForecast): """Base forecaster that only operates on one DataFrame.""" + def __init__(self, half_life=np.inf, rolling=np.inf): + self.half_life = half_life + self.rolling = rolling + self._last_time = None + + def _emw_weights(self, index, t): + """Get weights to apply to the past obs for EMW.""" + index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) + return np.exp(index_in_halflifes * np.log(2)) + + def _batch_compute(self, df, emw_weights): + raise NotImplementedError + + def _single_compute(self, last_row): + raise NotImplementedError + + def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ + """Make forecast from scratch. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + df = self._dataframe_selector(t=t, **kwargs) + + # Moving average window logic + if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): + df = df.loc[df.index >= t-_resolve_hyperpar(self.rolling)] + + # If EMW, compute weights here + if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): + emw_weights = self._emw_weights(df.index, t) + else: + emw_weights = None + + result = self._batch_compute(df, emw_weights) + self._last_time = t + return result + + # self._denominator = self._compute_denominator(df, emw_weights) + # self._check_denominator_valid(t) + # self._numerator = self._compute_numerator(df, emw_weights) + # self._last_time = t + + # # used by covariance forecaster + # return df, emw_weights + + def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ + """Update forecast from period before. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + last_row = self._get_last_row(t=t, **kwargs) + + # if emw discount past + if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): + time_passed_in_halflifes = ( + self._last_time - t)/_resolve_hyperpar(self.half_life) + discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) + # self._current_value *= discount_factor + # self._denominator *= discount_factor + # self._numerator *= discount_factor + else: + discount_factor = 1. + + # for emw we also need to discount last element + result = self.current_value + self._single_compute(last_row) + + # emw discounting + result *= discount_factor + + # self._numerator += self._update_numerator(last_row) * discount_factor + + # Moving average window logic: subtract elements that have gone out + if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): + df = self._dataframe_selector(t=t, **kwargs) + #observations_to_subtract, emw_weights_of_subtract = \ + result = self._remove_part_gone_out_of_ma(result, df, t) + # else: + # observations_to_subtract, emw_weights_of_subtract = None, None + + self._last_time = t + + return result + + # used by covariance forecaster + # return ( + # discount_factor, observations_to_subtract, emw_weights_of_subtract) + + def _remove_part_gone_out_of_ma(self, result, df, t): + """Subtract from numerator and denominator too old observations.""" + + observations_to_subtract = df.loc[ + (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) + & (df.index < (t - _resolve_hyperpar(self.rolling)))] + + # If EMW, compute weights here + if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): + emw_weights = self._emw_weights(observations_to_subtract.index, t) + else: + emw_weights = None + + result -= self._batch_compute( + observations_to_subtract, emw_weights) + # self._check_denominator_valid(t) + # self._numerator -= self._compute_numerator( + # observations_to_subtract, emw_weights).fillna(0.) + + # used by covariance forecaster + # return observations_to_subtract, emw_weights + + return result + def _dataframe_selector(self, **kwargs): """Return dataframe we work with. @@ -319,14 +442,14 @@ def values_in_time(self, **kwargs): """Temporary.""" return self._agnostic_update(**kwargs) -class OnPastReturns(SingleDataFrameForecaster): +class OnPastReturns(AssociativeForecaster): """Intermediate class, operate on past returns.""" def _dataframe_selector(self, past_returns, **kwargs): """Returns, skipping cash.""" return past_returns.iloc[:, :-1] -class OnPastReturnsSquared(SingleDataFrameForecaster): +class OnPastReturnsSquared(AssociativeForecaster): """Intermediate class, operate on past returns squared, override update.""" def _dataframe_selector(self, past_returns, **kwargs): @@ -337,152 +460,156 @@ def _get_last_row(self, past_returns, **kwargs): """Most recent past returns.""" return past_returns.iloc[-1, :-1]**2 -class OnPastVolumes(SingleDataFrameForecaster): +class OnPastVolumes(AssociativeForecaster): """Intermediate class, operate on past volumes.""" def _dataframe_selector(self, past_volumes, **kwargs): """Past volumes.""" return past_volumes -class VectorCount(SingleDataFrameForecaster): +class VectorCount(AssociativeForecaster): """Count of non-NaN values of vectors.""" # TODO: checks that too few counts - def _initial_compute(self, **kwargs): + def _batch_compute(self, df, emw_weights): """Compute from scratch.""" - return self._dataframe_selector(**kwargs).count() + if emw_weights is None: + return df.count() + ones = (~df.isnull()) * 1. + return ones.multiply(emw_weights, axis=0).sum() - def _online_update(self, **kwargs): + def _single_compute(self, last_row): """Update with last observation.""" - return self.current_value + ~(self._get_last_row(**kwargs).isnull()) - -class WithEmwMw(SingleDataFrameForecaster): - """Intermediate class, add EMW+MW logic. - - Blueprint: - - put this stuff in the single dataframe f'c - - EMW: - - add logic to the _initial_compute of all other guys to get the weights - - add a super() call in the online updates, which does EMW discounting - - MW: - - add logic in all DF selectors to call method defined here that slices - by rolling - - create instance in __init__ from self, override its dataframe selector - helper method using - https://stackoverflow.com/questions/48210900/is-it-possible-to-do-dynamic-method-overriding-from-a-method-of-another-class-i - simply, the dynamically overridden method is defined by a lambda; - that is the "scraps" forecaster, and override values_in_time here - to subtract from my current_value the current_value of the scraps - """ + return ~(last_row.isnull()) - # TODO: Think about edge cases, what happens if the MA window is shorter - # than t - (t-1) ? - def __init__(self, half_life=np.inf, rolling=np.inf): - self.half_life = half_life - self.rolling = rolling - self._last_time = None +# class WithEmwMw(SingleDataFrameForecaster): +# """Intermediate class, add EMW+MW logic. - def initialize_estimator(self, **kwargs): - self._last_time = None +# Blueprint: +# - put this stuff in the single dataframe f'c - def finalize_estimator(self, **kwargs): - self._last_time = None +# EMW: +# - add logic to the _initial_compute of all other guys to get the weights +# - add a super() call in the online updates, which does EMW discounting - def _compute_weights(self, index, t, **kwargs): - """Get weights to apply to the past obs for EMW.""" - index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) - return np.exp(index_in_halflifes * np.log(2)) +# MW: +# - add logic in all DF selectors to call method defined here that slices +# by rolling +# - create instance in __init__ from self, override its dataframe selector +# helper method using +# https://stackoverflow.com/questions/48210900/is-it-possible-to-do-dynamic-method-overriding-from-a-method-of-another-class-i +# simply, the dynamically overridden method is defined by a lambda; +# that is the "scraps" forecaster, and override values_in_time here +# to subtract from my current_value the current_value of the scraps +# """ - # TODO: method above make it based in SingleDataFrameForecaster with - # return None, each guy below implements logic to deal with it if it returns - # something else than None +# # TODO: Think about edge cases, what happens if the MA window is shorter +# # than t - (t-1) ? - def _dataframe_selector(self, t, **kwargs): - """Select only part that is in the MW.""" - all_past = super()._dataframe_selector(t=t, **kwargs) - if _is_timedelta(_resolve_hyperpar(self.rolling)): # TODO: rename that function - return all_past.loc[ - all_past.index >= (t - _resolve_hyperpar(self.rolling))] - return all_past +# def __init__(self, half_life=np.inf, rolling=np.inf): +# self.half_life = half_life +# self.rolling = rolling +# self._last_time = None - def _online_update(self, **kwargs): - """Apply EMW and MW logic.""" +# def initialize_estimator(self, **kwargs): +# self._last_time = None - def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ - """Update forecast from period before. +# def finalize_estimator(self, **kwargs): +# self._last_time = None - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - last_row = self._get_last_row(t=t, **kwargs) +# def _compute_weights(self, index, t, **kwargs): +# """Get weights to apply to the past obs for EMW.""" +# index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) +# return np.exp(index_in_halflifes * np.log(2)) - # TODO: this breaks if loaded from cache last value but computing this one - assert self._last_time is not None, "online update called ..." +# # TODO: method above make it based in SingleDataFrameForecaster with +# # return None, each guy below implements logic to deal with it if it returns +# # something else than None - super()._online_update(self, t=t, **kwargs) +# def _dataframe_selector(self, t, **kwargs): +# """Select only part that is in the MW.""" +# all_past = super()._dataframe_selector(t=t, **kwargs) +# if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): # TODO: rename that function +# return all_past.loc[ +# all_past.index >= (t - _resolve_hyperpar(self.rolling))] +# return all_past - # if emw discount past - if _is_timedelta(_resolve_hyperpar(self.half_life)): - time_passed_in_halflifes = ( - self._last_time - t)/_resolve_hyperpar(self.half_life) - discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) - self._current_value *= discount_factor +# def _online_update(self, **kwargs): +# """Apply EMW and MW logic.""" - self._current_value -= self._values_out_of_mw.current_value +# def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ +# """Update forecast from period before. - # Moving average window logic: subtract elements that have gone out - if _is_timedelta(_resolve_hyperpar(self.rolling)): - df = self._dataframe_selector(t=t, **kwargs) - # observations_to_subtract, emw_weights_of_subtract = \ - self._remove_part_gone_out_of_ma(df, t) - #else: - # observations_to_subtract, emw_weights_of_subtract = None, None +# This method receives the **kwargs passed to :meth:`values_in_time`. +# """ +# last_row = self._get_last_row(t=t, **kwargs) - self._last_time = t +# # TODO: this breaks if loaded from cache last value but computing this one +# assert self._last_time is not None, "online update called ..." - # used by covariance forecaster - # return ( - # discount_factor, observations_to_subtract, emw_weights_of_subtract) +# super()._online_update(self, t=t, **kwargs) - def _remove_part_gone_out_of_ma(self, df, t): - """Subtract too old observations.""" +# # if emw discount past +# if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): +# time_passed_in_halflifes = ( +# self._last_time - t)/_resolve_hyperpar(self.half_life) +# discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) +# self._current_value *= discount_factor - observations_to_subtract = df.loc[ - (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) - & (df.index < (t - _resolve_hyperpar(self.rolling)))] +# self._current_value -= self._values_out_of_mw.current_value - # If EMW, compute weights here - if _is_timedelta(_resolve_hyperpar(self.half_life)): - emw_weights = self._emw_weights(observations_to_subtract.index, t) - else: - emw_weights = None +# # Moving average window logic: subtract elements that have gone out +# if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): +# df = self._dataframe_selector(t=t, **kwargs) +# # observations_to_subtract, emw_weights_of_subtract = \ +# self._remove_part_gone_out_of_ma(df, t) +# #else: +# # observations_to_subtract, emw_weights_of_subtract = None, None - self._emw_mw_value -= self._compute( - observations_to_subtract, emw_weights) - # self._check_denominator_valid(t) - # self._numerator -= self._compute_numerator( - # observations_to_subtract, emw_weights).fillna(0.) +# self._last_time = t - # used by covariance forecaster - # return observations_to_subtract, emw_weights +# # used by covariance forecaster +# # return ( +# # discount_factor, observations_to_subtract, emw_weights_of_subtract) +# def _remove_part_gone_out_of_ma(self, df, t): +# """Subtract too old observations.""" -# def _compute(self, df, emw_weights): -# """Exponential moving window (optional) denominator.""" -# if emw_weights is None: -# return df.count() -# ones = (~df.isnull()) * 1. -# return ones.multiply(emw_weights, axis=0).sum() +# observations_to_subtract = df.loc[ +# (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) +# & (df.index < (t - _resolve_hyperpar(self.rolling)))] -# def _add_update(self, last_row): -# """Update with last observation. +# # If EMW, compute weights here +# if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): +# emw_weights = self._emw_weights(observations_to_subtract.index, t) +# else: +# emw_weights = None + +# self._emw_mw_value -= self._compute( +# observations_to_subtract, emw_weights) +# # self._check_denominator_valid(t) +# # self._numerator -= self._compute_numerator( +# # observations_to_subtract, emw_weights).fillna(0.) + +# # used by covariance forecaster +# # return observations_to_subtract, emw_weights -# Emw (if any) is applied upstream. -# """ -# return ~(last_row.isnull()) + +# # def _compute(self, df, emw_weights): +# # """Exponential moving window (optional) denominator.""" +# # if emw_weights is None: +# # return df.count() +# # ones = (~df.isnull()) * 1. +# # return ones.multiply(emw_weights, axis=0).sum() + +# # def _add_update(self, last_row): +# # """Update with last observation. + +# # Emw (if any) is applied upstream. +# # """ +# # return ~(last_row.isnull()) class CountPastReturns(VectorCount, OnPastReturns): """Count non-nan past returns, excluding cash.""" @@ -490,17 +617,18 @@ class CountPastReturns(VectorCount, OnPastReturns): class CountPastVolumes(VectorCount, OnPastVolumes): """Count non-nan past volumes.""" - -class VectorSum(SingleDataFrameForecaster): +class VectorSum(AssociativeForecaster): """Sum of non-NaN values of vectors.""" - def _initial_compute(self, **kwargs): - """Compute from scratch.""" - return self._dataframe_selector(**kwargs).sum() + def _batch_compute(self, df, emw_weights): + """Exponential moving window (optional) numerator.""" + if emw_weights is None: + return df.sum() + return df.multiply(emw_weights, axis=0).sum() - def _online_update(self, **kwargs): + def _single_compute(self, last_row): """Update with last observation.""" - return self.current_value + self._get_last_row(**kwargs).fillna(0.) + return last_row.fillna(0.) class SumPastReturns(VectorSum, OnPastReturns): """Sum non-nan past returns, excluding cash.""" @@ -511,15 +639,16 @@ class SumPastReturnsSquared(VectorSum, OnPastReturnsSquared): class SumPastVolumes(VectorCount, OnPastVolumes): """Sum non-nan past volumes.""" -class NewMeanHistoricalReturns(BaseForecast): +class HistoricalMeanReturn(BaseForecast): """Test.""" - def __init__(self): - self._denominator = CountPastReturns() - self._numerator = SumPastReturns() + def __init__(self, **kwargs): + self._denominator = CountPastReturns( **kwargs) + self._numerator = SumPastReturns(**kwargs) def values_in_time(self, **kwargs): """Current value.""" + # breakpoint() return self._numerator.current_value / self._denominator.current_value class NewHistoricalVariance(BaseForecast): @@ -561,77 +690,50 @@ def values_in_time(self, **kwargs): """Current value.""" return self._numerator.current_value / self._denominator.current_value -class MatrixCount(SingleDataFrameForecaster): +class MatrixCount(AssociativeForecaster): """Joint count, e.g., for the denominator of covariances.""" # TODO: checks that too few counts - def _initial_compute(self, **kwargs): - """Compute from scratch.""" - df = self._dataframe_selector(**kwargs) - nonnull = (~df.isnull()) * 1. - return nonnull.T @ nonnull + def _batch_compute(self, df, emw_weights): + """Exponential moving window (optional) denominator.""" + ones = (~df.isnull()) * 1. + if emw_weights is None: + return ones.T @ ones + tmp = ones.multiply(emw_weights, axis=0) + return tmp.T @ ones - def _online_update(self, **kwargs): + def _single_compute(self, last_row): """Update with last observation.""" - last_row = self._get_last_row(**kwargs) nonnull = ~(last_row.isnull()) - return self.current_value + np.outer(nonnull, nonnull) - - # def _compute_denominator(self, df, emw_weights): - # """Exponential moving window (optional) denominator.""" - # ones = (~df.isnull()) * 1. - # if emw_weights is None: - # return ones.T @ ones - # tmp = ones.multiply(emw_weights, axis=0) - # return tmp.T @ ones + return np.outer(nonnull, nonnull) - # def _update_denominator(self, last_row): - # """Update with last observation. - - # Emw (if any) is applied upstream. - # """ - # nonnull = ~(last_row.isnull()) - # return np.outer(nonnull, nonnull) class CovarianceDenominator(MatrixCount, OnPastReturns): """Compute denominator of (Kelly) covariance of past returns.""" -class MatrixSum(SingleDataFrameForecaster): +class MatrixSum(AssociativeForecaster): """Joint sum, e.g., for the numerator of covariances.""" - def _initial_compute(self, **kwargs): - """Compute from scratch.""" - df = self._dataframe_selector(**kwargs) + def _batch_compute(self, df, emw_weights): + """Exponential moving window (optional) numerator.""" filled = df.fillna(0.) - return filled.T @ filled - - def _online_update(self, **kwargs): - """Update with last observation.""" - last_row = self._get_last_row(**kwargs) - filled = last_row.fillna(0.) - return self.current_value + np.outer(filled, filled) - - # def _compute_numerator(self, df, emw_weights): - # """Exponential moving window (optional) numerator.""" - # filled = df.fillna(0.) - # if emw_weights is None: - # return filled.T @ filled - # tmp = filled.multiply(emw_weights, axis=0) - # return tmp.T @ filled + if emw_weights is None: + return filled.T @ filled + tmp = filled.multiply(emw_weights, axis=0) + return tmp.T @ filled - # def _update_numerator(self, last_row): - # """Update with last observation. + def _single_compute(self, last_row): + """Update with last observation. - # Emw (if any) is applied upstream. - # """ - # filled = last_row.fillna(0.) - # return np.outer(filled, filled) + Emw (if any) is applied upstream. + """ + filled = last_row.fillna(0.) + return np.outer(filled, filled) class CovarianceNumerator(MatrixSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" - class NewHistoricalCovariance(NewHistoricalVariance): """Test.""" @@ -643,137 +745,6 @@ def __init__(self, kelly=True): # self._correction = NewMeanHistoricalReturns() -class BaseEmwMwForecast(BaseForecast): - """Base class containing EMW + MW logic for mean and var forecasters.""" - - _emw_mw_value = None - _last_time = None - - def __init__(self, half_life=np.inf, rolling=np.inf): - self.half_life = half_life - self.rolling = rolling - - def _get_last_row(self, **kwargs): - """Return last row of the dataframe we work with. - - This method receives the **kwargs passed to :meth:`values_in_time`. - - You may redefine it if obtaining the full dataframe is expensive, - during online update (in most cases) only this method is required. - """ - return self._dataframe_selector(**kwargs).iloc[-1] - - def _dataframe_selector(self, **kwargs): - """Return dataframe we work with. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - raise NotImplementedError # pragma: no cover - - def _emw_weights(self, index, t): - """Get weights to apply to the past obs for EMW.""" - index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) - return np.exp(index_in_halflifes * np.log(2)) - - def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ - """Make forecast from scratch. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - df = self._dataframe_selector(t=t, **kwargs) - - # Moving average window logic - if _is_timedelta(_resolve_hyperpar(self.rolling)): - df = df.loc[df.index >= t-_resolve_hyperpar(self.rolling)] - - # If EMW, compute weights here - if _is_timedelta(_resolve_hyperpar(self.half_life)): - emw_weights = self._emw_weights(df.index, t) - else: - emw_weights = None - - self._emw_mw_value = self._compute(df, emw_weights) - # self._check_denominator_valid(t) - # self._numerator = self._compute_numerator(df, emw_weights) - # self._last_time = t - - # used by covariance forecaster - # return df, emw_weights - - def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ - """Update forecast from period before. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - last_row = self._get_last_row(t=t, **kwargs) - - # if emw discount past - if _is_timedelta(_resolve_hyperpar(self.half_life)): - time_passed_in_halflifes = ( - self._last_time - t)/_resolve_hyperpar(self.half_life) - discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) - self._emw_mw_value *= discount_factor - else: - discount_factor = 1. - - # for emw we also need to discount last element - self._emw_mw_value += self._add_update(last_row) * discount_factor - - # Moving average window logic: subtract elements that have gone out - if _is_timedelta(_resolve_hyperpar(self.rolling)): - df = self._dataframe_selector(t=t, **kwargs) - # observations_to_subtract, emw_weights_of_subtract = \ - self._remove_part_gone_out_of_ma(df, t) - #else: - # observations_to_subtract, emw_weights_of_subtract = None, None - - self._last_time = t - - # used by covariance forecaster - # return ( - # discount_factor, observations_to_subtract, emw_weights_of_subtract) - - def _remove_part_gone_out_of_ma(self, df, t): - """Subtract too old observations.""" - - observations_to_subtract = df.loc[ - (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) - & (df.index < (t - _resolve_hyperpar(self.rolling)))] - - # If EMW, compute weights here - if _is_timedelta(_resolve_hyperpar(self.half_life)): - emw_weights = self._emw_weights(observations_to_subtract.index, t) - else: - emw_weights = None - - self._emw_mw_value -= self._compute( - observations_to_subtract, emw_weights) - # self._check_denominator_valid(t) - # self._numerator -= self._compute_numerator( - # observations_to_subtract, emw_weights).fillna(0.) - - # used by covariance forecaster - # return observations_to_subtract, emw_weights - - -# class VectorCount(BaseForecast): -# """Count of non-NaN values of vectors, like returns.""" - -# def _compute(self, df, emw_weights): -# """Exponential moving window (optional) denominator.""" -# if emw_weights is None: -# return df.count() -# ones = (~df.isnull()) * 1. -# return ones.multiply(emw_weights, axis=0).sum() - -# def _add_update(self, last_row): -# """Update with last observation. - -# Emw (if any) is applied upstream. -# """ -# return ~(last_row.isnull()) - - class BaseMeanVarForecast(BaseForecast): """This class contains logic common to mean and (co)variance forecasters. @@ -869,11 +840,11 @@ def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ df = self._dataframe_selector(t=t, **kwargs) # Moving average window logic - if _is_timedelta(_resolve_hyperpar(self.rolling)): + if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): df = df.loc[df.index >= t-_resolve_hyperpar(self.rolling)] # If EMW, compute weights here - if _is_timedelta(_resolve_hyperpar(self.half_life)): + if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): emw_weights = self._emw_weights(df.index, t) else: emw_weights = None @@ -894,7 +865,7 @@ def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ last_row = self._get_last_row(t=t, **kwargs) # if emw discount past - if _is_timedelta(_resolve_hyperpar(self.half_life)): + if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): time_passed_in_halflifes = ( self._last_time - t)/_resolve_hyperpar(self.half_life) discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) @@ -909,7 +880,7 @@ def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ self._numerator += self._update_numerator(last_row) * discount_factor # Moving average window logic: subtract elements that have gone out - if _is_timedelta(_resolve_hyperpar(self.rolling)): + if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): df = self._dataframe_selector(t=t, **kwargs) observations_to_subtract, emw_weights_of_subtract = \ self._remove_part_gone_out_of_ma(df, t) @@ -930,7 +901,7 @@ def _remove_part_gone_out_of_ma(self, df, t): & (df.index < (t - _resolve_hyperpar(self.rolling)))] # If EMW, compute weights here - if _is_timedelta(_resolve_hyperpar(self.half_life)): + if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): emw_weights = self._emw_weights(observations_to_subtract.index, t) else: emw_weights = None @@ -990,7 +961,7 @@ def _update_denominator(self, last_row): return ~(last_row.isnull()) -class HistoricalMeanReturn(BaseMeanForecast): +class OldHistoricalMeanReturn(BaseMeanForecast): r"""Historical means of non-cash returns. .. versionadded:: 1.2.0 diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index 1bd521f38..ed52d481f 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -680,6 +680,7 @@ def _compare_with_eigh(returns): t=t, past_returns=returns) -if __name__ == '__main__': - - unittest.main(warnings='error') # pragma: no cover +if __name__ == '__main__': # pragma: no cover + import logging + logging.basicConfig(level='DEBUG') + unittest.main(warnings='error') From 8ff86e79f21e6e9c841fc2834aef0b98b32ffff3 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 24 Jun 2024 17:12:58 +0400 Subject: [PATCH 004/125] getting closer --- cvxportfolio/forecast.py | 78 ++++++++++++++++++++++++++++++---------- 1 file changed, 59 insertions(+), 19 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 307658e8c..4fcfed5ab 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -636,7 +636,7 @@ class SumPastReturns(VectorSum, OnPastReturns): class SumPastReturnsSquared(VectorSum, OnPastReturnsSquared): """Sum non-nan past returns squared, excluding cash.""" -class SumPastVolumes(VectorCount, OnPastVolumes): +class SumPastVolumes(VectorSum, OnPastVolumes): """Sum non-nan past volumes.""" class HistoricalMeanReturn(BaseForecast): @@ -651,15 +651,15 @@ def values_in_time(self, **kwargs): # breakpoint() return self._numerator.current_value / self._denominator.current_value -class NewHistoricalVariance(BaseForecast): +class HistoricalVariance(BaseForecast): """Test.""" - def __init__(self, kelly=True): + def __init__(self, kelly=True, **kwargs): self.kelly = kelly - self._denominator = CountPastReturns() - self._numerator = SumPastReturnsSquared() + self._denominator = CountPastReturns(**kwargs) + self._numerator = SumPastReturnsSquared(**kwargs) if not self.kelly: - self._correction = NewMeanHistoricalReturns() + self._correction = HistoricalMeanReturn(**kwargs) def values_in_time(self, **kwargs): """Current value.""" @@ -668,23 +668,63 @@ def values_in_time(self, **kwargs): result -= self._correction.current_value ** 2 return result -class NewHistoricalStandardDeviation(BaseForecast): +class HistoricalMeanError(HistoricalVariance): + r"""Historical standard deviations of the mean of non-cash returns. + + .. versionadded:: 1.2.0 + + Added the ``half_life`` and ``rolling`` parameters. + + For a given time series of past returns :math:`r_{t-1}, r_{t-2}, + \ldots, r_0` this is :math:`\sqrt{\text{Var}[r]/t}`. When there are + missing values we ignore them, both to compute the variance and the + count. + + :param half_life: Half-life of exponential smoothing, expressed as + Pandas Timedelta. If in back-test, that is with respect to each point + in time. Default ``np.inf``, meaning no exponential smoothing. + :type half_life: pandas.Timedelta or np.inf + :param rolling: Rolling window used: observations older than this Pandas + Timedelta are skipped over. If in back-test, that is with respect to + each point in time. Default ``np.inf``, meaning that all past is used. + :type rolling: pandas.Timedelta or np.inf + :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. + Default False. + :type kelly: bool + """ + + def __init__(self, rolling=np.inf, half_life=np.inf, kelly=False): + super().__init__(rolling=rolling, half_life=half_life, kelly=kelly) + + def values_in_time(self, **kwargs): + """Obtain current value either by update or from scratch. + + :param kwargs: All arguments to :meth:`values_in_time`. + :type kwargs: dict + + :returns: Standard deviation of the mean of past returns (excluding + cash). + :rtype: numpy.array + """ + variance = super().values_in_time(**kwargs) + return np.sqrt(variance / self._denominator.current_value) + +class HistoricalStandardDeviation(BaseForecast): """Test.""" - def __init__(self, kelly=True): - self.kelly = kelly - self._variance = NewHistoricalVariance(kelly=kelly) + def __init__(self, **kwargs): + self._variance = HistoricalVariance(**kwargs) def values_in_time(self, **kwargs): """Current value.""" return np.sqrt(self._variance.current_value) -class NewMeanHistoricalVolumes(BaseForecast): +class HistoricalMeanVolume(BaseForecast): """Test.""" - def __init__(self): - self._denominator = CountPastVolumes() - self._numerator = SumPastVolumes() + def __init__(self, **kwargs): + self._denominator = CountPastVolumes(**kwargs) + self._numerator = SumPastVolumes(**kwargs) def values_in_time(self, **kwargs): """Current value.""" @@ -734,7 +774,7 @@ def _single_compute(self, last_row): class CovarianceNumerator(MatrixSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" -class NewHistoricalCovariance(NewHistoricalVariance): +class NewHistoricalCovariance(HistoricalVariance): """Test.""" def __init__(self, kelly=True): @@ -1183,7 +1223,7 @@ def solve_for_single_X(self, asset, X_last, quad_reg): # return df.multiply(regr_on_df, axis=0).dropna(how='all') -class HistoricalMeanVolume(BaseMeanForecast): +class OldHistoricalMeanVolume(BaseMeanForecast): r"""Historical means of traded volume in units of value (e.g., dollars). .. versionadded:: 1.2.0 @@ -1206,7 +1246,7 @@ def _dataframe_selector(self, past_volumes, **kwargs): + " provides market volumes.") return past_volumes -class HistoricalVariance(BaseMeanForecast): +class OldHistoricalVariance(BaseMeanForecast): r"""Historical variances of non-cash returns. .. versionadded:: 1.2.0 @@ -1272,7 +1312,7 @@ def _dataframe_selector(self, past_returns, **kwargs): return past_returns.iloc[:, :-1]**2 -class HistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): +class OldHistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): """Historical standard deviation of non-cash returns. .. versionadded:: 1.2.0 @@ -1332,7 +1372,7 @@ def simulate(self, **kwargs): current_prices=kwargs['current_prices'] ) -class HistoricalMeanError(HistoricalVariance): +class OldHistoricalMeanError(HistoricalVariance): r"""Historical standard deviations of the mean of non-cash returns. .. versionadded:: 1.2.0 From e48f8a15272e89a2f6f67921d68638f5070c8e46 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 24 Jun 2024 20:00:43 +0400 Subject: [PATCH 005/125] getting closer; --- cvxportfolio/forecast.py | 168 +++++++++++++++++++++++++-------------- 1 file changed, 110 insertions(+), 58 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 4fcfed5ab..517e99c52 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -112,8 +112,6 @@ class BaseForecast(Estimator): """Base class for forecasters.""" - _last_time = None - # Will be exposed to the user, for now it's a class-level constant _CACHED = False @@ -199,24 +197,6 @@ def values_in_time_recursive( # pylint: disable=arguments-differ # return None # pragma: no cover - def initialize_estimator( # pylint: disable=arguments-differ - self, **kwargs): - """Initialize internal variables. - - :param kwargs: Unused arguments to :meth:`initialize_estimator`. - :type kwargs: dict - """ - self._last_time = None - - def finalize_estimator( # pylint: disable=arguments-differ - self, **kwargs): - """Dereference internal variables. - - :param kwargs: Unused arguments to :meth:`initialize_estimator`. - :type kwargs: dict - """ - self._last_time = None - def estimate(self, market_data, t=None): """Estimate the forecaster at given time on given market data. @@ -271,7 +251,43 @@ def estimate(self, market_data, t=None): return forecast, t - def _agnostic_update(self, t, past_returns, **kwargs): # TODO rename this to values_in_time + +def _is_timedelta_or_inf(value): + if isinstance(value, pd.Timedelta): + if value <= pd.Timedelta('0d'): + raise ValueError( + '(Exponential) moving average window must be positive') + return True + if isinstance(value, float) and np.isposinf(value): + return False + raise ValueError( + '(Exponential) moving average window can only be' + ' pandas Timedeltas or np.inf.') + +class UpdatingForecaster(BaseForecast): + """Forecaster that updates internal forecast at each period.""" + + _last_time = None + + def initialize_estimator( # pylint: disable=arguments-differ + self, **kwargs): + """Initialize internal variables. + + :param kwargs: Unused arguments to :meth:`initialize_estimator`. + :type kwargs: dict + """ + self._last_time = None + + def finalize_estimator( # pylint: disable=arguments-differ + self, **kwargs): + """Dereference internal variables. + + :param kwargs: Unused arguments to :meth:`initialize_estimator`. + :type kwargs: dict + """ + self._last_time = None + + def values_in_time(self, t, past_returns, **kwargs): # TODO rename this to values_in_time """Choose whether to make forecast from scratch or update last one.""" if (self._last_time is None) or ( self._last_time != past_returns.index[-1]): @@ -295,19 +311,7 @@ def _online_update(self, **kwargs): """Update forecast from period before.""" raise NotImplementedError # pragma: no cover -def _is_timedelta_or_inf(value): - if isinstance(value, pd.Timedelta): - if value <= pd.Timedelta('0d'): - raise ValueError( - '(Exponential) moving average window must be positive') - return True - if isinstance(value, float) and np.isposinf(value): - return False - raise ValueError( - '(Exponential) moving average window can only be' - ' pandas Timedeltas or np.inf.') - -class AssociativeForecaster(BaseForecast): +class AssociativeForecaster(UpdatingForecaster): """Base forecaster that only operates on one DataFrame.""" def __init__(self, half_life=np.inf, rolling=np.inf): @@ -438,40 +442,46 @@ def _get_last_row(self, **kwargs): """ return self._dataframe_selector(**kwargs).iloc[-1] - def values_in_time(self, **kwargs): - """Temporary.""" - return self._agnostic_update(**kwargs) + # def values_in_time(self, **kwargs): + # """Temporary.""" + # return self._agnostic_update(**kwargs) class OnPastReturns(AssociativeForecaster): """Intermediate class, operate on past returns.""" def _dataframe_selector(self, past_returns, **kwargs): """Returns, skipping cash.""" + if past_returns is None: + raise DataError( + f"{self.__class__.__name__} can only be used if MarketData is" + + " not None.") return past_returns.iloc[:, :-1] -class OnPastReturnsSquared(AssociativeForecaster): +class OnPastReturnsSquared(OnPastReturns): """Intermediate class, operate on past returns squared, override update.""" - def _dataframe_selector(self, past_returns, **kwargs): + def _dataframe_selector(self, **kwargs): """Past returns squared, skipping cash.""" - return past_returns.iloc[:, :-1]**2 + return super()._dataframe_selector(**kwargs)**2 - def _get_last_row(self, past_returns, **kwargs): + def _get_last_row(self, **kwargs): """Most recent past returns.""" - return past_returns.iloc[-1, :-1]**2 + return super()._dataframe_selector(**kwargs).iloc[-1]**2 class OnPastVolumes(AssociativeForecaster): """Intermediate class, operate on past volumes.""" def _dataframe_selector(self, past_volumes, **kwargs): """Past volumes.""" + if past_volumes is None: + raise DataError( + f"{self.__class__.__name__} can only be used if MarketData" + + " provides market volumes.") return past_volumes class VectorCount(AssociativeForecaster): """Count of non-NaN values of vectors.""" - # TODO: checks that too few counts - def _batch_compute(self, df, emw_weights): """Compute from scratch.""" if emw_weights is None: @@ -483,6 +493,24 @@ def _single_compute(self, last_row): """Update with last observation.""" return ~(last_row.isnull()) + def values_in_time(self, t, **kwargs): + """Override to check that we have enough observations.""" + result = super().values_in_time(t=t, **kwargs) + + mindenom = np.min(result) + if mindenom == 0: + raise ForecastError( + f'{self.__class__.__name__} can not compute the forecast at' + + f' time {t} because there are no observation for either some' + ' asset or some pair of assets (in the case of covariance).') + if mindenom < 5: + logger.warning( + '%s at time %s is given 5 or less observations for either some' + + ' asset or some pair of assets (in the case of covariance).', + self.__class__.__name__, t) + + return result + # class WithEmwMw(SingleDataFrameForecaster): # """Intermediate class, add EMW+MW logic. @@ -648,7 +676,6 @@ def __init__(self, **kwargs): def values_in_time(self, **kwargs): """Current value.""" - # breakpoint() return self._numerator.current_value / self._denominator.current_value class HistoricalVariance(BaseForecast): @@ -709,15 +736,12 @@ def values_in_time(self, **kwargs): variance = super().values_in_time(**kwargs) return np.sqrt(variance / self._denominator.current_value) -class HistoricalStandardDeviation(BaseForecast): +class HistoricalStandardDeviation(HistoricalVariance): """Test.""" - def __init__(self, **kwargs): - self._variance = HistoricalVariance(**kwargs) - def values_in_time(self, **kwargs): """Current value.""" - return np.sqrt(self._variance.current_value) + return np.sqrt(super().values_in_time(**kwargs)) class HistoricalMeanVolume(BaseForecast): """Test.""" @@ -730,7 +754,7 @@ def values_in_time(self, **kwargs): """Current value.""" return self._numerator.current_value / self._denominator.current_value -class MatrixCount(AssociativeForecaster): +class MatrixCount(VectorCount): # inheritance is for the min counts check """Joint count, e.g., for the denominator of covariances.""" # TODO: checks that too few counts @@ -774,15 +798,43 @@ def _single_compute(self, last_row): class CovarianceNumerator(MatrixSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" -class NewHistoricalCovariance(HistoricalVariance): +class JointMean(AssociativeForecaster): + """Corrector that we need for non-Kelly covariance.""" + + def _batch_compute(self, df, emw_weights): + r"""Compute precursor of :math:`\Sigma_{i,j} = + \mathbf{E}[r^{i}]\mathbf{E}[r^{j}]`.""" + nonnull = (~df.isnull()) * 1. + if emw_weights is None: + return nonnull.T @ df.fillna(0.) + return nonnull.T @ df.fillna(0.).multiply(emw_weights, axis=0) + + def _single_compute(self, last_row): + r"""Update precursor of :math:`\Sigma_{i,j} = + \mathbf{E}[r^{i}]\mathbf{E}[r^{j}]`.""" + return last_row.fillna(0.) + +class JointMeanReturns(JointMean, OnPastReturns): + """Compute corrector for non-Kelly covariance.""" + + +class HistoricalCovariance(HistoricalVariance): # inheritance maybe not needed """Test.""" - def __init__(self, kelly=True): + def __init__(self, kelly=True, **kwargs): self.kelly = kelly - self._denominator = CovarianceDenominator() - self._numerator = CovarianceNumerator() - # if not self.kelly: # TODO: implement - # self._correction = NewMeanHistoricalReturns() + self._denominator = CovarianceDenominator(**kwargs) + self._numerator = CovarianceNumerator(**kwargs) + if not self.kelly: + self._correction = JointMeanReturns(**kwargs) + + def values_in_time(self, **kwargs): + """Current value.""" + result = self._numerator.current_value / self._denominator.current_value + if not self.kelly: + tmp = self._correction.current_value / self._denominator.current_value + result -= tmp.T * tmp + return result class BaseMeanVarForecast(BaseForecast): @@ -1414,7 +1466,7 @@ def values_in_time(self, **kwargs): return np.sqrt(variance / self._denominator.values) -class HistoricalCovariance(BaseMeanVarForecast): +class OldHistoricalCovariance(BaseMeanVarForecast): r"""Historical covariance matrix.""" _joint_mean = None From 19b6a96a87296e67f973ef3ec9e9b878dd574016 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 24 Jun 2024 20:25:33 +0400 Subject: [PATCH 006/125] only 4 tests fail of 170 --- cvxportfolio/estimator.py | 5 +++-- cvxportfolio/forecast.py | 15 ++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/cvxportfolio/estimator.py b/cvxportfolio/estimator.py index 411925f36..aea760191 100644 --- a/cvxportfolio/estimator.py +++ b/cvxportfolio/estimator.py @@ -573,9 +573,10 @@ def _universe_subselect(self, data): def _internal_values_in_time(self, t, **kwargs): """Internal method called by :meth:`values_in_time`.""" - # here we trust the result (change?) + # here we trust the result, assuming it's internal class if hasattr(self.data, "values_in_time_recursive"): - return self.data.current_value + return self.data.current_value.values if hasattr( + self.data.current_value, 'values') else self.data.current_value # here (probably user-provided) we check if hasattr(self.data, "values_in_time"): diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 517e99c52..eb0a8a1b3 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -736,13 +736,26 @@ def values_in_time(self, **kwargs): variance = super().values_in_time(**kwargs) return np.sqrt(variance / self._denominator.current_value) -class HistoricalStandardDeviation(HistoricalVariance): +class HistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): """Test.""" def values_in_time(self, **kwargs): """Current value.""" return np.sqrt(super().values_in_time(**kwargs)) + def simulate(self, **kwargs): + # TODO could take last return as well + # with new design of forecasters we need to launch recursive loop + # here... + return self.values_in_time_recursive( + t=kwargs['t'], + current_weights=kwargs['current_weights'], + current_portfolio_value=kwargs['current_portfolio_value'], + past_returns=kwargs['past_returns'], + past_volumes=kwargs['past_volumes'], + current_prices=kwargs['current_prices'] + ) + class HistoricalMeanVolume(BaseForecast): """Test.""" From c245881d897643eda602b0eb9b93ef4dc4976210 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 11 Jul 2024 11:31:09 +0400 Subject: [PATCH 007/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-11 --- .../ftse100_daily_initial_holdings.json | 167 ++++++++++++++---- .../ftse100_daily_target_weights.json | 103 +++++++++++ 2 files changed, 238 insertions(+), 32 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index a89bfe2b5..2a215bab2 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10177,23 +10177,23 @@ }, "2024-07-10 07:00:00+00:00": { "AAF.L": 21332.268096285054, - "AAL.L": 10532.734947737463, - "ABF.L": 9624.77185878453, + "AAL.L": 10467.192104254345, + "ABF.L": 9716.171426394796, "ADM.L": 10538.746301988402, - "AHT.L": 15249.243114358047, + "AHT.L": 15153.335924959558, "ANTO.L": 19998.26660705148, "AUTO.L": 10417.576401424487, - "AV.L": 10375.014424629375, - "AZN.L": 12099.38574899443, - "BA.L": 10275.101438082786, - "BARC.L": 10276.6733125644, - "BATS.L": 10254.452655390603, + "AV.L": 10336.075275966212, + "AZN.L": 12201.30106022248, + "BA.L": 10360.693318368287, + "BARC.L": 10213.178705260983, + "BATS.L": 10366.910097184083, "BDEV.L": 10052.946999206846, "BEZ.L": 10456.327353609071, "BKG.L": 9572.798837708986, "BME.L": 10176.222291239339, "BNZL.L": 9388.910512739707, - "BP.L": 1.3580835460474395e-12, + "BP.L": 1.3674726346717434e-12, "BRBY.L": 9616.26689765069, "BT-A.L": 0.0, "CCH.L": 0.0, @@ -10203,60 +10203,60 @@ "CTEC.L": 42.15689487042008, "DARK.L": 0.0, "DCC.L": 22890.93953681734, - "DGE.L": 9914.78083042495, + "DGE.L": 9977.18858793625, "DPLM.L": 8358.149598713779, "EDV.L": 0.0, - "ENT.L": 10649.410408353657, + "ENT.L": 10826.900173028462, "EXPN.L": 11013.53783159181, - "EZJ.L": 8662.848238548395, + "EZJ.L": 8747.115458039976, "FCIT.L": 0.0, "FRAS.L": 9981.757856823166, "FRES.L": 10214.926976416333, "GBPOUND": 71936.0422122887, "GLEN.L": 10082.920198069069, - "GSK.L": 10821.948068401649, + "GSK.L": 10757.870744312428, "HIK.L": 10976.90234233157, "HL.L": 0.0, - "HLMA.L": 10669.556228240162, + "HLMA.L": 10669.556319389405, "HLN.L": 0.0, "HSBA.L": 10146.16141760568, "HWDN.L": 9828.956389244555, "IAG.L": 10219.943858174776, - "ICG.L": 11219.96010898213, + "ICG.L": 11139.53028741237, "IHG.L": 16367.723223353285, - "III.L": 8717.53553383815, + "III.L": 8792.171968203202, "IMB.L": 10335.196906183715, "IMI.L": 10669.979415991997, "INF.L": 10270.438603868677, "ITRK.L": 9560.843749277472, - "JD.L": 10282.869459711845, + "JD.L": 10384.95556443862, "KGF.L": 10279.470104543312, "LAND.L": 0.0, - "LGEN.L": 10182.585830222966, + "LGEN.L": 10281.098643445956, "LLOY.L": 0.0, "LMP.L": 0.0, - "LSEG.L": 28085.794773677248, + "LSEG.L": 27917.14749646024, "MKS.L": 0.0, "MNDI.L": 9545.122908997035, - "MNG.L": 10534.21928714557, - "MRO.L": 43861.13772528431, - "NG.L": 10441.311202401132, - "NWG.L": 9958.426675859906, - "NXT.L": 8662.259616990168, + "MNG.L": 10454.527489721426, + "MRO.L": 43566.66460171223, + "NG.L": 10542.990275740682, + "NWG.L": 10042.29308000433, + "NXT.L": 8847.161678420123, "PHNX.L": 0.0, - "PRU.L": 10098.159643028866, - "PSH.L": 51371.68157769056, + "PRU.L": 10248.75174187529, + "PSH.L": 50746.370846876016, "PSN.L": 10054.669229244842, "PSON.L": 15.871548430885525, "REL.L": 10886.119182013827, - "RIO.L": 10991.811438410365, + "RIO.L": 11049.304446708911, "RKT.L": 8653.065780128063, "RMV.L": 10824.460756009445, - "RR.L": 10075.175707195489, + "RR.L": 10129.513595292745, "RTO.L": 10617.067784495937, "SBRY.L": 0.0, "SDR.L": 10320.408570373174, - "SGE.L": 37183.554823291175, + "SGE.L": 36990.80312533823, "SGRO.L": 0.0, "SHEL.L": 0.0, "SMDS.L": 10214.015875579336, @@ -10264,18 +10264,121 @@ "SMT.L": 10649.750502797937, "SN.L": 1149.1394080438583, "SPX.L": 8632.99717464528, - "SSE.L": 10832.480410839298, + "SSE.L": 10945.94079000465, "STAN.L": 10207.958308707546, "SVT.L": 10420.807249000556, "TSCO.L": 10405.057883988704, "TW.L": 10182.460388084166, - "ULVR.L": 8755.306345668227, + "ULVR.L": 8809.913245953057, "UTG.L": 10240.953789766001, "UU.L": 10769.197468533475, "VOD.L": 10419.057108741246, "VTY.L": 0.0, "WEIR.L": 9679.695398298827, - "WPP.L": 10540.69551266829, + "WPP.L": 10501.175133386954, "WTB.L": 11800.5813578757 + }, + "2024-07-11 07:00:00+00:00": { + "AAF.L": 21858.600959668056, + "AAL.L": 10495.594003097029, + "ABF.L": 9779.753734297576, + "ADM.L": 10522.802661592053, + "AHT.L": 15195.295320321393, + "ANTO.L": 19989.088880292846, + "AUTO.L": 10461.228579383662, + "AV.L": 10920.248949492725, + "AZN.L": 12370.480476861056, + "BA.L": 10389.223945130116, + "BARC.L": 10569.624345347935, + "BATS.L": 10371.075187620874, + "BDEV.L": 10598.78436613619, + "BEZ.L": 10311.62945141055, + "BKG.L": 9612.885935019329, + "BME.L": 10176.222291239339, + "BNZL.L": 9551.410886998654, + "BP.L": 1.3714099496934317e-12, + "BRBY.L": 10581.029269222277, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10582.17818134604, + "CPG.L": 0.0, + "CRDA.L": 12013.014195905855, + "CTEC.L": 42.12228118662142, + "DARK.L": 20966.400878906246, + "DCC.L": 23093.156317177938, + "DGE.L": 10150.319786193415, + "DPLM.L": 8314.410471413184, + "EDV.L": 5496.0, + "ENT.L": 11091.461815234015, + "EXPN.L": 11007.511271902835, + "EZJ.L": 9484.467190737276, + "FCIT.L": 0.0, + "FRAS.L": 9647.468668903703, + "FRES.L": 10595.17806521694, + "GBPOUND": 3916.8018705330483, + "GLEN.L": 10679.17218537407, + "GSK.L": 10725.83208226782, + "HIK.L": 10952.76401942375, + "HL.L": 9895.5, + "HLMA.L": 10539.4939136196, + "HLN.L": 0.0, + "HSBA.L": 10202.318367642549, + "HWDN.L": 10890.723301420581, + "IAG.L": 10356.561840753498, + "ICG.L": 11219.96010898213, + "IHG.L": 16616.75361350003, + "III.L": 11872.677518939672, + "IMB.L": 10340.2335518495, + "IMI.L": 10831.918395324088, + "INF.L": 10212.793632840461, + "ITRK.L": 9572.880061173342, + "JD.L": 10278.228892566976, + "KGF.L": 10430.405871399804, + "LAND.L": 0.0, + "LGEN.L": 10325.876946451792, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 27814.75450672132, + "MKS.L": 0.0, + "MNDI.L": 11316.322527872664, + "MNG.L": 10342.241862606466, + "MRO.L": 45212.069487215136, + "NG.L": 10651.44767814739, + "NWG.L": 10452.160432080944, + "NXT.L": 8881.328363684348, + "PHNX.L": 0.0, + "PRU.L": 10538.568976610723, + "PSH.L": 55278.97579955964, + "PSN.L": 10125.30266253775, + "PSON.L": 1023.3401040555883, + "REL.L": 10849.932636256428, + "RIO.L": 11055.692558742072, + "RKT.L": 8814.024620869788, + "RMV.L": 11395.061190414712, + "RR.L": 10360.452556216927, + "RTO.L": 10156.213077739729, + "SBRY.L": 0.0, + "SDR.L": 10571.44553559847, + "SGE.L": 37523.63955800767, + "SGRO.L": 0.0, + "SHEL.L": 2815.000000000002, + "SMDS.L": 10170.137346001222, + "SMIN.L": 0.0, + "SMT.L": 10713.97683867193, + "SN.L": 3362.75972252605, + "SPX.L": 8592.820340790031, + "SSE.L": 11074.330166428601, + "STAN.L": 10368.48801343486, + "SVT.L": 10846.56007434883, + "TSCO.L": 10475.63503073625, + "TW.L": 10484.020836302745, + "ULVR.L": 8860.475190661236, + "UTG.L": 10207.68593771479, + "UU.L": 11010.682335432844, + "VOD.L": 10522.397446672448, + "VTY.L": 10256.0, + "WEIR.L": 9854.87085793712, + "WPP.L": 10227.353824295493, + "WTB.L": 11796.55385570578 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 4551a7700..75f43f62c 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -9886,5 +9886,108 @@ "WEIR.L": 0.009999998789538871, "WPP.L": 0.00999999699931068, "WTB.L": 0.0099999894968529 + }, + "2024-07-11 07:00:00+00:00": { + "AAF.L": 0.021192862743056453, + "AAL.L": 0.00999999975034123, + "ABF.L": 0.009967642227852671, + "ADM.L": 0.01000010652098772, + "AHT.L": 0.014748656146483297, + "ANTO.L": 0.01927839656361109, + "AUTO.L": 0.010000012844284905, + "AV.L": 0.010499372308997546, + "AZN.L": 0.01000002798338058, + "BA.L": 0.01000000648640326, + "BARC.L": 0.010000000920624339, + "BATS.L": 0.01000000179400307, + "BDEV.L": 0.010000005420243365, + "BEZ.L": 0.010000009856162449, + "BKG.L": 0.01000000227069575, + "BME.L": 0.00999998822487552, + "BNZL.L": 0.009999988753687938, + "BP.L": 1.545371497272613e-07, + "BRBY.L": 0.009999992660191828, + "BT-A.L": 2.6574714463118582e-08, + "CCH.L": 8.347348258281986e-08, + "CNA.L": 0.009999994797774431, + "CPG.L": 9.690817271629369e-08, + "CRDA.L": 0.009999998295094846, + "CTEC.L": 4.04161586675844e-05, + "DARK.L": 0.023212719539739076, + "DCC.L": 0.021264603242852, + "DGE.L": 0.009995221889433555, + "DPLM.L": 0.01000000605552445, + "EDV.L": 0.006901546135800814, + "ENT.L": 0.010658523943233082, + "EXPN.L": 0.01000000299962153, + "EZJ.L": 0.00912504359047594, + "FCIT.L": 2.9779800888765647e-08, + "FRAS.L": 0.010000000218982586, + "FRES.L": 0.009999999266904643, + "GBPOUND": 1.6265132523956768e-07, + "GLEN.L": 0.009999975132415812, + "GSK.L": 0.009999993122523658, + "HIK.L": 0.010000006984346669, + "HL.L": 0.010000004398574349, + "HLMA.L": 0.010000005872056562, + "HLN.L": 1.1089580053192462e-08, + "HSBA.L": 0.009999999170169239, + "HWDN.L": 0.010000001499866663, + "IAG.L": 0.00999992127801988, + "ICG.L": 0.010000018463880034, + "IHG.L": 0.015314931260004336, + "III.L": 0.010000006508713761, + "IMB.L": 0.010000009784005798, + "IMI.L": 0.009999992769593366, + "INF.L": 0.009999910250532772, + "ITRK.L": 0.00999999628378851, + "JD.L": 0.010000005462255714, + "KGF.L": 0.009999991538044739, + "LAND.L": 1.9864286151461638e-08, + "LGEN.L": 0.009999996604494311, + "LLOY.L": 8.08664199039707e-08, + "LMP.L": 5.699616444333699e-08, + "LSEG.L": 0.026755685623661662, + "MKS.L": 4.6331031839628244e-08, + "MNDI.L": 0.010000001555164098, + "MNG.L": 0.01000000029540676, + "MRO.L": 0.04346925039382044, + "NG.L": 0.009999984710673069, + "NWG.L": 0.009999992723270614, + "NXT.L": 0.010000008047222715, + "PHNX.L": 3.673100008061369e-08, + "PRU.L": 0.009999998460127162, + "PSH.L": 0.05374000122126862, + "PSN.L": 0.009999999048874952, + "PSON.L": 0.0009844304248273477, + "REL.L": 0.009999995691549786, + "RIO.L": 0.01000000377267523, + "RKT.L": 0.00999998734817746, + "RMV.L": 0.010955834174752856, + "RR.L": 0.009999995254066444, + "RTO.L": 0.009999998002043486, + "SBRY.L": 5.233075427553643e-08, + "SDR.L": 0.009999996052125606, + "SGE.L": 0.036077006354091765, + "SGRO.L": 7.148505950244145e-08, + "SHEL.L": 0.002583182760907467, + "SMDS.L": 0.009999990071053072, + "SMIN.L": 7.841732421914707e-08, + "SMT.L": 0.009999983577904652, + "SN.L": 0.003233835554437718, + "SPX.L": 0.00999997578175706, + "SSE.L": 0.009999998740049981, + "STAN.L": 0.009999992878216032, + "SVT.L": 0.010000005942332135, + "TSCO.L": 0.009999995782377792, + "TW.L": 0.009999998372633392, + "ULVR.L": 0.00999994149278507, + "UTG.L": 0.010000011050098815, + "UU.L": 0.009999993372901502, + "VOD.L": 0.010000037127234927, + "VTY.L": 0.0099999971435672, + "WEIR.L": 0.009999997437938933, + "WPP.L": 0.00999998902097139, + "WTB.L": 0.00999998070949311 } } \ No newline at end of file From 8d22b20cb7a7b68a2da9c491e7bae5efe33407be Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 11 Jul 2024 18:00:36 +0400 Subject: [PATCH 008/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-11 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 277032d56..087b36dd3 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4422,14 +4422,14 @@ "WMT": 0.0003876873752615694 }, "2024-07-10 13:30:00+00:00": { - "AAPL": 225046.98331812958, + "AAPL": 224909.6644549343, "AMGN": 20034.753568233737, - "AMZN": 233380.43607414654, + "AMZN": 233403.78143833295, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 78802.94605853781, - "CSCO": 43531.74560686704, + "CSCO": 43550.65644140387, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -4444,7 +4444,7 @@ "MCD": 1.163165656485392e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 246389.82978427073, + "MSFT": 246397.85106934016, "NKE": 9.862803947929394e-13, "PG": 0.0, "TRV": 0.0, @@ -4453,5 +4453,38 @@ "V": 33588.448492125506, "VZ": 0.0, "WMT": 0.00038879662118763205 + }, + "2024-07-11 13:30:00+00:00": { + "AAPL": 225957.88684110483, + "AMGN": 20346.908151915508, + "AMZN": 233508.80886622934, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 79494.73733567949, + "CSCO": 43683.028676288806, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 107490.39238365863, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1830383710208103e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 247204.5445352762, + "NKE": 9.922859060587654e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 102805.3233757096, + "USDOLLAR": -104.45984620336114, + "V": 33978.62123015665, + "VZ": 0.0, + "WMT": 0.00038924033648406474 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index e1119f850..8729740b1 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4453,5 +4453,38 @@ "V": 0.03095183369027344, "VZ": 3.15377226734954e-09, "WMT": 2.8791920108087798e-08 + }, + "2024-07-11 13:30:00+00:00": { + "AAPL": 0.20620349095337617, + "AMGN": 0.018591978867285017, + "AMZN": 0.2133736333971453, + "AXP": 1.1007928973142905e-08, + "BA": 1.9659276180383474e-08, + "CAT": 9.53741671488372e-09, + "CRM": 0.07281105204027005, + "CSCO": 0.039916268779816105, + "CVX": 1.0814509973430372e-08, + "DIS": 1.4222825623041766e-08, + "DOW": 1.4007591925510443e-08, + "GS": 1.1104330352831032e-08, + "HD": 0.0982226184829768, + "HON": 6.715613320453497e-09, + "IBM": 4.822039513738348e-09, + "INTC": 1.2440835918008333e-08, + "JNJ": 1.5447946017803835e-08, + "JPM": 1.8429863418022002e-08, + "KO": 1.1582240379915955e-08, + "MCD": 3.221320426950424e-08, + "MMM": 6.585498071491541e-09, + "MRK": 1.3480823177829321e-08, + "MSFT": 0.22588787143880565, + "NKE": 2.9661879272271044e-08, + "PG": 8.999671749879063e-09, + "TRV": 7.947841659772975e-09, + "UNH": 0.09394413421535827, + "USDOLLAR": 1.2555878924161998e-08, + "V": 0.031048614288375777, + "VZ": 6.996870072684633e-09, + "WMT": 5.930250539979953e-08 } } \ No newline at end of file From fd3f9495807b8500097445b7b80615dbd5665052 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 11 Jul 2024 18:01:45 +0400 Subject: [PATCH 009/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-11 --- .../ndx100_daily_initial_holdings.json | 150 +++++++++++++++--- .../ndx100_daily_target_weights.json | 104 ++++++++++++ 2 files changed, 231 insertions(+), 23 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 35e563764..b5d2d607b 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -13831,17 +13831,17 @@ "ZS": 14612.179487044868 }, "2024-07-10 13:30:00+00:00": { - "AAPL": 2926.0905598306763, + "AAPL": 2924.305121859644, "ABNB": 0.0, - "ADBE": 17177.8674564302, + "ADBE": 17192.78723274434, "ADI": 0.0, "ADP": 0.0, "ADSK": 2763.6408749121256, "AEP": 0.0, "AMAT": 693.7701803440636, - "AMD": -2.226338488834926e-11, + "AMD": -2.2269571601541276e-11, "AMGN": 25322.401494641632, - "AMZN": 23905.972410188224, + "AMZN": 23908.363757301693, "ANSS": 4938.334706263245, "ASML": 2157.2697558638242, "AVGO": 25453.825452881745, @@ -13852,13 +13852,13 @@ "CCEP": 20839.188610712445, "CDNS": 4944.440179048495, "CDW": 18896.509735911248, - "CEG": 90052.10611221968, - "CHTR": 17497.958229190095, + "CEG": 90118.1885468137, + "CHTR": 17348.182564001116, "CMCSA": 21242.406077869287, "COST": 0.0, "CPRT": 7230.3561661843905, "CRWD": 11720.442089181512, - "CSCO": 34876.31166573324, + "CSCO": 34891.46245167052, "CSGP": 6810.922835128309, "CSX": 0.0, "CTAS": 0.0, @@ -13872,22 +13872,22 @@ "FANG": 21174.75102845706, "FAST": 12750.360720008537, "FTNT": 15985.646414218694, - "GEHC": 10356.245843844357, + "GEHC": 10350.863755906068, "GFS": 12.937552212248853, - "GILD": 21305.064496830524, + "GILD": 21323.928514294887, "GOOG": 21492.179591714823, - "GOOGL": -2.4585104416461734e-12, + "GOOGL": -2.4582504600782775e-12, "HON": 0.0, "IDXX": 0.0, - "ILMN": 7625.858795638414, - "INTC": 2000.8838945341804, - "INTU": 6894.999538712532, + "ILMN": 7619.019564755661, + "INTC": 1999.7225888207201, + "INTU": 6904.553776174549, "ISRG": 16534.99308005795, "KDP": 0.0, "KHC": 0.0, "KLAC": 56041.36950949223, "LIN": 0.0, - "LRCX": 1103.6888621390483, + "LRCX": 1104.2725917588743, "LULU": 18482.705306766835, "MAR": 0.0, "MCHP": 19312.827382327447, @@ -13898,31 +13898,31 @@ "MNST": 16766.803617316724, "MRNA": 18963.526117369205, "MRVL": 0.0, - "MSFT": 6963.190406499902, - "MU": 3734.6666053996078, + "MSFT": 6963.417094976826, + "MU": 3736.631981768038, "NFLX": 21208.658973815178, - "NVDA": 24022.194440625593, + "NVDA": 24011.445890712363, "NXPI": 25449.216740369346, - "ODFL": 8542.592692623264, + "ODFL": 8571.798985695585, "ON": 5654.209928925934, "ORLY": 14268.000779394077, - "PANW": 18839.499504872583, + "PANW": 18864.12936533475, "PAYX": 0.749740032319648, "PCAR": 0.0, "PDD": 16020.751900231811, - "PEP": 11097.176313497344, + "PEP": 11103.350688947983, "PYPL": 0.0, "QCOM": 12933.993846006195, "REGN": 11667.379150679957, "ROP": 10919.984933521466, "ROST": 7903.3252047416645, - "SBUX": 17959.97902746153, + "SBUX": 17957.518230791276, "SIRI": 15822.024616136592, "SNPS": 0.0, "TEAM": 10874.505731801584, "TMUS": 11840.51053167665, - "TSLA": 21045.284425561462, - "TTD": 33172.304074670734, + "TSLA": 21042.882367672428, + "TTD": 33230.84353405139, "TTWO": 8703.897887061978, "TXN": 0.0, "USDOLLAR": 176.75728154200635, @@ -13933,5 +13933,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 14353.061734741506 + }, + "2024-07-11 13:30:00+00:00": { + "AAPL": 2949.9644439287695, + "ABNB": 0.0, + "ADBE": 17170.560872737682, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 3048.9110794734866, + "AEP": 0.0, + "AMAT": 700.8175892168255, + "AMD": -2.278180011437176e-11, + "AMGN": 25394.941096512033, + "AMZN": 23919.122083217266, + "ANSS": 5315.843998774376, + "ARM": 0.0, + "ASML": 2239.5704904688464, + "AVGO": 25725.858243806466, + "AZN": 0.0, + "BIIB": 14142.317099018972, + "BKNG": 11292.67320211903, + "BKR": 0.0, + "CCEP": 20839.188610712445, + "CDNS": 5336.2396685386875, + "CDW": 19011.184437037307, + "CEG": 90464.514689687, + "CHTR": 17705.34751698071, + "CMCSA": 21242.406077869287, + "COST": 0.0, + "CPRT": 7207.749078944719, + "CRWD": 11437.020563893402, + "CSCO": 34997.51506351452, + "CSGP": 6952.647660694112, + "CSX": 0.0, + "CTAS": 0.0, + "CTSH": 26459.21614688834, + "DASH": 0.0, + "DDOG": 2512.4109069546, + "DLTR": 21233.502696320473, + "DXCM": 15675.808518569325, + "EA": 16702.565887342564, + "EXC": 0.0, + "FANG": 21220.856925967528, + "FAST": 13037.595208358634, + "FTNT": 15796.834751518909, + "GEHC": 10654.945051985356, + "GFS": 13.23350131329498, + "GILD": 21521.98270909718, + "GOOG": 21564.28958815473, + "GOOGL": -2.4672829852152004e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7981.504019540171, + "INTC": 2034.038364191557, + "INTU": 7541.243778615955, + "ISRG": 17093.91162713591, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 57220.4842811321, + "LIN": 0.0, + "LRCX": 1117.8278491481976, + "LULU": 18811.14466892671, + "MAR": 0.0, + "MCHP": 19704.13562034905, + "MDB": 18877.32830522023, + "MDLZ": 0.0, + "MELI": 23686.10294928268, + "META": 5697.58763347303, + "MNST": 16753.344105566477, + "MRNA": 19736.97758411561, + "MRVL": 0.0, + "MSFT": 6986.214952371793, + "MU": 3827.647156325859, + "NFLX": 20811.743328098386, + "NVDA": 23816.867448026143, + "NXPI": 26039.800910369377, + "ODFL": 8744.642641960809, + "ON": 5768.9039865987, + "ORLY": 14316.803796604296, + "PANW": 19201.12936533475, + "PAYX": 0.7482031197522793, + "PCAR": 0.0, + "PDD": 15966.758668521252, + "PEP": 10908.507164427065, + "PYPL": 0.0, + "QCOM": 13013.305410146511, + "REGN": 11764.058351802398, + "ROP": 10958.01813759959, + "ROST": 7999.674035894645, + "SBUX": 18086.960219257857, + "SNPS": 0.0, + "TEAM": 10995.404984759034, + "TMUS": 11709.525680589559, + "TSLA": 20298.7996614113, + "TTD": 32688.720617840423, + "TTWO": 8739.435927493385, + "TXN": 0.0, + "USDOLLAR": 15774.537796623417, + "VRSK": 0.0, + "VRTX": 8751.378820447038, + "WBA": 0.0, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 14392.981976239229 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 1f54f6461..f546018c1 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -13726,5 +13726,109 @@ "WDAY": 7.81185681579867e-09, "XEL": 6.121619608035215e-09, "ZS": 0.013027250531326634 + }, + "2024-07-11 13:30:00+00:00": { + "AAPL": 0.007586365689955757, + "ABNB": 8.618323723974323e-09, + "ADBE": 0.011314700518157401, + "ADI": 5.4698903595178425e-08, + "ADP": 1.2967324443815978e-07, + "ADSK": 2.3267879025856003e-08, + "AEP": 6.755883569103952e-09, + "AMAT": 3.805135997026095e-08, + "AMD": 3.9470387756359316e-09, + "AMGN": 0.033950350861243664, + "AMZN": 0.018464862493808184, + "ANSS": 5.0344537722707416e-08, + "ARM": 0.06601274048515571, + "ASML": 1.5228823878159214e-08, + "AVGO": 8.20548991600778e-09, + "AZN": 4.031586972203156e-08, + "BIIB": 0.013646263708116781, + "BKNG": 0.009115828221737962, + "BKR": 6.307034295592314e-08, + "CCEP": 0.017301181169364174, + "CDNS": 8.941139734847114e-09, + "CDW": 0.006578345015357237, + "CEG": 0.07633634244995059, + "CHTR": 0.016230866712017244, + "CMCSA": 0.03190271981731822, + "COST": 1.0085098649479027e-08, + "CPRT": 1.200002426359273e-07, + "CRWD": 0.01209506932238021, + "CSCO": 0.052618965532605304, + "CSGP": 0.005079279810711055, + "CSX": 4.139501081165037e-07, + "CTAS": 1.3426903301364119e-08, + "CTSH": 0.02381072665460466, + "DASH": 6.308578353977377e-09, + "DDOG": 0.01466055750903312, + "DLTR": 0.025818270681824296, + "DXCM": 0.009840846412187874, + "EA": 0.012628226928847849, + "EXC": 2.041037265145081e-08, + "FANG": 0.024186481031640172, + "FAST": 0.014919295843394423, + "FTNT": 0.023115908289062667, + "GEHC": 0.0021640823977802544, + "GFS": 0.01946232712443296, + "GILD": 0.02643954315634462, + "GOOG": 0.0007487185703714989, + "GOOGL": 9.43002164407212e-08, + "HON": 2.8569006025145077e-08, + "IDXX": 1.9143778132812206e-08, + "ILMN": 0.00511436935725682, + "INTC": 2.9640792396272778e-08, + "INTU": 6.390370621729702e-08, + "ISRG": 0.008503501093097946, + "KDP": 6.884924673792192e-07, + "KHC": 1.7901720670645143e-08, + "KLAC": 0.0195218903710934, + "LIN": 5.183528848094876e-08, + "LRCX": 2.802145031115255e-08, + "LULU": 0.019814161641809117, + "MAR": 6.661385683366706e-08, + "MCHP": 0.01155200497106336, + "MDB": 0.02248163359161792, + "MDLZ": 1.840114715533903e-07, + "MELI": 0.020422451910857713, + "META": 9.492029288439563e-09, + "MNST": 0.015885533997102037, + "MRNA": 0.017993755954530948, + "MRVL": 7.057173708719289e-09, + "MSFT": 2.087372505312629e-08, + "MU": 8.078824207703728e-09, + "NFLX": 0.015388499339144584, + "NVDA": 7.093041772682218e-08, + "NXPI": 0.01916690766283835, + "ODFL": 0.007948630120591936, + "ON": 4.811583586891016e-07, + "ORLY": 0.025200576115063402, + "PANW": 1.69540088357234e-08, + "PAYX": 0.005853612082580928, + "PCAR": 8.158668480250968e-09, + "PDD": 0.024402890443877924, + "PEP": 0.022179606348376894, + "PYPL": 0.0063986589358757074, + "QCOM": 4.256947537875644e-08, + "REGN": 0.014105019743464868, + "ROP": 0.013409392110757843, + "ROST": 0.007954773039108416, + "SBUX": 0.02848386985118135, + "SNPS": 3.982813834474269e-09, + "TEAM": 0.011283772500140581, + "TMUS": 0.00518469871258314, + "TSLA": 0.0036450894165523627, + "TTD": 0.035493161048996844, + "TTWO": 0.008626884588123091, + "TXN": 2.110887656767042e-08, + "USDOLLAR": 2.625461030681536e-07, + "VRSK": 3.4012642065122206e-07, + "VRTX": 0.010474205267202245, + "WBA": 0.0001998507341152592, + "WBD": 1.3707673443891392e-08, + "WDAY": 1.7586510307060276e-08, + "XEL": 5.841089322532311e-08, + "ZS": 0.01727804216772324 } } \ No newline at end of file From 3dbd3043daa58fd28d312a41fc06fe051379e714 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 11 Jul 2024 18:07:14 +0400 Subject: [PATCH 010/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-11 --- .../sp500_daily_initial_holdings.json | 607 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1061 insertions(+), 51 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 8ab14f79e..77f3468c3 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -66279,13 +66279,13 @@ "2024-07-10 13:30:00+00:00": { "A": 0.0, "AAL": 646.5071492930394, - "AAPL": 50009.683990562, + "AAPL": 49979.169149380454, "ABBV": 4526.529759592737, "ABNB": 0.0, "ABT": 3257.431760064522, "ACGL": 0.0, "ACN": 2.351568453017827e-13, - "ADBE": 11693.886867381021, + "ADBE": 11704.043551657853, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, @@ -66295,7 +66295,7 @@ "AES": 0.0, "AFL": 3336.599888803043, "AIG": 0.0, - "AIZ": 1.3844301169944773, + "AIZ": 1.388798978773444, "AJG": 0.0, "AKAM": 186.23166172414528, "ALB": 0.0, @@ -66304,12 +66304,12 @@ "ALLE": 0.0, "AMAT": 2456.46279078962, "AMCR": 0.0, - "AMD": 30081.872630865448, + "AMD": 30090.23200295461, "AME": 0.0, "AMGN": 6864.554314053917, "AMP": 445.19222263311696, "AMT": 592.0119566383437, - "AMZN": 38028.94138354131, + "AMZN": 38032.745470555434, "ANET": 3588.743880033075, "ANSS": 978.851598204827, "AON": 16.97511596619301, @@ -66343,7 +66343,7 @@ "BKNG": 3743.277418370354, "BKR": 0.0, "BLDR": 306.00301943626545, - "BLK": 9.202690096311093e-13, + "BLK": 9.196725123464492e-13, "BMY": 82.68251057248479, "BR": 0.0, "BRK-B": 0.0, @@ -66365,12 +66365,12 @@ "CDNS": 0.0, "CDW": 374.7372130198369, "CE": -2.5489139964232612e-14, - "CEG": 39428.5677036554, + "CEG": 39457.501349506674, "CF": 9470.566168134736, "CFG": 0.0, "CHD": 2553.0395081764154, "CHRW": 0.0, - "CHTR": 6828.704107834467, + "CHTR": 6770.253076763686, "CI": 3.844485272402982e-13, "CINF": 0.014599421881392282, "CL": 9.545280918325489, @@ -66394,7 +66394,7 @@ "CRL": 0.0, "CRM": 7376.4709883222, "CRWD": 0.0, - "CSCO": 6803.474613497719, + "CSCO": 6806.430143557397, "CSGP": -7.263921433220554e-14, "CSX": 0.0, "CTAS": 0.0, @@ -66423,10 +66423,10 @@ "DOV": 0.0, "DOW": 0.0, "DPZ": 1923.542666892368, - "DRI": 2.320598595443991, + "DRI": 2.3439899402786724, "DTE": 0.0, "DUK": 1.1508761200139965, - "DVA": 3428.558914463037, + "DVA": 3451.926473866227, "DVN": 0.0, "DXCM": 4819.549376845109, "EA": 3949.8008960880925, @@ -66434,7 +66434,7 @@ "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.593018677959209e-14, + "EG": 5.5922687244482155e-14, "EIX": 0.0, "EL": 0.0, "ELV": 528.6300048828125, @@ -66442,7 +66442,7 @@ "EMR": 0.0, "ENPH": 2379.2728255835796, "EOG": 0.0, - "EPAM": 5084.053566274328, + "EPAM": 5116.631108761121, "EQIX": 781.8409831942859, "EQR": 0.0, "EQT": 0.0, @@ -66454,9 +66454,9 @@ "EVRG": 0.0, "EW": 0.0, "EXC": 0.0, - "EXPD": -1.086500720965496, - "EXPE": 4271.456831021425, - "EXR": 5.479133000867198e-14, + "EXPD": -1.1154374080589549, + "EXPE": 4273.774918333485, + "EXR": 5.514820703885702e-14, "F": 0.0, "FANG": 14088.389465623413, "FAST": 2948.4862325128033, @@ -66466,7 +66466,7 @@ "FE": 0.0, "FFIV": 3583.7253820665046, "FI": 2.431564638409165e-13, - "FICO": 1506.6596969839538, + "FICO": 1508.3699085717903, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, @@ -66479,32 +66479,32 @@ "GD": 3.71274319527976e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1649.5641801291472, + "GEHC": 1648.706910070945, "GEN": 0.0, "GEV": 26377.30275855054, - "GILD": 8317.591779964387, - "GIS": 7321.79545953521, + "GILD": 8324.95637614395, + "GIS": 7392.548658001173, "GL": 0.2786915221174506, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, "GOOG": 24991.308712017126, - "GOOGL": 1861.0170759698854, + "GOOGL": 1860.8202778887808, "GPC": 0.0, "GPN": -9.942165401540912e-14, - "GRMN": 2110.232192070724, + "GRMN": 2127.3502732252614, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, "HAS": 1.0304803279145014, "HBAN": 0.0, - "HCA": 6605.94990228371, + "HCA": 6657.228120467123, "HD": 8643.333161507426, "HES": 0.0, "HIG": 5583.563013834204, "HII": 0.6705135572271019, - "HLT": -1.3487552178260888e-13, - "HOLX": 2746.6392083349874, + "HLT": -1.3423638771306802e-13, + "HOLX": 2741.1373502659944, "HON": 0.0, "HPE": 0.0, "HPQ": 0.0, @@ -66512,7 +66512,7 @@ "HSIC": 0.0, "HST": 0.0, "HSY": 10163.085422669657, - "HUBB": 1.3073196358275714e-13, + "HUBB": 1.3119691616871053e-13, "HUM": 1113.9120982529607, "HWM": 2069.226212963541, "IBM": 0.0, @@ -66521,8 +66521,8 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 3865.5292253477573, - "INTC": 239.6105982799881, - "INTU": 1257.7297382412635, + "INTC": 239.47152916281027, + "INTU": 1259.4725445336685, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, @@ -66552,7 +66552,7 @@ "KMB": 5328.691995302038, "KMI": 0.0, "KMX": 146.55652121975015, - "KO": 190.2186611772247, + "KO": 190.30969728165022, "KR": 0.0, "KVUE": 0.0, "L": -0.20541220738506835, @@ -66561,12 +66561,12 @@ "LH": 0.0, "LHX": 0.0, "LIN": 1.6160561394876085, - "LKQ": 4631.721263531526, + "LKQ": 4635.0823177994625, "LLY": 1.6288204359816414, "LMT": 8367.540219523513, "LNT": 0.0, "LOW": -2.564043746894657e-13, - "LRCX": 1053.449017803708, + "LRCX": 1054.0061760896735, "LULU": 1445.4773814020054, "LUV": 28.091153473876084, "LVS": 1830.9044737289869, @@ -66598,17 +66598,17 @@ "MOS": 0.0, "MPC": 14623.06822274113, "MPWR": -9.62796487340759e-13, - "MRK": 5731.466123445774, + "MRK": 5724.190214509357, "MRNA": 7244.24124658758, "MRO": 0.0, "MS": 6130.939659466309, - "MSCI": 6310.694248634611, - "MSFT": 38660.618556347814, + "MSCI": 6319.468505497438, + "MSFT": 38661.87716285229, "MSI": 0.0, "MTB": -5.746876417123708, "MTCH": 0.0, "MTD": 0.0, - "MU": 3745.965238984008, + "MU": 3747.9365612827683, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -66621,16 +66621,16 @@ "NOW": 5077.078773929594, "NRG": 0.0, "NSC": -2.5837169283586583e-14, - "NTAP": 6169.655882846151, + "NTAP": 6169.192532477592, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 141864.906265552, + "NVDA": 141801.42988208923, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, "NXPI": 8638.812360975073, "O": 0.0, - "ODFL": 4455.487423057068, + "ODFL": 4470.720300959605, "OKE": 0.0, "OMC": 0.0, "ON": -2.70374259948156, @@ -66638,14 +66638,14 @@ "ORLY": -0.719459912344516, "OTIS": 1629.2939183578953, "OXY": 0.0, - "PANW": 3669.65082922305, - "PARA": 2165.6507165590665, + "PANW": 3674.4483551788358, + "PARA": 2167.5239809822656, "PAYC": 0.0, "PAYX": 468.8198340124315, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11475.287925151633, + "PEP": 11481.672678718889, "PFE": 0.0, "PFG": 163.5528910290268, "PG": 1.0539083577824935, @@ -66685,12 +66685,12 @@ "RTX": 0.0, "RVTY": 0.0, "SBAC": 5851.131953015588, - "SBUX": 8344.16168148345, + "SBUX": 8343.018401457875, "SCHW": 147.13601405887545, "SHW": 1.2840505176721582, "SJM": 0.9388990939039382, "SLB": 0.0, - "SMCI": 8805.478881658777, + "SMCI": 8811.388255428896, "SNA": 0.0, "SNPS": 0.0, "SO": 10.05206207396058, @@ -66698,11 +66698,11 @@ "SPG": 0.0, "SPGI": -5.479464199387585, "SRE": 0.0, - "STE": 0.4733304984598425, + "STE": 0.4746384956980914, "STLD": -2.7299726533380542e-14, "STT": 300.0096005946567, "STX": 196.63559003826424, - "STZ": 249.01950325984146, + "STZ": 249.17755805391116, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, @@ -66710,7 +66710,7 @@ "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4854.648863995682, + "TDG": 4860.7631159265065, "TDY": 752.6872615388149, "TECH": 0.0, "TEL": 0.0, @@ -66726,8 +66726,8 @@ "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, - "TSCO": -2.7186052999145843e-12, - "TSLA": 110743.8791205009, + "TSCO": -2.723250709503641e-12, + "TSLA": 110731.2390818526, "TSN": 4695.359636628338, "TT": 0.0, "TTWO": 736.6614599114466, @@ -66738,13 +66738,13 @@ "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, - "ULTA": 4264.011509957126, + "ULTA": 4262.8243132296275, "UNH": 19981.897881464043, "UNP": 0.0, "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 3039.072962016777, + "USDOLLAR": 3038.2529745548527, "V": 2575.039779793742, "VICI": 0.0, "VLO": 0.0, @@ -66761,7 +66761,7 @@ "WAT": -1.9533776070183834e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -3.2260254941040087, + "WDC": -3.2321501458386757, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -66780,5 +66780,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-11 13:30:00+00:00": { + "A": 0.0, + "AAL": 624.8397967497334, + "AAPL": 50186.39948845343, + "ABBV": 4528.422206545505, + "ABNB": 0.0, + "ABT": 3320.3834794761447, + "ACGL": 0.0, + "ACN": 2.3400047281339716e-13, + "ADBE": 11688.912887735174, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.802889180125195, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3405.635439858207, + "AIG": 0.0, + "AIZ": 1.4117572343541052, + "AJG": 0.0, + "AKAM": 187.65465259725704, + "ALB": 0.0, + "ALGN": 1223.3433978493651, + "ALL": 6.265404079505569e-14, + "ALLE": 0.0, + "AMAT": 2481.4158633746, + "AMCR": 0.0, + "AMD": 30229.95565198037, + "AME": 0.0, + "AMGN": 6971.508566661343, + "AMP": 450.332985500473, + "AMT": 603.1089850575031, + "AMZN": 38049.85950961682, + "ANET": 3924.7663004706856, + "ANSS": 987.9713262479011, + "AON": 17.01378574663472, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 27.996852003848165, + "APTV": 2.4219203133311445e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20531.401441726888, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4612.259575886147, + "AXP": 0.0, + "AZO": 1.6655705985199896e-12, + "BA": -1.1033534004008709e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 509.39205299055067, + "BDX": 0.0, + "BEN": 186.93511580812748, + "BF-B": 0.0, + "BG": 1801.519083010593, + "BIIB": 2553.1051043954676, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3761.024412828849, + "BKR": 0.0, + "BLDR": 321.57395506590115, + "BLK": 9.382664248874186e-13, + "BMY": 83.4512760031949, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.30278048962912674, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1500.2802405663615, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 19704.15729353344, + "CAT": 0.0, + "CB": 1317.167126044396, + "CBOE": 0.0, + "CBRE": 4386.518409435759, + "CCI": 288.51219134531107, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 381.35432534918823, + "CE": -2.60698022656607e-14, + "CEG": 39924.81552926393, + "CF": 9466.50867830447, + "CFG": 0.0, + "CHD": 2545.2640074068, + "CHRW": 0.0, + "CHTR": 6794.4158326812785, + "CI": 3.84915211285854e-13, + "CINF": 0.01483606173434168, + "CL": 9.567876366520508, + "CLX": 15.127226894957431, + "CMCSA": 6057.86703709019, + "CME": 4500.0670431468825, + "CMG": 5931.288816647307, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 855.8997989909557, + "CNP": 0.0, + "COF": 8535.42061498984, + "COO": 0.0, + "COP": 0.0, + "COR": 3337.234603856567, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 749.5660684748741, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7670.182168958845, + "CRWD": 2254.1400146484357, + "CSCO": 6827.11829026543, + "CSGP": -7.415072462672423e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10711.795186833888, + "CTVA": 103.85180198011591, + "CVS": 0.0, + "CVX": -5.634090602885697e-13, + "CZR": 8939.926943422057, + "D": 0.0, + "DAL": 626.2335655413312, + "DAY": 0.0, + "DD": 0.0, + "DE": 9.966046197807862e-14, + "DECK": 870.1773437574969, + "DFS": 3221.904962537786, + "DG": 0.0, + "DGX": 0.0, + "DHI": -6.503581274854674, + "DHR": 2676.2532204221748, + "DIS": -4.307946585382158, + "DLR": 3.2029559917844694e-14, + "DLTR": 923.1132037091627, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1936.462850200719, + "DRI": 2.3284735600845745, + "DTE": 0.0, + "DUK": 1.1714497789519638, + "DVA": 3464.604448314847, + "DVN": 0.0, + "DXCM": 4827.376157676076, + "EA": 4038.3150850283378, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.673283391059942e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": 531.4899902343747, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2762.0456174407755, + "EOG": 0.0, + "EPAM": 5125.4020672897195, + "EQIX": 796.8444333728993, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1120492921178837, + "EXPE": 4271.787769815977, + "EXR": 5.573705196045785e-14, + "F": 0.0, + "FANG": 14119.065521267072, + "FAST": 3014.908426598192, + "FCX": 0.0, + "FDS": 3732.7254903895096, + "FDX": 8625.619944939222, + "FE": 0.0, + "FFIV": 3604.7704593052513, + "FI": 2.4054535232997155e-13, + "FICO": 1474.0197675347947, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.719608550716132e-14, + "FTNT": 6211.238278679624, + "FTV": 0.0, + "GD": 3.74261401012632e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1697.1416055603136, + "GEN": 0.0, + "GEV": 27292.585601066243, + "GILD": 8402.277613210379, + "GIS": 7369.092671866049, + "GL": 0.2836171907188849, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 25075.15889457129, + "GOOGL": 1867.6576226623442, + "GPC": 0.0, + "GPN": -9.99863130725993e-14, + "GRMN": 2135.843913688162, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0428235889997437, + "HBAN": 0.0, + "HCA": 6589.4822716951385, + "HD": 8953.190009131782, + "HES": 0.0, + "HIG": 5571.2827909619955, + "HII": 0.681902543909114, + "HLT": -1.3785186895318912e-13, + "HOLX": 2782.5862668711165, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10300.078619236087, + "HUBB": 1.3293343141470906e-13, + "HUM": 1126.6105284641071, + "HWM": 2137.754733545104, + "IBM": 0.0, + "ICE": 722.1732459239345, + "IDXX": -10.041390891986557, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3864.895222646454, + "INTC": 243.58092476018058, + "INTU": 1259.4725445336685, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.044131711649509756, + "IRM": 0.0, + "ISRG": 7022.317289145536, + "IT": 7.430458421468702e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2555.011901277159, + "JCI": 0.0, + "JKHY": 809.7470896939946, + "JNJ": 13006.676021050022, + "JNPR": 0.0, + "JPM": 2524.659711768711, + "K": 463.8766531379918, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -21.868459965894804, + "KMB": 5375.565114816915, + "KMI": 0.0, + "KMX": 157.73898393849686, + "KO": 190.06694976963365, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.20816203624419655, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.623481471072358, + "LKQ": 4688.861323074145, + "LLY": 1.624507418442381, + "LMT": 8359.361493880047, + "LNT": 0.0, + "LOW": -2.6587943734351257e-13, + "LRCX": 1066.9443990551417, + "LULU": 1737.9305281174277, + "LUV": 27.351646459258728, + "LVS": 1829.5854319416162, + "LW": 28.392136551467875, + "LYB": 3521.680301582448, + "LYV": 2873.373025313599, + "MA": 30098.15108099701, + "MAA": 0.0, + "MAR": -6.004612913392823e-13, + "MAS": 0.0, + "MCD": 11152.04823881883, + "MCHP": 2479.5609116615524, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.272497604961351, + "MET": -0.034668744504648165, + "META": 23351.670329299803, + "MGM": 4213.861390587515, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6680.291077103358, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5070.3303986845785, + "MO": -20.93730326250498, + "MOH": 1706.2868004269583, + "MOS": 0.0, + "MPC": 14589.672358139173, + "MPWR": -9.72501080012748e-13, + "MRK": 5802.859331945794, + "MRNA": 7493.827511593512, + "MRO": 0.0, + "MS": 6235.005815822391, + "MSCI": 6309.532984677676, + "MSFT": 38788.4540934251, + "MSI": 0.0, + "MTB": -5.915291096280897, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3839.2270876233865, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16785.604864812474, + "NI": 0.0, + "NKE": -2.993851989000666e-14, + "NOC": -3.829845273981308e-13, + "NOW": 5114.373957326536, + "NRG": 0.0, + "NSC": -2.6066296303148988e-14, + "NTAP": 6231.083408424737, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 141960.77312212336, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8839.287915096917, + "O": 0.0, + "ODFL": 4560.868896866549, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.758587257450628, + "ORCL": 7439.70198943309, + "ORLY": -0.7219207907133286, + "OTIS": 1648.2628759612105, + "OXY": 0.0, + "PANW": 4348.448355178836, + "PARA": 2208.7388355358707, + "PAYC": 0.0, + "PAYX": 467.8587874313971, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11280.190294275793, + "PFE": 0.0, + "PFG": 166.08372931666835, + "PG": 1.0564494850124029, + "PGR": 7781.276893082111, + "PH": 0.0, + "PHM": -10.748168554359435, + "PKG": -4.733407235384685e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -63.51896259632582, + "POOL": 1188.261238024637, + "PPG": -0.40782667676568857, + "PPL": 0.0, + "PRU": 1222.5220817284762, + "PSA": 0.0, + "PSX": 3136.731267390928, + "PTC": 2.665056371728281e-14, + "PWR": -4.9817410728510785, + "PYPL": 0.0, + "QCOM": 5000.42292987643, + "QRVO": 0.0, + "RCL": 2911.164616320603, + "REG": 0.0, + "REGN": 1081.8053059740707, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -24.77237147456092, + "ROK": 1.184962961004734, + "ROL": 0.0, + "ROP": 5475.772294811603, + "ROST": 1177.8606629933706, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 5926.793233782965, + "SBUX": 8268.720897003837, + "SCHW": 148.36297753849666, + "SHW": 1.3202179928347406, + "SJM": 0.9475679859035625, + "SLB": 0.0, + "SMCI": 9026.045879404403, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.086666472855187, + "SOLV": -1.342546426558119e-12, + "SPG": 0.0, + "SPGI": -5.534692279470105, + "SRE": 0.0, + "STE": 0.47984819251101946, + "STLD": -2.7887875906002186e-14, + "STT": 305.8123484121206, + "STX": 200.38102984851687, + "STZ": 249.99745034109628, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.903158112210018, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4863.132225291522, + "TDY": 762.654583890604, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 450.6618305167884, + "TMO": 0.0, + "TMUS": 8641.33847541196, + "TPR": 2882.3339600483914, + "TRGP": 406.00934286773, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.7392982830507494e-12, + "TSLA": 108339.77149102048, + "TSN": 4749.087998602691, + "TT": 0.0, + "TTWO": 739.6692507985051, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3637.8566704725486, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 4275.989518104837, + "UNH": 20257.03908841945, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 3484.06106608242, + "V": 2604.952156415032, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8562.44472563312, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3154.8635329354843, + "VRTX": 2924.4053611608715, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -1.9831617414001557e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -3.2684893515482574, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5057812570368365, + "WMB": 0.0, + "WMT": 12111.299718116823, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3200.1379589810344, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index f002ee420..56d447e99 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -63754,5 +63754,510 @@ "ZBH": 3.22318216028522e-09, "ZBRA": 1.9316842261570654e-09, "ZTS": 1.0539879563860304e-08 + }, + "2024-07-11 13:30:00+00:00": { + "A": 3.1784338255818245e-09, + "AAL": 0.0005103288110968862, + "AAPL": 0.0409874340204132, + "ABBV": 0.003698576691706836, + "ABNB": 3.5104562393971356e-09, + "ABT": 0.0027118792170198196, + "ACGL": 9.882160095030094e-09, + "ACN": 9.894700761498408e-09, + "ADBE": 0.009664143704878773, + "ADI": 1.2503751118318026e-08, + "ADM": 1.0625023927966404e-08, + "ADP": 2.480055219295057e-08, + "ADSK": 1.4039732721148518e-08, + "AEE": 2.9397202293451784e-09, + "AEP": 2.913284795843086e-09, + "AES": 1.4195884085730388e-09, + "AFL": 0.002781487360075521, + "AIG": 3.3079310837976094e-09, + "AIZ": 1.0938057766269477e-08, + "AJG": 6.329545449821269e-09, + "AKAM": 0.00015321814048389413, + "ALB": 9.967788906981108e-10, + "ALGN": 0.000999145222892757, + "ALL": 7.803079863542163e-09, + "ALLE": 3.0682945383496745e-09, + "AMAT": 0.002026719023692049, + "AMCR": 8.356829870409509e-10, + "AMD": 0.02421523238798949, + "AME": 3.1327753227259868e-09, + "AMGN": 0.005693752618891754, + "AMP": 0.00036746426675054496, + "AMT": 0.0004926149771670262, + "AMZN": 0.03118713597039862, + "ANET": 0.0032902107928763154, + "ANSS": 0.0007951122602497927, + "AON": 7.471485698844171e-08, + "AOS": 2.6545547993810637e-09, + "APA": 2.072914473438964e-09, + "APD": 7.734449009779832e-09, + "APH": 2.1908383699097134e-08, + "APTV": 9.179723641629097e-09, + "ARE": 2.3638389023630036e-09, + "ATO": 3.3588446633615127e-09, + "AVB": 3.6337705807905262e-09, + "AVGO": 0.016811768532641158, + "AVY": 4.068020786079964e-09, + "AWK": 5.521962577130319e-09, + "AXON": 0.0038735554219177133, + "AXP": 9.788781708884337e-09, + "AZO": 5.691413425678009e-08, + "BA": 4.780017976479695e-07, + "BAC": 5.274782860612796e-09, + "BALL": 1.0950758609867855e-08, + "BAX": 6.520789701425434e-09, + "BBWI": 3.994175618637878e-09, + "BBY": 0.000416080832062606, + "BDX": 1.500531883380706e-08, + "BEN": 0.00015267754234010305, + "BF-B": 9.39509294556908e-09, + "BG": 0.0014713476448579793, + "BIIB": 0.002085215954271191, + "BIO": 4.314119339132212e-09, + "BK": 5.058271820538406e-09, + "BKNG": 0.0022200404861734933, + "BKR": 2.1521027104747098e-09, + "BLDR": 0.0002626338468405013, + "BLK": 2.041352497122491e-06, + "BMY": 6.815877990366574e-05, + "BR": 5.9472101882191e-09, + "BRK-B": 9.078056259893342e-09, + "BRO": 9.261121638833596e-08, + "BSX": 5.690334497254242e-09, + "BWA": 5.179715317380985e-09, + "BX": 0.0012252939782430277, + "BXP": 2.7325955684185297e-09, + "C": 7.011894032342488e-09, + "CAG": 8.632101273456573e-09, + "CAH": 8.829396780287252e-09, + "CARR": 0.01609304477985648, + "CAT": 2.2785991834055924e-09, + "CB": 0.0010757422748053603, + "CBOE": 1.9400708588716554e-08, + "CBRE": 0.0035826031524425843, + "CCI": 0.0002356443835253081, + "CCL": 3.4482714897243226e-09, + "CDNS": 2.8280778050218448e-08, + "CDW": 0.00031148826460460413, + "CE": 7.669215325640569e-09, + "CEG": 0.03261225795560939, + "CF": 0.007742195111851959, + "CFG": 4.122274408721954e-09, + "CHD": 0.0020787992047940945, + "CHRW": 1.0413743570043212e-08, + "CHTR": 0.0055492282714252605, + "CI": 3.825545906602311e-08, + "CINF": 1.8090240755354415e-08, + "CL": 7.793900815909108e-06, + "CLX": 5.5582140526795425e-06, + "CMCSA": 0.004947662575752914, + "CME": 0.003695848816615175, + "CMG": 0.004844270699367033, + "CMI": 2.9881139551809837e-09, + "CMS": 2.6881555093729206e-09, + "CNC": 0.0006990622187738604, + "CNP": 2.755329581890633e-09, + "COF": 0.0069929261068043215, + "COO": 6.5800431593298286e-09, + "COP": 6.8186266035176e-09, + "COR": 0.0027256511647474856, + "COST": 7.052143249398466e-09, + "CPAY": 1.9883104934963544e-08, + "CPB": 1.3532544620746667e-08, + "CPRT": 0.0006121917111013601, + "CPT": 2.7393515540905737e-09, + "CRL": 2.040843582280924e-09, + "CRM": 0.006290155930932398, + "CRWD": 0.002523372236474389, + "CSCO": 0.005575958949726041, + "CSGP": 6.4306261166470625e-09, + "CSX": 8.427763958925315e-09, + "CTAS": 6.1369373877877185e-09, + "CTLT": 4.568889905561288e-09, + "CTRA": 2.134724309505225e-09, + "CTSH": 0.008748648367323465, + "CTVA": 8.482150214152174e-05, + "CVS": 7.747746428895475e-09, + "CVX": 8.562158072498274e-09, + "CZR": 0.007301523377767533, + "D": 4.342326964827262e-09, + "DAL": 0.0005114723602454983, + "DAY": 3.1728080055288236e-09, + "DD": 5.383660352075729e-09, + "DE": 7.428485535911314e-09, + "DECK": 0.0009568572328492839, + "DFS": 0.002746053768568222, + "DG": 4.232449985468291e-09, + "DGX": 1.0236394112579152e-08, + "DHI": 8.849757311120914e-09, + "DHR": 0.0021857661193071436, + "DIS": 9.241450213978801e-09, + "DLR": 5.773154537952484e-09, + "DLTR": 0.0007665716636144461, + "DOC": 1.49900921724887e-09, + "DOV": 3.4062639027485853e-09, + "DOW": 5.901060344328882e-09, + "DPZ": 0.0015808416905413608, + "DRI": 1.9166451068579088e-06, + "DTE": 3.3052620651286694e-09, + "DUK": 1.79056057657924e-08, + "DVA": 0.002829658378478823, + "DVN": 2.6732447084822715e-09, + "DXCM": 0.003962934442685821, + "EA": 0.0032981577028767715, + "EBAY": 3.2408970524725977e-09, + "ECL": 5.249538844836103e-09, + "ED": 4.533300261287821e-09, + "EFX": 3.7036960820723627e-09, + "EG": 2.160528201843856e-08, + "EIX": 4.708580336417491e-09, + "EL": 5.5095993719479e-09, + "ELV": 0.00043416918561917046, + "EMN": 3.5982906325703625e-09, + "EMR": 2.134517414234532e-09, + "ENPH": 0.0022558831495572123, + "EOG": 6.752559706383563e-09, + "EPAM": 0.004186110871455969, + "EQIX": 0.0006488978191808347, + "EQR": 3.5756009437149496e-09, + "EQT": 1.2278299763678464e-09, + "ES": 2.3941862258091187e-09, + "ESS": 4.622668027944595e-09, + "ETN": 1.6674624176883722e-09, + "ETR": 4.398708602524376e-09, + "ETSY": 1.0657200117050512e-08, + "EVRG": 1.7023710018057947e-09, + "EW": 1.205843718505099e-08, + "EXC": 4.0530682332606555e-09, + "EXPD": 1.3574945229612235e-08, + "EXPE": 0.003488939275495425, + "EXR": 8.131202992366167e-09, + "F": 2.6316585369338e-09, + "FANG": 0.011612142217780765, + "FAST": 0.0024623713180171826, + "FCX": 2.459733066364008e-09, + "FDS": 0.0029527785494186274, + "FDX": 0.0070415557749313115, + "FE": 3.082852237965137e-09, + "FFIV": 0.0029414293464586415, + "FI": 1.3411688798031563e-08, + "FICO": 0.0012420521243728057, + "FIS": 5.037922506004472e-09, + "FITB": 6.920321261235739e-09, + "FMC": 3.893617322155163e-09, + "FOX": 2.4162345204400315e-09, + "FOXA": 3.463621635458402e-09, + "FRT": 3.3117102097452853e-09, + "FSLR": 8.074996865413558e-10, + "FTNT": 0.0050729270528575565, + "FTV": 2.3357803218975248e-09, + "GD": 1.5496072021698547e-08, + "GDDY": 2.2541190273277255e-08, + "GE": 4.302951514016091e-09, + "GEHC": 0.0013860886030311384, + "GEN": 2.194431031552609e-09, + "GEV": 0.023255200647443092, + "GILD": 0.006862398705033568, + "GIS": 0.006018589420282665, + "GL": 8.970833286824928e-09, + "GLW": 3.361603928467085e-09, + "GM": 3.284291597041177e-09, + "GNRC": 2.119537864797724e-09, + "GOOG": 0.020479740404168844, + "GOOGL": 0.0015253975996872907, + "GPC": 7.373335286904917e-09, + "GPN": 1.3491607852801523e-08, + "GRMN": 0.0017444709451948843, + "GS": 7.446048382006448e-09, + "GWW": 2.598400960312118e-09, + "HAL": 2.5552279498844266e-09, + "HAS": 8.415245978104388e-07, + "HBAN": 1.9475100718074154e-09, + "HCA": 0.005379995836735886, + "HD": 0.0073123419462788695, + "HES": 6.161299545363158e-09, + "HIG": 0.004550241822496822, + "HII": 2.771204466952272e-08, + "HLT": 1.3032328330610693e-08, + "HOLX": 0.002272642864437935, + "HON": 7.623776587823719e-09, + "HPE": 2.3590302631080648e-09, + "HPQ": 2.3633630067371132e-09, + "HRL": 7.382857594331264e-09, + "HSIC": 7.359496798017894e-09, + "HST": 3.093966041120327e-09, + "HSY": 0.008412426956803604, + "HUBB": 9.416344170563953e-10, + "HUM": 0.0009223261386856967, + "HWM": 0.001775765996759523, + "IBM": 3.252583510098766e-09, + "ICE": 0.000589822081674593, + "IDXX": 1.3600357672136407e-08, + "IEX": 3.974947333109936e-09, + "IFF": 4.224148912684332e-09, + "INCY": 0.0031565849112219265, + "INTC": 0.00019894179056281343, + "INTU": 0.0011792641747482978, + "INVH": 2.4261150238157346e-09, + "IP": 3.6185579872642634e-09, + "IPG": 6.806663896068945e-09, + "IQV": 3.6373430103024294e-09, + "IR": 1.7967851790913588e-08, + "IRM": 5.912530442858617e-09, + "ISRG": 0.00573514593038359, + "IT": 1.72068449261443e-08, + "ITW": 5.915834215037595e-09, + "IVZ": 2.8793800715944954e-09, + "J": 6.067062507113853e-09, + "JBHT": 9.774652884438847e-09, + "JBL": 0.002086807402384636, + "JCI": 2.489019920263326e-09, + "JKHY": 0.0006979917982435361, + "JNJ": 0.010622970169478328, + "JNPR": 3.7120311551932715e-09, + "JPM": 0.0020621342061038182, + "K": 0.00037886524452947456, + "KDP": 2.4683803284315276e-09, + "KEY": 1.927014691278775e-09, + "KEYS": 4.689445251842917e-09, + "KHC": 1.4847348536898027e-09, + "KIM": 2.3319232236610983e-09, + "KKR": 7.91371183649799e-09, + "KLAC": 3.286830536126882e-05, + "KMB": 0.0043903778945795936, + "KMI": 1.1608281922732344e-09, + "KMX": 0.00012879261441499167, + "KO": 0.00015523299815352876, + "KR": 1.4017942617177486e-08, + "KVUE": -5.896678187729707e-10, + "L": 6.6670359007197324e-09, + "LDOS": 2.496082312043905e-08, + "LEN": 1.2702066435718979e-08, + "LH": 3.02554375491656e-09, + "LHX": 7.451238822308644e-09, + "LIN": 1.4554012159524444e-07, + "LKQ": 0.0038295400263896346, + "LLY": 2.8284606036948072e-08, + "LMT": 0.006830855202752713, + "LNT": 2.333938021897801e-09, + "LOW": 1.0538981251681487e-08, + "LRCX": 0.0008683833414860997, + "LULU": 0.001450530347663663, + "LUV": 2.2349060579000467e-05, + "LVS": 0.0014942820808008634, + "LW": 2.3162015583101584e-05, + "LYB": 0.0028762625448214034, + "LYV": 0.0023641325333306406, + "MA": 0.024591511876621508, + "MAA": 3.534444500636822e-09, + "MAR": 2.29070282389647e-08, + "MAS": 4.177514190851153e-09, + "MCD": 0.009108247907699707, + "MCHP": 0.002025278519128343, + "MCK": 1.4839863118956604e-07, + "MCO": 4.001796480909201e-09, + "MDLZ": 4.885279648014906e-09, + "MDT": 1.0273418858023965e-06, + "MET": 6.296995858597854e-09, + "META": 0.018985663828178415, + "MGM": 0.003441591967968889, + "MHK": 3.6561490906718765e-09, + "MKC": 5.473496575519443e-09, + "MKTX": 0.005455598403503296, + "MLM": 3.1106159176108763e-09, + "MMC": 4.601478199569332e-09, + "MMM": 4.251069056239399e-09, + "MNST": 0.0041662337746892165, + "MO": 4.481978623938206e-09, + "MOH": 0.0013994568784111336, + "MOS": 1.7588894199454708e-09, + "MPC": 0.011996111808781027, + "MPWR": 2.1703930432412564e-08, + "MRK": 0.004739388847537092, + "MRNA": 0.006120483323439862, + "MRO": 1.3119035705428774e-09, + "MS": 0.005092348957111787, + "MSCI": 0.00514822076809108, + "MSFT": 0.0316799599738676, + "MSI": 7.989839920606188e-09, + "MTB": 1.5759977125121906e-08, + "MTCH": 1.3445270879301823e-08, + "MTD": 6.884952145605747e-09, + "MU": 0.0031356194170340224, + "NCLH": 4.0642473462696705e-09, + "NDAQ": 5.630131901339189e-09, + "NDSN": 3.2487444474537684e-09, + "NEE": 1.904361903886883e-09, + "NEM": 1.7900955858710643e-09, + "NFLX": 0.013900920523532177, + "NI": 1.9612667194195687e-09, + "NKE": 2.3760934676557735e-08, + "NOC": 3.964025988269125e-08, + "NOW": 0.004193724469082322, + "NRG": 6.935287407611627e-10, + "NSC": 1.1351390155260109e-08, + "NTAP": 0.005075897393831537, + "NTRS": 4.553403823155104e-09, + "NUE": 1.2448621097981525e-08, + "NVDA": 0.11499603301637003, + "NVR": 0.0014822083631642147, + "NWS": 1.554410424926507e-09, + "NWSA": 1.5021059289683645e-09, + "NXPI": 0.007219336674427225, + "O": 7.447968824559566e-09, + "ODFL": 0.0037025807107786226, + "OKE": 4.467333011659274e-09, + "OMC": 4.799255777995161e-09, + "ON": 9.870254491600125e-09, + "ORCL": 0.006076235942610678, + "ORLY": 1.9519553344703947e-08, + "OTIS": 0.0013462108518340313, + "OXY": 3.081649305874359e-09, + "PANW": 0.00378944536604921, + "PARA": 0.0018039472770795518, + "PAYC": 2.1719016815541032e-08, + "PAYX": 0.0003821011669028022, + "PCAR": 8.36411226199281e-09, + "PCG": 1.8643950083389814e-09, + "PEG": 3.590843338915221e-09, + "PEP": 0.009212897685503412, + "PFE": 5.846648543606797e-09, + "PFG": 0.0001356425775738806, + "PG": 1.3726352563465434e-08, + "PGR": 0.006363356194731239, + "PH": 2.6106718760519577e-09, + "PHM": 8.34282725681109e-09, + "PKG": 1.2133698700980875e-08, + "PLD": 4.849820700402576e-09, + "PM": 8.666261884491423e-09, + "PNC": 1.0857335661401245e-08, + "PNR": 2.0843699373911336e-09, + "PNW": 2.8554612513425335e-09, + "PODD": 1.8900425264628442e-08, + "POOL": 0.00097048949337754, + "PPG": 1.0784672153764645e-08, + "PPL": 3.1490895052653336e-09, + "PRU": 0.00099845764108212, + "PSA": 3.9317816699247105e-09, + "PSX": 0.002561867948929276, + "PTC": 9.086971308172633e-09, + "PWR": 5.041436792179853e-09, + "PYPL": 2.2965425671234617e-09, + "QCOM": 0.004084102158140308, + "QRVO": 1.2900676308448976e-09, + "RCL": 0.002377630718653375, + "REG": 4.107944900509345e-09, + "REGN": 0.0010338829817581679, + "RF": 3.2518591974958626e-09, + "RJF": 9.535660756996764e-09, + "RL": 4.530028520631234e-09, + "RMD": 2.822733861075635e-08, + "ROK": 7.696134429158032e-09, + "ROL": 2.9005631822013194e-09, + "ROP": 0.0044894030860189995, + "ROST": 0.0009620693178883966, + "RSG": 7.130934556877874e-09, + "RTX": 1.2273518859644588e-08, + "RVTY": 2.5045460794740144e-09, + "SBAC": 0.004840663852670071, + "SBUX": 0.00675336397987056, + "SCHW": 0.00012117180680545896, + "SHW": 1.769173873224822e-07, + "SJM": 7.530040382036957e-07, + "SLB": 2.5513101671842467e-09, + "SMCI": 0.0072895764564252785, + "SNA": 4.561897593325076e-09, + "SNPS": 3.3295827995521037e-09, + "SO": 6.617696409486957e-08, + "SOLV": -1.394109102152874e-09, + "SPG": 4.144931326826478e-09, + "SPGI": 8.485102740111514e-09, + "SRE": 4.591750152446738e-09, + "STE": 3.906496044425276e-07, + "STLD": 1.8830679770205585e-08, + "STT": 0.00024977098583773004, + "STX": 0.00014923012822896166, + "STZ": 0.00020419373049336342, + "SWK": 3.440652965392439e-09, + "SWKS": 1.7020124166466392e-09, + "SYF": 8.45285224565522e-09, + "SYK": 2.9664377840260665e-08, + "SYY": 8.602630918245491e-09, + "T": 5.2906937938575975e-09, + "TAP": 4.514452247944955e-09, + "TDG": 0.00412646702867192, + "TDY": 0.0005167321745065586, + "TECH": 1.1228973260269962e-08, + "TEL": 6.643954329837705e-09, + "TER": 3.2401648525036834e-09, + "TFC": 3.21218712739953e-09, + "TFX": 1.0666435983655218e-08, + "TGT": 8.697718476661121e-09, + "TJX": 0.00036808808249406483, + "TMO": 1.322763364729476e-08, + "TMUS": 0.007057654993894917, + "TPR": 0.0023541023864732404, + "TRGP": 0.0003316389407121641, + "TRMB": 9.372021868016252e-09, + "TROW": 7.924150882408752e-09, + "TRV": 7.3832976497219494e-09, + "TSCO": 1.1635982908552667e-08, + "TSLA": 0.08848445165019836, + "TSN": 0.0038787328287384123, + "TT": 2.507239763880014e-09, + "TTWO": 0.0006057491967948643, + "TXN": 4.417063525162373e-09, + "TXT": 3.132757683491865e-09, + "TYL": 4.441858927448188e-08, + "UAL": 0.003150930463707658, + "UBER": 8.155378698964761e-09, + "UDR": 2.2298750937479946e-09, + "UHS": 8.248384981717903e-09, + "ULTA": 0.003492312731857668, + "UNH": 0.01654487169576167, + "UNP": 1.0719552793595899e-08, + "UPS": 3.1591766498293857e-09, + "URI": 5.744737919389323e-09, + "USB": 3.47180818413443e-09, + "USDOLLAR": 3.3235570196009714e-07, + "V": 0.002127543843301707, + "VICI": 2.7463682520425866e-09, + "VLO": 9.462494542071152e-08, + "VLTO": 0.0068790950034387545, + "VMC": 1.8125674027591026e-09, + "VRSK": 1.0125086127965617e-08, + "VRSN": 0.0025766723701410705, + "VRTX": 0.002388397026292401, + "VST": 8.042333772918861e-10, + "VTR": 5.859381533107888e-09, + "VTRS": 2.177076687708004e-09, + "VZ": 7.1557521398283785e-09, + "WAB": 2.330621256897435e-09, + "WAT": 8.591893973257632e-09, + "WBA": 1.4051704482261002e-09, + "WBD": 5.435970503779168e-10, + "WDC": 3.632739757118411e-09, + "WEC": 5.827609399938725e-09, + "WELL": 4.93653905745286e-09, + "WFC": 1.4596734145218013e-08, + "WM": 2.779934167376475e-08, + "WMB": 1.671899765933245e-08, + "WMT": 0.009891685112145606, + "WRB": 8.19998562156367e-09, + "WST": 5.2469303850108734e-09, + "WTW": 5.408210611987298e-09, + "WY": 1.7646747841509981e-09, + "WYNN": 0.0026136509362408777, + "XEL": 3.0851795416246587e-09, + "XOM": 8.002071921630342e-09, + "XYL": 4.674987554449991e-09, + "YUM": 1.5706554953005944e-08, + "ZBH": 3.505566138893971e-09, + "ZBRA": 1.958467838771167e-09, + "ZTS": 1.1261247418854517e-08 } } \ No newline at end of file From f86f867fdb831179df368366e9738d21ce1fc49e Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 11 Jul 2024 23:51:30 +0400 Subject: [PATCH 011/125] changing default branch for github CI testing; backporting this commit to origin/master; see GH issue #166 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 443e1dd79..c1563a999 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,11 +4,11 @@ on: push: branches: - - master + - main pull_request: branches: - - master + - main jobs: From ab12d5b1bbad613df7950b1ae9899bcaa3842b1c Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 00:01:21 +0400 Subject: [PATCH 012/125] pyproject; unpinned Numpy; can not test locally easily, trying on CI directly --- pyproject.toml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 292a82df1..423c56c6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,8 +7,7 @@ license = {text = "Apache License (2.0)"} authors = [{name = "Enzo Busseti"}, {name = "Stephen Boyd"}, {name = "Steven Diamond"}, {name = "BlackRock Inc."}] maintainers = [{name = "Enzo Busseti", email = "enzo.busseti@gmail.com"}] -dependencies = ["pandas", "numpy<2.0.0", # temporary, ABI issues in CVXPY - "matplotlib", "requests", "cvxpy", +dependencies = ["pandas", "numpy", "matplotlib", "requests", "cvxpy", "multiprocess", # robustifies usage w/ 3rd party modules "scs" # it's hardcoded as fallback solver if numerical errors ] @@ -69,12 +68,12 @@ omit = ["*/site-packages/*", "*/dist-packages/*"] [tool.diff_cover] # this will be superflous once we push coverage to 100 -compare_branch = "origin/master" +compare_branch = "origin/main" fail_under = 99 [tool.diff_quality] # this will be superflous once we push pylint score to 10 -compare_branch = "origin/master" +compare_branch = "origin/main" fail_under = 99 [tool.autopep8] From 5940ce0506f11a015d229b65291929917ddfd474 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 00:24:12 +0400 Subject: [PATCH 013/125] retrying --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 423c56c6a..8c3c03d22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,11 @@ license = {text = "Apache License (2.0)"} authors = [{name = "Enzo Busseti"}, {name = "Stephen Boyd"}, {name = "Steven Diamond"}, {name = "BlackRock Inc."}] maintainers = [{name = "Enzo Busseti", email = "enzo.busseti@gmail.com"}] -dependencies = ["pandas", "numpy", "matplotlib", "requests", "cvxpy", +dependencies = ["pandas", + # July 2024, Numpy 2 causes issues with CVXPY's conic interface on Py 3.12 + "numpy; python_version<'3.12'", + "numpy<2.0.0; python_version>='3.12'", + "matplotlib", "requests", "cvxpy", "multiprocess", # robustifies usage w/ 3rd party modules "scs" # it's hardcoded as fallback solver if numerical errors ] From 3fb969fb60945892675db83891e12c7116805568 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 00:32:17 +0400 Subject: [PATCH 014/125] Addressing #166 --- COPYING | 675 +++++++++++++++++++++++++++++++++++++++++++++++++ LICENSE | 202 --------------- pyproject.toml | 2 +- 3 files changed, 676 insertions(+), 203 deletions(-) create mode 100644 COPYING delete mode 100644 LICENSE diff --git a/COPYING b/COPYING new file mode 100644 index 000000000..53d1f3d01 --- /dev/null +++ b/COPYING @@ -0,0 +1,675 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + diff --git a/LICENSE b/LICENSE deleted file mode 100644 index d64569567..000000000 --- a/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/pyproject.toml b/pyproject.toml index 8c3c03d22..7ef2bc922 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "cvxportfolio" version = "1.3.2" description = "Portfolio optimization and back-testing." readme = "README.rst" -license = {text = "Apache License (2.0)"} +license = {text = "GPLv3"} authors = [{name = "Enzo Busseti"}, {name = "Stephen Boyd"}, {name = "Steven Diamond"}, {name = "BlackRock Inc."}] maintainers = [{name = "Enzo Busseti", email = "enzo.busseti@gmail.com"}] From e7ae2f672feb20b4a78e98514ba13550d0a17b4f Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 11:31:19 +0400 Subject: [PATCH 015/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-12 --- AUTHORS | 10 +- COPYING => LICENSE | 0 README.rst | 4 +- cvxportfolio/constraints/__init__.py | 24 ++-- cvxportfolio/constraints/base_constraints.py | 23 +-- cvxportfolio/constraints/constraints.py | 22 +-- cvxportfolio/data/__init__.py | 23 +-- cvxportfolio/data/market_data.py | 23 +-- cvxportfolio/data/symbol_data.py | 23 +-- cvxportfolio/tests/__init__.py | 23 +-- cvxportfolio/tests/__main__.py | 22 +-- cvxportfolio/tests/test_constraints.py | 22 +-- cvxportfolio/tests/test_costs.py | 22 +-- cvxportfolio/tests/test_data.py | 23 +-- cvxportfolio/tests/test_estimator.py | 23 +-- cvxportfolio/tests/test_forecast.py | 23 +-- cvxportfolio/tests/test_hyperparameters.py | 23 +-- cvxportfolio/tests/test_policies.py | 22 +-- cvxportfolio/tests/test_result.py | 22 +-- cvxportfolio/tests/test_returns.py | 22 +-- cvxportfolio/tests/test_risks.py | 22 +-- cvxportfolio/tests/test_simulator.py | 22 +-- cvxportfolio/tests/test_utils.py | 22 +-- .../ftse100_daily_initial_holdings.json | 131 ++++++++++++++++-- .../ftse100_daily_target_weights.json | 103 ++++++++++++++ 25 files changed, 491 insertions(+), 208 deletions(-) rename COPYING => LICENSE (100%) diff --git a/AUTHORS b/AUTHORS index c0e360b61..46ccd5059 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,8 @@ AUTHORS -Enzo Busseti and Steven Diamond developed the software library. Stephen Boyd directed the -project. BlackRock Inc. provided support via technical, financial, and (additional) -human resources. + +2016: Enzo Busseti and Steven Diamond developed the software library. Stephen +Boyd directed the project. BlackRock Inc. provided support via technical, +financial, and (additional) human resources. + +2017-2024, Enzo Busseti has been maintaining and further developing the +software library. diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE diff --git a/README.rst b/README.rst index cdc3b40fd..fe1f3523c 100644 --- a/README.rst +++ b/README.rst @@ -311,8 +311,8 @@ The latter is also the first chapter of this PhD thesis: Licensing --------- -Cvxportfolio is licensed under the `Apache 2.0 `_ permissive -open source license. +Cvxportfolio is licensed under the `General Public License version 3 `_ +free software license. .. |CVXportfolio on PyPI| image:: https://img.shields.io/pypi/v/cvxportfolio.svg :target: https://pypi.org/project/cvxportfolio/ diff --git a/cvxportfolio/constraints/__init__.py b/cvxportfolio/constraints/__init__.py index a16f61a82..7b3c8f2bd 100644 --- a/cvxportfolio/constraints/__init__.py +++ b/cvxportfolio/constraints/__init__.py @@ -1,16 +1,20 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2017-2024 Enzo Busseti +# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Here we define many realistic constraints that apply to :ref:`portfolio optimization trading policies `. diff --git a/cvxportfolio/constraints/base_constraints.py b/cvxportfolio/constraints/base_constraints.py index ef83bf9c2..54b80261d 100644 --- a/cvxportfolio/constraints/base_constraints.py +++ b/cvxportfolio/constraints/base_constraints.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines base constraint classes.""" diff --git a/cvxportfolio/constraints/constraints.py b/cvxportfolio/constraints/constraints.py index 5bf75e97f..843225171 100644 --- a/cvxportfolio/constraints/constraints.py +++ b/cvxportfolio/constraints/constraints.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines user-facing constraints.""" import cvxpy as cp diff --git a/cvxportfolio/data/__init__.py b/cvxportfolio/data/__init__.py index 0c2bc403a..fd932be82 100644 --- a/cvxportfolio/data/__init__.py +++ b/cvxportfolio/data/__init__.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module include classes that download, store, and serve market data. The two main abstractions are :class:`SymbolData` and :class:`MarketData`. diff --git a/cvxportfolio/data/market_data.py b/cvxportfolio/data/market_data.py index 3bb922919..48899dc3f 100644 --- a/cvxportfolio/data/market_data.py +++ b/cvxportfolio/data/market_data.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines :class:`MarketData` and derived classes.""" import logging diff --git a/cvxportfolio/data/symbol_data.py b/cvxportfolio/data/symbol_data.py index d555b5a50..aa1b32dc2 100644 --- a/cvxportfolio/data/symbol_data.py +++ b/cvxportfolio/data/symbol_data.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines :class:`SymbolData` and derived classes.""" # pylint: disable=too-many-lines diff --git a/cvxportfolio/tests/__init__.py b/cvxportfolio/tests/__init__.py index c3f35dfc2..c4b3cba27 100644 --- a/cvxportfolio/tests/__init__.py +++ b/cvxportfolio/tests/__init__.py @@ -1,16 +1,21 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . + """We make the tests a sub-package so we can ship them.""" import logging diff --git a/cvxportfolio/tests/__main__.py b/cvxportfolio/tests/__main__.py index 7542a5ea5..866a252ee 100644 --- a/cvxportfolio/tests/__main__.py +++ b/cvxportfolio/tests/__main__.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Run all tests with ``python -m cvxportfolio.tests``.""" import unittest diff --git a/cvxportfolio/tests/test_constraints.py b/cvxportfolio/tests/test_constraints.py index 910fcbce4..7b7646341 100644 --- a/cvxportfolio/tests/test_constraints.py +++ b/cvxportfolio/tests/test_constraints.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the constraints objects.""" import unittest diff --git a/cvxportfolio/tests/test_costs.py b/cvxportfolio/tests/test_costs.py index 92dc3a407..a787971bb 100644 --- a/cvxportfolio/tests/test_costs.py +++ b/cvxportfolio/tests/test_costs.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the cost objects.""" import unittest diff --git a/cvxportfolio/tests/test_data.py b/cvxportfolio/tests/test_data.py index 5be0ab17e..9e2ad101a 100644 --- a/cvxportfolio/tests/test_data.py +++ b/cvxportfolio/tests/test_data.py @@ -1,16 +1,19 @@ -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the data interfaces.""" import socket diff --git a/cvxportfolio/tests/test_estimator.py b/cvxportfolio/tests/test_estimator.py index 8f6ccc8ed..7d80882a7 100644 --- a/cvxportfolio/tests/test_estimator.py +++ b/cvxportfolio/tests/test_estimator.py @@ -1,16 +1,19 @@ -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the data and parameter estimator objects.""" import unittest diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index 1bd521f38..45d33665a 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -1,16 +1,19 @@ -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the data and parameter estimator objects.""" import copy diff --git a/cvxportfolio/tests/test_hyperparameters.py b/cvxportfolio/tests/test_hyperparameters.py index 78b497ffe..6b39fc271 100644 --- a/cvxportfolio/tests/test_hyperparameters.py +++ b/cvxportfolio/tests/test_hyperparameters.py @@ -1,16 +1,19 @@ -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the hyper-parameters interface.""" import unittest diff --git a/cvxportfolio/tests/test_policies.py b/cvxportfolio/tests/test_policies.py index be8f82246..3a08705d5 100644 --- a/cvxportfolio/tests/test_policies.py +++ b/cvxportfolio/tests/test_policies.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the policy objects.""" import unittest diff --git a/cvxportfolio/tests/test_result.py b/cvxportfolio/tests/test_result.py index d807af162..c3b0ea3a7 100644 --- a/cvxportfolio/tests/test_result.py +++ b/cvxportfolio/tests/test_result.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the BacktestResult class and methods.""" import logging diff --git a/cvxportfolio/tests/test_returns.py b/cvxportfolio/tests/test_returns.py index 939cc0dc8..d2a86f262 100644 --- a/cvxportfolio/tests/test_returns.py +++ b/cvxportfolio/tests/test_returns.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the return forecast objects.""" import unittest diff --git a/cvxportfolio/tests/test_risks.py b/cvxportfolio/tests/test_risks.py index 31f8cce99..48fa5e7b8 100644 --- a/cvxportfolio/tests/test_risks.py +++ b/cvxportfolio/tests/test_risks.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the risk objects.""" import unittest diff --git a/cvxportfolio/tests/test_simulator.py b/cvxportfolio/tests/test_simulator.py index b64c14b5e..9a7b4c0e7 100644 --- a/cvxportfolio/tests/test_simulator.py +++ b/cvxportfolio/tests/test_simulator.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for the market simulator and its backtest methods.""" # pylint: disable=too-many-lines diff --git a/cvxportfolio/tests/test_utils.py b/cvxportfolio/tests/test_utils.py index 48ded7c3a..67334c726 100644 --- a/cvxportfolio/tests/test_utils.py +++ b/cvxportfolio/tests/test_utils.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. + +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Unit tests for some utils.py functions.""" import unittest diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 2a215bab2..ea4d06af1 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10324,18 +10324,18 @@ "HLN.L": 0.0, "HSBA.L": 10202.318367642549, "HWDN.L": 10890.723301420581, - "IAG.L": 10356.561840753498, + "IAG.L": 10467.79735795821, "ICG.L": 11219.96010898213, "IHG.L": 16616.75361350003, "III.L": 11872.677518939672, - "IMB.L": 10340.2335518495, + "IMB.L": 10410.746591170433, "IMI.L": 10831.918395324088, "INF.L": 10212.793632840461, "ITRK.L": 9572.880061173342, - "JD.L": 10278.228892566976, + "JD.L": 10389.595423532344, "KGF.L": 10430.405871399804, "LAND.L": 0.0, - "LGEN.L": 10325.876946451792, + "LGEN.L": 10424.389076412104, "LLOY.L": 0.0, "LMP.L": 0.0, "LSEG.L": 27814.75450672132, @@ -10344,24 +10344,24 @@ "MNG.L": 10342.241862606466, "MRO.L": 45212.069487215136, "NG.L": 10651.44767814739, - "NWG.L": 10452.160432080944, - "NXT.L": 8881.328363684348, + "NWG.L": 10391.24312832012, + "NXT.L": 8979.80880944596, "PHNX.L": 0.0, "PRU.L": 10538.568976610723, "PSH.L": 55278.97579955964, - "PSN.L": 10125.30266253775, + "PSN.L": 10255.97451412962, "PSON.L": 1023.3401040555883, "REL.L": 10849.932636256428, - "RIO.L": 11055.692558742072, + "RIO.L": 11140.867385851021, "RKT.L": 8814.024620869788, "RMV.L": 11395.061190414712, - "RR.L": 10360.452556216927, + "RR.L": 10283.471751002646, "RTO.L": 10156.213077739729, "SBRY.L": 0.0, "SDR.L": 10571.44553559847, - "SGE.L": 37523.63955800767, + "SGE.L": 37325.3878600547, "SGRO.L": 0.0, - "SHEL.L": 2815.000000000002, + "SHEL.L": 2836.0000000000014, "SMDS.L": 10170.137346001222, "SMIN.L": 0.0, "SMT.L": 10713.97683867193, @@ -10371,14 +10371,117 @@ "STAN.L": 10368.48801343486, "SVT.L": 10846.56007434883, "TSCO.L": 10475.63503073625, - "TW.L": 10484.020836302745, - "ULVR.L": 8860.475190661236, + "TW.L": 10415.743267901986, + "ULVR.L": 8929.239435464373, "UTG.L": 10207.68593771479, "UU.L": 11010.682335432844, "VOD.L": 10522.397446672448, - "VTY.L": 10256.0, + "VTY.L": 10359.999999999998, "WEIR.L": 9854.87085793712, "WPP.L": 10227.353824295493, "WTB.L": 11796.55385570578 + }, + "2024-07-12 07:00:00+00:00": { + "AAF.L": 22374.976703931672, + "AAL.L": 10493.40924164759, + "ABF.L": 9859.231619176066, + "ADM.L": 10403.225358619411, + "AHT.L": 15572.9298785779, + "ANTO.L": 20062.51069436188, + "AUTO.L": 10484.338648142188, + "AV.L": 11157.891672745931, + "AZN.L": 12386.78692665754, + "BA.L": 10499.270648354332, + "BARC.L": 10544.760298924588, + "BATS.L": 10425.221363299219, + "BDEV.L": 10872.553843473368, + "BEZ.L": 10296.398093284392, + "BKG.L": 9721.121097757248, + "BME.L": 10727.015829822305, + "BNZL.L": 9629.651807938166, + "BP.L": 1.378073197731214e-12, + "BRBY.L": 10729.64622740304, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10531.599950333273, + "CPG.L": 0.0, + "CRDA.L": 12052.017488749716, + "CTEC.L": 42.849126295939946, + "DARK.L": 23837.401000976548, + "DCC.L": 22890.93953681734, + "DGE.L": 10208.701236768507, + "DPLM.L": 12723.509274815255, + "EDV.L": 7428.0000000000055, + "ENT.L": 11238.811943529336, + "EXPN.L": 11064.763588948048, + "EZJ.L": 9835.598001775485, + "FCIT.L": 0.0, + "FRAS.L": 11042.793702460745, + "FRES.L": 10698.882907617104, + "GBPOUND": -2881.9276949960285, + "GLEN.L": 10210.243194944866, + "GSK.L": 10829.067771078224, + "HIK.L": 11163.974344867183, + "HL.L": 10097.999999999996, + "HLMA.L": 10659.12494555626, + "HLN.L": 0.0, + "HSBA.L": 10255.439631609075, + "HWDN.L": 10200.38339323745, + "IAG.L": 10365.344085789506, + "ICG.L": 11441.142118298983, + "IHG.L": 16749.30204696522, + "III.L": 11952.386666431727, + "IMB.L": 10516.516150151847, + "IMI.L": 11011.850594581965, + "INF.L": 10280.045976874117, + "ITRK.L": 9645.097932548493, + "JD.L": 10649.451606519733, + "KGF.L": 10724.331758651266, + "LAND.L": 0.0, + "LGEN.L": 10496.03395126384, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28350.81192358972, + "MKS.L": 0.0, + "MNDI.L": 9823.014940040777, + "MNG.L": 10317.838270911087, + "MRO.L": 45777.22131397398, + "NG.L": 10899.996524088509, + "NWG.L": 10513.07773584177, + "NXT.L": 9017.995104741263, + "PHNX.L": 0.0, + "PRU.L": 10603.920559280014, + "PSH.L": 55773.933641308766, + "PSN.L": 10538.508247301233, + "PSON.L": 1037.0523535888394, + "REL.L": 10726.295271585363, + "RIO.L": 11211.136618215914, + "RKT.L": 8864.96096287666, + "RMV.L": 11815.078208591298, + "RR.L": 10292.527950528227, + "RTO.L": 10750.487667620722, + "SBRY.L": 0.0, + "SDR.L": 10917.318517441317, + "SGE.L": 38100.37177023449, + "SGRO.L": 0.0, + "SHEL.L": 2832.000000000001, + "SMDS.L": 10693.920823556933, + "SMIN.L": 0.0, + "SMT.L": 10740.143446298865, + "SN.L": 3367.355749481665, + "SPX.L": 8803.748718530056, + "SSE.L": 11226.605938466315, + "STAN.L": 10411.486994621651, + "SVT.L": 11045.244726178023, + "TSCO.L": 10616.788298594525, + "TW.L": 10603.506581004061, + "ULVR.L": 8919.127046522734, + "UTG.L": 10462.73947010744, + "UU.L": 10175.719105898113, + "VOD.L": 10288.758312435568, + "VTY.L": 10623.999999999998, + "WEIR.L": 9964.981146852613, + "WPP.L": 10396.727616769473, + "WTB.L": 11901.268912123796 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 75f43f62c..9e17617f3 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -9989,5 +9989,108 @@ "WEIR.L": 0.009999997437938933, "WPP.L": 0.00999998902097139, "WTB.L": 0.00999998070949311 + }, + "2024-07-12 07:00:00+00:00": { + "AAF.L": 0.02138768803217823, + "AAL.L": 0.009999998744783835, + "ABF.L": 0.009391041260127419, + "ADM.L": 0.010000025642882961, + "AHT.L": 0.014791797663464714, + "ANTO.L": 0.019059617809628112, + "AUTO.L": 0.010000007415415575, + "AV.L": 0.012835692399091544, + "AZN.L": 0.010000022057452741, + "BA.L": 0.010000006000944075, + "BARC.L": 0.010000000246878277, + "BATS.L": 0.010000000540229457, + "BDEV.L": 0.010000005373695723, + "BEZ.L": 0.010000007094864037, + "BKG.L": 0.010000001566274206, + "BME.L": 0.00999999358701032, + "BNZL.L": 0.009999984566075645, + "BP.L": 1.3377528534622585e-07, + "BRBY.L": 0.00999999110989615, + "BT-A.L": 2.569866671698251e-08, + "CCH.L": 6.991770702192358e-08, + "CNA.L": 0.009999991965012103, + "CPG.L": 8.892920100305417e-08, + "CRDA.L": 0.009999996432222475, + "CTEC.L": 4.05487944020903e-05, + "DARK.L": 0.023675677595356614, + "DCC.L": 0.020826754659074184, + "DGE.L": 0.009695916930976158, + "DPLM.L": 0.010000034099514587, + "EDV.L": 0.007774593764207674, + "ENT.L": 0.010485903692570984, + "EXPN.L": 0.010000002272142906, + "EZJ.L": 0.009344321825011492, + "FCIT.L": 2.888843774354957e-08, + "FRAS.L": 0.010000005567256047, + "FRES.L": 0.009999998700304078, + "GBPOUND": 1.602582295075726e-07, + "GLEN.L": 0.009999819092403096, + "GSK.L": 0.009999990623180629, + "HIK.L": 0.010000006626855395, + "HL.L": 0.010000004101510696, + "HLMA.L": 0.01000000436414111, + "HLN.L": 1.2353242647127889e-08, + "HSBA.L": 0.009999997460362921, + "HWDN.L": 0.009999998426172966, + "IAG.L": 0.009999588543840417, + "ICG.L": 0.010000016419044366, + "IHG.L": 0.014587817429944147, + "III.L": 0.010000006028158842, + "IMB.L": 0.010000008555689536, + "IMI.L": 0.009999990762512682, + "INF.L": 0.009999702437585507, + "ITRK.L": 0.009999994190268782, + "JD.L": 0.010000106512796628, + "KGF.L": 0.009999990557361357, + "LAND.L": 1.9697027424860136e-08, + "LGEN.L": 0.00999999548007451, + "LLOY.L": 7.765587304257544e-08, + "LMP.L": 5.0360645714019876e-08, + "LSEG.L": 0.026526186647564412, + "MKS.L": 4.27076853569468e-08, + "MNDI.L": 0.00999999741356487, + "MNG.L": 0.00999999947129234, + "MRO.L": 0.04348941258108917, + "NG.L": 0.00999997901394085, + "NWG.L": 0.009999984150122812, + "NXT.L": 0.01000000699318722, + "PHNX.L": 3.296442294722602e-08, + "PRU.L": 0.009999997521509867, + "PSH.L": 0.053315959209398134, + "PSN.L": 0.01000000020447846, + "PSON.L": 0.0009835066458924492, + "REL.L": 0.00999999304580412, + "RIO.L": 0.010000003427466196, + "RKT.L": 0.009999982751516947, + "RMV.L": 0.011224480307534642, + "RR.L": 0.009999993522066764, + "RTO.L": 0.01000000092970287, + "SBRY.L": 4.818732514301591e-08, + "SDR.L": 0.009999995758421483, + "SGE.L": 0.0361310478476471, + "SGRO.L": 5.810624888108903e-08, + "SHEL.L": 0.0012387392131289214, + "SMDS.L": 0.009999994125426005, + "SMIN.L": 7.100874039824632e-08, + "SMT.L": 0.009999974603594572, + "SN.L": 0.0031933958522794344, + "SPX.L": 0.00999996357994101, + "SSE.L": 0.009999997117808697, + "STAN.L": 0.009999990463617232, + "SVT.L": 0.010000004938623368, + "TSCO.L": 0.009999995699326166, + "TW.L": 0.00999999774211556, + "ULVR.L": 0.009999888904558536, + "UTG.L": 0.010000011388137334, + "UU.L": 0.009999978697616678, + "VOD.L": 0.009999998261991166, + "VTY.L": 0.009999998858472475, + "WEIR.L": 0.009999996365146114, + "WPP.L": 0.009999986538270849, + "WTB.L": 0.009999974678158231 } } \ No newline at end of file From 86713b758cb18d6c774e0e788f0155ffcc25646b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 18:00:33 +0400 Subject: [PATCH 016/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-12 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 087b36dd3..af2944195 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4455,14 +4455,14 @@ "WMT": 0.00038879662118763205 }, "2024-07-11 13:30:00+00:00": { - "AAPL": 225957.88684110483, + "AAPL": 226034.08426030198, "AMGN": 20346.908151915508, "AMZN": 233508.80886622934, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 79494.73733567949, - "CSCO": 43683.028676288806, + "CSCO": 43664.117841751984, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -4477,14 +4477,47 @@ "MCD": 1.1830383710208103e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 247204.5445352762, + "MSFT": 247338.10219236874, "NKE": 9.922859060587654e-13, "PG": 0.0, "TRV": 0.0, "UNH": 102805.3233757096, - "USDOLLAR": -104.45984620336114, + "USDOLLAR": -104.45984355951359, "V": 33978.62123015665, "VZ": 0.0, "WMT": 0.00038924033648406474 + }, + "2024-07-12 13:30:00+00:00": { + "AAPL": 223470.40547190656, + "AMGN": 20714.66950119921, + "AMZN": 226996.84122722445, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 79437.94199405155, + "CSCO": 44278.20844914463, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 108783.53791262678, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.197307158548222e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 242714.3367559562, + "NKE": 1.00416061719913e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 104709.81440197171, + "USDOLLAR": -171.90305040997796, + "V": 34265.09153563561, + "VZ": 0.0, + "WMT": 0.0003876873752615693 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 8729740b1..0cf972504 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4486,5 +4486,38 @@ "V": 0.031048614288375777, "VZ": 6.996870072684633e-09, "WMT": 5.930250539979953e-08 + }, + "2024-07-12 13:30:00+00:00": { + "AAPL": 0.20558732442927125, + "AMGN": 0.019018034998715384, + "AMZN": 0.20968119474389593, + "AXP": 1.0147128848998204e-08, + "BA": 1.7656724961643866e-08, + "CAT": 8.816887693458926e-09, + "CRM": 0.07320228407158169, + "CSCO": 0.040801896093445846, + "CVX": 9.901428646273977e-09, + "DIS": 1.3051645607383056e-08, + "DOW": 1.3398641535717733e-08, + "GS": 1.0215699747105552e-08, + "HD": 0.10024276043209998, + "HON": 6.2338213299668386e-09, + "IBM": 4.512695837325646e-09, + "INTC": 1.1462239043548982e-08, + "JNJ": 1.3930031856734546e-08, + "JPM": 1.673717536455065e-08, + "KO": 1.061771914562303e-08, + "MCD": 2.839472315467663e-08, + "MMM": 6.105806579116293e-09, + "MRK": 1.2276704896096756e-08, + "MSFT": 0.22365186112654054, + "NKE": 2.6684518047016462e-08, + "PG": 8.249325302583016e-09, + "TRV": 7.338233955785675e-09, + "UNH": 0.09624004535976609, + "USDOLLAR": 9.217593913921898e-09, + "V": 0.03157429713041615, + "VZ": 6.500667763515969e-09, + "WMT": 5.0164853898034325e-08 } } \ No newline at end of file From 5012057340ebdf80e702be8bc8a7b585b54809b3 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 18:01:44 +0400 Subject: [PATCH 017/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-12 --- .../ndx100_daily_initial_holdings.json | 178 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 ++++++++++ 2 files changed, 245 insertions(+), 37 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index b5d2d607b..2e77ce11a 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -13935,15 +13935,15 @@ "ZS": 14353.061734741506 }, "2024-07-11 13:30:00+00:00": { - "AAPL": 2949.9644439287695, + "AAPL": 2950.9592296408027, "ABNB": 0.0, - "ADBE": 17170.560872737682, + "ADBE": 17171.170374124034, "ADI": 0.0, "ADP": 0.0, - "ADSK": 3048.9110794734866, + "ADSK": 3058.4139109996872, "AEP": 0.0, "AMAT": 700.8175892168255, - "AMD": -2.278180011437176e-11, + "AMD": -2.277437681370926e-11, "AMGN": 25394.941096512033, "AMZN": 23919.122083217266, "ANSS": 5315.843998774376, @@ -13954,39 +13954,39 @@ "BIIB": 14142.317099018972, "BKNG": 11292.67320211903, "BKR": 0.0, - "CCEP": 20839.188610712445, - "CDNS": 5336.2396685386875, + "CCEP": 20778.885309791873, + "CDNS": 5339.5771079198375, "CDW": 19011.184437037307, - "CEG": 90464.514689687, + "CEG": 90468.6328777896, "CHTR": 17705.34751698071, - "CMCSA": 21242.406077869287, + "CMCSA": 21248.057711604164, "COST": 0.0, - "CPRT": 7207.749078944719, + "CPRT": 7206.418951874836, "CRWD": 11437.020563893402, - "CSCO": 34997.51506351452, - "CSGP": 6952.647660694112, + "CSCO": 34982.364277577246, + "CSGP": 6952.836775340188, "CSX": 0.0, "CTAS": 0.0, - "CTSH": 26459.21614688834, + "CTSH": 26478.71842686705, "DASH": 0.0, "DDOG": 2512.4109069546, "DLTR": 21233.502696320473, - "DXCM": 15675.808518569325, + "DXCM": 15691.340391717727, "EA": 16702.565887342564, "EXC": 0.0, "FANG": 21220.856925967528, - "FAST": 13037.595208358634, - "FTNT": 15796.834751518909, + "FAST": 13039.632767786636, + "FTNT": 15815.40045981808, "GEHC": 10654.945051985356, "GFS": 13.23350131329498, - "GILD": 21521.98270909718, - "GOOG": 21564.28958815473, - "GOOGL": -2.4672829852152004e-12, + "GILD": 21446.533834669142, + "GOOG": 21558.65564546267, + "GOOGL": -2.4673480301841308e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 7981.504019540171, - "INTC": 2034.038364191557, - "INTU": 7541.243778615955, + "INTC": 2033.980332130347, + "INTU": 7563.7485254108215, "ISRG": 17093.91162713591, "KDP": 0.0, "KHC": 0.0, @@ -13995,27 +13995,27 @@ "LRCX": 1117.8278491481976, "LULU": 18811.14466892671, "MAR": 0.0, - "MCHP": 19704.13562034905, + "MCHP": 19720.699316464495, "MDB": 18877.32830522023, "MDLZ": 0.0, "MELI": 23686.10294928268, - "META": 5697.58763347303, - "MNST": 16753.344105566477, - "MRNA": 19736.97758411561, - "MRVL": 0.0, - "MSFT": 6986.214952371793, - "MU": 3827.647156325859, - "NFLX": 20811.743328098386, - "NVDA": 23816.867448026143, + "META": 5695.710258235264, + "MNST": 16736.520357663514, + "MRNA": 19725.473983572778, + "MRVL": 0.0, + "MSFT": 6989.989407662401, + "MU": 3828.15263673448, + "NFLX": 20820.721233731056, + "NVDA": 23776.583745065986, "NXPI": 26039.800910369377, - "ODFL": 8744.642641960809, - "ON": 5768.9039865987, + "ODFL": 8770.018517678698, + "ON": 5764.346775685396, "ORLY": 14316.803796604296, - "PANW": 19201.12936533475, + "PANW": 19202.838595133206, "PAYX": 0.7482031197522793, "PCAR": 0.0, "PDD": 15966.758668521252, - "PEP": 10908.507164427065, + "PEP": 10915.368279500564, "PYPL": 0.0, "QCOM": 13013.305410146511, "REGN": 11764.058351802398, @@ -14024,12 +14024,12 @@ "SBUX": 18086.960219257857, "SNPS": 0.0, "TEAM": 10995.404984759034, - "TMUS": 11709.525680589559, - "TSLA": 20298.7996614113, - "TTD": 32688.720617840423, + "TMUS": 11701.692230489194, + "TSLA": 20293.01833151025, + "TTD": 32661.24732702703, "TTWO": 8739.435927493385, "TXN": 0.0, - "USDOLLAR": 15774.537796623417, + "USDOLLAR": 15774.537825202398, "VRSK": 0.0, "VRTX": 8751.378820447038, "WBA": 0.0, @@ -14037,5 +14037,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 14392.981976239229 + }, + "2024-07-12 13:30:00+00:00": { + "AAPL": 8416.479127750827, + "ABNB": 0.0, + "ADBE": 12459.406322011479, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 85.01747146027314, + "AEP": 0.0, + "AMAT": -62.29318880191295, + "AMD": -2.2528159976857373e-11, + "AMGN": 38311.10368284414, + "AMZN": 19945.408608884733, + "ANSS": 11.730738939827365, + "ARM": 68409.512878418, + "ASML": 18.952947099705398, + "AVGO": -721.4299867831458, + "AZN": 0.0, + "BIIB": 15304.110016181108, + "BKNG": 11154.331282973742, + "BKR": 0.0, + "CCEP": 19658.565038569093, + "CDNS": -98.25438410505764, + "CDW": 7607.038805175315, + "CEG": 83486.1227568809, + "CHTR": 18616.9761019631, + "CMCSA": 35812.30727762657, + "COST": 0.0, + "CPRT": -0.8668810374973832, + "CRWD": 13050.005048849267, + "CSCO": 59247.89567548984, + "CSGP": 5783.235400741515, + "CSX": 0.0, + "CTAS": 0.0, + "CTSH": 27461.725001187966, + "DASH": 0.0, + "DDOG": 16365.84811430804, + "DLTR": 29814.402306734813, + "DXCM": 11062.011985652547, + "EA": 14130.891667393655, + "EXC": 0.0, + "FANG": 27524.541743636524, + "FAST": 17517.418068734878, + "FTNT": 25437.99654156242, + "GEHC": 2447.289931504501, + "GFS": 21050.16932588451, + "GILD": 30233.710860841864, + "GOOG": 873.1924521739144, + "GOOGL": -2.4053556137118924e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 5732.676484226641, + "INTC": 2.1636550928789964, + "INTU": -98.25073205320203, + "ISRG": 9492.60401373461, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 20355.22614974024, + "LIN": 0.0, + "LRCX": -11.17285318103683, + "LULU": 22253.706589418747, + "MAR": 0.0, + "MCHP": 12549.403164350964, + "MDB": 24480.17659194652, + "MDLZ": 0.0, + "MELI": 21973.991436883643, + "META": -135.08728887616448, + "MNST": 17901.244663069745, + "MRNA": 20572.667449741282, + "MRVL": 0.0, + "MSFT": 44.44260082585393, + "MU": 9.732088825468084, + "NFLX": 16286.818320410557, + "NVDA": 19.211830795334894, + "NXPI": 20793.496762796607, + "ODFL": 8975.420356167899, + "ON": -3.2482652105601084, + "ORLY": 27953.23789197303, + "PANW": -7.737044042427722, + "PAYX": 6598.674461634087, + "PCAR": 0.0, + "PDD": 27550.454486029317, + "PEP": 25519.424984556248, + "PYPL": 7188.789981842041, + "QCOM": -7.611634367382284, + "REGN": 16420.97964287615, + "ROP": 14985.23568232907, + "ROST": 9087.62440927604, + "SBUX": 32348.30140255564, + "SNPS": 0.0, + "TEAM": 12534.577072934386, + "TMUS": 5792.5757766585075, + "TSLA": 3552.888181204512, + "TTD": 38241.429405075825, + "TTWO": 9780.866532586366, + "TXN": 0.0, + "USDOLLAR": 1328.532589270212, + "VRSK": 0.0, + "VRTX": 11811.987923697998, + "WBA": 218.88000869750985, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18945.49693972058 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index f546018c1..d95455110 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -13830,5 +13830,109 @@ "WDAY": 1.7586510307060276e-08, "XEL": 5.841089322532311e-08, "ZS": 0.01727804216772324 + }, + "2024-07-12 13:30:00+00:00": { + "AAPL": 0.007265391627103142, + "ABNB": 1.3528825352839583e-08, + "ADBE": 0.010391882722928762, + "ADI": 1.076611354736214e-07, + "ADP": 1.5937224761752913e-07, + "ADSK": 3.8758658684758494e-08, + "AEP": 1.150851973483429e-08, + "AMAT": 5.399313255694015e-08, + "AMD": 6.8967376238890675e-09, + "AMGN": 0.03359509682040661, + "AMZN": 0.017674851925544636, + "ANSS": 6.142941819976652e-08, + "ARM": 0.06525976271906601, + "ASML": 2.5328090020155608e-08, + "AVGO": 1.405172734246507e-08, + "AZN": 6.068125185236135e-08, + "BIIB": 0.013655256143161395, + "BKNG": 0.009008668776610001, + "BKR": 1.0684362352664551e-07, + "CCEP": 0.01722812761056841, + "CDNS": 1.3925093979476138e-08, + "CDW": 0.007833904756640527, + "CEG": 0.07506762908621513, + "CHTR": 0.01734700151234852, + "CMCSA": 0.03199355902202466, + "COST": 1.417017727858629e-08, + "CPRT": 1.6027540493463024e-07, + "CRWD": 0.012307078267804259, + "CSCO": 0.05302442696197451, + "CSGP": 0.0052033082550960365, + "CSX": 6.909137044333501e-06, + "CTAS": 2.143201559604482e-08, + "CTSH": 0.02466160281070187, + "DASH": 1.1121497373290132e-08, + "DDOG": 0.01590573558603893, + "DLTR": 0.026816858932050266, + "DXCM": 0.009698665080143842, + "EA": 0.012390969412172628, + "EXC": 3.3448157432790694e-08, + "FANG": 0.024953136924873068, + "FAST": 0.01697566125819087, + "FTNT": 0.022887379045962185, + "GEHC": 0.002201783636384826, + "GFS": 0.020182032568718807, + "GILD": 0.026944914218541966, + "GOOG": 3.3100718561474094e-07, + "GOOGL": 1.120113369744664e-07, + "HON": 4.14415767985281e-08, + "IDXX": 3.2314137122979266e-08, + "ILMN": 0.0051234133025164635, + "INTC": 3.971343951672584e-08, + "INTU": 7.957920014766578e-08, + "ISRG": 0.008163989756118678, + "KDP": 4.4877187673992133e-07, + "KHC": 2.7576103891159077e-08, + "KLAC": 0.016029597731115276, + "LIN": 7.39522627985622e-08, + "LRCX": 3.9903537475812975e-08, + "LULU": 0.019672442520962098, + "MAR": 9.193705133987685e-08, + "MCHP": 0.01104119743253132, + "MDB": 0.022615037675977445, + "MDLZ": 1.2546615017791023e-07, + "MELI": 0.02005233997953129, + "META": 1.3865338940709107e-08, + "MNST": 0.016092203189870893, + "MRNA": 0.018361542876110425, + "MRVL": 1.1731037948605864e-08, + "MSFT": 3.191971210917831e-08, + "MU": 1.3580569435831796e-08, + "NFLX": 0.014679500691752181, + "NVDA": 1.1066666550093798e-07, + "NXPI": 0.01871715624843371, + "ODFL": 0.008288802200325861, + "ON": 1.4179609433544809e-06, + "ORLY": 0.0248527631371768, + "PANW": 2.5345471594478938e-08, + "PAYX": 0.005932245017970025, + "PCAR": 1.3912524273058442e-08, + "PDD": 0.02510772252249349, + "PEP": 0.023596199912731878, + "PYPL": 0.007355740577234246, + "QCOM": 5.249126743672225e-08, + "REGN": 0.014304257219757744, + "ROP": 0.013187750624560264, + "ROST": 0.008252177789059697, + "SBUX": 0.029049648224957657, + "SNPS": 6.576464846074867e-09, + "TEAM": 0.011276148951050252, + "TMUS": 0.0035213466055645866, + "TSLA": 0.0017774368610285378, + "TTD": 0.035397683676635726, + "TTWO": 0.008832967799130021, + "TXN": 3.437894379287454e-08, + "USDOLLAR": 4.1062253016322e-07, + "VRSK": 1.7151171241454496e-07, + "VRTX": 0.010465263641027553, + "WBA": 0.00019716656260991225, + "WBD": 2.1734531698115756e-08, + "WDAY": 3.1416720092247956e-08, + "XEL": 9.332701666196623e-08, + "ZS": 0.01756984331242613 } } \ No newline at end of file From 84caf6a29f1ebb845eb8980a264b7e74d4ec08e9 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 12 Jul 2024 18:07:12 +0400 Subject: [PATCH 018/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-12 --- .../sp500_daily_initial_holdings.json | 653 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1084 insertions(+), 74 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 77f3468c3..8311d898b 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -66783,33 +66783,33 @@ }, "2024-07-11 13:30:00+00:00": { "A": 0.0, - "AAL": 624.8397967497334, - "AAPL": 50186.39948845343, + "AAL": 625.4254144570717, + "AAPL": 50203.323324010926, "ABBV": 4528.422206545505, "ABNB": 0.0, "ABT": 3320.3834794761447, "ACGL": 0.0, - "ACN": 2.3400047281339716e-13, - "ADBE": 11688.912887735174, + "ACN": 2.3502669282260534e-13, + "ADBE": 11689.327807705631, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, - "ADSK": -15.802889180125195, + "ADSK": -15.852143549830158, "AEE": 0.0, "AEP": 0.0, "AES": 0.0, "AFL": 3405.635439858207, "AIG": 0.0, - "AIZ": 1.4117572343541052, + "AIZ": 1.4136418721523034, "AJG": 0.0, "AKAM": 187.65465259725704, "ALB": 0.0, - "ALGN": 1223.3433978493651, + "ALGN": 1241.6081125319313, "ALL": 6.265404079505569e-14, "ALLE": 0.0, "AMAT": 2481.4158633746, "AMCR": 0.0, - "AMD": 30229.95565198037, + "AMD": 30220.105418518044, "AME": 0.0, "AMGN": 6971.508566661343, "AMP": 450.332985500473, @@ -66822,14 +66822,14 @@ "APA": 0.0, "APD": 0.0, "APH": 27.996852003848165, - "APTV": 2.4219203133311445e-14, + "APTV": 2.4220913434967392e-14, "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, "AVGO": 20531.401441726888, "AVY": 0.0, "AWK": 0.0, - "AXON": 4612.259575886147, + "AXON": 4615.088101629572, "AXP": 0.0, "AZO": 1.6655705985199896e-12, "BA": -1.1033534004008709e-12, @@ -66869,19 +66869,19 @@ "CCL": 0.0, "CDNS": 0.0, "CDW": 381.35432534918823, - "CE": -2.60698022656607e-14, - "CEG": 39924.81552926393, + "CE": -2.648787983150521e-14, + "CEG": 39926.633014284154, "CF": 9466.50867830447, "CFG": 0.0, "CHD": 2545.2640074068, "CHRW": 0.0, "CHTR": 6794.4158326812785, - "CI": 3.84915211285854e-13, - "CINF": 0.01483606173434168, - "CL": 9.567876366520508, + "CI": 3.815317074484371e-13, + "CINF": 0.01489708959187159, + "CL": 9.563946560414012, "CLX": 15.127226894957431, - "CMCSA": 6057.86703709019, - "CME": 4500.0670431468825, + "CMCSA": 6059.478758737103, + "CME": 4505.420010102617, "CMG": 5931.288816647307, "CMI": 0.0, "CMS": 0.0, @@ -66894,18 +66894,18 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 749.5660684748741, + "CPRT": 749.4277426109429, "CPT": 0.0, "CRL": 0.0, "CRM": 7670.182168958845, "CRWD": 2254.1400146484357, - "CSCO": 6827.11829026543, - "CSGP": -7.415072462672423e-14, + "CSCO": 6824.1627602057515, + "CSGP": -7.415274155448015e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 10711.795186833888, + "CTSH": 10719.690523855534, "CTVA": 103.85180198011591, "CVS": 0.0, "CVX": -5.634090602885697e-13, @@ -66915,8 +66915,8 @@ "DAY": 0.0, "DD": 0.0, "DE": 9.966046197807862e-14, - "DECK": 870.1773437574969, - "DFS": 3221.904962537786, + "DECK": 871.6189026638277, + "DFS": 3222.653052461701, "DG": 0.0, "DGX": 0.0, "DHI": -6.503581274854674, @@ -66928,26 +66928,26 @@ "DOV": 0.0, "DOW": 0.0, "DPZ": 1936.462850200719, - "DRI": 2.3284735600845745, + "DRI": 2.2942362823199534, "DTE": 0.0, "DUK": 1.1714497789519638, - "DVA": 3464.604448314847, + "DVA": 3480.2657656422716, "DVN": 0.0, - "DXCM": 4827.376157676076, + "DXCM": 4832.159208836201, "EA": 4038.3150850283378, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.673283391059942e-14, + "EG": 5.685885631835355e-14, "EIX": 0.0, "EL": 0.0, "ELV": 531.4899902343747, "EMN": 0.0, "EMR": 0.0, - "ENPH": 2762.0456174407755, + "ENPH": 2757.5994624112145, "EOG": 0.0, - "EPAM": 5125.4020672897195, + "EPAM": 5125.541423732139, "EQIX": 796.8444333728993, "EQR": 0.0, "EQT": 0.0, @@ -66964,40 +66964,40 @@ "EXR": 5.573705196045785e-14, "F": 0.0, "FANG": 14119.065521267072, - "FAST": 3014.908426598192, + "FAST": 3015.379606673275, "FCX": 0.0, "FDS": 3732.7254903895096, "FDX": 8625.619944939222, "FE": 0.0, "FFIV": 3604.7704593052513, "FI": 2.4054535232997155e-13, - "FICO": 1474.0197675347947, + "FICO": 1475.6244177462481, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.719608550716132e-14, - "FTNT": 6211.238278679624, + "FSLR": -7.70654680628611e-14, + "FTNT": 6218.538224515136, "FTV": 0.0, - "GD": 3.74261401012632e-13, + "GD": 3.7354449011214646e-13, "GDDY": 0.0, "GE": 0.0, "GEHC": 1697.1416055603136, "GEN": 0.0, "GEV": 27292.585601066243, - "GILD": 8402.277613210379, + "GILD": 8372.822037619722, "GIS": 7369.092671866049, "GL": 0.2836171907188849, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 25075.15889457129, - "GOOGL": 1867.6576226623442, + "GOOG": 25068.607692982718, + "GOOGL": 1867.7068597108573, "GPC": 0.0, "GPN": -9.99863130725993e-14, - "GRMN": 2135.843913688162, + "GRMN": 2140.417535100858, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, @@ -67007,7 +67007,7 @@ "HD": 8953.190009131782, "HES": 0.0, "HIG": 5571.2827909619955, - "HII": 0.681902543909114, + "HII": 0.6840034544327198, "HLT": -1.3785186895318912e-13, "HOLX": 2782.5862668711165, "HON": 0.0, @@ -67025,9 +67025,9 @@ "IDXX": -10.041390891986557, "IEX": 0.0, "IFF": 0.0, - "INCY": 3864.895222646454, - "INTC": 243.58092476018058, - "INTU": 1259.4725445336685, + "INCY": 3857.9199834649216, + "INTC": 243.57397528303002, + "INTU": 1263.231090410436, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, @@ -67040,7 +67040,7 @@ "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, - "JBL": 2555.011901277159, + "JBL": 2571.6422408694643, "JCI": 0.0, "JKHY": 809.7470896939946, "JNJ": 13006.676021050022, @@ -67066,7 +67066,7 @@ "LH": 0.0, "LHX": 0.0, "LIN": 1.623481471072358, - "LKQ": 4688.861323074145, + "LKQ": 4692.222804739624, "LLY": 1.624507418442381, "LMT": 8359.361493880047, "LNT": 0.0, @@ -67083,13 +67083,13 @@ "MAR": -6.004612913392823e-13, "MAS": 0.0, "MCD": 11152.04823881883, - "MCHP": 2479.5609116615524, + "MCHP": 2481.6452808636236, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.272497604961351, "MET": -0.034668744504648165, - "META": 23351.670329299803, + "META": 23343.975871494684, "MGM": 4213.861390587515, "MHK": 0.0, "MKC": 0.0, @@ -67097,62 +67097,62 @@ "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5070.3303986845785, + "MNST": 5065.2387608673935, "MO": -20.93730326250498, "MOH": 1706.2868004269583, "MOS": 0.0, "MPC": 14589.672358139173, - "MPWR": -9.72501080012748e-13, + "MPWR": -9.90396368482984e-13, "MRK": 5802.859331945794, - "MRNA": 7493.827511593512, + "MRNA": 7489.459770997828, "MRO": 0.0, "MS": 6235.005815822391, "MSCI": 6309.532984677676, - "MSFT": 38788.4540934251, + "MSFT": 38809.41040335338, "MSI": 0.0, "MTB": -5.915291096280897, "MTCH": 0.0, "MTD": 0.0, - "MU": 3839.2270876233865, + "MU": 3839.7340972817437, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16785.604864812474, + "NFLX": 16792.84594856446, "NI": 0.0, "NKE": -2.993851989000666e-14, "NOC": -3.829845273981308e-13, "NOW": 5114.373957326536, "NRG": 0.0, "NSC": -2.6066296303148988e-14, - "NTAP": 6231.083408424737, + "NTAP": 6240.587396518807, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 141960.77312212336, + "NVDA": 141720.66154452294, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, "NXPI": 8839.287915096917, "O": 0.0, - "ODFL": 4560.868896866549, + "ODFL": 4574.103976564044, "OKE": 0.0, "OMC": 0.0, - "ON": -2.758587257450628, - "ORCL": 7439.70198943309, + "ON": -2.7564080802647783, + "ORCL": 7460.707390049881, "ORLY": -0.7219207907133286, "OTIS": 1648.2628759612105, "OXY": 0.0, - "PANW": 4348.448355178836, + "PANW": 4348.835441655069, "PARA": 2208.7388355358707, "PAYC": 0.0, "PAYX": 467.8587874313971, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11280.190294275793, + "PEP": 11287.2851865918, "PFE": 0.0, - "PFG": 166.08372931666835, + "PFG": 166.02299166928677, "PG": 1.0564494850124029, "PGR": 7781.276893082111, "PH": 0.0, @@ -67171,11 +67171,11 @@ "PSA": 0.0, "PSX": 3136.731267390928, "PTC": 2.665056371728281e-14, - "PWR": -4.9817410728510785, + "PWR": -5.033515338336337, "PYPL": 0.0, "QCOM": 5000.42292987643, "QRVO": 0.0, - "RCL": 2911.164616320603, + "RCL": 2881.1010839035644, "REG": 0.0, "REGN": 1081.8053059740707, "RF": 0.0, @@ -67201,13 +67201,13 @@ "SO": 10.086666472855187, "SOLV": -1.342546426558119e-12, "SPG": 0.0, - "SPGI": -5.534692279470105, + "SPGI": -5.545144116875252, "SRE": 0.0, "STE": 0.47984819251101946, "STLD": -2.7887875906002186e-14, "STT": 305.8123484121206, "STX": 200.38102984851687, - "STZ": 249.99745034109628, + "STZ": 250.23453253220092, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, @@ -67215,8 +67215,8 @@ "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4863.132225291522, - "TDY": 762.654583890604, + "TDG": 4845.095928418687, + "TDY": 767.167308815001, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, @@ -67225,21 +67225,21 @@ "TGT": 0.0, "TJX": 450.6618305167884, "TMO": 0.0, - "TMUS": 8641.33847541196, - "TPR": 2882.3339600483914, + "TMUS": 8635.557584230372, + "TPR": 2925.2117295624785, "TRGP": 406.00934286773, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, - "TSCO": -2.7392982830507494e-12, - "TSLA": 108339.77149102048, + "TSCO": -2.7437326548203562e-12, + "TSLA": 108308.91508715221, "TSN": 4749.087998602691, "TT": 0.0, "TTWO": 739.6692507985051, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3637.8566704725486, + "UAL": 3646.004041215809, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -67249,7 +67249,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 3484.06106608242, + "USDOLLAR": 3484.061178004805, "V": 2604.952156415032, "VICI": 0.0, "VLO": 0.0, @@ -67263,10 +67263,10 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -1.9831617414001557e-13, + "WAT": -2.0089563950480546e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -3.2684893515482574, + "WDC": -3.272980742052832, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -67285,5 +67285,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-12 13:30:00+00:00": { + "A": 0.0, + "AAL": 626.5965940241697, + "AAPL": 49684.77925374342, + "ABBV": 4612.492141282259, + "ABNB": 0.0, + "ABT": 3361.8160374392332, + "ACGL": 0.0, + "ACN": 2.3832807155488514e-13, + "ADBE": 11504.868050839388, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.93529903565905, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3484.0511261385523, + "AIG": 0.0, + "AIZ": 1.433259071960879, + "AJG": 0.0, + "AKAM": 188.9573954585685, + "ALB": 0.0, + "ALGN": 1230.0339147423688, + "ALL": 6.385650698254435e-14, + "ALLE": 0.0, + "AMAT": 2345.873424434728, + "AMCR": 0.0, + "AMD": 29347.15180736437, + "AME": 0.0, + "AMGN": 7097.515494980665, + "AMP": 451.5798520005869, + "AMT": 627.0126074885686, + "AMZN": 37183.25555729498, + "ANET": 3860.5196201189524, + "ANSS": 978.5237172873509, + "AON": 17.193856057417612, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 27.733594784766282, + "APTV": 2.4556317951008038e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19907.429040106414, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4591.676884572011, + "AXP": 0.0, + "AZO": 1.7117642366497185e-12, + "BA": -1.1007173674164708e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 509.74594691517433, + "BDX": 0.0, + "BEN": 188.96261170829618, + "BF-B": 0.0, + "BG": 1807.0184873064097, + "BIIB": 2590.993355377363, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3714.9496415226727, + "BKR": 0.0, + "BLDR": 338.4989000693695, + "BLK": 9.461812157361012e-13, + "BMY": 83.08712436324622, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3067316597375886, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1506.6846097636221, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20372.35179685336, + "CAT": 0.0, + "CB": 1328.8320558971345, + "CBOE": 0.0, + "CBRE": 4505.40999829534, + "CCI": 296.50869715597804, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 391.80238905738514, + "CE": -2.708402386197835e-14, + "CEG": 39326.532758050584, + "CF": 9578.770712545149, + "CFG": 0.0, + "CHD": 2528.741045098546, + "CHRW": 0.0, + "CHTR": 7027.0710216426105, + "CI": 3.891737610608292e-13, + "CINF": 0.015222157836406663, + "CL": 9.62780459796032, + "CLX": 15.109297919396296, + "CMCSA": 6120.186120869269, + "CME": 4556.390568674554, + "CMG": 5906.745380932364, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 878.0720126753956, + "CNP": 0.0, + "COF": 8664.338911631256, + "COO": 0.0, + "COP": 0.0, + "COR": 3352.8881378776405, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 763.5339736479589, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7640.424201377335, + "CRWD": 2945.600097656248, + "CSCO": 6912.82640715723, + "CSGP": -7.617077785084637e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11117.652618914619, + "CTVA": 106.2740029472837, + "CVS": 0.0, + "CVX": -5.676255543092171e-13, + "CZR": 9372.734476063737, + "D": 0.0, + "DAL": 647.3458460167902, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0293635312916779e-13, + "DECK": 875.7585690183979, + "DFS": 3411.7982529713663, + "DG": 0.0, + "DGX": 0.0, + "DHI": -6.8133186644305574, + "DHR": 2700.631557036149, + "DIS": -4.311721160247132, + "DLR": 3.220219987948037e-14, + "DLTR": 960.9854458186753, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1904.1824751163292, + "DRI": 2.373336288655327, + "DTE": 0.0, + "DUK": 1.1898638280917002, + "DVA": 3494.684055046768, + "DVN": 0.0, + "DXCM": 4898.252098462514, + "EA": 4086.7736265576837, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.69818798277579e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": 536.6500244140623, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2813.4233670152057, + "EOG": 0.0, + "EPAM": 5291.353072253769, + "EQIX": 813.3796199082676, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.13018049108808, + "EXPE": 4278.079143662918, + "EXR": 5.716099327128033e-14, + "F": 0.0, + "FANG": 14451.631837431416, + "FAST": 3189.6788563239456, + "FCX": 0.0, + "FDS": 3777.9410890207487, + "FDX": 8730.008322168205, + "FE": 0.0, + "FFIV": 3638.109504025836, + "FI": 2.4480050885610135e-13, + "FICO": 1509.8496444878572, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.697403485530367e-14, + "FTNT": 6151.795635266329, + "FTV": 0.0, + "GD": 3.7723519361481516e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1716.8583263763237, + "GEN": 0.0, + "GEV": 28078.332433993368, + "GILD": 8621.96918232074, + "GIS": 7475.004437470468, + "GL": 0.29153225348810274, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 24486.89617688681, + "GOOGL": 1820.780499878835, + "GPC": 0.0, + "GPN": -1.0208809025584548e-13, + "GRMN": 2179.0965185938917, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0693252681117875, + "HBAN": 0.0, + "HCA": 6645.138371970362, + "HD": 9060.899892532218, + "HES": 0.0, + "HIG": 5671.756954585234, + "HII": 0.6957794442879984, + "HLT": -1.3652348127557123e-13, + "HOLX": 2813.397791458919, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10469.370188832305, + "HUBB": 1.3432123759591984e-13, + "HUM": 1134.6587562713657, + "HWM": 2142.0255364131144, + "IBM": 0.0, + "ICE": 733.4936594935084, + "IDXX": -10.138463294139852, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3994.88754682312, + "INTC": 235.23004045013474, + "INTU": 1249.4828777396474, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.044881997657759604, + "IRM": 0.0, + "ISRG": 6992.316928751762, + "IT": 7.428974336042447e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2571.867023845613, + "JCI": 0.0, + "JKHY": 823.7831598719695, + "JNJ": 13043.196812907443, + "JNPR": 0.0, + "JPM": 2497.602271627209, + "K": 466.2425457278221, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -20.832274026465097, + "KMB": 5381.28171765222, + "KMI": 0.0, + "KMX": 157.59845090069032, + "KO": 192.5550538936102, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21113185644714216, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6315597317206876, + "LKQ": 4828.9109495386965, + "LLY": 1.6295682507228328, + "LMT": 8403.70965606195, + "LNT": 0.0, + "LOW": -2.723729182853151e-13, + "LRCX": 998.2116098335014, + "LULU": 1758.4085847530891, + "LUV": 27.280735092403617, + "LVS": 1868.7185704624703, + "LW": 28.638867050120773, + "LYB": 3578.676204436514, + "LYV": 2925.175506301253, + "MA": 30474.377544267492, + "MAA": 0.0, + "MAR": -5.9608647022939e-13, + "MAS": 0.0, + "MCD": 11286.554617236503, + "MCHP": 2421.1999654382626, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.285151858871574, + "MET": -0.03506895480796602, + "META": 21886.9831853868, + "MGM": 4380.473629927355, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6845.54822686584, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5193.13266570296, + "MO": -21.116255258003292, + "MOH": 1733.5386072921347, + "MOS": 0.0, + "MPC": 15092.626323483148, + "MPWR": -9.411731028388349e-13, + "MRK": 5884.256394831741, + "MRNA": 7717.207333025349, + "MRO": 0.0, + "MS": 6279.861972770752, + "MSCI": 6398.179677431097, + "MSFT": 38083.90305596131, + "MSI": 0.0, + "MTB": -5.95989431714329, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3709.922008305317, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16293.672977376928, + "NI": 0.0, + "NKE": -3.029679493300907e-14, + "NOC": -3.919405975040539e-13, + "NOW": 5134.941144822487, + "NRG": 0.0, + "NSC": -2.672594319939511e-14, + "NTAP": 6113.559362424014, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 133003.40487237976, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8661.572676544432, + "O": 0.0, + "ODFL": 4681.23366669333, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.718815888268974, + "ORCL": 7479.050275072824, + "ORLY": -0.7304598837184783, + "OTIS": 1693.6527755135937, + "OXY": 0.0, + "PANW": 4605.9208468371025, + "PARA": 2195.625091266646, + "PAYC": 0.0, + "PAYX": 471.7829845952494, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11710.114354928519, + "PFE": 0.0, + "PFG": 169.56616527198486, + "PG": 1.0559412595664206, + "PGR": 7935.938579319678, + "PH": 0.0, + "PHM": -11.135559732202216, + "PKG": -4.797619289061016e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -64.88667284761581, + "POOL": 1250.9227194528917, + "PPG": -0.41288794097272885, + "PPL": 0.0, + "PRU": 1245.1463833565258, + "PSA": 0.0, + "PSX": 3231.1377181361063, + "PTC": 2.688687293157664e-14, + "PWR": -5.169519915780571, + "PYPL": 0.0, + "QCOM": 4796.73443844205, + "QRVO": 0.0, + "RCL": 2934.7861972682276, + "REG": 0.0, + "REGN": 1108.3446675463301, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -25.51504632057131, + "ROK": 1.2263595166363273, + "ROL": 0.0, + "ROP": 5532.987170089237, + "ROST": 1203.855695046452, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6256.142125243621, + "SBUX": 8441.319554046198, + "SCHW": 151.03457671192345, + "SHW": 1.3459417160502511, + "SJM": 0.9539194195598446, + "SLB": 0.0, + "SMCI": 8824.277528539991, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.25328270799174, + "SOLV": -1.3713647855007762e-12, + "SPG": 0.0, + "SPGI": -5.6381410401153245, + "SRE": 0.0, + "STE": 0.48423764681656206, + "STLD": -2.8484769518326373e-14, + "STT": 309.4793711978827, + "STX": 199.31358007410373, + "STZ": 256.83316191879834, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.926720350661636, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4798.019267134097, + "TDY": 777.6055075408243, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 456.16888875333206, + "TMO": 0.0, + "TMUS": 8644.711152006708, + "TPR": 2962.0328430288782, + "TRGP": 410.90251440698677, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.7893419550428462e-12, + "TSLA": 96967.95014978945, + "TSN": 4796.100475453397, + "TT": 0.0, + "TTWO": 750.5170705472633, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3918.439414676027, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 4366.4193301946125, + "UNH": 20632.305153402725, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 2005.7720148302478, + "V": 2626.914243544806, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8656.027965547275, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3164.0739230501313, + "VRTX": 2952.558475900051, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.0844832164993773e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -3.1660044678271637, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5162702884482948, + "WMB": 0.0, + "WMT": 12062.978983975681, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3248.7572192905586, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 56d447e99..8bf25b7b1 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -64259,5 +64259,510 @@ "ZBH": 3.505566138893971e-09, "ZBRA": 1.958467838771167e-09, "ZTS": 1.1261247418854517e-08 + }, + "2024-07-12 13:30:00+00:00": { + "A": 3.305465571057459e-09, + "AAL": 0.0005195172034775169, + "AAPL": 0.04084548448450823, + "ABBV": 0.0038242382879829766, + "ABNB": 3.737483172852387e-09, + "ABT": 0.0027872975569973825, + "ACGL": 7.221347050978485e-09, + "ACN": 8.330925950920634e-09, + "ADBE": 0.00957548949656152, + "ADI": 1.4048980954846035e-08, + "ADM": 7.914059827563784e-09, + "ADP": 1.4874915019839242e-08, + "ADSK": 1.21369881476194e-08, + "AEE": 2.6669622260909846e-09, + "AEP": 2.6576086993574873e-09, + "AES": 1.4891844844084422e-09, + "AFL": 0.002888432413135628, + "AIG": 2.8999704310718837e-09, + "AIZ": 7.893495620077641e-09, + "AJG": 5.385626571052645e-09, + "AKAM": 0.00015663324197043898, + "ALB": 1.066832924935201e-09, + "ALGN": 0.0010045476916892022, + "ALL": 6.033583576782647e-09, + "ALLE": 2.8256594200362494e-09, + "AMAT": 0.0019450288661171193, + "AMCR": 8.444246790839061e-10, + "AMD": 0.024331892040976175, + "AME": 3.0525751273087706e-09, + "AMGN": 0.005447410783541806, + "AMP": 3.310030346335329e-07, + "AMT": 0.0005198519253039657, + "AMZN": 0.031071601087876106, + "ANET": 0.003226413870271777, + "ANSS": 0.0006607703465272268, + "AON": 2.1097986483368454e-08, + "AOS": 2.6295825546463867e-09, + "APA": 1.9274497761217648e-09, + "APD": 6.400265744408412e-09, + "APH": 1.558348901111142e-08, + "APTV": 7.74876018732802e-09, + "ARE": 2.255261599934479e-09, + "ATO": 3.066432639678666e-09, + "AVB": 3.0186857791342937e-09, + "AVGO": 0.01650480492479787, + "AVY": 3.606846556203601e-09, + "AWK": 4.803368744709781e-09, + "AXON": 0.0038101160951751673, + "AXP": 7.374490777872065e-09, + "AZO": 2.3393553744918428e-08, + "BA": 3.496018568220041e-08, + "BAC": 4.6433687045092815e-09, + "BALL": 9.021960728598832e-09, + "BAX": 5.819599864276277e-09, + "BBWI": 3.7033794842253708e-09, + "BBY": 0.00042264500915958154, + "BDX": 9.859103417104532e-09, + "BEN": 0.00015667097429280936, + "BF-B": 7.467883188002258e-09, + "BG": 0.001428557915132538, + "BIIB": 0.002147392251839915, + "BIO": 3.978603997472787e-09, + "BK": 4.6260902997605306e-09, + "BKNG": 0.0020314032202740544, + "BKR": 1.862316365122974e-09, + "BLDR": 0.00028062506127615435, + "BLK": 4.536000600956481e-08, + "BMY": 6.888642138561873e-05, + "BR": 5.223481171963067e-09, + "BRK-B": 6.996085631654749e-09, + "BRO": 2.2450310738814276e-08, + "BSX": 5.13428999047915e-09, + "BWA": 4.902706686092028e-09, + "BX": 0.0011220895113927807, + "BXP": 2.5036131080171374e-09, + "C": 6.050324113393469e-09, + "CAG": 7.0426807480289996e-09, + "CAH": 6.781085581492553e-09, + "CARR": 0.016890859541608096, + "CAT": 2.164398492176215e-09, + "CB": 0.0006162117015046076, + "CBOE": 1.2897412774305256e-08, + "CBRE": 0.0037352273224657787, + "CCI": 0.0002458338387064471, + "CCL": 3.344989162496525e-09, + "CDNS": 2.1513101417759708e-08, + "CDW": 0.0003248127419079966, + "CE": 6.085453862741333e-09, + "CEG": 0.03260588732676596, + "CF": 0.007941831310482214, + "CFG": 3.6848984495724038e-09, + "CHD": 0.0020965642888318616, + "CHRW": 8.128118023971199e-09, + "CHTR": 0.005763869525805296, + "CI": 1.93435131323726e-08, + "CINF": 1.296150944603222e-08, + "CL": 4.889926654117629e-08, + "CLX": 2.6535815693918703e-08, + "CMCSA": 0.005074290491348908, + "CME": 0.0037777269052602144, + "CMG": 0.004897316678630243, + "CMI": 2.8995280594525097e-09, + "CMS": 2.5061047600091717e-09, + "CNC": 0.000728021517982261, + "CNP": 2.5184697101460917e-09, + "COF": 0.007183659373872527, + "COO": 5.878072927803976e-09, + "COP": 5.151424795885341e-09, + "COR": 0.0027633912361285573, + "COST": 5.576895346082537e-09, + "CPAY": 1.3590705627327893e-08, + "CPB": 9.824158466506233e-09, + "CPRT": 0.0006330440615186352, + "CPT": 2.40977598321998e-09, + "CRL": 2.0117393828191875e-09, + "CRM": 0.006334745017186502, + "CRWD": 0.003221072306460661, + "CSCO": 0.0057314861265965805, + "CSGP": 6.259882072713797e-09, + "CSX": 7.624503118013616e-09, + "CTAS": 5.27625158188106e-09, + "CTLT": 4.284454204352557e-09, + "CTRA": 2.074293241233815e-09, + "CTSH": 0.009201566739451654, + "CTVA": 8.811115690148352e-05, + "CVS": 6.421001481306339e-09, + "CVX": 6.272821918822718e-09, + "CZR": 0.007770995031967023, + "D": 3.955237180348465e-09, + "DAL": 0.0005367220803802737, + "DAY": 3.72991874303925e-09, + "DD": 4.645548778783628e-09, + "DE": 6.3242277078705084e-09, + "DECK": 0.0007880157737435567, + "DFS": 0.002828762319568883, + "DG": 3.970539971626804e-09, + "DGX": 8.058088228268237e-09, + "DHI": 8.851272532936492e-09, + "DHR": 0.0020473646426975656, + "DIS": 7.3651777613338796e-09, + "DLR": 4.926928295615391e-09, + "DLTR": 0.0007967804710769098, + "DOC": 1.471976204225052e-09, + "DOV": 3.160782125059844e-09, + "DOW": 4.563713987915332e-09, + "DPZ": 0.0013336401347542309, + "DRI": 1.9248524148828975e-06, + "DTE": 2.9521372942753043e-09, + "DUK": 1.142232933796298e-08, + "DVA": 0.0028972027002919162, + "DVN": 2.3104982452418264e-09, + "DXCM": 0.004061199857945301, + "EA": 0.0033163591834553417, + "EBAY": 3.6456584226184216e-09, + "ECL": 4.496642786769919e-09, + "ED": 3.906177857735663e-09, + "EFX": 3.577480381626617e-09, + "EG": 1.2078311294017665e-08, + "EIX": 4.128434505013623e-09, + "EL": 4.59889524512201e-09, + "ELV": 9.976069995542962e-05, + "EMN": 3.1376115911755243e-09, + "EMR": 2.0560476694998447e-09, + "ENPH": 0.0023326445372882374, + "EOG": 5.108209709079127e-09, + "EPAM": 0.0043870984262918, + "EQIX": 0.0005597437079106434, + "EQR": 3.062311160039133e-09, + "EQT": 1.2260858792970486e-09, + "ES": 2.231808842030635e-09, + "ESS": 3.8610712405532485e-09, + "ETN": 1.70585338894658e-09, + "ETR": 3.8226863574698444e-09, + "ETSY": 1.1207297548916604e-08, + "EVRG": 1.6434711207951856e-09, + "EW": 9.400527158411967e-09, + "EXC": 3.601135755410949e-09, + "EXPD": 9.840655053594085e-09, + "EXPE": 0.003546975783561567, + "EXR": 6.601304591707281e-09, + "F": 2.7590181822276144e-09, + "FANG": 0.011981824942651818, + "FAST": 0.0026445787271163735, + "FCX": 2.400525760233738e-09, + "FDS": 0.0026449515201837173, + "FDX": 0.0067756545992793925, + "FE": 2.871072012871552e-09, + "FFIV": 0.0030128862292911032, + "FI": 1.1099617452849955e-08, + "FICO": 0.001250930237166012, + "FIS": 4.639327224693719e-09, + "FITB": 5.87522011146888e-09, + "FMC": 3.643554560575335e-09, + "FOX": 2.1884816252527603e-09, + "FOXA": 3.0162344926650473e-09, + "FRT": 2.883684338529399e-09, + "FSLR": 9.613236215914417e-10, + "FTNT": 0.005100498322761554, + "FTV": 2.2939985152688443e-09, + "GD": 1.0299720913071785e-08, + "GDDY": 1.8941065447006234e-08, + "GE": 3.6803933864706486e-09, + "GEHC": 0.001423268798306935, + "GEN": 2.318672871765568e-09, + "GEV": 0.023279920372103576, + "GILD": 0.007148478295028156, + "GIS": 0.006197577526587802, + "GL": 7.27832926745192e-09, + "GLW": 3.5288506077694693e-09, + "GM": 3.2542952615970204e-09, + "GNRC": 2.2614785073566407e-09, + "GOOG": 0.020302253875303506, + "GOOGL": 0.0015096173452907738, + "GPC": 6.329399104856452e-09, + "GPN": 1.1157902786513643e-08, + "GRMN": 0.0018066978532465447, + "GS": 6.30393111523329e-09, + "GWW": 2.452496278881475e-09, + "HAL": 2.367460195883379e-09, + "HAS": 2.7106518092255127e-07, + "HBAN": 1.937629456593352e-09, + "HCA": 0.00497812887221863, + "HD": 0.007114564747647026, + "HES": 4.678938711163665e-09, + "HIG": 0.004702395565084911, + "HII": 1.5132667492230953e-08, + "HLT": 8.885166785809033e-09, + "HOLX": 0.0023326102189838538, + "HON": 5.9640260430167855e-09, + "HPE": 2.2423189168695105e-09, + "HPQ": 2.4530864344097374e-09, + "HRL": 6.517546766630467e-09, + "HSIC": 6.179477810478917e-09, + "HST": 2.825430179308526e-09, + "HSY": 0.008675443942031956, + "HUBB": 1.0107602975139614e-09, + "HUM": 0.0009148787662553555, + "HWM": 0.0017759770102787219, + "IBM": 3.0492585310730325e-09, + "ICE": 0.0006080565540444691, + "IDXX": 1.0034219260397035e-08, + "IEX": 3.6563538154802865e-09, + "IFF": 3.682072832788872e-09, + "INCY": 0.0033121886512883477, + "INTC": 0.0001950316106287025, + "INTU": 0.0010360813558928034, + "INVH": 2.1784393560369647e-09, + "IP": 3.256781113830586e-09, + "IPG": 6.0897055501564e-09, + "IQV": 3.41262851872826e-09, + "IR": 1.1983295953238164e-08, + "IRM": 4.81964136730199e-09, + "ISRG": 0.005566864670665138, + "IT": 1.1075219094253896e-08, + "ITW": 5.140128335031117e-09, + "IVZ": 2.81974723134775e-09, + "J": 5.280077022046381e-09, + "JBHT": 8.169321955572642e-09, + "JBL": 0.0021323697194201244, + "JCI": 2.355863842074565e-09, + "JKHY": 0.0006830839812320997, + "JNJ": 0.010728651029999944, + "JNPR": 4.1947402107688125e-09, + "JPM": 0.0020707200979990284, + "K": 0.0003865606151900429, + "KDP": 2.4108626875246553e-09, + "KEY": 1.8735657431165608e-09, + "KEYS": 4.638182576644653e-09, + "KHC": 1.4447771221629524e-09, + "KIM": 2.2161985629410883e-09, + "KKR": 6.5477318550350375e-09, + "KLAC": 1.1035727423858933e-07, + "KMB": 0.0041781201358474405, + "KMI": 1.1070588444202777e-09, + "KMX": 9.20329504793434e-05, + "KO": 0.0001596366210358371, + "KR": 1.0701761531253437e-08, + "KVUE": -5.682849121828656e-10, + "L": 5.084795408413287e-09, + "LDOS": 1.4336605496237936e-08, + "LEN": 1.1005253490104496e-08, + "LH": 2.8067756357762434e-09, + "LHX": 6.389977958062559e-09, + "LIN": 2.4753205547557394e-08, + "LKQ": 0.004003675398326939, + "LLY": 1.4011659581834595e-08, + "LMT": 0.006625852081215118, + "LNT": 2.2183819833482957e-09, + "LOW": 9.036277400069751e-09, + "LRCX": 0.0008260818077572835, + "LULU": 0.0014579202789452598, + "LUV": 2.2623922858330184e-05, + "LVS": 0.0015493657911941113, + "LW": 5.9071562017241316e-08, + "LYB": 0.002965455232077022, + "LYV": 0.00242529853648345, + "MA": 0.025141943503887924, + "MAA": 3.0278522213484363e-09, + "MAR": 1.2709633461728394e-08, + "MAS": 3.993204205804011e-09, + "MCD": 0.009036815399889287, + "MCHP": 0.002007487905756916, + "MCK": 2.4697829314208194e-08, + "MCO": 3.714700931878401e-09, + "MDLZ": 4.191381398242637e-09, + "MDT": 7.448272457483605e-08, + "MET": 5.410285231943133e-09, + "META": 0.018068439749328327, + "MGM": 0.003631871640052927, + "MHK": 3.49266309794468e-09, + "MKC": 4.665927776115368e-09, + "MKTX": 0.0056058836802783405, + "MLM": 2.994862989976782e-09, + "MMC": 4.153921493100157e-09, + "MMM": 3.8383068286758e-09, + "MNST": 0.0043056712303422935, + "MO": 3.8479457777274755e-09, + "MOH": 0.0014372662546295815, + "MOS": 1.7797923790071274e-09, + "MPC": 0.01251338294615687, + "MPWR": 1.5434960690158686e-08, + "MRK": 0.004878635617385049, + "MRNA": 0.006398390106366547, + "MRO": 1.2101190657193192e-09, + "MS": 0.005206671087838097, + "MSCI": 0.005025726366720618, + "MSFT": 0.03157558151753497, + "MSI": 7.28777313652115e-09, + "MTB": 9.330538639884778e-09, + "MTCH": 1.2941723248692922e-08, + "MTD": 6.153422801445667e-09, + "MU": 0.0030759358045583892, + "NCLH": 3.976451250973768e-09, + "NDAQ": 5.064908667030699e-09, + "NDSN": 3.1771891566925943e-09, + "NEE": 1.8454101991344587e-09, + "NEM": 1.6715974763496338e-09, + "NFLX": 0.013763881315443028, + "NI": 1.9021542971057304e-09, + "NKE": 1.6851210229218488e-08, + "NOC": 1.8677953964857548e-08, + "NOW": 0.004257769330858631, + "NRG": 7.356469139598104e-10, + "NSC": 8.7370360266317e-09, + "NTAP": 0.005064390557174687, + "NTRS": 3.999513671837266e-09, + "NUE": 9.408059385260341e-09, + "NVDA": 0.11349503169412398, + "NVR": 0.0008424460686454181, + "NWS": 1.4943087067565713e-09, + "NWSA": 1.453255008528865e-09, + "NXPI": 0.007181259288971652, + "O": 6.305861375297804e-09, + "ODFL": 0.0036011871798916177, + "OKE": 3.758991982345395e-09, + "OMC": 4.239279863308873e-09, + "ON": 9.922809961305048e-09, + "ORCL": 0.006200901837866955, + "ORLY": 1.354521435812634e-08, + "OTIS": 0.0014042194834045943, + "OXY": 2.598982248618203e-09, + "PANW": 0.0038188955028488256, + "PARA": 0.0018204071645926613, + "PAYC": 2.1513713364938723e-08, + "PAYX": 0.00036728637445654003, + "PCAR": 7.01001965346557e-09, + "PCG": 1.856882028220422e-09, + "PEG": 3.1649644068943485e-09, + "PEP": 0.009699520114596532, + "PFE": 5.1017945912923415e-09, + "PFG": 0.00014052425308433807, + "PG": 9.254576802901826e-09, + "PGR": 0.0065797123921742355, + "PH": 2.4796250119496973e-09, + "PHM": 7.892353996105729e-09, + "PKG": 8.77363782034212e-09, + "PLD": 4.24080391603784e-09, + "PM": 6.80079686905974e-09, + "PNC": 7.823463220899293e-09, + "PNR": 1.979997848053756e-09, + "PNW": 2.5420431309836457e-09, + "PODD": 1.4199580982163045e-08, + "POOL": 0.0010347575925552012, + "PPG": 7.762782942954973e-09, + "PPL": 2.9301758931524817e-09, + "PRU": 0.0009085798838380458, + "PSA": 3.487453149409989e-09, + "PSX": 0.0025870443669280666, + "PTC": 8.744359614794131e-09, + "PWR": 4.693897187460593e-09, + "PYPL": 2.62884494217573e-09, + "QCOM": 0.003977024330891234, + "QRVO": 1.4601969681410238e-09, + "RCL": 0.002414157187288879, + "REG": 3.519944628999563e-09, + "REGN": 0.0009492096934300258, + "RF": 3.0513649189972736e-09, + "RJF": 7.703597394942163e-09, + "RL": 4.018388643287614e-09, + "RMD": 1.920183686210172e-08, + "ROK": 6.8990394858370256e-09, + "ROL": 2.822831440287907e-09, + "ROP": 0.004519762344963545, + "ROST": 0.0009981224836016485, + "RSG": 5.777861239940148e-09, + "RTX": 9.000606943292785e-09, + "RVTY": 2.5087534127816485e-09, + "SBAC": 0.005186989886708804, + "SBUX": 0.006998760821138043, + "SCHW": 0.0001252149335177353, + "SHW": 3.108227337072808e-08, + "SJM": 3.833750148601861e-08, + "SLB": 2.2980748651139633e-09, + "SMCI": 0.007137128722685055, + "SNA": 4.019789705120222e-09, + "SNPS": 3.337494279565266e-09, + "SO": 1.822427684549692e-08, + "SOLV": -1.4991689379757279e-09, + "SPG": 3.338232026471211e-09, + "SPGI": 7.036229307754302e-09, + "SRE": 3.969188936919132e-09, + "STE": 2.004863669453048e-07, + "STLD": 1.332882834475912e-08, + "STT": 0.00025658612617164166, + "STX": 3.628872127755281e-05, + "STZ": 0.00019610422703423213, + "SWK": 3.2385992664512875e-09, + "SWKS": 2.2699771346200774e-09, + "SYF": 6.753590772553667e-09, + "SYK": 1.5031251239156187e-08, + "SYY": 6.826143734094951e-09, + "T": 4.6969826157779566e-09, + "TAP": 3.883332890456373e-09, + "TDG": 0.003953502041516266, + "TDY": 0.00019147110897773544, + "TECH": 1.0617150216361675e-08, + "TEL": 5.611216862939987e-09, + "TER": 3.688001054747645e-09, + "TFC": 2.9640141609810936e-09, + "TFX": 8.110016893587568e-09, + "TGT": 7.47980706043508e-09, + "TJX": 0.0003782066980400063, + "TMO": 9.857081998132863e-09, + "TMUS": 0.007091887313965084, + "TPR": 0.002455844539487406, + "TRGP": 0.0003406469215355853, + "TRMB": 8.862355854020489e-09, + "TROW": 6.7111595691442045e-09, + "TRV": 5.989881273707151e-09, + "TSCO": 9.473935777778951e-09, + "TSLA": 0.08705634724255014, + "TSN": 0.003976473611847603, + "TT": 2.4267904663006546e-09, + "TTWO": 0.0006223452461211179, + "TXN": 4.912736992387669e-09, + "TXT": 2.8771295925289596e-09, + "TYL": 2.221479886537954e-08, + "UAL": 0.003248831317461105, + "UBER": 1.0528143726997396e-08, + "UDR": 2.019401849246041e-09, + "UHS": 6.34864863408968e-09, + "ULTA": 0.003496533809748351, + "UNH": 0.01646691005014134, + "UNP": 8.233675635367353e-09, + "UPS": 2.9439497347901134e-09, + "URI": 5.227032227992115e-09, + "USB": 3.1398004580913546e-09, + "USDOLLAR": 1.9961613058794465e-07, + "V": 0.0018117923450805791, + "VICI": 2.7498921337349737e-09, + "VLO": 2.319507829936372e-08, + "VLTO": 0.007175406490230742, + "VMC": 1.8316598908869967e-09, + "VRSK": 7.686201087363403e-09, + "VRSN": 0.002623340249563505, + "VRTX": 0.0024018311125776123, + "VST": 8.673920265459023e-10, + "VTR": 4.743250273141981e-09, + "VTRS": 2.2303698943362737e-09, + "VZ": 6.003028374932069e-09, + "WAB": 2.2446943738031476e-09, + "WAT": 7.210383929709021e-09, + "WBA": 1.4091906575449069e-09, + "WBD": 5.632613764047691e-10, + "WDC": 3.80063379008601e-09, + "WEC": 4.976884125628209e-09, + "WELL": 3.979025050048503e-09, + "WFC": 8.781884977116472e-09, + "WM": 1.5479393209456424e-08, + "WMB": 1.2451249434093073e-08, + "WMT": 0.010001488888642164, + "WRB": 6.560032651100483e-09, + "WST": 4.769220006869664e-09, + "WTW": 4.687379826383529e-09, + "WY": 1.8028257621114042e-09, + "WYNN": 0.0026935188982531175, + "XEL": 2.902133810993351e-09, + "XOM": 5.979365312803847e-09, + "XYL": 4.13820066273446e-09, + "YUM": 1.1322343302895766e-08, + "ZBH": 3.13481956283034e-09, + "ZBRA": 2.018760114812576e-09, + "ZTS": 9.11123049508848e-09 } } \ No newline at end of file From 418eab1905ebcd92ff270ece98c30401249752b2 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 15:54:52 +0400 Subject: [PATCH 019/125] should have finished fixing files header comments for #166 --- AUTHORS | 5 ++-- README.rst | 6 ++--- bumpversion.py | 23 +++++++++++-------- cvxportfolio/__init__.py | 22 ++++++++++-------- cvxportfolio/cache.py | 23 +++++++++++-------- cvxportfolio/costs.py | 22 ++++++++++-------- cvxportfolio/errors.py | 23 +++++++++++-------- cvxportfolio/estimator.py | 23 +++++++++++-------- cvxportfolio/forecast.py | 23 +++++++++++-------- cvxportfolio/hyperparameters.py | 23 +++++++++++-------- cvxportfolio/policies.py | 22 ++++++++++-------- cvxportfolio/result.py | 22 ++++++++++-------- cvxportfolio/returns.py | 22 ++++++++++-------- cvxportfolio/risks.py | 22 ++++++++++-------- cvxportfolio/simulator.py | 22 ++++++++++-------- cvxportfolio/utils.py | 23 +++++++++++-------- docs/conf.py | 2 +- examples/__init__.py | 23 +++++++++++-------- examples/case_shiller.py | 23 +++++++++++-------- examples/data_cleaning.py | 23 +++++++++++-------- examples/dow30.py | 23 +++++++++++-------- examples/etfs.py | 23 +++++++++++-------- examples/hello_world.py | 23 +++++++++++-------- examples/market_neutral.py | 23 +++++++++++-------- examples/market_neutral_nocosts.py | 21 +++++++++-------- examples/multiperiod_tcost.py | 23 +++++++++++-------- examples/paper_examples/__init__.py | 22 ++++++++++-------- examples/paper_examples/common.py | 22 ++++++++++-------- examples/paper_examples/data_risk_model.py | 22 ++++++++++-------- examples/paper_examples/hello_world.py | 22 ++++++++++-------- examples/paper_examples/multi_period_opt.py | 22 ++++++++++-------- .../paper_examples/portfolio_simulation.py | 22 ++++++++++-------- examples/paper_examples/rank_and_spo.py | 22 ++++++++++-------- .../paper_examples/real_time_optimization.py | 22 ++++++++++-------- examples/paper_examples/single_period_opt.py | 22 ++++++++++-------- .../single_period_opt_lin_tcost.py | 22 ++++++++++-------- examples/paper_examples/solution_time.py | 22 ++++++++++-------- examples/regression_covariance.py | 23 +++++++++++-------- examples/risk_models.py | 23 +++++++++++-------- examples/sp500_ndx100.py | 23 +++++++++++-------- examples/strategies/__init__.py | 23 +++++++++++-------- examples/strategies/dow30_daily.py | 23 +++++++++++-------- examples/strategies/ftse100_daily.py | 23 +++++++++++-------- examples/strategies/ndx100_daily.py | 23 +++++++++++-------- examples/strategies/sp500_daily.py | 23 +++++++++++-------- examples/strategies/sp500_targetvol_daily.py | 23 +++++++++++-------- examples/strategies/strategy_executor.py | 23 +++++++++++-------- examples/timing.py | 23 +++++++++++-------- examples/universes.py | 23 +++++++++++-------- ...rage_margin_portfolio_bid_ask_modelling.py | 21 +++++++++-------- examples/user_provided_forecasters.py | 23 +++++++++++-------- 51 files changed, 629 insertions(+), 466 deletions(-) diff --git a/AUTHORS b/AUTHORS index 46ccd5059..807cb1cb5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -4,5 +4,6 @@ AUTHORS Boyd directed the project. BlackRock Inc. provided support via technical, financial, and (additional) human resources. -2017-2024, Enzo Busseti has been maintaining and further developing the -software library. +2017-today, Enzo Busseti has been maintaining and further developing the +software library, with the help of many independent contributors and of the +other original authors. diff --git a/README.rst b/README.rst index fe1f3523c..a57389777 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ ============================================== |CVXportfolio on PyPI| |linting: pylint| |Coverage Status| -|Documentation Status| |Apache 2.0 License| |Anaconda-Server Badge| +|Documentation Status| |GPLv3| |Anaconda-Server Badge| Cvxportfolio is an object-oriented library for portfolio optimization @@ -322,7 +322,7 @@ free software license. :target: https://coveralls.io/github/cvxgrp/cvxportfolio?branch=master .. |Documentation Status| image:: https://readthedocs.org/projects/cvxportfolio/badge/?version=stable :target: https://cvxportfolio.readthedocs.io/en/stable/?badge=stable -.. |Apache 2.0 License| image:: https://img.shields.io/badge/License-Apache%202.0-green.svg - :target: https://github.com/cvxgrp/cvxportfolio/blob/master/LICENSE +.. |GPLv3| image:: https://img.shields.io/badge/License-GPLv3-blue.svg + :target: https://www.gnu.org/licenses/gpl-3.0 .. |Anaconda-Server Badge| image:: https://anaconda.org/conda-forge/cvxportfolio/badges/version.svg :target: https://anaconda.org/conda-forge/cvxportfolio diff --git a/bumpversion.py b/bumpversion.py index 56317ff4f..3fa45b585 100644 --- a/bumpversion.py +++ b/bumpversion.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Find __version__ in __init__.py in file tree (BFS) and upgrade. Additionally, look for version string in any setup.py, pyproject.toml, diff --git a/cvxportfolio/__init__.py b/cvxportfolio/__init__.py index b4e6db34b..3879ee313 100644 --- a/cvxportfolio/__init__.py +++ b/cvxportfolio/__init__.py @@ -1,16 +1,20 @@ +# Copyright 2017-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Cvxportfolio __init__ module. This module only republishes the api of a selection of cvxportfolio diff --git a/cvxportfolio/cache.py b/cvxportfolio/cache.py index 61cdc3d8b..bac1d2fd9 100644 --- a/cvxportfolio/cache.py +++ b/cvxportfolio/cache.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Caching functions used by :class:`MarketSimulator`.""" import logging diff --git a/cvxportfolio/costs.py b/cvxportfolio/costs.py index 9ec1fe397..40fa1863c 100644 --- a/cvxportfolio/costs.py +++ b/cvxportfolio/costs.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines cost models for both simulation and optimization. We implement two types of costs, as discussed in the paper: diff --git a/cvxportfolio/errors.py b/cvxportfolio/errors.py index 4eeb52d89..3d447e87b 100644 --- a/cvxportfolio/errors.py +++ b/cvxportfolio/errors.py @@ -1,16 +1,19 @@ -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines some Exceptions thrown by Cvxportfolio objects.""" __all__ = ['DataError', 'UserDataError', 'MissingTimesError', diff --git a/cvxportfolio/estimator.py b/cvxportfolio/estimator.py index 0c02c73eb..cb325aa0a 100644 --- a/cvxportfolio/estimator.py +++ b/cvxportfolio/estimator.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module implements Estimator base classes. Policies, costs, and constraints inherit from this. diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 978cdc9c1..6a061ac2a 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . r"""This module implements the simple forecasting models used by Cvxportfolio. These are standard ones like historical mean, variance, and covariance. In diff --git a/cvxportfolio/hyperparameters.py b/cvxportfolio/hyperparameters.py index bcc9fa5e3..3c9dc3e17 100644 --- a/cvxportfolio/hyperparameters.py +++ b/cvxportfolio/hyperparameters.py @@ -1,16 +1,19 @@ -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines hyperparameter objects. These are used currently as symbolic multipliers of cost terms in Single diff --git a/cvxportfolio/policies.py b/cvxportfolio/policies.py index c6bc942b3..244a0e2a4 100644 --- a/cvxportfolio/policies.py +++ b/cvxportfolio/policies.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module contains trading policies that can be back-tested.""" import copy diff --git a/cvxportfolio/result.py b/cvxportfolio/result.py index d6639ba22..46c5ea5ea 100644 --- a/cvxportfolio/result.py +++ b/cvxportfolio/result.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines :class:`BacktestResult`. This is the object that is returned by the diff --git a/cvxportfolio/returns.py b/cvxportfolio/returns.py index 9b362d445..dedd494f1 100644 --- a/cvxportfolio/returns.py +++ b/cvxportfolio/returns.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module contains classes that define return models for portfolio optimization policies and related objects.""" diff --git a/cvxportfolio/risks.py b/cvxportfolio/risks.py index 52f9c1f95..5151b1897 100644 --- a/cvxportfolio/risks.py +++ b/cvxportfolio/risks.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module implements risk models, which are objective terms that are used to penalize allocations which might incur in losses.""" diff --git a/cvxportfolio/simulator.py b/cvxportfolio/simulator.py index bec9fded1..ac53efd37 100644 --- a/cvxportfolio/simulator.py +++ b/cvxportfolio/simulator.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module implements :class:`cvxportfolio.MarketSimulator` and derived classes. diff --git a/cvxportfolio/utils.py b/cvxportfolio/utils.py index c2eab76d4..74802f721 100644 --- a/cvxportfolio/utils.py +++ b/cvxportfolio/utils.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module contains miscellaneous functions.""" import hashlib diff --git a/docs/conf.py b/docs/conf.py index 64dce680c..33e2bc575 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -122,7 +122,7 @@ "github_url": "https://github.com", "github_user": "cvxgrp", "github_repo": "cvxportfolio", - "github_version": "master", # don't know if can point to tag of the page? + "github_version": "main", # don't know if can point to tag of the page? "doc_path": "docs", } diff --git a/examples/__init__.py b/examples/__init__.py index 127402b87..30dd34e10 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -1,14 +1,17 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This package contains examples of typical usage of Cvxportfolio.""" diff --git a/examples/case_shiller.py b/examples/case_shiller.py index 71f7c3e50..9fac843f2 100644 --- a/examples/case_shiller.py +++ b/examples/case_shiller.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """We test the Multi-Period Optimization model on a real estate portfolio. This is an example that shows that Cvxportfolio can work as well with diff --git a/examples/data_cleaning.py b/examples/data_cleaning.py index 90a2ff97c..eec73501c 100644 --- a/examples/data_cleaning.py +++ b/examples/data_cleaning.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This script is used to show the data cleaning applied to Yahoo Finance data. The procedure has many steps, with a lot of heuristics. You can see it diff --git a/examples/dow30.py b/examples/dow30.py index 1f5953dd7..c2a358503 100644 --- a/examples/dow30.py +++ b/examples/dow30.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Example of long-only portfolio among DOW-30 components. Monthly rebalance, backtest spans from the start of data of the diff --git a/examples/etfs.py b/examples/etfs.py index 22f0f1972..9a3dc3e13 100644 --- a/examples/etfs.py +++ b/examples/etfs.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """ETFs example covering the main asset classes. This uses an explicit loop to create Multi Period Optimization diff --git a/examples/hello_world.py b/examples/hello_world.py index 4e15872d7..74e271548 100644 --- a/examples/hello_world.py +++ b/examples/hello_world.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example of Cvxportfolio's capabilities. A multi-period optimization policy, with default forecasts and simple diff --git a/examples/market_neutral.py b/examples/market_neutral.py index 461962c96..ef912c357 100644 --- a/examples/market_neutral.py +++ b/examples/market_neutral.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Market (and dollar) neutral strategy on the NDX100 universe. We use standard historical means and factor covariances to build a simple diff --git a/examples/market_neutral_nocosts.py b/examples/market_neutral_nocosts.py index c88e2d6e1..61fcb2089 100644 --- a/examples/market_neutral_nocosts.py +++ b/examples/market_neutral_nocosts.py @@ -1,16 +1,19 @@ # Copyright 2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example of a market (and dollar) neutral strategy. We use a target volatility risk penalty, which is an alternative to the diff --git a/examples/multiperiod_tcost.py b/examples/multiperiod_tcost.py index bbb6c14df..9b5634ad0 100644 --- a/examples/multiperiod_tcost.py +++ b/examples/multiperiod_tcost.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . import pandas as pd diff --git a/examples/paper_examples/__init__.py b/examples/paper_examples/__init__.py index 6d864d0ae..395abdb97 100644 --- a/examples/paper_examples/__init__.py +++ b/examples/paper_examples/__init__.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This package contains the restored versions of the original code examples developed for the 2017 paper. You can find the originals at: diff --git a/examples/paper_examples/common.py b/examples/paper_examples/common.py index 0e41f5b50..52c5bdf86 100644 --- a/examples/paper_examples/common.py +++ b/examples/paper_examples/common.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module defines some common operations used by the examples.""" from pathlib import Path diff --git a/examples/paper_examples/data_risk_model.py b/examples/paper_examples/data_risk_model.py index cea25ad7f..286e1b2bc 100644 --- a/examples/paper_examples/data_risk_model.py +++ b/examples/paper_examples/data_risk_model.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is the restored version of the IPython notebook used to download data for the original 2016 examples: diff --git a/examples/paper_examples/hello_world.py b/examples/paper_examples/hello_world.py index 3e5cd8964..515d27de0 100644 --- a/examples/paper_examples/hello_world.py +++ b/examples/paper_examples/hello_world.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example of back-tests with Cvxportfolio. This is a close translation of what was done in `this notebook diff --git a/examples/paper_examples/multi_period_opt.py b/examples/paper_examples/multi_period_opt.py index 55cbc966f..1b263fe5b 100644 --- a/examples/paper_examples/multi_period_opt.py +++ b/examples/paper_examples/multi_period_opt.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/paper_examples/portfolio_simulation.py b/examples/paper_examples/portfolio_simulation.py index 1419a35a7..763a601ed 100644 --- a/examples/paper_examples/portfolio_simulation.py +++ b/examples/paper_examples/portfolio_simulation.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Simulate periodic rebalancing policy, analyze transaction cost. This is a close translation of what was done in `this notebook diff --git a/examples/paper_examples/rank_and_spo.py b/examples/paper_examples/rank_and_spo.py index 6bfd57513..391f08783 100644 --- a/examples/paper_examples/rank_and_spo.py +++ b/examples/paper_examples/rank_and_spo.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Ranking vs. SPO example. *Work in progress.* diff --git a/examples/paper_examples/real_time_optimization.py b/examples/paper_examples/real_time_optimization.py index 55cbc966f..1b263fe5b 100644 --- a/examples/paper_examples/real_time_optimization.py +++ b/examples/paper_examples/real_time_optimization.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/paper_examples/single_period_opt.py b/examples/paper_examples/single_period_opt.py index 11b87576e..32500050e 100644 --- a/examples/paper_examples/single_period_opt.py +++ b/examples/paper_examples/single_period_opt.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """*Work in progress.*""" import matplotlib.pyplot as plt diff --git a/examples/paper_examples/single_period_opt_lin_tcost.py b/examples/paper_examples/single_period_opt_lin_tcost.py index 55cbc966f..1b263fe5b 100644 --- a/examples/paper_examples/single_period_opt_lin_tcost.py +++ b/examples/paper_examples/single_period_opt_lin_tcost.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/paper_examples/solution_time.py b/examples/paper_examples/solution_time.py index 55cbc966f..1b263fe5b 100644 --- a/examples/paper_examples/solution_time.py +++ b/examples/paper_examples/solution_time.py @@ -1,16 +1,20 @@ +# Copyright 2023-2024 Enzo Busseti # Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/regression_covariance.py b/examples/regression_covariance.py index dc5328123..e353bc614 100644 --- a/examples/regression_covariance.py +++ b/examples/regression_covariance.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Build covariance matrix by regression. This is a prototype for a planned extension of the forecast module in the main diff --git a/examples/risk_models.py b/examples/risk_models.py index 12e920f7b..4c45fb2ae 100644 --- a/examples/risk_models.py +++ b/examples/risk_models.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Test different choices of risk models, which has best performance? .. note:: diff --git a/examples/sp500_ndx100.py b/examples/sp500_ndx100.py index 1ad08e7e7..804d0f119 100644 --- a/examples/sp500_ndx100.py +++ b/examples/sp500_ndx100.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is an example of a very large backtest. It has about ~600 names and ~6000 days, and uses multi period optimization. diff --git a/examples/strategies/__init__.py b/examples/strategies/__init__.py index 992c2c9bc..7ff80668b 100644 --- a/examples/strategies/__init__.py +++ b/examples/strategies/__init__.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module contains examples of simple strategies built with Cvxportfolio. These are executed every day (or less often, depending on the strategy) at diff --git a/examples/strategies/dow30_daily.py b/examples/strategies/dow30_daily.py index 23f680847..33f6dc0fa 100644 --- a/examples/strategies/dow30_daily.py +++ b/examples/strategies/dow30_daily.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example strategy which we run every day. It is a long-only, unit leverage, allocation on the Dow Jones universe. We diff --git a/examples/strategies/ftse100_daily.py b/examples/strategies/ftse100_daily.py index 5c0a6bc7b..6c2d508d7 100644 --- a/examples/strategies/ftse100_daily.py +++ b/examples/strategies/ftse100_daily.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example strategy which we run every day. It is a long-only, unit leverage, allocation on the FTSE 100 universe. diff --git a/examples/strategies/ndx100_daily.py b/examples/strategies/ndx100_daily.py index 9cc384a90..ce082a92f 100644 --- a/examples/strategies/ndx100_daily.py +++ b/examples/strategies/ndx100_daily.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example strategy which we run every day. It is a variant of the ``dow30_daily`` strategy with the Nasdaq 100 universe. diff --git a/examples/strategies/sp500_daily.py b/examples/strategies/sp500_daily.py index fede4ecf0..b895313e9 100644 --- a/examples/strategies/sp500_daily.py +++ b/examples/strategies/sp500_daily.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example strategy which we run every day. It is a long-only, unit leverage, allocation on the Standard and Poor's 500 diff --git a/examples/strategies/sp500_targetvol_daily.py b/examples/strategies/sp500_targetvol_daily.py index 71f4b6a8b..9609ff7f9 100644 --- a/examples/strategies/sp500_targetvol_daily.py +++ b/examples/strategies/sp500_targetvol_daily.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a simple example strategy which we run every day.""" import cvxportfolio as cvx diff --git a/examples/strategies/strategy_executor.py b/examples/strategies/strategy_executor.py index 9cb1654c0..f975478b2 100644 --- a/examples/strategies/strategy_executor.py +++ b/examples/strategies/strategy_executor.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module contains code used to run each individual strategy. Each strategy defines only one function, which defines its chosen trading diff --git a/examples/timing.py b/examples/timing.py index 07ac1f57e..d2f60229c 100644 --- a/examples/timing.py +++ b/examples/timing.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """We show the runtime of a typical single-period optimization back-test. This is similar to what was show in :paper:`figure 7.8 of the paper diff --git a/examples/universes.py b/examples/universes.py index 00af7b83a..9e1fce5cb 100644 --- a/examples/universes.py +++ b/examples/universes.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This module contains up-to-date universes of stock tickers. If you run it attempts to download updated lists from the relevant diff --git a/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py b/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py index f31d9f72b..08b5b7177 100644 --- a/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py +++ b/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py @@ -1,16 +1,19 @@ # Copyright 2024 The Cvxportfolio Contributors # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This is a user-contributed example, and it's not finished. *Work in progress.* diff --git a/examples/user_provided_forecasters.py b/examples/user_provided_forecasters.py index 153bb5fd7..49c68d6e8 100644 --- a/examples/user_provided_forecasters.py +++ b/examples/user_provided_forecasters.py @@ -1,16 +1,19 @@ -# Copyright 2023 Enzo Busseti +# Copyright 2023-2024 Enzo Busseti # -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at +# This file is part of Cvxportfolio. # -# http://www.apache.org/licenses/LICENSE-2.0 +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. # -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """Simple example for providing user-defined forecasters to Cvxportfolio. This example shows how the user can provide custom-made predictors for expected From bea4e86f89b6e7db05fca008f2556465295e052e Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 16:30:57 +0400 Subject: [PATCH 020/125] some docs cleaning; clarified that legacy examples are provided for historical reasons only; they can cause confusion, see #165 --- README.rst | 16 +++++----------- docs/examples/paper_examples.rst | 19 ++++++++++--------- .../paper_examples/data_risk_model.rst | 2 +- docs/examples/paper_examples/hello_world.rst | 6 +++--- .../paper_examples/multi_period_opt.rst | 2 +- .../paper_examples/portfolio_simulation.rst | 2 +- docs/examples/paper_examples/rank_and_spo.rst | 2 +- .../paper_examples/real_time_optimization.rst | 2 +- .../paper_examples/single_period_opt.rst | 2 +- .../single_period_opt_lin_tcost.rst | 2 +- .../examples/paper_examples/solution_time.rst | 2 +- docs/examples/risk_models.rst | 2 +- 12 files changed, 27 insertions(+), 32 deletions(-) diff --git a/README.rst b/README.rst index a57389777..0bb458118 100644 --- a/README.rst +++ b/README.rst @@ -113,13 +113,6 @@ their output and comments. `_ are available in the code repository. -`The original examples from the paper -`_ -are visible in a dedicated branch, -and are being translated to run with the stable versions (``1.0.0`` and above) of the -library. The translations are visible at `this documentation page -`_. - We show in the example on `user-provided forecasters `_ how the user can define custom classes to forecast the expected returns @@ -308,11 +301,12 @@ The latter is also the first chapter of this PhD thesis: } -Licensing ---------- +Legal +----- -Cvxportfolio is licensed under the `General Public License version 3 `_ -free software license. +Cvxportfolio is `free software `_. +It is released under the terms of the `General Public License, version 3 +`_. .. |CVXportfolio on PyPI| image:: https://img.shields.io/pypi/v/cvxportfolio.svg :target: https://pypi.org/project/cvxportfolio/ diff --git a/docs/examples/paper_examples.rst b/docs/examples/paper_examples.rst index 32769f8c1..9d4d20f75 100644 --- a/docs/examples/paper_examples.rst +++ b/docs/examples/paper_examples.rst @@ -1,21 +1,22 @@ -Original examples from the paper -================================ +Legacy examples from the paper +============================== *Work in progress.* -These are the original examples, which were also used to generate plots -and results in :paper:`chapter 7 of the paper `. They were -originally written as IPython notebook, and have been translated into Python -code using the stable API of Cvxportfolio (*i.e.*, version ``1.0.0`` and -above). +These are the examples that were originally developed for the paper. They were +used to generate plots and results in :paper:`chapter 7 `. They were +developed as IPython notebook, and are being translated into Python code using +the stable API. They are shown for historical reason, but are only partially, +or un-, supported. The original notebooks are `available on this branch of the repository `_. .. note:: - Currently some of them are *work in progress*, refer to the linked notebook - if in doubt. + For most of them, the translation into Python code and stable API is *work + in progress*. It might never be done. They have various issues, and for + some of those perhaps there is no fix. .. toctree:: :maxdepth: 2 diff --git a/docs/examples/paper_examples/data_risk_model.rst b/docs/examples/paper_examples/data_risk_model.rst index 08b727d5b..7a639dea4 100644 --- a/docs/examples/paper_examples/data_risk_model.rst +++ b/docs/examples/paper_examples/data_risk_model.rst @@ -12,4 +12,4 @@ which doesn't run any more for reasons explained below. .. literalinclude:: ../../../examples/paper_examples/data_risk_model.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/hello_world.rst b/docs/examples/paper_examples/hello_world.rst index 53cb143b6..624ff1a3e 100644 --- a/docs/examples/paper_examples/hello_world.rst +++ b/docs/examples/paper_examples/hello_world.rst @@ -1,5 +1,5 @@ -Hello World (original) -====================== +Hello World (legacy) +==================== This example script is `available in the repository @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/hello_world.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/multi_period_opt.rst b/docs/examples/paper_examples/multi_period_opt.rst index 2553250f5..fbbad0ad0 100644 --- a/docs/examples/paper_examples/multi_period_opt.rst +++ b/docs/examples/paper_examples/multi_period_opt.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/multi_period_opt.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/portfolio_simulation.rst b/docs/examples/paper_examples/portfolio_simulation.rst index 90d09a0d6..6fd57662d 100644 --- a/docs/examples/paper_examples/portfolio_simulation.rst +++ b/docs/examples/paper_examples/portfolio_simulation.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/portfolio_simulation.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/rank_and_spo.rst b/docs/examples/paper_examples/rank_and_spo.rst index 35f3c31ea..32b3c9b73 100644 --- a/docs/examples/paper_examples/rank_and_spo.rst +++ b/docs/examples/paper_examples/rank_and_spo.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/rank_and_spo.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/real_time_optimization.rst b/docs/examples/paper_examples/real_time_optimization.rst index 3949579c6..235d0d61b 100644 --- a/docs/examples/paper_examples/real_time_optimization.rst +++ b/docs/examples/paper_examples/real_time_optimization.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/real_time_optimization.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/single_period_opt.rst b/docs/examples/paper_examples/single_period_opt.rst index 8e73051f6..e1f2ab131 100644 --- a/docs/examples/paper_examples/single_period_opt.rst +++ b/docs/examples/paper_examples/single_period_opt.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/single_period_opt.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/single_period_opt_lin_tcost.rst b/docs/examples/paper_examples/single_period_opt_lin_tcost.rst index a4eb4cfe1..cf6784066 100644 --- a/docs/examples/paper_examples/single_period_opt_lin_tcost.rst +++ b/docs/examples/paper_examples/single_period_opt_lin_tcost.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/single_period_opt_lin_tcost.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/paper_examples/solution_time.rst b/docs/examples/paper_examples/solution_time.rst index bda9f2b76..d5adb7877 100644 --- a/docs/examples/paper_examples/solution_time.rst +++ b/docs/examples/paper_examples/solution_time.rst @@ -12,4 +12,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/solution_time.py :language: python - :lines: 14- \ No newline at end of file + :lines: 15- \ No newline at end of file diff --git a/docs/examples/risk_models.rst b/docs/examples/risk_models.rst index f19d43eac..59527afef 100644 --- a/docs/examples/risk_models.rst +++ b/docs/examples/risk_models.rst @@ -7,4 +7,4 @@ This example script is .. literalinclude:: ../../examples/risk_models.py :language: python - :lines: 14- + :lines: 15- From 76311e35ac621c6162f3cfcb11247a05ad2f7fb7 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 18:20:49 +0400 Subject: [PATCH 021/125] Finishing redesign; moving docstrings, need minor fixes in tests, linear regression logic is still embryonic only --- cvxportfolio/forecast.py | 378 +++++++++++---------------------- cvxportfolio/tests/__init__.py | 1 - 2 files changed, 121 insertions(+), 258 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 2e473d0a9..745a3a5ba 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -130,8 +130,7 @@ def values_in_time_recursive( # pylint: disable=arguments-differ :type kwargs: dict """ - # # better to make sure in callers cache is never None - # if cache is not None: + # TODO: implement workspace logic # # initialize workspace # if 'workspace' not in cache: @@ -163,43 +162,6 @@ def values_in_time_recursive( # pylint: disable=arguments-differ return super().values_in_time_recursive(t=t, cache=cache, **kwargs) - # if not self._CACHED: - # return super().values_in_time_recursive(t=t, cache=cache, **kwargs) - # else: - # # this part is copied from Estimator - # # TODO: could refactor upstream to avoid copy-pasting these clauses - # for _, subestimator in self.__dict__.items(): - # if hasattr(subestimator, "values_in_time_recursive"): - # subestimator.values_in_time_recursive( - # t=t, cache=cache, **kwargs) - # for subestimator in self.__subestimators__: - # subestimator.values_in_time_recursive( - # t=t, cache=cache, **kwargs) - - # # here goes caching - # if hasattr(self, "values_in_time"): - - # if cache is None: # e.g., in execute() cache is disabled - # cache = {} - - # if str(self) not in cache: - # cache[str(self)] = {} - - # if t in cache[str(self)]: - # logger.info( - # '%s.values_in_time at time %s is retrieved from cache.', - # self, t) - # self._current_value = cache[str(self)][t] - # else: - # self._current_value = self.values_in_time( - # t=t, cache=cache, **kwargs) - # logger.info('%s.values_in_time at time %s is stored in cache.', - # self, t) - # cache[str(self)][t] = self._current_value - # return self.current_value - - # return None # pragma: no cover - def estimate(self, market_data, t=None): """Estimate the forecaster at given time on given market data. @@ -229,6 +191,7 @@ def estimate(self, market_data, t=None): (for safety checking). :rtype: (np.array, pd.Timestamp) """ + # TODO: make sure Pandas objects are returned trading_calendar = market_data.trading_calendar() @@ -256,6 +219,7 @@ def estimate(self, market_data, t=None): def _is_timedelta_or_inf(value): + """Check that a value is pd.Timedelta, or np.inf; else raise exception.""" if isinstance(value, pd.Timedelta): if value <= pd.Timedelta('0d'): raise ValueError( @@ -272,26 +236,41 @@ class UpdatingForecaster(BaseForecast): _last_time = None + # Gets populated with current universe; should probably be done upstream + _universe = None + def initialize_estimator( # pylint: disable=arguments-differ - self, **kwargs): + self, universe, **kwargs): """Initialize internal variables. - :param kwargs: Unused arguments to :meth:`initialize_estimator`. + :param universe: Current trading universe, including cash. + :type universe: pd.Index + :param kwargs: Other unused arguments to :meth:`initialize_estimator`. :type kwargs: dict """ self._last_time = None + self._universe = universe - def finalize_estimator( # pylint: disable=arguments-differ - self, **kwargs): + def finalize_estimator(self, **kwargs): """Dereference internal variables. - :param kwargs: Unused arguments to :meth:`initialize_estimator`. + :param kwargs: Unused arguments to :meth:`finalize_estimator`. :type kwargs: dict """ self._last_time = None + self._universe = None - def values_in_time(self, t, past_returns, **kwargs): # TODO rename this to values_in_time - """Choose whether to make forecast from scratch or update last one.""" + def values_in_time( # pylint: disable=arguments-differ + self, t, past_returns, **kwargs): + """Choose whether to make forecast from scratch or update last one. + + :param t: Current trading time. + :type t: pd.Timestamp + :param past_returns: Past market returns. + :type past_returns: pd.DataFrame + :param kwargs: Other unused arguments to :meth:`values_in_time`. + :type kwargs: dict + """ if (self._last_time is None) or ( self._last_time != past_returns.index[-1]): logger.debug( @@ -299,12 +278,11 @@ def values_in_time(self, t, past_returns, **kwargs): # TODO rename this to value self, t) return self._initial_compute( t=t, past_returns=past_returns, **kwargs) - else: - logger.debug( - '%s.values_in_time at time %s is updated from previous value.', - self, t) - return self._online_update( - t=t, past_returns=past_returns, **kwargs) + logger.debug( + '%s.values_in_time at time %s is updated from previous value.', + self, t) + return self._online_update( + t=t, past_returns=past_returns, **kwargs) def _initial_compute(self, **kwargs): """Make forecast from scratch.""" @@ -314,24 +292,53 @@ def _online_update(self, **kwargs): """Update forecast from period before.""" raise NotImplementedError # pragma: no cover -class AssociativeForecaster(UpdatingForecaster): - """Base forecaster that only operates on one DataFrame.""" +class SumForecaster(UpdatingForecaster): + """Base forecaster that implements a sum operation. + + We use this to implement the logic for rolling sum and exponential + smoothing. Actual forecasters typically are the composition of two of + these: they are means, so both their numerator and denominator are + subclasses of this. + + :param half_life: Length of the exponential smoothing half-life. + :type half_life: pd.Timedelta or np.inf + :param rolling: Length of the rolling window. + :type rolling: pd.Timedelta or np.inf + """ def __init__(self, half_life=np.inf, rolling=np.inf): self.half_life = half_life self.rolling = rolling - self._last_time = None - - def _emw_weights(self, index, t): - """Get weights to apply to the past obs for EMW.""" - index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) - return np.exp(index_in_halflifes * np.log(2)) def _batch_compute(self, df, emw_weights): - raise NotImplementedError + """Compute the value for a batch of observations (vectorization).""" + raise NotImplementedError # pragma: no cover def _single_compute(self, last_row): - raise NotImplementedError + """Compute the value for a single observation.""" + raise NotImplementedError # pragma: no cover + + def _dataframe_selector(self, **kwargs): + """Return dataframe we work with. + + This method receives the **kwargs passed to :meth:`values_in_time`. + """ + raise NotImplementedError # pragma: no cover + + def _get_last_row(self, **kwargs): + """Return last row of the dataframe we work with. + + This method receives the **kwargs passed to :meth:`values_in_time`. + + You may redefine it if obtaining the full dataframe is expensive, + during online update (in most cases) only this method is required. + """ + return self._dataframe_selector(**kwargs).iloc[-1] + + def _emw_weights(self, index, t): + """Get weights to apply to the past observations for EMW.""" + index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) + return np.exp(index_in_halflifes * np.log(2)) def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ """Make forecast from scratch. @@ -351,16 +358,11 @@ def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ emw_weights = None result = self._batch_compute(df, emw_weights) - self._last_time = t - return result - # self._denominator = self._compute_denominator(df, emw_weights) - # self._check_denominator_valid(t) - # self._numerator = self._compute_numerator(df, emw_weights) - # self._last_time = t + # update internal timestamp + self._last_time = t - # # used by covariance forecaster - # return df, emw_weights + return result def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ """Update forecast from period before. @@ -374,9 +376,6 @@ def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ time_passed_in_halflifes = ( self._last_time - t)/_resolve_hyperpar(self.half_life) discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) - # self._current_value *= discount_factor - # self._denominator *= discount_factor - # self._numerator *= discount_factor else: discount_factor = 1. @@ -386,26 +385,18 @@ def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ # emw discounting result *= discount_factor - # self._numerator += self._update_numerator(last_row) * discount_factor - # Moving average window logic: subtract elements that have gone out if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): df = self._dataframe_selector(t=t, **kwargs) - #observations_to_subtract, emw_weights_of_subtract = \ result = self._remove_part_gone_out_of_ma(result, df, t) - # else: - # observations_to_subtract, emw_weights_of_subtract = None, None + # update internal timestamp self._last_time = t return result - # used by covariance forecaster - # return ( - # discount_factor, observations_to_subtract, emw_weights_of_subtract) - def _remove_part_gone_out_of_ma(self, result, df, t): - """Subtract from numerator and denominator too old observations.""" + """Subtract value from observations that are too old, if rolling.""" observations_to_subtract = df.loc[ (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) @@ -419,71 +410,59 @@ def _remove_part_gone_out_of_ma(self, result, df, t): result -= self._batch_compute( observations_to_subtract, emw_weights) - # self._check_denominator_valid(t) - # self._numerator -= self._compute_numerator( - # observations_to_subtract, emw_weights).fillna(0.) - - # used by covariance forecaster - # return observations_to_subtract, emw_weights return result - def _dataframe_selector(self, **kwargs): - """Return dataframe we work with. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - raise NotImplementedError # pragma: no cover - - def _get_last_row(self, **kwargs): - """Return last row of the dataframe we work with. +class OnPastReturns(SumForecaster): # pylint: disable=abstract-method + """Intermediate class, operate on past returns.""" - This method receives the **kwargs passed to :meth:`values_in_time`. + def _dataframe_selector( # pylint: disable=arguments-differ + self, past_returns, **kwargs): + """Past returns, skipping cash. - You may redefine it if obtaining the full dataframe is expensive, - during online update (in most cases) only this method is required. + This method receives the full arguments to :meth:`values_in_time`. """ - return self._dataframe_selector(**kwargs).iloc[-1] - - # def values_in_time(self, **kwargs): - # """Temporary.""" - # return self._agnostic_update(**kwargs) - -class OnPastReturns(AssociativeForecaster): - """Intermediate class, operate on past returns.""" - - def _dataframe_selector(self, past_returns, **kwargs): - """Returns, skipping cash.""" if past_returns is None: raise DataError( f"{self.__class__.__name__} can only be used if MarketData is" + " not None.") return past_returns.iloc[:, :-1] -class OnPastReturnsSquared(OnPastReturns): - """Intermediate class, operate on past returns squared, override update.""" +class OnPastReturnsSquared(OnPastReturns): # pylint: disable=abstract-method + """Intermediate class, operate on past returns squared.""" - def _dataframe_selector(self, **kwargs): - """Past returns squared, skipping cash.""" + def _dataframe_selector( # pylint: disable=arguments-differ + self, **kwargs): + """Past returns squared, skipping cash. + + This method receives the full arguments to :meth:`values_in_time`. + """ return super()._dataframe_selector(**kwargs)**2 def _get_last_row(self, **kwargs): - """Most recent past returns.""" + """Most recent past returns. + + This method receives the full arguments to :meth:`values_in_time`. + """ return super()._dataframe_selector(**kwargs).iloc[-1]**2 -class OnPastVolumes(AssociativeForecaster): +class OnPastVolumes(SumForecaster): # pylint: disable=abstract-method """Intermediate class, operate on past volumes.""" - def _dataframe_selector(self, past_volumes, **kwargs): - """Past volumes.""" + def _dataframe_selector( # pylint: disable=arguments-differ + self, past_volumes, **kwargs): + """Past volumes. + + This method receives the full arguments to :meth:`values_in_time`. + """ if past_volumes is None: raise DataError( f"{self.__class__.__name__} can only be used if MarketData" + " provides market volumes.") return past_volumes -class VectorCount(AssociativeForecaster): - """Count of non-NaN values of vectors.""" +class VectorCount(SumForecaster): # pylint: disable=abstract-method + """Intermediate class, count of non-NaN values of vectors.""" def _batch_compute(self, df, emw_weights): """Compute from scratch.""" @@ -496,8 +475,21 @@ def _single_compute(self, last_row): """Update with last observation.""" return ~(last_row.isnull()) - def values_in_time(self, t, **kwargs): - """Override to check that we have enough observations.""" + def values_in_time( # pylint: disable=arguments-differ + self, t, **kwargs): + """Check that we have enough observations, call super() method. + + :param t: Current trading time. + :type t: pd.Timestamp + :param kwargs: Other arguments to :meth:`values_in_time`. + :type kwargs: dict + + :raises ForecastError: If there are not enough observations to compute + derived quantities. + + :returns: Current count of non-NaN values. + :rtype: pd.Series or np.array + """ result = super().values_in_time(t=t, **kwargs) mindenom = np.min(result) @@ -514,145 +506,17 @@ def values_in_time(self, t, **kwargs): return result - -# class WithEmwMw(SingleDataFrameForecaster): -# """Intermediate class, add EMW+MW logic. - -# Blueprint: -# - put this stuff in the single dataframe f'c - -# EMW: -# - add logic to the _initial_compute of all other guys to get the weights -# - add a super() call in the online updates, which does EMW discounting - -# MW: -# - add logic in all DF selectors to call method defined here that slices -# by rolling -# - create instance in __init__ from self, override its dataframe selector -# helper method using -# https://stackoverflow.com/questions/48210900/is-it-possible-to-do-dynamic-method-overriding-from-a-method-of-another-class-i -# simply, the dynamically overridden method is defined by a lambda; -# that is the "scraps" forecaster, and override values_in_time here -# to subtract from my current_value the current_value of the scraps -# """ - -# # TODO: Think about edge cases, what happens if the MA window is shorter -# # than t - (t-1) ? - -# def __init__(self, half_life=np.inf, rolling=np.inf): -# self.half_life = half_life -# self.rolling = rolling -# self._last_time = None - -# def initialize_estimator(self, **kwargs): -# self._last_time = None - -# def finalize_estimator(self, **kwargs): -# self._last_time = None - -# def _compute_weights(self, index, t, **kwargs): -# """Get weights to apply to the past obs for EMW.""" -# index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) -# return np.exp(index_in_halflifes * np.log(2)) - -# # TODO: method above make it based in SingleDataFrameForecaster with -# # return None, each guy below implements logic to deal with it if it returns -# # something else than None - -# def _dataframe_selector(self, t, **kwargs): -# """Select only part that is in the MW.""" -# all_past = super()._dataframe_selector(t=t, **kwargs) -# if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): # TODO: rename that function -# return all_past.loc[ -# all_past.index >= (t - _resolve_hyperpar(self.rolling))] -# return all_past - -# def _online_update(self, **kwargs): -# """Apply EMW and MW logic.""" - -# def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ -# """Update forecast from period before. - -# This method receives the **kwargs passed to :meth:`values_in_time`. -# """ -# last_row = self._get_last_row(t=t, **kwargs) - -# # TODO: this breaks if loaded from cache last value but computing this one -# assert self._last_time is not None, "online update called ..." - -# super()._online_update(self, t=t, **kwargs) - -# # if emw discount past -# if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): -# time_passed_in_halflifes = ( -# self._last_time - t)/_resolve_hyperpar(self.half_life) -# discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) -# self._current_value *= discount_factor - -# self._current_value -= self._values_out_of_mw.current_value - -# # Moving average window logic: subtract elements that have gone out -# if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): -# df = self._dataframe_selector(t=t, **kwargs) -# # observations_to_subtract, emw_weights_of_subtract = \ -# self._remove_part_gone_out_of_ma(df, t) -# #else: -# # observations_to_subtract, emw_weights_of_subtract = None, None - -# self._last_time = t - -# # used by covariance forecaster -# # return ( -# # discount_factor, observations_to_subtract, emw_weights_of_subtract) - -# def _remove_part_gone_out_of_ma(self, df, t): -# """Subtract too old observations.""" - -# observations_to_subtract = df.loc[ -# (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) -# & (df.index < (t - _resolve_hyperpar(self.rolling)))] - -# # If EMW, compute weights here -# if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): -# emw_weights = self._emw_weights(observations_to_subtract.index, t) -# else: -# emw_weights = None - -# self._emw_mw_value -= self._compute( -# observations_to_subtract, emw_weights) -# # self._check_denominator_valid(t) -# # self._numerator -= self._compute_numerator( -# # observations_to_subtract, emw_weights).fillna(0.) - -# # used by covariance forecaster -# # return observations_to_subtract, emw_weights - - -# # def _compute(self, df, emw_weights): -# # """Exponential moving window (optional) denominator.""" -# # if emw_weights is None: -# # return df.count() -# # ones = (~df.isnull()) * 1. -# # return ones.multiply(emw_weights, axis=0).sum() - -# # def _add_update(self, last_row): -# # """Update with last observation. - -# # Emw (if any) is applied upstream. -# # """ -# # return ~(last_row.isnull()) - class CountPastReturns(VectorCount, OnPastReturns): """Count non-nan past returns, excluding cash.""" class CountPastVolumes(VectorCount, OnPastVolumes): """Count non-nan past volumes.""" -class VectorSum(AssociativeForecaster): - """Sum of non-NaN values of vectors.""" +class VectorSum(SumForecaster): # pylint: disable=abstract-method + """Intermediate class, sum of non-NaN values of vectors.""" def _batch_compute(self, df, emw_weights): - """Exponential moving window (optional) numerator.""" + """Compute from scratch.""" if emw_weights is None: return df.sum() return df.multiply(emw_weights, axis=0).sum() @@ -792,7 +656,7 @@ def _single_compute(self, last_row): class CovarianceDenominator(MatrixCount, OnPastReturns): """Compute denominator of (Kelly) covariance of past returns.""" -class MatrixSum(AssociativeForecaster): +class MatrixSum(SumForecaster): """Joint sum, e.g., for the numerator of covariances.""" def _batch_compute(self, df, emw_weights): @@ -814,7 +678,7 @@ def _single_compute(self, last_row): class CovarianceNumerator(MatrixSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" -class JointMean(AssociativeForecaster): +class JointMean(SumForecaster): """Corrector that we need for non-Kelly covariance.""" def _batch_compute(self, df, emw_weights): diff --git a/cvxportfolio/tests/__init__.py b/cvxportfolio/tests/__init__.py index c4b3cba27..878f507ef 100644 --- a/cvxportfolio/tests/__init__.py +++ b/cvxportfolio/tests/__init__.py @@ -15,7 +15,6 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . - """We make the tests a sub-package so we can ship them.""" import logging From fd47db550f0375af6a515bd85feb247cdf862026 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 18:56:11 +0400 Subject: [PATCH 022/125] Readme, added instructions to install development version --- .github/workflows/test.yml | 2 ++ README.rst | 40 +++++++++++++++++++++++++++++++++++--- strategies_runner.sh | 22 ++++++++++++++++++++- 3 files changed, 60 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c1563a999..b942a11c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,10 +5,12 @@ on: push: branches: - main + - master pull_request: branches: - main + - master jobs: diff --git a/README.rst b/README.rst index 0bb458118..4bf5fb13f 100644 --- a/README.rst +++ b/README.rst @@ -1,3 +1,20 @@ +.. Copyright 2023-2024 Enzo Busseti +.. Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . `Cvxportfolio `_ ============================================== @@ -18,9 +35,12 @@ The documentation of the library is at Since end of 2023 we're running daily `example strategies `_ - using the development version (master branch); each day we commit target - weights and initial holdings to the repository. All the code that runs them, - including the cron script, is in the repository. + using the `development (main) branch + `_.; each day we commit + target weights and initial holdings to the repository. All the code that + runs them, including the `cron script + `_, + is in the repository. Installation ------------ @@ -42,6 +62,20 @@ interfacing with numerical solvers and `Pandas `_ for interfacing with databases. We don't require any specific version of our dependencies and test against all recent ones (up to a few years ago). +Advanced: install development version +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +You can also install the development version. It is tested daily by the +example strategies. We host it in the `main branch +`_. It is named after +the current stable version; each time we make a release we update to the new +version and merge to the master branch, which is shown on the homepage of +the repository. If this sounds complicated, avoid installing the development +version. + +.. code:: bash + + pip install --upgrade --force-reinstall git+https://github.com/cvxgrp/cvxportfolio@main .. Test diff --git a/strategies_runner.sh b/strategies_runner.sh index ea89d7fff..23fcb3f29 100755 --- a/strategies_runner.sh +++ b/strategies_runner.sh @@ -1,6 +1,26 @@ #! /usr/bin/env bash +# +# Copyright 2023-2024 Enzo Busseti +# +# This file is part of Cvxportfolio. +# +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . +# +# # -# We run this in a cron job, from the root of repo in the development environment: +# We run this in a cron job, from the root of repository in the development +# environment (main branch): # - at 8:30 London time with arguments ftse100_daily # - at 10:00 New York time with arguments dow30_daily ndx100_daily sp500_daily # From 1401093f9bffc6ebf275fbec1e74132edf57475b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 19:19:17 +0400 Subject: [PATCH 023/125] minor readme, links --- README.rst | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 4bf5fb13f..e06f572ac 100644 --- a/README.rst +++ b/README.rst @@ -22,9 +22,10 @@ |Documentation Status| |GPLv3| |Anaconda-Server Badge| -Cvxportfolio is an object-oriented library for portfolio optimization -and back-testing. It implements models described in the `accompanying paper -`_. +`Cvxportfolio `_ is an object-oriented +library for portfolio optimization and back-testing. It implements models +described in the `accompanying paper +`_. The documentation of the library is at `www.cvxportfolio.com `_. @@ -45,15 +46,16 @@ The documentation of the library is at Installation ------------ -Cvxportolio is written in Python and can be easily installed in any Python -environment by simple: +Cvxportolio is written in `Python `_ and can be +installed in any `Python environment +`_ by simple: .. code:: bash pip install -U cvxportfolio You can see how this works on our `Installation and Hello -World `_ youtube video. +World `_ Youtube video. Anaconda installs `are also supported `_. From afa7d4f3713c919ff814a7625272cea0cf1ceafa Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 19:25:26 +0400 Subject: [PATCH 024/125] should be last admin commit for #166; Copyright -> Copyright (C), as per GPL instructions --- README.rst | 4 ++-- bumpversion.py | 2 +- cvxportfolio/__init__.py | 4 ++-- cvxportfolio/cache.py | 2 +- cvxportfolio/constraints/__init__.py | 4 ++-- cvxportfolio/constraints/base_constraints.py | 2 +- cvxportfolio/constraints/constraints.py | 4 ++-- cvxportfolio/costs.py | 4 ++-- cvxportfolio/data/__init__.py | 2 +- cvxportfolio/data/market_data.py | 2 +- cvxportfolio/data/symbol_data.py | 2 +- cvxportfolio/errors.py | 2 +- cvxportfolio/estimator.py | 2 +- cvxportfolio/forecast.py | 2 +- cvxportfolio/hyperparameters.py | 2 +- cvxportfolio/policies.py | 4 ++-- cvxportfolio/result.py | 4 ++-- cvxportfolio/returns.py | 4 ++-- cvxportfolio/risks.py | 4 ++-- cvxportfolio/simulator.py | 4 ++-- cvxportfolio/tests/__init__.py | 4 ++-- cvxportfolio/tests/__main__.py | 4 ++-- cvxportfolio/tests/test_constraints.py | 4 ++-- cvxportfolio/tests/test_costs.py | 4 ++-- cvxportfolio/tests/test_data.py | 2 +- cvxportfolio/tests/test_estimator.py | 2 +- cvxportfolio/tests/test_forecast.py | 2 +- cvxportfolio/tests/test_hyperparameters.py | 2 +- cvxportfolio/tests/test_policies.py | 4 ++-- cvxportfolio/tests/test_result.py | 4 ++-- cvxportfolio/tests/test_returns.py | 4 ++-- cvxportfolio/tests/test_risks.py | 4 ++-- cvxportfolio/tests/test_simulator.py | 4 ++-- cvxportfolio/tests/test_utils.py | 4 ++-- cvxportfolio/utils.py | 2 +- examples/__init__.py | 2 +- examples/case_shiller.py | 2 +- examples/data_cleaning.py | 2 +- examples/dow30.py | 2 +- examples/etfs.py | 2 +- examples/hello_world.py | 2 +- examples/market_neutral.py | 2 +- examples/market_neutral_nocosts.py | 2 +- examples/multiperiod_tcost.py | 2 +- examples/paper_examples/__init__.py | 4 ++-- examples/paper_examples/common.py | 4 ++-- examples/paper_examples/data_risk_model.py | 4 ++-- examples/paper_examples/hello_world.py | 4 ++-- examples/paper_examples/multi_period_opt.py | 4 ++-- examples/paper_examples/portfolio_simulation.py | 4 ++-- examples/paper_examples/rank_and_spo.py | 4 ++-- examples/paper_examples/real_time_optimization.py | 4 ++-- examples/paper_examples/single_period_opt.py | 4 ++-- examples/paper_examples/single_period_opt_lin_tcost.py | 4 ++-- examples/paper_examples/solution_time.py | 4 ++-- examples/regression_covariance.py | 2 +- examples/risk_models.py | 2 +- examples/sp500_ndx100.py | 2 +- examples/strategies/__init__.py | 2 +- examples/strategies/dow30_daily.py | 2 +- examples/strategies/ftse100_daily.py | 2 +- examples/strategies/ndx100_daily.py | 2 +- examples/strategies/sp500_daily.py | 2 +- examples/strategies/sp500_targetvol_daily.py | 2 +- examples/strategies/strategy_executor.py | 2 +- examples/timing.py | 2 +- examples/universes.py | 2 +- .../leverage_margin_portfolio_bid_ask_modelling.py | 2 +- examples/user_provided_forecasters.py | 2 +- strategies_runner.sh | 2 +- 70 files changed, 101 insertions(+), 101 deletions(-) diff --git a/README.rst b/README.rst index e06f572ac..8e0013226 100644 --- a/README.rst +++ b/README.rst @@ -1,5 +1,5 @@ -.. Copyright 2023-2024 Enzo Busseti -.. Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. .. This file is part of Cvxportfolio. diff --git a/bumpversion.py b/bumpversion.py index 3fa45b585..92146bdba 100644 --- a/bumpversion.py +++ b/bumpversion.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/__init__.py b/cvxportfolio/__init__.py index 3879ee313..46e8302f4 100644 --- a/cvxportfolio/__init__.py +++ b/cvxportfolio/__init__.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/cache.py b/cvxportfolio/cache.py index bac1d2fd9..b6d0438fd 100644 --- a/cvxportfolio/cache.py +++ b/cvxportfolio/cache.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/constraints/__init__.py b/cvxportfolio/constraints/__init__.py index 7b3c8f2bd..ce5d79111 100644 --- a/cvxportfolio/constraints/__init__.py +++ b/cvxportfolio/constraints/__init__.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/constraints/base_constraints.py b/cvxportfolio/constraints/base_constraints.py index 54b80261d..f0c4a765e 100644 --- a/cvxportfolio/constraints/base_constraints.py +++ b/cvxportfolio/constraints/base_constraints.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/constraints/constraints.py b/cvxportfolio/constraints/constraints.py index 843225171..a6addf7d4 100644 --- a/cvxportfolio/constraints/constraints.py +++ b/cvxportfolio/constraints/constraints.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/costs.py b/cvxportfolio/costs.py index 40fa1863c..b0925cfc4 100644 --- a/cvxportfolio/costs.py +++ b/cvxportfolio/costs.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/data/__init__.py b/cvxportfolio/data/__init__.py index fd932be82..17427d2e0 100644 --- a/cvxportfolio/data/__init__.py +++ b/cvxportfolio/data/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/data/market_data.py b/cvxportfolio/data/market_data.py index 48899dc3f..ca67f3ac8 100644 --- a/cvxportfolio/data/market_data.py +++ b/cvxportfolio/data/market_data.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/data/symbol_data.py b/cvxportfolio/data/symbol_data.py index aa1b32dc2..1112899e9 100644 --- a/cvxportfolio/data/symbol_data.py +++ b/cvxportfolio/data/symbol_data.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/errors.py b/cvxportfolio/errors.py index 3d447e87b..46e3af405 100644 --- a/cvxportfolio/errors.py +++ b/cvxportfolio/errors.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/estimator.py b/cvxportfolio/estimator.py index cb325aa0a..f3550b22d 100644 --- a/cvxportfolio/estimator.py +++ b/cvxportfolio/estimator.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 6a061ac2a..93b7834e3 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/hyperparameters.py b/cvxportfolio/hyperparameters.py index 3c9dc3e17..34acab66a 100644 --- a/cvxportfolio/hyperparameters.py +++ b/cvxportfolio/hyperparameters.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/policies.py b/cvxportfolio/policies.py index 244a0e2a4..bae1b26a9 100644 --- a/cvxportfolio/policies.py +++ b/cvxportfolio/policies.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/result.py b/cvxportfolio/result.py index 46c5ea5ea..cf01d60e7 100644 --- a/cvxportfolio/result.py +++ b/cvxportfolio/result.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/returns.py b/cvxportfolio/returns.py index dedd494f1..293bcbf59 100644 --- a/cvxportfolio/returns.py +++ b/cvxportfolio/returns.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/risks.py b/cvxportfolio/risks.py index 5151b1897..8d72643b1 100644 --- a/cvxportfolio/risks.py +++ b/cvxportfolio/risks.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/simulator.py b/cvxportfolio/simulator.py index ac53efd37..dbcdc032f 100644 --- a/cvxportfolio/simulator.py +++ b/cvxportfolio/simulator.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/__init__.py b/cvxportfolio/tests/__init__.py index c4b3cba27..bc834e9b0 100644 --- a/cvxportfolio/tests/__init__.py +++ b/cvxportfolio/tests/__init__.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/__main__.py b/cvxportfolio/tests/__main__.py index 866a252ee..a117810e2 100644 --- a/cvxportfolio/tests/__main__.py +++ b/cvxportfolio/tests/__main__.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_constraints.py b/cvxportfolio/tests/test_constraints.py index 7b7646341..38402941c 100644 --- a/cvxportfolio/tests/test_constraints.py +++ b/cvxportfolio/tests/test_constraints.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_costs.py b/cvxportfolio/tests/test_costs.py index a787971bb..00baa4c31 100644 --- a/cvxportfolio/tests/test_costs.py +++ b/cvxportfolio/tests/test_costs.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_data.py b/cvxportfolio/tests/test_data.py index 9e2ad101a..d4972b5df 100644 --- a/cvxportfolio/tests/test_data.py +++ b/cvxportfolio/tests/test_data.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_estimator.py b/cvxportfolio/tests/test_estimator.py index 7d80882a7..738ea7093 100644 --- a/cvxportfolio/tests/test_estimator.py +++ b/cvxportfolio/tests/test_estimator.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index 45d33665a..9f9ca3634 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_hyperparameters.py b/cvxportfolio/tests/test_hyperparameters.py index 6b39fc271..e62a7fd8f 100644 --- a/cvxportfolio/tests/test_hyperparameters.py +++ b/cvxportfolio/tests/test_hyperparameters.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_policies.py b/cvxportfolio/tests/test_policies.py index 3a08705d5..753bfd0dd 100644 --- a/cvxportfolio/tests/test_policies.py +++ b/cvxportfolio/tests/test_policies.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_result.py b/cvxportfolio/tests/test_result.py index c3b0ea3a7..ba73d31da 100644 --- a/cvxportfolio/tests/test_result.py +++ b/cvxportfolio/tests/test_result.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_returns.py b/cvxportfolio/tests/test_returns.py index d2a86f262..7b51bcd43 100644 --- a/cvxportfolio/tests/test_returns.py +++ b/cvxportfolio/tests/test_returns.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_risks.py b/cvxportfolio/tests/test_risks.py index 48fa5e7b8..eab629422 100644 --- a/cvxportfolio/tests/test_risks.py +++ b/cvxportfolio/tests/test_risks.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_simulator.py b/cvxportfolio/tests/test_simulator.py index 9a7b4c0e7..42fca2a25 100644 --- a/cvxportfolio/tests/test_simulator.py +++ b/cvxportfolio/tests/test_simulator.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/tests/test_utils.py b/cvxportfolio/tests/test_utils.py index 67334c726..6a1ea02e2 100644 --- a/cvxportfolio/tests/test_utils.py +++ b/cvxportfolio/tests/test_utils.py @@ -1,5 +1,5 @@ -# Copyright 2017-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2017-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/cvxportfolio/utils.py b/cvxportfolio/utils.py index 74802f721..ac9eaf505 100644 --- a/cvxportfolio/utils.py +++ b/cvxportfolio/utils.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/__init__.py b/examples/__init__.py index 30dd34e10..b2dc954dd 100644 --- a/examples/__init__.py +++ b/examples/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/case_shiller.py b/examples/case_shiller.py index 9fac843f2..3dee4f688 100644 --- a/examples/case_shiller.py +++ b/examples/case_shiller.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/data_cleaning.py b/examples/data_cleaning.py index eec73501c..4f123a3a8 100644 --- a/examples/data_cleaning.py +++ b/examples/data_cleaning.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/dow30.py b/examples/dow30.py index c2a358503..39d42c618 100644 --- a/examples/dow30.py +++ b/examples/dow30.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/etfs.py b/examples/etfs.py index 9a3dc3e13..46f254c2f 100644 --- a/examples/etfs.py +++ b/examples/etfs.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/hello_world.py b/examples/hello_world.py index 74e271548..113833601 100644 --- a/examples/hello_world.py +++ b/examples/hello_world.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/market_neutral.py b/examples/market_neutral.py index ef912c357..4a8189735 100644 --- a/examples/market_neutral.py +++ b/examples/market_neutral.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/market_neutral_nocosts.py b/examples/market_neutral_nocosts.py index 61fcb2089..f30c38a5a 100644 --- a/examples/market_neutral_nocosts.py +++ b/examples/market_neutral_nocosts.py @@ -1,4 +1,4 @@ -# Copyright 2024 Enzo Busseti +# Copyright (C) 2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/multiperiod_tcost.py b/examples/multiperiod_tcost.py index 9b5634ad0..6614d00d0 100644 --- a/examples/multiperiod_tcost.py +++ b/examples/multiperiod_tcost.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/__init__.py b/examples/paper_examples/__init__.py index 395abdb97..e2a941ac1 100644 --- a/examples/paper_examples/__init__.py +++ b/examples/paper_examples/__init__.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/common.py b/examples/paper_examples/common.py index 52c5bdf86..a4e02a031 100644 --- a/examples/paper_examples/common.py +++ b/examples/paper_examples/common.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/data_risk_model.py b/examples/paper_examples/data_risk_model.py index 286e1b2bc..2fadfc3a5 100644 --- a/examples/paper_examples/data_risk_model.py +++ b/examples/paper_examples/data_risk_model.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/hello_world.py b/examples/paper_examples/hello_world.py index 515d27de0..863e1f8b7 100644 --- a/examples/paper_examples/hello_world.py +++ b/examples/paper_examples/hello_world.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/multi_period_opt.py b/examples/paper_examples/multi_period_opt.py index 1b263fe5b..05fabd487 100644 --- a/examples/paper_examples/multi_period_opt.py +++ b/examples/paper_examples/multi_period_opt.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/portfolio_simulation.py b/examples/paper_examples/portfolio_simulation.py index 763a601ed..d7324d1e9 100644 --- a/examples/paper_examples/portfolio_simulation.py +++ b/examples/paper_examples/portfolio_simulation.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/rank_and_spo.py b/examples/paper_examples/rank_and_spo.py index 391f08783..fb6afa0dd 100644 --- a/examples/paper_examples/rank_and_spo.py +++ b/examples/paper_examples/rank_and_spo.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/real_time_optimization.py b/examples/paper_examples/real_time_optimization.py index 1b263fe5b..05fabd487 100644 --- a/examples/paper_examples/real_time_optimization.py +++ b/examples/paper_examples/real_time_optimization.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/single_period_opt.py b/examples/paper_examples/single_period_opt.py index 32500050e..3fa5d2194 100644 --- a/examples/paper_examples/single_period_opt.py +++ b/examples/paper_examples/single_period_opt.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/single_period_opt_lin_tcost.py b/examples/paper_examples/single_period_opt_lin_tcost.py index 1b263fe5b..05fabd487 100644 --- a/examples/paper_examples/single_period_opt_lin_tcost.py +++ b/examples/paper_examples/single_period_opt_lin_tcost.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/paper_examples/solution_time.py b/examples/paper_examples/solution_time.py index 1b263fe5b..05fabd487 100644 --- a/examples/paper_examples/solution_time.py +++ b/examples/paper_examples/solution_time.py @@ -1,5 +1,5 @@ -# Copyright 2023-2024 Enzo Busseti -# Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +# Copyright (C) 2023-2024 Enzo Busseti +# Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. # # This file is part of Cvxportfolio. # diff --git a/examples/regression_covariance.py b/examples/regression_covariance.py index e353bc614..828ace063 100644 --- a/examples/regression_covariance.py +++ b/examples/regression_covariance.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/risk_models.py b/examples/risk_models.py index 4c45fb2ae..3e5cad11c 100644 --- a/examples/risk_models.py +++ b/examples/risk_models.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/sp500_ndx100.py b/examples/sp500_ndx100.py index 804d0f119..3b6511cf1 100644 --- a/examples/sp500_ndx100.py +++ b/examples/sp500_ndx100.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/__init__.py b/examples/strategies/__init__.py index 7ff80668b..9956ba9e2 100644 --- a/examples/strategies/__init__.py +++ b/examples/strategies/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/dow30_daily.py b/examples/strategies/dow30_daily.py index 33f6dc0fa..544e4ecf1 100644 --- a/examples/strategies/dow30_daily.py +++ b/examples/strategies/dow30_daily.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/ftse100_daily.py b/examples/strategies/ftse100_daily.py index 6c2d508d7..c425e3aa9 100644 --- a/examples/strategies/ftse100_daily.py +++ b/examples/strategies/ftse100_daily.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/ndx100_daily.py b/examples/strategies/ndx100_daily.py index ce082a92f..903029123 100644 --- a/examples/strategies/ndx100_daily.py +++ b/examples/strategies/ndx100_daily.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/sp500_daily.py b/examples/strategies/sp500_daily.py index b895313e9..23ea2afdf 100644 --- a/examples/strategies/sp500_daily.py +++ b/examples/strategies/sp500_daily.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/sp500_targetvol_daily.py b/examples/strategies/sp500_targetvol_daily.py index 9609ff7f9..17487f6a5 100644 --- a/examples/strategies/sp500_targetvol_daily.py +++ b/examples/strategies/sp500_targetvol_daily.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/strategies/strategy_executor.py b/examples/strategies/strategy_executor.py index f975478b2..a70a7cb4e 100644 --- a/examples/strategies/strategy_executor.py +++ b/examples/strategies/strategy_executor.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/timing.py b/examples/timing.py index d2f60229c..c33dbbae2 100644 --- a/examples/timing.py +++ b/examples/timing.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/universes.py b/examples/universes.py index 9e1fce5cb..413bb85f5 100644 --- a/examples/universes.py +++ b/examples/universes.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py b/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py index 08b5b7177..d7e7a5088 100644 --- a/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py +++ b/examples/user_contributed/leverage_margin_portfolio_bid_ask_modelling.py @@ -1,4 +1,4 @@ -# Copyright 2024 The Cvxportfolio Contributors +# Copyright (C) 2024 The Cvxportfolio Contributors # # This file is part of Cvxportfolio. # diff --git a/examples/user_provided_forecasters.py b/examples/user_provided_forecasters.py index 49c68d6e8..855238e2f 100644 --- a/examples/user_provided_forecasters.py +++ b/examples/user_provided_forecasters.py @@ -1,4 +1,4 @@ -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # diff --git a/strategies_runner.sh b/strategies_runner.sh index 23fcb3f29..f8551f799 100755 --- a/strategies_runner.sh +++ b/strategies_runner.sh @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# Copyright 2023-2024 Enzo Busseti +# Copyright (C) 2023-2024 Enzo Busseti # # This file is part of Cvxportfolio. # From 471f4dcc93c969220e40aa193eaaee4bf6160641 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 21:43:36 +0400 Subject: [PATCH 025/125] rst; added comments to all; minor edits; hopefully last commit related to #166 --- README.rst | 5 ++ docs/api.rst | 17 +++++ docs/conf.py | 2 +- docs/constraints.rst | 18 +++++ docs/contributing.rst | 24 +++++-- docs/costs.rst | 18 +++++ docs/data.rst | 17 +++++ docs/estimators.rst | 17 +++++ docs/examples.rst | 21 +++++- docs/examples/case_shiller.rst | 17 +++++ docs/examples/data_cleaning.rst | 19 +++++- docs/examples/dow30.rst | 17 +++++ docs/examples/etfs.rst | 17 +++++ docs/examples/market_neutral.rst | 17 +++++ docs/examples/market_neutral_nocosts.rst | 17 +++++ docs/examples/paper_examples.rst | 18 +++++ .../paper_examples/data_risk_model.rst | 20 +++++- docs/examples/paper_examples/hello_world.rst | 20 +++++- .../paper_examples/multi_period_opt.rst | 20 +++++- .../paper_examples/portfolio_simulation.rst | 20 +++++- docs/examples/paper_examples/rank_and_spo.rst | 22 ++++++- .../paper_examples/real_time_optimization.rst | 20 +++++- .../paper_examples/single_period_opt.rst | 20 +++++- .../single_period_opt_lin_tcost.rst | 20 +++++- .../examples/paper_examples/solution_time.rst | 20 +++++- docs/examples/risk_models.rst | 19 +++++- docs/examples/timing.rst | 17 +++++ docs/examples/universes.rst | 20 +++++- docs/examples/user_provided_forecasters.rst | 17 +++++ docs/forecasts.rst | 17 +++++ docs/hello_world.rst | 17 +++++ docs/index.rst | 65 +++++++++++++------ docs/internals.rst | 17 +++++ docs/manual.rst | 17 +++++ docs/objective_terms.rst | 17 +++++ docs/optimization_policies.rst | 17 +++++ docs/policies.rst | 17 +++++ docs/result.rst | 18 +++++ docs/returns.rst | 18 +++++ docs/risks.rst | 18 +++++ docs/simple_policies.rst | 18 +++++ docs/simulator.rst | 18 +++++ 42 files changed, 750 insertions(+), 40 deletions(-) diff --git a/README.rst b/README.rst index 8e0013226..822f90538 100644 --- a/README.rst +++ b/README.rst @@ -215,6 +215,11 @@ and then clone your fork) git clone https://github.com/cvxgrp/cvxportfolio.git cd cvxportfolio +We develop in the ``main`` branch. So you should `check out +`_ that one. The default branch shown on +the homepage of the repository is the ``master`` branch. It hosts the last +release. + Then, you should have a look at our `Makefile `_ and possibly change the ``PYTHON`` variable to match your system's diff --git a/docs/api.rst b/docs/api.rst index e862ab297..93cc53ad0 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . .. _api-documentation-page: API documentation diff --git a/docs/conf.py b/docs/conf.py index 33e2bc575..799ae509b 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ # -- Project information ----------------------------------------------------- project = 'Cvxportfolio' -copyright = '2024, The Cvxportfolio Authors' +copyright = '2016-2024, The Cvxportfolio Authors' author = 'The Cvxportfolio Authors' # The full version, including alpha/beta/rc tags diff --git a/docs/constraints.rst b/docs/constraints.rst index e38461044..cc1d91136 100644 --- a/docs/constraints.rst +++ b/docs/constraints.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Constraints =========== diff --git a/docs/contributing.rst b/docs/contributing.rst index 67e59e66c..c1504a785 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -1,13 +1,29 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Contributing to Cvxportfolio ============================ -Cvxportfolio is a collaborative project. Its development is hosted -on Github at `this repository `_. - +Cvxportfolio is `free software `_. +Its development is hosted at `this repository +`_. You can open bug reports using the `issue tracking `_ system there. - The following is copied from the README file on the repository. .. include:: ../README.rst diff --git a/docs/costs.rst b/docs/costs.rst index d8352ccc6..0a5075141 100644 --- a/docs/costs.rst +++ b/docs/costs.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + .. _costs-page: Cost models diff --git a/docs/data.rst b/docs/data.rst index f21f1c8c2..0fb9c8dbd 100644 --- a/docs/data.rst +++ b/docs/data.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Data Interfaces =============== diff --git a/docs/estimators.rst b/docs/estimators.rst index 10a637e3f..e6a3ff7da 100644 --- a/docs/estimators.rst +++ b/docs/estimators.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Estimators =========== diff --git a/docs/examples.rst b/docs/examples.rst index 102471231..016a48db6 100644 --- a/docs/examples.rst +++ b/docs/examples.rst @@ -1,7 +1,26 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Examples ======== -Many `example scripts are available in the code repository. `_ +Many `example scripts are available in the code repository. +`_ We show some of them, along with their results, in the following pages: .. toctree:: diff --git a/docs/examples/case_shiller.rst b/docs/examples/case_shiller.rst index 0cae1223e..1da67e13b 100644 --- a/docs/examples/case_shiller.rst +++ b/docs/examples/case_shiller.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Case-Shiller multi-period ========================= diff --git a/docs/examples/data_cleaning.rst b/docs/examples/data_cleaning.rst index c037c7ea6..74380d75a 100644 --- a/docs/examples/data_cleaning.rst +++ b/docs/examples/data_cleaning.rst @@ -1,5 +1,22 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Data cleaning -=================== +============= .. automodule:: examples.data_cleaning diff --git a/docs/examples/dow30.rst b/docs/examples/dow30.rst index 71a9a84ad..c5add8e89 100644 --- a/docs/examples/dow30.rst +++ b/docs/examples/dow30.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + DOW30 monthly ============= diff --git a/docs/examples/etfs.rst b/docs/examples/etfs.rst index a3d8d22bd..2fc6a1b4a 100644 --- a/docs/examples/etfs.rst +++ b/docs/examples/etfs.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Wide asset classes ETFs ======================= diff --git a/docs/examples/market_neutral.rst b/docs/examples/market_neutral.rst index a9c450a00..01a3a946e 100644 --- a/docs/examples/market_neutral.rst +++ b/docs/examples/market_neutral.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Market-Neutral Portfolio ========================= diff --git a/docs/examples/market_neutral_nocosts.rst b/docs/examples/market_neutral_nocosts.rst index 7235a3483..6c852b6cd 100644 --- a/docs/examples/market_neutral_nocosts.rst +++ b/docs/examples/market_neutral_nocosts.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Market-Neutral Portfolio (Without Costs) ======================================== diff --git a/docs/examples/paper_examples.rst b/docs/examples/paper_examples.rst index 9d4d20f75..f04768fae 100644 --- a/docs/examples/paper_examples.rst +++ b/docs/examples/paper_examples.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Legacy examples from the paper ============================== diff --git a/docs/examples/paper_examples/data_risk_model.rst b/docs/examples/paper_examples/data_risk_model.rst index 7a639dea4..15dde6482 100644 --- a/docs/examples/paper_examples/data_risk_model.rst +++ b/docs/examples/paper_examples/data_risk_model.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Data and risk model estimates ============================= @@ -12,4 +30,4 @@ which doesn't run any more for reasons explained below. .. literalinclude:: ../../../examples/paper_examples/data_risk_model.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/hello_world.rst b/docs/examples/paper_examples/hello_world.rst index 624ff1a3e..7c0fc8454 100644 --- a/docs/examples/paper_examples/hello_world.rst +++ b/docs/examples/paper_examples/hello_world.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Hello World (legacy) ==================== @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/hello_world.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/multi_period_opt.rst b/docs/examples/paper_examples/multi_period_opt.rst index fbbad0ad0..28df670d2 100644 --- a/docs/examples/paper_examples/multi_period_opt.rst +++ b/docs/examples/paper_examples/multi_period_opt.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Multi-period Optimization Example ================================= @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/multi_period_opt.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/portfolio_simulation.rst b/docs/examples/paper_examples/portfolio_simulation.rst index 6fd57662d..ef8a91c92 100644 --- a/docs/examples/paper_examples/portfolio_simulation.rst +++ b/docs/examples/paper_examples/portfolio_simulation.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Portfolio simulation ===================== @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/portfolio_simulation.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/rank_and_spo.rst b/docs/examples/paper_examples/rank_and_spo.rst index 32b3c9b73..3df83be1e 100644 --- a/docs/examples/paper_examples/rank_and_spo.rst +++ b/docs/examples/paper_examples/rank_and_spo.rst @@ -1,5 +1,23 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Ranking and SPO -====================================== +=============== This example script is `available in the repository @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/rank_and_spo.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/real_time_optimization.rst b/docs/examples/paper_examples/real_time_optimization.rst index 235d0d61b..39b0fcbc2 100644 --- a/docs/examples/paper_examples/real_time_optimization.rst +++ b/docs/examples/paper_examples/real_time_optimization.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Real-time optimization ====================== @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/real_time_optimization.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/single_period_opt.rst b/docs/examples/paper_examples/single_period_opt.rst index e1f2ab131..214c9f029 100644 --- a/docs/examples/paper_examples/single_period_opt.rst +++ b/docs/examples/paper_examples/single_period_opt.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Single-period optimization ========================== @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/single_period_opt.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/single_period_opt_lin_tcost.rst b/docs/examples/paper_examples/single_period_opt_lin_tcost.rst index cf6784066..c9693a82f 100644 --- a/docs/examples/paper_examples/single_period_opt_lin_tcost.rst +++ b/docs/examples/paper_examples/single_period_opt_lin_tcost.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Single-period optimization with linear transaction cost ======================================================= @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/single_period_opt_lin_tcost.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/paper_examples/solution_time.rst b/docs/examples/paper_examples/solution_time.rst index d5adb7877..e4d35423e 100644 --- a/docs/examples/paper_examples/solution_time.rst +++ b/docs/examples/paper_examples/solution_time.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Solution time ============= @@ -12,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/solution_time.py :language: python - :lines: 15- \ No newline at end of file + :lines: 16- \ No newline at end of file diff --git a/docs/examples/risk_models.rst b/docs/examples/risk_models.rst index 59527afef..a48e78d6e 100644 --- a/docs/examples/risk_models.rst +++ b/docs/examples/risk_models.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Risk Models Comparison ====================== @@ -7,4 +24,4 @@ This example script is .. literalinclude:: ../../examples/risk_models.py :language: python - :lines: 15- + :lines: 16- diff --git a/docs/examples/timing.rst b/docs/examples/timing.rst index 873b16a54..a70ab97e3 100644 --- a/docs/examples/timing.rst +++ b/docs/examples/timing.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Timing of Back-Test =================== diff --git a/docs/examples/universes.rst b/docs/examples/universes.rst index 4e09bd0c1..13d50eec7 100644 --- a/docs/examples/universes.rst +++ b/docs/examples/universes.rst @@ -1,8 +1,26 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Stock universes =============== This example module is -`available in the repository `_. +`available in the repository +`_. See the docstring below for its explanation. It's used by other examples to get lists of stock tickers corresponding to various indexes. We run it periodically to update the lists to the current constituents of each diff --git a/docs/examples/user_provided_forecasters.rst b/docs/examples/user_provided_forecasters.rst index 087767e22..4685f394c 100644 --- a/docs/examples/user_provided_forecasters.rst +++ b/docs/examples/user_provided_forecasters.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + User-provided forecasters ========================= diff --git a/docs/forecasts.rst b/docs/forecasts.rst index b31a818e9..d223e9d30 100644 --- a/docs/forecasts.rst +++ b/docs/forecasts.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Forecasters =========== diff --git a/docs/hello_world.rst b/docs/hello_world.rst index 79ce6a53f..99099a2cc 100644 --- a/docs/hello_world.rst +++ b/docs/hello_world.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Hello World Example =================== diff --git a/docs/index.rst b/docs/index.rst index 3b7de5664..c9b33a2c5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -1,9 +1,28 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Cvxportfolio Documentation ========================== Cvxportfolio is a Python library for portfolio optimization. It enables users to quickly try optimization :doc:`policies ` for asset management -by back-testing their past performance with a sophisticated :doc:`market simulator `. +by back-testing their past performance with a sophisticated +:doc:`market simulator `. Most models implemented by Cvxportfolio, including the accounting methods, @@ -21,36 +40,40 @@ BlackRock Inc. investment professionals. Introduction ------------ -Cvxportfolio is an object-oriented library for portfolio optimization and back-testing -which focuses on ease of use. It implements the models described +Cvxportfolio is an object-oriented library for portfolio optimization and +back-testing which focuses on ease of use. It implements the models described in the accompanying `paper`_. and can be extended with user-defined objects and methods to accommodate -different data sources, custom cost models (both for simulation and optimization), -constraints, and so on. +different data sources, custom cost models (both for simulation and +optimization), constraints, and so on. -The main abstractions used are the :class:`cvxportfolio.MarketSimulator`, which faithfully mimics -the trading activity of a financial market, the collection of +The main abstractions used are the :class:`cvxportfolio.MarketSimulator`, which +faithfully mimics the trading activity of a financial market, the collection of :doc:`policies `, which include both simple policies such as -:class:`cvxportfolio.RankAndLongShort`, and the optimization-based policies :class:`cvxportfolio.SinglePeriodOptimization` +:class:`cvxportfolio.RankAndLongShort`, and the optimization-based policies +:class:`cvxportfolio.SinglePeriodOptimization` and :class:`cvxportfolio.MultiPeriodOptimization`. For these two, the user specifies the objective function (which is maximized) and a list of constraints which apply to the optimization. All these types -of objects can be customized in many ways, including by deriving or redefining them. +of objects can be customized in many ways, including by deriving or redefining +them. -Then, we provide the :class:`cvxportfolio.data.MarketData` abstraction, which both serves historical -data during a back-test and real time data in online usage. We implement the interface -to public data sources (`Yahoo Finance`_ +Then, we provide the :class:`cvxportfolio.data.MarketData` abstraction, which +both serves historical data during a back-test and real time data in online +usage. We implement the interface to public data sources (`Yahoo Finance`_ and `FRED`_), as well as user-provided data, which -can also be passed to all other objects, see :ref:`the manual section on passing data `. +can also be passed to all other objects, see :ref:`the manual section on +passing data `. -In addition, we provide logic to easily parallelize back-testing of many different policies, -or the same policy with different choices of hyperparameters, and cache on disk both -historical data (for reproducibility) and various expensive calculations, such as +In addition, we provide logic to easily parallelize back-testing of many +different policies, or the same policy with different choices of +hyperparameters, and cache on disk both historical data (for reproducibility) +and various expensive calculations, such as estimates of covariance matrices. -We present the results of each back-test with a clear interface, :class:`cvxportfolio.result.BacktestResult`, -which defines various metrics of backtest performance and the logic to both print -and plot them. +We present the results of each back-test with a clear interface, +:class:`cvxportfolio.result.BacktestResult`, which defines various metrics of +backtest performance and the logic to both print and plot them. Where to go next @@ -67,8 +90,8 @@ interacts with, like the :doc:`market simulator `, the collection of both :doc:`simple ` and :doc:`optimization-based policies `, the objective terms (:doc:`return `, :doc:`risk ` and :doc:`cost ` models, which all have their -specifities) or :doc:`constraints ` which apply to optimization-based -policies, and so on. +specifities) or :doc:`constraints ` which apply to +optimization-based policies, and so on. .. include:: ../README.rst :start-after: .. Versions diff --git a/docs/internals.rst b/docs/internals.rst index b3a1162d3..e3763308b 100644 --- a/docs/internals.rst +++ b/docs/internals.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Internal Objects and Interfaces =============================== diff --git a/docs/manual.rst b/docs/manual.rst index 98a45fae7..d4fa6b942 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Manual ====== diff --git a/docs/objective_terms.rst b/docs/objective_terms.rst index 95a9e3f07..a9a9ac9a8 100644 --- a/docs/objective_terms.rst +++ b/docs/objective_terms.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . .. _objective-terms-page: Objective terms diff --git a/docs/optimization_policies.rst b/docs/optimization_policies.rst index 72fdbf8ab..18b6c12c3 100644 --- a/docs/optimization_policies.rst +++ b/docs/optimization_policies.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . .. _optimization-policies-page: Optimization-based policies diff --git a/docs/policies.rst b/docs/policies.rst index 2ccbe8b1d..e5bae7519 100644 --- a/docs/policies.rst +++ b/docs/policies.rst @@ -1,3 +1,20 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . .. _policies-page: Trading policies diff --git a/docs/result.rst b/docs/result.rst index 8ee403015..b7b14b57e 100644 --- a/docs/result.rst +++ b/docs/result.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Back-test result ================ diff --git a/docs/returns.rst b/docs/returns.rst index 92b2a7db5..b401dbf30 100644 --- a/docs/returns.rst +++ b/docs/returns.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + .. _returns-page: Return models diff --git a/docs/risks.rst b/docs/risks.rst index 6aa0a6c12..057c935cc 100644 --- a/docs/risks.rst +++ b/docs/risks.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + .. _risks-page: Risk models diff --git a/docs/simple_policies.rst b/docs/simple_policies.rst index 9c68c347d..65d551255 100644 --- a/docs/simple_policies.rst +++ b/docs/simple_policies.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Simple policies --------------- diff --git a/docs/simulator.rst b/docs/simulator.rst index 242a16905..fc5e5d3b8 100644 --- a/docs/simulator.rst +++ b/docs/simulator.rst @@ -1,3 +1,21 @@ +.. Copyright (C) 2023-2024 Enzo Busseti +.. Copyright (C) 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. + +.. This file is part of Cvxportfolio. + +.. Cvxportfolio is free software: you can redistribute it and/or modify it under +.. the terms of the GNU General Public License as published by the Free Software +.. Foundation, either version 3 of the License, or (at your option) any later +.. version. + +.. Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +.. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +.. FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +.. details. + +.. You should have received a copy of the GNU General Public License along with +.. Cvxportfolio. If not, see . + Simulator ========= From 924ae9b8a86141621429fe950dfcef63e154cf65 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 22:03:23 +0400 Subject: [PATCH 026/125] minor text in rst --- README.rst | 2 +- docs/manual.rst | 17 ++++++++--------- examples/timing.py | 10 +++++----- 3 files changed, 14 insertions(+), 15 deletions(-) diff --git a/README.rst b/README.rst index 822f90538..599b94413 100644 --- a/README.rst +++ b/README.rst @@ -169,7 +169,7 @@ the best strategy to apply to any given selection of assets. Similar projects ---------------- -There are many open-source projects for portfolio optimization and back-testing. +There are many software projects for portfolio optimization and back-testing. Some notable ones in the Python ecosystem are `Zipline `_, which implements a call-back model for back-testing very similar to the one we provide, `Riskfolio-Lib `_ diff --git a/docs/manual.rst b/docs/manual.rst index d4fa6b942..7d1db2418 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -502,15 +502,14 @@ CVXPY was born not very long before Cvxportfolio, and is now a very successful library with lots of users and contributors, in both the applied and theoretical optimization communities. -In the days before such high-level -libraries were available, users typically had to code their application programs -against the APIs offered directly by the solvers, resulting in complex, difficult -to debug, and un-maintainable codes. Today, the maintainers of the numerical -solvers (both open-source and commercial) are themselves involved in developing -and maintaining the interfaces from CVXPY to their solvers, ensuring best -compatibility. Cvxportfolio users need not be expert or even familiar with -CVXPY, since Cvxportfolio offers an even higher level interface, automating -the definition and management of optimization objects like variables and +In the days before such high-level libraries were available, users typically +had to code their application programs against the APIs offered directly by the +solvers, resulting in complex, difficult to debug, and un-maintainable codes. +Today, the maintainers of the numerical solvers are themselves involved in +developing and maintaining the interfaces from CVXPY to their solvers, ensuring +best compatibility. Cvxportfolio users need not be expert or even familiar with +CVXPY, since Cvxportfolio offers an even higher level interface, automating the +definition and management of optimization objects like variables and constraints. One area however in which awareness of the underlying CVXPY process might be diff --git a/examples/timing.py b/examples/timing.py index c33dbbae2..3eeec8bf6 100644 --- a/examples/timing.py +++ b/examples/timing.py @@ -93,11 +93,11 @@ # execution time of your particular program. Different solvers apply # different roundings and other numerical heuristics; their solutions # may also have (small) differences in other back-test statistics, such - # as Sharpe Ratio. This solver is the default open-source one for this - # type of programs, as of CVXPY 1.5.0. Other open-source solvers that - # work well for this type of programs are ECOS and SCS, and there are - # numerous commercial ones as well, see the CVXPY docs for a full list - # https://www.cvxpy.org/tutorial/solvers/index.html + # as Sharpe Ratio. This solver is the default one for this + # type of programs, as of CVXPY 1.5.0. Other free solvers that work + # well for this type of programs are for example CVXOPT, ECOS and SCS. + # There are numerous commercial ones as well, see the CVXPY docs for a + # full list https://www.cvxpy.org/tutorial/solvers/index.html solver='CLARABEL', # this is a CVXPY compilation flag, it is recommended for large From d2ebbc516463740525f166c10e3588fff8a7a161 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 23:17:16 +0400 Subject: [PATCH 027/125] minor text in comment --- examples/timing.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/timing.py b/examples/timing.py index 3eeec8bf6..831dafd95 100644 --- a/examples/timing.py +++ b/examples/timing.py @@ -94,10 +94,11 @@ # different roundings and other numerical heuristics; their solutions # may also have (small) differences in other back-test statistics, such # as Sharpe Ratio. This solver is the default one for this - # type of programs, as of CVXPY 1.5.0. Other free solvers that work - # well for this type of programs are for example CVXOPT, ECOS and SCS. - # There are numerous commercial ones as well, see the CVXPY docs for a - # full list https://www.cvxpy.org/tutorial/solvers/index.html + # type of programs, as of CVXPY 1.5.0. Other freely available solvers + # that work well for this type of programs are for example CVXOPT, ECOS + # and SCS. There are numerous commercial ones as well. See the CVXPY + # documentation for the full list + # https://www.cvxpy.org/tutorial/solvers/index.html solver='CLARABEL', # this is a CVXPY compilation flag, it is recommended for large From a0f33c3959fc8e32ed984a74b9af7666c78d6b0a Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 23:23:05 +0400 Subject: [PATCH 028/125] added comment to a __init__ file --- examples/user_contributed/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/examples/user_contributed/__init__.py b/examples/user_contributed/__init__.py index 04155428a..976030c2f 100644 --- a/examples/user_contributed/__init__.py +++ b/examples/user_contributed/__init__.py @@ -1 +1,17 @@ +# Copyright (C) 2024 The Cvxportfolio Contributors +# +# This file is part of Cvxportfolio. +# +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . """This sub-package contains example scripts provided by Cvxportfolio users.""" From 520b8cac0f0a7986c6361b7226b8dc314d9343cc Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 13 Jul 2024 23:27:20 +0400 Subject: [PATCH 029/125] added comment to a user contributed example --- .../leverage_indicator_based_portfolio.py | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/examples/user_contributed/leverage_indicator_based_portfolio.py b/examples/user_contributed/leverage_indicator_based_portfolio.py index a9bee67d9..d847460ca 100644 --- a/examples/user_contributed/leverage_indicator_based_portfolio.py +++ b/examples/user_contributed/leverage_indicator_based_portfolio.py @@ -1,4 +1,23 @@ -""" +# Copyright (C) 2024 The Cvxportfolio Contributors +# +# This file is part of Cvxportfolio. +# +# Cvxportfolio is free software: you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free Software +# Foundation, either version 3 of the License, or (at your option) any later +# version. +# +# Cvxportfolio is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS +# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more +# details. +# +# You should have received a copy of the GNU General Public License along with +# Cvxportfolio. If not, see . +"""This is a user-contributed example, and it may not be tested. + +*Work in progress.* + This example demonstrates how to use cvxportfolio to backtest a portfolio that adjusts its leverage based on a forecast indicator. The policy implemented in this example uses a forecast indicator to determine the target leverage. If the indicator suggests From fef33cd0fd4b8bb2b27bc7d1b55c7ed7e8f1dfd4 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 15 Jul 2024 11:31:14 +0400 Subject: [PATCH 030/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-15 --- .../ftse100_daily_initial_holdings.json | 103 ++++++++++++++++++ .../ftse100_daily_target_weights.json | 103 ++++++++++++++++++ 2 files changed, 206 insertions(+) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index ea4d06af1..589355db7 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10483,5 +10483,108 @@ "WEIR.L": 9964.981146852613, "WPP.L": 10396.727616769473, "WTB.L": 11901.268912123796 + }, + "2024-07-15 07:00:00+00:00": { + "AAF.L": 21956.8166480016, + "AAL.L": 10390.725453524034, + "ABF.L": 9827.440465224667, + "ADM.L": 10347.422617232181, + "AHT.L": 15542.958881890885, + "ANTO.L": 20117.577054913632, + "AUTO.L": 10504.881540974073, + "AV.L": 13470.912151041874, + "AZN.L": 12441.821194720698, + "BA.L": 10271.02563425967, + "BARC.L": 10525.947454067878, + "BATS.L": 10508.523172035124, + "BDEV.L": 10262.297156011602, + "BEZ.L": 10265.935377032069, + "BKG.L": 9664.999161522766, + "BME.L": 10813.330811911474, + "BNZL.L": 9551.410886998656, + "BP.L": 1.3818591131095966e-12, + "BRBY.L": 9647.91091039459, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10237.088179261242, + "CPG.L": 0.0, + "CRDA.L": 12130.02407443741, + "CTEC.L": 42.12228118662142, + "DARK.L": 24922.804199218735, + "DCC.L": 22830.274502709173, + "DGE.L": 10160.385553533952, + "DPLM.L": 8493.343264915624, + "EDV.L": 7236.0, + "ENT.L": 11185.229799968929, + "EXPN.L": 11242.547099772662, + "EZJ.L": 9614.65994158549, + "FCIT.L": 0.0, + "FRAS.L": 10251.53509619676, + "FRES.L": 10638.388416217009, + "GBPOUND": 1063.7022630080808, + "GLEN.L": 10614.732872507258, + "GSK.L": 10675.994163531754, + "HIK.L": 10976.902342331568, + "HL.L": 9999.000000000002, + "HLMA.L": 10587.346326394267, + "HLN.L": 0.0, + "HSBA.L": 10106.700277775075, + "HWDN.L": 10233.645512997997, + "IAG.L": 10238.715617946014, + "ICG.L": 11421.034662906535, + "IHG.L": 16677.00290143873, + "III.L": 11944.415751682522, + "IMB.L": 10566.882606809666, + "IMI.L": 11029.843814507745, + "INF.L": 10244.017778357036, + "ITRK.L": 9621.025308756773, + "JD.L": 10507.159622804584, + "KGF.L": 10442.716307128145, + "LAND.L": 0.0, + "LGEN.L": 10469.167379417944, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28284.557636111622, + "MKS.L": 0.0, + "MNDI.L": 9851.116381382277, + "MNG.L": 10344.951838261215, + "MRO.L": 45777.22131397398, + "NG.L": 10669.524371585416, + "NWG.L": 10234.140299110693, + "NXT.L": 9208.926581217851, + "PHNX.L": 0.0, + "PRU.L": 10226.020417294565, + "PSH.L": 54315.11052878505, + "PSN.L": 10524.381560642658, + "PSON.L": 1023.847965149413, + "REL.L": 10849.932636256428, + "RIO.L": 11111.056196362888, + "RKT.L": 8809.949713509233, + "RMV.L": 12146.892678382977, + "RR.L": 10702.210496780928, + "RTO.L": 10409.022729713744, + "SBRY.L": 0.0, + "SDR.L": 10273.124524006904, + "SGE.L": 37974.21159880986, + "SGRO.L": 0.0, + "SHEL.L": 9.086918286251768e-13, + "SMDS.L": 10592.412318778135, + "SMIN.L": 0.0, + "SMT.L": 10768.689694369725, + "SN.L": 3333.651551807144, + "SPX.L": 8909.212907400082, + "SSE.L": 11122.102957656123, + "STAN.L": 10222.291302436468, + "SVT.L": 10749.245142840655, + "TSCO.L": 10670.56141162298, + "TW.L": 10787.855807319504, + "ULVR.L": 8967.666513442577, + "UTG.L": 10412.837692030618, + "UU.L": 9762.93925155676, + "VOD.L": 10237.498826229408, + "VTY.L": 10584.000000000004, + "WEIR.L": 9899.91597612982, + "WPP.L": 10272.520341251144, + "WTB.L": 11728.086318817084 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 9e17617f3..44a66952d 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10092,5 +10092,108 @@ "WEIR.L": 0.009999996365146114, "WPP.L": 0.009999986538270849, "WTB.L": 0.009999974678158231 + }, + "2024-07-15 07:00:00+00:00": { + "AAF.L": 0.021059765436056702, + "AAL.L": 0.009999999316433611, + "ABF.L": 0.009625256677615828, + "ADM.L": 0.010000017405493517, + "AHT.L": 0.014882776198911122, + "ANTO.L": 0.019265620621628614, + "AUTO.L": 0.01000000719871105, + "AV.L": 0.012899956307650277, + "AZN.L": 0.01000001589230274, + "BA.L": 0.010000003726086075, + "BARC.L": 0.01000000038554046, + "BATS.L": 0.010000001476256315, + "BDEV.L": 0.010000001833419132, + "BEZ.L": 0.010000005077142863, + "BKG.L": 0.010000001083597321, + "BME.L": 0.009999996866850575, + "BNZL.L": 0.009999991218487724, + "BP.L": 1.3918184101507492e-07, + "BRBY.L": 0.009999981203973529, + "BT-A.L": 1.7109643601621252e-08, + "CCH.L": 5.6073024998016454e-08, + "CNA.L": 0.009999963442441435, + "CPG.L": 7.038892867129341e-08, + "CRDA.L": 0.009999998300998306, + "CTEC.L": 4.0052381698224245e-05, + "DARK.L": 0.024164861122139142, + "DCC.L": 0.02089279508724069, + "DGE.L": 0.009764056723928483, + "DPLM.L": 0.010000003803299316, + "EDV.L": 0.007456211296390173, + "ENT.L": 0.010581486164465276, + "EXPN.L": 0.010000002124559166, + "EZJ.L": 0.00920749078546715, + "FCIT.L": 1.9444019642729422e-08, + "FRAS.L": 0.01000000105296115, + "FRES.L": 0.00999999934682106, + "GBPOUND": 1.0368454246220682e-07, + "GLEN.L": 0.009999981193901546, + "GSK.L": 0.009999994710209969, + "HIK.L": 0.010000003977911426, + "HL.L": 0.010000002545649563, + "HLMA.L": 0.010000003040531549, + "HLN.L": 7.779989469490999e-09, + "HSBA.L": 0.00999999870168036, + "HWDN.L": 0.00999999929199736, + "IAG.L": 0.009999429186253288, + "ICG.L": 0.010000011119510727, + "IHG.L": 0.014891395322331667, + "III.L": 0.01000000403173122, + "IMB.L": 0.0100000078859656, + "IMI.L": 0.009999994810108059, + "INF.L": 0.00999992022512396, + "ITRK.L": 0.009999996849092196, + "JD.L": 0.010000066292232409, + "KGF.L": 0.00999998984993508, + "LAND.L": 1.2851528425623946e-08, + "LGEN.L": 0.010000000055677567, + "LLOY.L": 4.986937275849971e-08, + "LMP.L": 3.692535858414287e-08, + "LSEG.L": 0.026700468256412094, + "MKS.L": 3.065341718259092e-08, + "MNDI.L": 0.009999998716063864, + "MNG.L": 0.009999999420035193, + "MRO.L": 0.043836453730158494, + "NG.L": 0.009999987218674669, + "NWG.L": 0.009999989298554005, + "NXT.L": 0.010000004979713204, + "PHNX.L": 2.099538166664303e-08, + "PRU.L": 0.009999997267952561, + "PSH.L": 0.0521478119543085, + "PSN.L": 0.010000000424077006, + "PSON.L": 0.00098039684143787, + "REL.L": 0.009999996536655164, + "RIO.L": 0.0100000023860107, + "RKT.L": 0.009999990433891406, + "RMV.L": 0.011631938266831046, + "RR.L": 0.00999999809507268, + "RTO.L": 0.00999999837346872, + "SBRY.L": 3.2617649098644536e-08, + "SDR.L": 0.009999993262265255, + "SGE.L": 0.03632763561172737, + "SGRO.L": 3.907987509265087e-08, + "SHEL.L": 0.00045138665291639805, + "SMDS.L": 0.009999996420907688, + "SMIN.L": 5.334193472169897e-08, + "SMT.L": 0.009999987023391157, + "SN.L": 0.003192260693956755, + "SPX.L": 0.009999982034259483, + "SSE.L": 0.009999998625831048, + "STAN.L": 0.00999999411602035, + "SVT.L": 0.010000002915794746, + "TSCO.L": 0.009999999150059611, + "TW.L": 0.009999998910229317, + "ULVR.L": 0.009999957005367047, + "UTG.L": 0.010000007853459086, + "UU.L": 0.009999985124687409, + "VOD.L": 0.009999998933115335, + "VTY.L": 0.009999999513177645, + "WEIR.L": 0.009999997982709861, + "WPP.L": 0.009999991896959779, + "WTB.L": 0.009999985428929502 } } \ No newline at end of file From d5692c3709e962941c56572ecc15aaa9447a001c Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 15 Jul 2024 18:00:35 +0400 Subject: [PATCH 031/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-15 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index af2944195..eca11fb50 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4488,9 +4488,9 @@ "WMT": 0.00038924033648406474 }, "2024-07-12 13:30:00+00:00": { - "AAPL": 223470.40547190656, + "AAPL": 223392.33542114534, "AMGN": 20714.66950119921, - "AMZN": 226996.84122722445, + "AMZN": 227335.28668239538, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4510,14 +4510,47 @@ "MCD": 1.197307158548222e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 242714.3367559562, + "MSFT": 242716.99421422108, "NKE": 1.00416061719913e-12, "PG": 0.0, "TRV": 0.0, "UNH": 104709.81440197171, - "USDOLLAR": -171.90305040997796, + "USDOLLAR": -171.90304980984507, "V": 34265.09153563561, "VZ": 0.0, "WMT": 0.0003876873752615693 + }, + "2024-07-15 13:30:00+00:00": { + "AAPL": 230583.9982589919, + "AMGN": 20971.21731927905, + "AMZN": 227228.7429402873, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 80827.04646391024, + "CSCO": 44874.517114067814, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 110052.17295619613, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1944345603279958e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 242230.85868941748, + "NKE": 9.963806627648186e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 108287.44303929183, + "USDOLLAR": -137.82252847615771, + "V": 34437.49509907215, + "VZ": 0.0, + "WMT": 0.0003843595951683625 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 0cf972504..5e8231173 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4519,5 +4519,38 @@ "V": 0.03157429713041615, "VZ": 6.500667763515969e-09, "WMT": 5.0164853898034325e-08 + }, + "2024-07-15 13:30:00+00:00": { + "AAPL": 0.20802470410983379, + "AMGN": 0.01905987350952702, + "AMZN": 0.2090173913896525, + "AXP": 7.420328754505858e-09, + "BA": 1.2881303816878613e-08, + "CAT": 6.437067468523002e-09, + "CRM": 0.07353580080305053, + "CSCO": 0.040818905802046654, + "CVX": 7.2136210664180786e-09, + "DIS": 9.534360122931473e-09, + "DOW": 9.848800620626406e-09, + "GS": 7.4155612481516856e-09, + "HD": 0.10010603443533625, + "HON": 4.53060102371735e-09, + "IBM": 3.300099598184403e-09, + "INTC": 8.548690665617766e-09, + "JNJ": 1.0151325381171613e-08, + "JPM": 1.2360536026557433e-08, + "KO": 7.749917823894422e-09, + "MCD": 2.0813810657200333e-08, + "MMM": 4.446199920535504e-09, + "MRK": 8.909146281472517e-09, + "MSFT": 0.22033894179176672, + "NKE": 1.9378619286312616e-08, + "PG": 6.003264708230059e-09, + "TRV": 5.350845719976974e-09, + "UNH": 0.09777321041280873, + "USDOLLAR": 5.895332799487956e-09, + "V": 0.03132491815983915, + "VZ": 4.737677490895789e-09, + "WMT": 3.665902829035781e-08 } } \ No newline at end of file From 125e80e2d0ad4898a9af462c3a97c1d8144bb1e7 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 15 Jul 2024 18:01:47 +0400 Subject: [PATCH 032/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-15 --- .../ndx100_daily_initial_holdings.json | 158 +++++++++++++++--- .../ndx100_daily_target_weights.json | 104 ++++++++++++ 2 files changed, 235 insertions(+), 27 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 2e77ce11a..a1f5d48f0 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14039,7 +14039,7 @@ "ZS": 14392.981976239229 }, "2024-07-12 13:30:00+00:00": { - "AAPL": 8416.479127750827, + "AAPL": 8413.538805736613, "ABNB": 0.0, "ADBE": 12459.406322011479, "ADI": 0.0, @@ -14047,13 +14047,13 @@ "ADSK": 85.01747146027314, "AEP": 0.0, "AMAT": -62.29318880191295, - "AMD": -2.2528159976857373e-11, + "AMD": -2.2520736676194872e-11, "AMGN": 38311.10368284414, - "AMZN": 19945.408608884733, + "AMZN": 19975.14661254465, "ANSS": 11.730738939827365, "ARM": 68409.512878418, "ASML": 18.952947099705398, - "AVGO": -721.4299867831458, + "AVGO": -37.017973743905294, "AZN": 0.0, "BIIB": 15304.110016181108, "BKNG": 11154.331282973742, @@ -14062,8 +14062,8 @@ "CDNS": -98.25438410505764, "CDW": 7607.038805175315, "CEG": 83486.1227568809, - "CHTR": 18616.9761019631, - "CMCSA": 35812.30727762657, + "CHTR": 18701.72155235845, + "CMCSA": 35834.382508663824, "COST": 0.0, "CPRT": -0.8668810374973832, "CRWD": 13050.005048849267, @@ -14071,25 +14071,25 @@ "CSGP": 5783.235400741515, "CSX": 0.0, "CTAS": 0.0, - "CTSH": 27461.725001187966, + "CTSH": 27453.92170832908, "DASH": 0.0, "DDOG": 16365.84811430804, "DLTR": 29814.402306734813, "DXCM": 11062.011985652547, "EA": 14130.891667393655, "EXC": 0.0, - "FANG": 27524.541743636524, - "FAST": 17517.418068734878, - "FTNT": 25437.99654156242, - "GEHC": 2447.289931504501, + "FANG": 27536.49228384125, + "FAST": 17527.7668025984, + "FTNT": 25412.122415730297, + "GEHC": 2452.788782224365, "GFS": 21050.16932588451, "GILD": 30233.710860841864, - "GOOG": 873.1924521739144, + "GOOG": 873.2859116725479, "GOOGL": -2.4053556137118924e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 5732.676484226641, - "INTC": 2.1636550928789964, + "INTC": 2.1598176033763603, "INTU": -98.25073205320203, "ISRG": 9492.60401373461, "KDP": 0.0, @@ -14103,37 +14103,37 @@ "MDB": 24480.17659194652, "MDLZ": 0.0, "MELI": 21973.991436883643, - "META": -135.08728887616448, + "META": -135.0886471669774, "MNST": 17901.244663069745, "MRNA": 20572.667449741282, "MRVL": 0.0, - "MSFT": 44.44260082585393, + "MSFT": 44.44308742404362, "MU": 9.732088825468084, - "NFLX": 16286.818320410557, + "NFLX": 16293.058480686577, "NVDA": 19.211830795334894, "NXPI": 20793.496762796607, "ODFL": 8975.420356167899, - "ON": -3.2482652105601084, + "ON": -3.248482061855252, "ORLY": 27953.23789197303, - "PANW": -7.737044042427722, + "PANW": -7.754093448288293, "PAYX": 6598.674461634087, "PCAR": 0.0, - "PDD": 27550.454486029317, - "PEP": 25519.424984556248, - "PYPL": 7188.789981842041, - "QCOM": -7.611634367382284, + "PDD": 27549.486583086386, + "PEP": 25503.965703695445, + "PYPL": 7186.409927368169, + "QCOM": -7.6190020217038565, "REGN": 16420.97964287615, "ROP": 14985.23568232907, - "ROST": 9087.62440927604, - "SBUX": 32348.30140255564, + "ROST": 9049.335572482181, + "SBUX": 32326.40205218636, "SNPS": 0.0, "TEAM": 12534.577072934386, "TMUS": 5792.5757766585075, - "TSLA": 3552.888181204512, + "TSLA": 3553.9433214044143, "TTD": 38241.429405075825, - "TTWO": 9780.866532586366, + "TTWO": 9760.303174137023, "TXN": 0.0, - "USDOLLAR": 1328.532589270212, + "USDOLLAR": 622.0529685563246, "VRSK": 0.0, "VRTX": 11811.987923697998, "WBA": 218.88000869750985, @@ -14141,5 +14141,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 18945.49693972058 + }, + "2024-07-15 13:30:00+00:00": { + "AAPL": 8456.772026443852, + "ABNB": 0.0, + "ADBE": 11454.091052264783, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 86.43374992781393, + "AEP": 0.0, + "AMAT": -63.040880813260706, + "AMD": -2.2827578393737052e-11, + "AMGN": 37789.940466268454, + "AMZN": 19559.607259028384, + "ANSS": 11.730738939827365, + "ARM": 75939.87025451665, + "ASML": 19.173790379273647, + "AVGO": -36.76419539024638, + "AZN": 0.0, + "BIIB": 14564.727699597586, + "BKNG": 11393.288452673356, + "BKR": 0.0, + "CCEP": 19141.545034296632, + "CDNS": -98.85378439140995, + "CDW": 8876.020683366196, + "CEG": 83771.79829101726, + "CHTR": 19585.35183925879, + "CMCSA": 35811.878070490486, + "COST": 0.0, + "CPRT": -0.8714344933694417, + "CRWD": 13938.796021212527, + "CSCO": 59713.93586324352, + "CSGP": 5777.872773577592, + "CSX": 0.0, + "CTAS": 0.0, + "CTSH": 27830.98581423917, + "DASH": 0.0, + "DDOG": 17957.938272344934, + "DLTR": 29779.59841969134, + "DXCM": 10808.788199347675, + "EA": 13733.331208587088, + "EXC": 0.0, + "FANG": 27426.782567904305, + "FAST": 18208.283244120026, + "FTNT": 25744.166294765208, + "GEHC": 2445.7623823323756, + "GFS": 22747.994746886907, + "GILD": 29952.710860841864, + "GOOG": -61.258315844060014, + "GOOGL": -2.4061353601077466e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 5618.952179864999, + "INTC": 2.21929734880237, + "INTU": -99.85443793646901, + "ISRG": 9073.469553229566, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 17890.996890881925, + "LIN": 0.0, + "LRCX": -11.30847150915968, + "LULU": 21712.645115784646, + "MAR": 0.0, + "MCHP": 12212.514597506966, + "MDB": 25923.53045085092, + "MDLZ": 0.0, + "MELI": 22626.22915577496, + "META": -135.32747444676522, + "MNST": 17904.78886901006, + "MRNA": 20022.4154496578, + "MRVL": 0.0, + "MSFT": 44.354072793243965, + "MU": 9.890904245390665, + "NFLX": 16162.015114890159, + "NVDA": 19.572372876228954, + "NXPI": 21097.379081048228, + "ODFL": 9357.419055883547, + "ON": -3.2836311737679567, + "ORLY": 27870.396052519878, + "PANW": -7.778615912150111, + "PAYX": 6659.1614801331325, + "PCAR": 0.0, + "PDD": 27047.75467697083, + "PEP": 26328.755907515057, + "PYPL": 8127.00010299683, + "QCOM": -7.680963533349272, + "REGN": 16499.320671419588, + "ROP": 14398.401351562394, + "ROST": 9148.893714007532, + "SBUX": 32728.95999855564, + "SNPS": 0.0, + "TEAM": 12879.982617433909, + "TMUS": 3983.247250256712, + "TSLA": 2066.1121904993774, + "TTD": 40041.62423081573, + "TTWO": 9854.121781161068, + "TXN": 0.0, + "USDOLLAR": -1299.7048220607255, + "VRSK": 0.0, + "VRTX": 11637.686753394826, + "WBA": 217.93000507354736, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 20165.325543793453 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index d95455110..d3779da36 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -13934,5 +13934,109 @@ "WDAY": 3.1416720092247956e-08, "XEL": 9.332701666196623e-08, "ZS": 0.01756984331242613 + }, + "2024-07-15 13:30:00+00:00": { + "AAPL": 0.006707480301825353, + "ABNB": 1.22030829431966e-08, + "ADBE": 0.010092887661614577, + "ADI": 9.732957983305069e-08, + "ADP": 1.4882132466626335e-07, + "ADSK": 3.2340200636774615e-08, + "AEP": 1.058073302623343e-08, + "AMAT": 4.582058625300406e-08, + "AMD": 6.0360659477491354e-09, + "AMGN": 0.0336217589477066, + "AMZN": 0.01759201200949761, + "ANSS": 5.219030237895479e-08, + "ARM": 0.0669571352485846, + "ASML": 2.1512618817577753e-08, + "AVGO": 1.2129542205371684e-08, + "AZN": 5.788414887266826e-08, + "BIIB": 0.01392142241605597, + "BKNG": 0.008795522450727225, + "BKR": 1.0020206448596311e-07, + "CCEP": 0.01701146295152442, + "CDNS": 1.2000597106862944e-08, + "CDW": 0.00785422622484867, + "CEG": 0.07479454284020837, + "CHTR": 0.01754590824912432, + "CMCSA": 0.031972667482116704, + "COST": 1.2602026625258939e-08, + "CPRT": 1.1740776816638358e-07, + "CRWD": 0.01235204612804248, + "CSCO": 0.05308354982182602, + "CSGP": 0.005159019451318309, + "CSX": 0.00033523215204837, + "CTAS": 1.9303671107469217e-08, + "CTSH": 0.024460908084367905, + "DASH": 1.0224585935064553e-08, + "DDOG": 0.016262704227429037, + "DLTR": 0.026687094881397116, + "DXCM": 0.009482513887401543, + "EA": 0.012275204175445146, + "EXC": 3.2870164384934303e-08, + "FANG": 0.025226802074070208, + "FAST": 0.018266813362564575, + "FTNT": 0.022961233080202374, + "GEHC": 0.0020727942970068763, + "GFS": 0.020952169702251302, + "GILD": 0.026879391846664005, + "GOOG": 1.9659794957601885e-07, + "GOOGL": 9.088385430783151e-08, + "HON": 3.924408789384083e-08, + "IDXX": 2.8703410980381444e-08, + "ILMN": 0.005100158243585306, + "INTC": 3.141264483084143e-08, + "INTU": 6.088682373045398e-08, + "ISRG": 0.00799182333958389, + "KDP": 4.5117588256296053e-07, + "KHC": 2.6026466388840702e-08, + "KLAC": 0.01401450258276541, + "LIN": 6.548474519161638e-08, + "LRCX": 3.3887662075140435e-08, + "LULU": 0.019645638285536494, + "MAR": 7.97971474524117e-08, + "MCHP": 0.010883738425426559, + "MDB": 0.02276308565594883, + "MDLZ": 1.242344486973144e-07, + "MELI": 0.019745129286337492, + "META": 1.1891222696685838e-08, + "MNST": 0.015987424975757503, + "MRNA": 0.018326396617219687, + "MRVL": 1.0048668207815543e-08, + "MSFT": 2.8312138889605664e-08, + "MU": 1.155642395635274e-08, + "NFLX": 0.014639147716769638, + "NVDA": 6.329784485060584e-08, + "NXPI": 0.018329388722202265, + "ODFL": 0.008182860635134829, + "ON": 3.4106006638462134e-07, + "ORLY": 0.025098241422242255, + "PANW": 2.138588512079522e-08, + "PAYX": 0.005933225886199966, + "PCAR": 1.2431352880155125e-08, + "PDD": 0.02539936475147969, + "PEP": 0.023869220819759417, + "PYPL": 0.007979727968720693, + "QCOM": 4.1966128472445895e-08, + "REGN": 0.014336857055937785, + "ROP": 0.013152559869931394, + "ROST": 0.008338026735463704, + "SBUX": 0.028977820377765688, + "SNPS": 5.75655718369124e-09, + "TEAM": 0.011002745309815097, + "TMUS": 0.0033636009161209794, + "TSLA": 0.000569489169281009, + "TTD": 0.03567558801462476, + "TTWO": 0.00879735076751169, + "TXN": 3.0795824087775645e-08, + "USDOLLAR": 3.699059259081386e-07, + "VRSK": 1.5573930689322019e-07, + "VRTX": 0.010653897915505698, + "WBA": 0.00019544297257022468, + "WBD": 1.996921420327108e-08, + "WDAY": 2.699468888519813e-08, + "XEL": 1.031646212798368e-07, + "ZS": 0.01771975753487532 } } \ No newline at end of file From 8538154844379f41e58acc3596260482921674c8 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 15 Jul 2024 18:06:45 +0400 Subject: [PATCH 033/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-15 --- .../sp500_daily_initial_holdings.json | 601 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1058 insertions(+), 48 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 8311d898b..b7e7a4821 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -67288,8 +67288,8 @@ }, "2024-07-12 13:30:00+00:00": { "A": 0.0, - "AAL": 626.5965940241697, - "AAPL": 49684.77925374342, + "AAL": 627.1822117315078, + "AAPL": 49667.42172834668, "ABBV": 4612.492141282259, "ABNB": 0.0, "ABT": 3361.8160374392332, @@ -67314,12 +67314,12 @@ "ALLE": 0.0, "AMAT": 2345.873424434728, "AMCR": 0.0, - "AMD": 29347.15180736437, + "AMD": 29337.48156657782, "AME": 0.0, "AMGN": 7097.515494980665, "AMP": 451.5798520005869, "AMT": 627.0126074885686, - "AMZN": 37183.25555729498, + "AMZN": 37238.6946717064, "ANET": 3860.5196201189524, "ANSS": 978.5237172873509, "AON": 17.193856057417612, @@ -67331,7 +67331,7 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 19907.429040106414, + "AVGO": 19907.42832997681, "AVY": 0.0, "AWK": 0.0, "AXON": 4591.676884572011, @@ -67353,7 +67353,7 @@ "BKNG": 3714.9496415226727, "BKR": 0.0, "BLDR": 338.4989000693695, - "BLK": 9.461812157361012e-13, + "BLK": 9.5136598133619e-13, "BMY": 83.08712436324622, "BR": 0.0, "BRK-B": 0.0, @@ -67370,7 +67370,7 @@ "CB": 1328.8320558971345, "CBOE": 0.0, "CBRE": 4505.40999829534, - "CCI": 296.50869715597804, + "CCI": 297.2619988701673, "CCL": 0.0, "CDNS": 0.0, "CDW": 391.80238905738514, @@ -67380,12 +67380,12 @@ "CFG": 0.0, "CHD": 2528.741045098546, "CHRW": 0.0, - "CHTR": 7027.0710216426105, + "CHTR": 7059.058617019414, "CI": 3.891737610608292e-13, "CINF": 0.015222157836406663, "CL": 9.62780459796032, - "CLX": 15.109297919396296, - "CMCSA": 6120.186120869269, + "CLX": 15.18885667982306, + "CMCSA": 6123.958693285835, "CME": 4556.390568674554, "CMG": 5906.745380932364, "CMI": 0.0, @@ -67410,11 +67410,11 @@ "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 11117.652618914619, + "CTSH": 11114.493520231452, "CTVA": 106.2740029472837, "CVS": 0.0, "CVX": -5.676255543092171e-13, - "CZR": 9372.734476063737, + "CZR": 9369.157697145374, "D": 0.0, "DAL": 647.3458460167902, "DAY": 0.0, @@ -67426,13 +67426,13 @@ "DGX": 0.0, "DHI": -6.8133186644305574, "DHR": 2700.631557036149, - "DIS": -4.311721160247132, + "DIS": -4.3119430744861225, "DLR": 3.220219987948037e-14, "DLTR": 960.9854458186753, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, - "DPZ": 1904.1824751163292, + "DPZ": 1918.6321742544633, "DRI": 2.373336288655327, "DTE": 0.0, "DUK": 1.1898638280917002, @@ -67444,15 +67444,15 @@ "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.69818798277579e-14, + "EG": 5.729243749961863e-14, "EIX": 0.0, "EL": 0.0, "ELV": 536.6500244140623, "EMN": 0.0, "EMR": 0.0, - "ENPH": 2813.4233670152057, + "ENPH": 2803.790062526537, "EOG": 0.0, - "EPAM": 5291.353072253769, + "EPAM": 5291.492003828988, "EQIX": 813.3796199082676, "EQR": 0.0, "EQT": 0.0, @@ -67468,8 +67468,8 @@ "EXPE": 4278.079143662918, "EXR": 5.716099327128033e-14, "F": 0.0, - "FANG": 14451.631837431416, - "FAST": 3189.6788563239456, + "FANG": 14457.906412641629, + "FAST": 3191.56321721918, "FCX": 0.0, "FDS": 3777.9410890207487, "FDX": 8730.008322168205, @@ -67483,13 +67483,13 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.697403485530367e-14, - "FTNT": 6151.795635266329, + "FSLR": -7.696750248826786e-14, + "FTNT": 6145.538368342798, "FTV": 0.0, - "GD": 3.7723519361481516e-13, + "GD": 3.79319522418792e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1716.8583263763237, + "GEHC": 1720.7159598844612, "GEN": 0.0, "GEV": 28078.332433993368, "GILD": 8621.96918232074, @@ -67498,11 +67498,11 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 24486.89617688681, + "GOOG": 24489.51705735146, "GOOGL": 1820.780499878835, "GPC": 0.0, "GPN": -1.0208809025584548e-13, - "GRMN": 2179.0965185938917, + "GRMN": 2188.7663641624467, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, @@ -67512,7 +67512,7 @@ "HD": 9060.899892532218, "HES": 0.0, "HIG": 5671.756954585234, - "HII": 0.6957794442879984, + "HII": 0.702469094671717, "HLT": -1.3652348127557123e-13, "HOLX": 2813.397791458919, "HON": 0.0, @@ -67531,7 +67531,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 3994.88754682312, - "INTC": 235.23004045013474, + "INTC": 234.8128330986012, "INTU": 1249.4828777396474, "INVH": 0.0, "IP": 0.0, @@ -67570,8 +67570,8 @@ "LEN": 0.0, "LH": 0.0, "LHX": 0.0, - "LIN": 1.6315597317206876, - "LKQ": 4828.9109495386965, + "LIN": 1.6327723305344404, + "LKQ": 4817.707150380549, "LLY": 1.6295682507228328, "LMT": 8403.70965606195, "LNT": 0.0, @@ -67580,7 +67580,7 @@ "LULU": 1758.4085847530891, "LUV": 27.280735092403617, "LVS": 1868.7185704624703, - "LW": 28.638867050120773, + "LW": 28.994450297800736, "LYB": 3578.676204436514, "LYV": 2925.175506301253, "MA": 30474.377544267492, @@ -67594,7 +67594,7 @@ "MDLZ": 0.0, "MDT": 1.285151858871574, "MET": -0.03506895480796602, - "META": 21886.9831853868, + "META": 21887.20325707845, "MGM": 4380.473629927355, "MHK": 0.0, "MKC": 0.0, @@ -67604,7 +67604,7 @@ "MMM": 0.0, "MNST": 5193.13266570296, "MO": -21.116255258003292, - "MOH": 1733.5386072921347, + "MOH": 1740.889310829058, "MOS": 0.0, "MPC": 15092.626323483148, "MPWR": -9.411731028388349e-13, @@ -67613,7 +67613,7 @@ "MRO": 0.0, "MS": 6279.861972770752, "MSCI": 6398.179677431097, - "MSFT": 38083.90305596131, + "MSFT": 38084.3200333195, "MSI": 0.0, "MTB": -5.95989431714329, "MTCH": 0.0, @@ -67624,7 +67624,7 @@ "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16293.672977376928, + "NFLX": 16299.915763958299, "NI": 0.0, "NKE": -3.029679493300907e-14, "NOC": -3.919405975040539e-13, @@ -67643,19 +67643,19 @@ "ODFL": 4681.23366669333, "OKE": 0.0, "OMC": 0.0, - "ON": -2.718815888268974, + "ON": -2.718997393998467, "ORCL": 7479.050275072824, "ORLY": -0.7304598837184783, "OTIS": 1693.6527755135937, "OXY": 0.0, - "PANW": 4605.9208468371025, + "PANW": 4616.070487119459, "PARA": 2195.625091266646, "PAYC": 0.0, "PAYX": 471.7829845952494, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11710.114354928519, + "PEP": 11703.020545141093, "PFE": 0.0, "PFG": 169.56616527198486, "PG": 1.0559412595664206, @@ -67670,7 +67670,7 @@ "PNW": 0.0, "PODD": -64.88667284761581, "POOL": 1250.9227194528917, - "PPG": -0.41288794097272885, + "PPG": -0.415593599376548, "PPL": 0.0, "PRU": 1245.1463833565258, "PSA": 0.0, @@ -67678,7 +67678,7 @@ "PTC": 2.688687293157664e-14, "PWR": -5.169519915780571, "PYPL": 0.0, - "QCOM": 4796.73443844205, + "QCOM": 4801.377420423195, "QRVO": 0.0, "RCL": 2934.7861972682276, "REG": 0.0, @@ -67690,17 +67690,17 @@ "ROK": 1.2263595166363273, "ROL": 0.0, "ROP": 5532.987170089237, - "ROST": 1203.855695046452, + "ROST": 1198.7834966197715, "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, "SBAC": 6256.142125243621, - "SBUX": 8441.319554046198, + "SBUX": 8435.604898052592, "SCHW": 151.03457671192345, "SHW": 1.3459417160502511, - "SJM": 0.9539194195598446, + "SJM": 0.9619875011525697, "SLB": 0.0, - "SMCI": 8824.277528539991, + "SMCI": 8820.410565059083, "SNA": 0.0, "SNPS": 0.0, "SO": 10.25328270799174, @@ -67720,7 +67720,7 @@ "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4798.019267134097, + "TDG": 4822.207132092358, "TDY": 777.6055075408243, "TECH": 0.0, "TEL": 0.0, @@ -67737,14 +67737,14 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.7893419550428462e-12, - "TSLA": 96967.95014978945, + "TSLA": 96996.74778627192, "TSN": 4796.100475453397, "TT": 0.0, - "TTWO": 750.5170705472633, + "TTWO": 748.9391784972496, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3918.439414676027, + "UAL": 3925.097956846372, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -67754,7 +67754,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 2005.7720148302478, + "USDOLLAR": 2005.7720403316448, "V": 2626.914243544806, "VICI": 0.0, "VLO": 0.0, @@ -67790,5 +67790,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-15 13:30:00+00:00": { + "A": 0.0, + "AAL": 624.8397967497334, + "AAPL": 50845.88836800433, + "ABBV": 4565.996848036863, + "ABNB": 0.0, + "ABT": 3338.0486090489517, + "ACGL": 0.0, + "ACN": 2.48733409807273e-13, + "ADBE": 11611.191293269047, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -16.20076001103719, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3484.0511261385523, + "AIG": 0.0, + "AIZ": 1.4454234691129144, + "AJG": 0.0, + "AKAM": 191.04178097847708, + "ALB": 0.0, + "ALGN": 1185.0070579698722, + "ALL": 6.45441924423564e-14, + "ALLE": 0.0, + "AMAT": 2374.0304485463107, + "AMCR": 0.0, + "AMD": 29737.200428428645, + "AME": 0.0, + "AMGN": 6521.657062110569, + "AMP": 9.847656770029404, + "AMT": 629.8318621939867, + "AMZN": 37383.917277570654, + "ANET": 3935.330485512623, + "ANSS": 650.1937307150853, + "AON": 17.244067767772066, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 27.96893106029292, + "APTV": 2.465557028115122e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19770.952075978814, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4631.428244074785, + "AXP": 0.0, + "AZO": 1.7137533486482717e-12, + "BA": -1.0993394743254087e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 506.0299257013149, + "BDX": 0.0, + "BEN": 189.12481509276557, + "BF-B": 0.0, + "BG": 1686.1937913692984, + "BIIB": 2504.7648361793367, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3794.5343184875646, + "BKR": 0.0, + "BLDR": 347.05162379354454, + "BLK": 9.520427117063212e-13, + "BMY": 82.19698019746397, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3119113847293338, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1409.0749898299234, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20518.80675780529, + "CAT": 0.0, + "CB": 813.7863973645505, + "CBOE": 0.0, + "CBRE": 4537.529772091698, + "CCI": 299.3770306468856, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 398.26278680810543, + "CE": -2.7533070792715295e-14, + "CEG": 39461.10156877501, + "CF": 9507.085640437126, + "CFG": 0.0, + "CHD": 2529.2269327917757, + "CHRW": 0.0, + "CHTR": 7157.782078424853, + "CI": 3.9272062389733146e-13, + "CINF": 0.015237102891186426, + "CL": 9.636646099549527, + "CLX": 15.242641896705235, + "CMCSA": 6165.87022029415, + "CME": 4556.390568674554, + "CMG": 5905.722916575555, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 876.1270608242636, + "CNP": 0.0, + "COF": 8770.215007322764, + "COO": 0.0, + "COP": 0.0, + "COR": 3350.4800608758505, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 767.5445796082189, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7774.029719638929, + "CRWD": 4094.9698791503897, + "CSCO": 7005.923631053092, + "CSGP": -7.610014688840143e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11296.103139533003, + "CTVA": 107.02084561467252, + "CVS": 0.0, + "CVX": -5.704970986638901e-13, + "CZR": 9385.849938537025, + "D": 0.0, + "DAL": 634.9697103291251, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0309449882585609e-13, + "DECK": 874.7455897126838, + "DFS": 3475.08543931573, + "DG": 0.0, + "DGX": 0.0, + "DHI": -6.951933237313757, + "DHR": 2459.392788554532, + "DIS": -4.322156889085744, + "DLR": 3.2279377436020286e-14, + "DLTR": 959.8636380238185, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1487.0850720751748, + "DRI": 2.4101033131120695, + "DTE": 0.0, + "DUK": 1.1899775191508286, + "DVA": 3492.4468323768133, + "DVN": 0.0, + "DXCM": 4936.951089309616, + "EA": 3910.756869130419, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.798856192985176e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.298225947907103e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2832.1960425236125, + "EOG": 0.0, + "EPAM": 5402.311815728254, + "EQIX": 813.3796199082676, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.097764026718292, + "EXPE": 4359.203610333856, + "EXR": 5.803177409621371e-14, + "F": 0.0, + "FANG": 14292.669549018465, + "FAST": 3077.562078595657, + "FCX": 0.0, + "FDS": 3389.7529752257483, + "FDX": 8184.644886230227, + "FE": 0.0, + "FFIV": 3676.866008387019, + "FI": 2.4852376774219653e-13, + "FICO": 1526.3185093983475, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.192820734405143e-14, + "FTNT": 6225.838170350648, + "FTV": 0.0, + "GD": 3.790407394910589e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1715.7866979266857, + "GEN": 0.0, + "GEV": 28439.66776584899, + "GILD": 8621.96918232074, + "GIS": 7433.816329107941, + "GL": 0.2922116471168503, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 24467.244571267103, + "GOOGL": 1821.370744009195, + "GPC": 0.0, + "GPN": -1.0247498849256195e-13, + "GRMN": 2209.1512607858826, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0843913338531685, + "HBAN": 0.0, + "HCA": 5932.366906397069, + "HD": 8807.428211075634, + "HES": 0.0, + "HIG": 5690.177288893546, + "HII": 0.6962770438994461, + "HLT": -1.386539154258431e-13, + "HOLX": 2839.441225620498, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10495.543682283069, + "HUBB": 1.339443437232446e-13, + "HUM": 1171.4722142775402, + "HWM": 2125.7434568542294, + "IBM": 0.0, + "ICE": 739.3525125578224, + "IDXX": -10.176878778630726, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4025.9590008426353, + "INTC": 241.27940116140036, + "INTU": 1269.8776676836794, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.045716166684180874, + "IRM": 0.0, + "ISRG": 6566.633054917097, + "IT": 7.509448100824196e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2571.4174578933184, + "JCI": 0.0, + "JKHY": 823.7831598719695, + "JNJ": 12900.073341928648, + "JNPR": 0.0, + "JPM": 2536.6579448828593, + "K": 461.1844240969108, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -20.94621399011928, + "KMB": 5110.776978045292, + "KMI": 0.0, + "KMX": 81.02301562537181, + "KO": 193.55637001842044, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21151683080905775, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6443766814134653, + "LKQ": 4881.56974585658, + "LLY": 1.6493944170436674, + "LMT": 8016.064007227798, + "LNT": 0.0, + "LOW": -2.758612606348869e-13, + "LRCX": 1010.3281021425748, + "LULU": 1738.5310936459819, + "LUV": 28.09115347387608, + "LVS": 1873.1154882414817, + "LW": 28.693293424634298, + "LYB": 3591.132377104233, + "LYV": 3004.2425117886864, + "MA": 30678.51495681813, + "MAA": 0.0, + "MAR": -6.002635552632887e-13, + "MAS": 0.0, + "MCD": 10752.19573859377, + "MCHP": 2409.7361336032573, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.2789069203082204, + "MET": -0.03545951945069649, + "META": 21925.89830159681, + "MGM": 4383.330086710993, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6829.245946388356, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5194.160836201105, + "MO": -21.38468154463805, + "MOH": 1741.4869749688573, + "MOS": 0.0, + "MPC": 15224.041356204, + "MPWR": -9.732128287502003e-13, + "MRK": 5820.593926310266, + "MRNA": 7556.224077844994, + "MRO": 0.0, + "MS": 6216.465416966538, + "MSCI": 5956.014019427119, + "MSFT": 38008.04131634657, + "MSI": 0.0, + "MTB": -6.085244141241416, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3770.463258205047, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16168.817245749507, + "NI": 0.0, + "NKE": -3.0062063875001696e-14, + "NOC": -3.910486035638605e-13, + "NOW": 5258.00156702803, + "NRG": 0.0, + "NSC": -2.6793475296103552e-14, + "NTAP": 6045.873423546712, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 139419.44605031583, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8788.155464166884, + "O": 0.0, + "ODFL": 4397.741741004868, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.748417394439357, + "ORCL": 7637.319832923143, + "ORLY": -0.728295102642031, + "OTIS": 1697.8869074523768, + "OXY": 0.0, + "PANW": 4630.668895361365, + "PARA": 2178.7644608282912, + "PAYC": 0.0, + "PAYX": 476.1076025594581, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11776.802445596115, + "PFE": 0.0, + "PFG": 171.95527723339896, + "PG": 1.0575294277348302, + "PGR": 8006.5455589419325, + "PH": 0.0, + "PHM": -11.316664634954094, + "PKG": -4.839121992943193e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -64.01833784934024, + "POOL": 1284.5221117830695, + "PPG": -0.41578458131432405, + "PPL": 0.0, + "PRU": 1127.3548407904923, + "PSA": 0.0, + "PSX": 3118.7736089152268, + "PTC": 2.740136871134102e-14, + "PWR": -5.153871728000049, + "PYPL": 0.0, + "QCOM": 4840.424608244134, + "QRVO": 0.0, + "RCL": 2988.4713106328904, + "REG": 0.0, + "REGN": 1113.6323460603148, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -26.003816776108856, + "ROK": 1.261823439704855, + "ROL": 0.0, + "ROP": 5522.2963863718405, + "ROST": 1192.0470492183401, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6231.218094968276, + "SBUX": 8560.19538675923, + "SCHW": 145.67158449167079, + "SHW": 1.3626771901383574, + "SJM": 0.9778661180349855, + "SLB": 0.0, + "SMCI": 9320.023457109653, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.191762581498931, + "SOLV": -1.3516906505138555e-12, + "SPG": 0.0, + "SPGI": -5.687905791538955, + "SRE": 0.0, + "STE": 0.4909992013195589, + "STLD": -2.825300879964781e-14, + "STT": 317.5790041584121, + "STX": 93.68648048364629, + "STZ": 255.67739942598118, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.936145120987286, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4747.083182560249, + "TDY": 379.3998322097708, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 456.0890895525514, + "TMO": 0.0, + "TMUS": 8433.663280123335, + "TPR": 2921.126557817828, + "TRGP": 415.48984522576154, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.862717710597242e-12, + "TSLA": 113994.46327063572, + "TSN": 4816.248451070629, + "TT": 0.0, + "TTWO": 756.1381793088772, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3869.754041215809, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 4368.901081800277, + "UNH": 20288.77079997303, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 176.732727691773, + "V": 2108.7914402872466, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8730.101228795786, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3208.320336238001, + "VRTX": 2908.9896540334594, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.0709324167196502e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -3.242357794892217, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.525260840139228, + "WMB": 0.0, + "WMT": 11959.43436558164, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3266.229747852192, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 8bf25b7b1..542c78c6d 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -64764,5 +64764,510 @@ "ZBH": 3.13481956283034e-09, "ZBRA": 2.018760114812576e-09, "ZTS": 9.11123049508848e-09 + }, + "2024-07-15 13:30:00+00:00": { + "A": 1.7847339690909808e-09, + "AAL": 0.0005106211130196712, + "AAPL": 0.04137974628048051, + "ABBV": 0.003751211613523479, + "ABNB": 1.5173767720043654e-09, + "ABT": 0.0027278699927630054, + "ACGL": 4.8333647057095875e-09, + "ACN": 5.334133362415987e-09, + "ADBE": 0.009718855971220212, + "ADI": 8.618865720638224e-09, + "ADM": 5.416122311487005e-09, + "ADP": 1.368653868225638e-08, + "ADSK": 6.951104351370205e-09, + "AEE": 1.577202590612611e-09, + "AEP": 1.5846789502776296e-09, + "AES": 7.51110938576539e-10, + "AFL": 0.0028471700710931904, + "AIG": 1.6572584841068671e-09, + "AIZ": 6.090182958501208e-09, + "AJG": 3.3911548336747003e-09, + "AKAM": 0.00015611362724787646, + "ALB": 5.227203974972051e-10, + "ALGN": 0.0009683807406070033, + "ALL": 4.11913641782389e-09, + "ALLE": 1.5849676930506324e-09, + "AMAT": 0.001940411507054749, + "AMCR": 4.208480864462116e-10, + "AMD": 0.024301267137142504, + "AME": 1.6982457164903175e-09, + "AMGN": 0.005329527638777427, + "AMP": 8.01839026083149e-06, + "AMT": 0.000530247584272224, + "AMZN": 0.03114172760904508, + "ANET": 0.0033464242411435302, + "ANSS": 0.0005299460141446541, + "AON": 4.892923740207271e-08, + "AOS": 1.4173382248579525e-09, + "APA": 1.0289965763801054e-09, + "APD": 4.302732040611325e-09, + "APH": 1.2556947131726637e-08, + "APTV": 4.520058470149726e-09, + "ARE": 1.2838615663937083e-09, + "ATO": 1.8280404032633408e-09, + "AVB": 1.787554040492668e-09, + "AVGO": 0.016156873076444356, + "AVY": 2.113479841492819e-09, + "AWK": 3.0726744921823132e-09, + "AXON": 0.003849719700320498, + "AXP": 4.787145223860909e-09, + "AZO": 5.520711639203394e-08, + "BA": 6.868175637372353e-08, + "BAC": 2.596097093789349e-09, + "BALL": 5.795353589174291e-09, + "BAX": 3.5273906495474213e-09, + "BBWI": 1.9869894672844962e-09, + "BBY": 0.00041356308000201596, + "BDX": 7.94860312519323e-09, + "BEN": 0.00015455397194660472, + "BF-B": 4.8229280520676966e-09, + "BG": 0.0013779542507560518, + "BIIB": 0.002048871362234529, + "BIO": 2.2610609765998855e-09, + "BK": 2.714063137896037e-09, + "BKNG": 0.002231009283722907, + "BKR": 1.0714156562997011e-09, + "BLDR": 0.000283610143176886, + "BLK": 3.214525241321433e-05, + "BMY": 6.717219193974695e-05, + "BR": 3.2307589116420602e-09, + "BRK-B": 4.848597189209866e-09, + "BRO": 2.2805084705969548e-08, + "BSX": 3.038259226172133e-09, + "BWA": 2.7064587928748033e-09, + "BX": 0.0011514776633886553, + "BXP": 1.4066692736404303e-09, + "C": 3.5880684234489262e-09, + "CAG": 4.5084943301969555e-09, + "CAH": 4.572720453396794e-09, + "CARR": 0.016768031294424286, + "CAT": 1.1929295371181337e-09, + "CB": 0.0006650281843923523, + "CBOE": 1.0283529838684152e-08, + "CBRE": 0.0037080734513426673, + "CCI": 0.00024465904114450603, + "CCL": 1.6886786579342223e-09, + "CDNS": 1.494500135284788e-08, + "CDW": 0.00032558834684430287, + "CE": 3.916053405054681e-09, + "CEG": 0.03229764615096687, + "CF": 0.007783925205336716, + "CFG": 2.1172342607080555e-09, + "CHD": 0.002066889211195157, + "CHRW": 5.564820269060993e-09, + "CHTR": 0.00584936696964357, + "CI": 2.8083479971031412e-08, + "CINF": 1.1424123332657226e-08, + "CL": 7.86817351297619e-06, + "CLX": 1.1966460104025655e-05, + "CMCSA": 0.0050387640084281985, + "CME": 0.0038195518912964342, + "CMG": 0.004826165501222575, + "CMI": 1.6217160491468081e-09, + "CMS": 1.4491202459460198e-09, + "CNC": 0.0007159975321163062, + "CNP": 1.414765110179021e-09, + "COF": 0.007167142126597151, + "COO": 3.5202844834410977e-09, + "COP": 3.305807359868595e-09, + "COR": 0.0027380467361403584, + "COST": 3.4663661775841626e-09, + "CPAY": 1.1394238582032096e-08, + "CPB": 7.156852397954568e-09, + "CPRT": 0.0006272375504571008, + "CPT": 1.3706189302465972e-09, + "CRL": 1.0657731067641672e-09, + "CRM": 0.006359967619609398, + "CRWD": 0.003350531263555753, + "CSCO": 0.0057327373154034975, + "CSGP": 3.4842089753528264e-09, + "CSX": 4.693145066315709e-09, + "CTAS": 3.202854921080149e-09, + "CTLT": 2.36723534926597e-09, + "CTRA": 1.1458813807648882e-09, + "CTSH": 0.009231181482649066, + "CTVA": 8.745918925512576e-05, + "CVS": 4.0545152079146e-09, + "CVX": 4.260349748717964e-09, + "CZR": 0.007670131232218836, + "D": 2.395877706826452e-09, + "DAL": 0.0005189019451627433, + "DAY": 1.7846520570318002e-09, + "DD": 2.7738713222813196e-09, + "DE": 4.082386275511418e-09, + "DECK": 0.0009304535582548693, + "DFS": 0.002895563644751819, + "DG": 2.3189067907090143e-09, + "DGX": 5.571110818471151e-09, + "DHI": 5.193793707293055e-09, + "DHR": 0.0020098211716535336, + "DIS": 4.621530239745359e-09, + "DLR": 3.0406414552477293e-09, + "DLTR": 0.000862693909298983, + "DOC": 7.684260726596733e-10, + "DOV": 1.77664946773574e-09, + "DOW": 2.858534432758464e-09, + "DPZ": 0.0012152377835918157, + "DRI": 1.9766386660618433e-06, + "DTE": 1.7568681883639105e-09, + "DUK": 1.1926128913798795e-08, + "DVA": 0.0028540345165361546, + "DVN": 1.2868022542289733e-09, + "DXCM": 0.004046127051951279, + "EA": 0.0031958692794564415, + "EBAY": 1.8425937916063987e-09, + "ECL": 2.6856509710111118e-09, + "ED": 2.456594716763347e-09, + "EFX": 2.02860766484666e-09, + "EG": 1.1653169415284102e-08, + "EIX": 2.521437101794519e-09, + "EL": 2.667046667129178e-09, + "ELV": 6.248141543737473e-06, + "EMN": 1.8046012646417788e-09, + "EMR": 1.13289014858823e-09, + "ENPH": 0.0023144809556114405, + "EOG": 3.3472054384914397e-09, + "EPAM": 0.004414812204737145, + "EQIX": 0.0006646922113229878, + "EQR": 1.7597858085761597e-09, + "EQT": 6.507056131697613e-10, + "ES": 1.2762943496088328e-09, + "ESS": 2.3393423173389545e-09, + "ETN": 8.8971918358417e-10, + "ETR": 2.3581469666088318e-09, + "ETSY": 5.599482779736121e-09, + "EVRG": 9.122417330044392e-10, + "EW": 5.986018455945321e-09, + "EXC": 2.106518520464092e-09, + "EXPD": 7.697691799392676e-09, + "EXPE": 0.0035623536323721823, + "EXR": 4.431085206298955e-09, + "F": 1.447729941982068e-09, + "FANG": 0.011680424999076426, + "FAST": 0.0025149900301877043, + "FCX": 1.2546517342781645e-09, + "FDS": 0.0027271684227777107, + "FDX": 0.006688476566641281, + "FE": 1.6485529052285691e-09, + "FFIV": 0.0030047149248631656, + "FI": 7.619568140189999e-09, + "FICO": 0.0012900148051768116, + "FIS": 2.709963121972413e-09, + "FITB": 3.4041230670640013e-09, + "FMC": 2.072801900083658e-09, + "FOX": 1.1987003350959167e-09, + "FOXA": 1.7019190376403132e-09, + "FRT": 1.633020060593092e-09, + "FSLR": 4.586539137234102e-10, + "FTNT": 0.00508776848642971, + "FTV": 1.2557059653526984e-09, + "GD": 8.962963722502253e-09, + "GDDY": 1.2484065054576628e-08, + "GE": 2.1010156105860156e-09, + "GEHC": 0.0014021376867876542, + "GEN": 1.231024352852557e-09, + "GEV": 0.023577377157376928, + "GILD": 0.007045883894815322, + "GIS": 0.00607493874580955, + "GL": 4.651736333206671e-09, + "GLW": 1.8528953945673934e-09, + "GM": 1.738482441904161e-09, + "GNRC": 1.1267975949193232e-09, + "GOOG": 0.020030343315979176, + "GOOGL": 0.0014884700762719427, + "GPC": 4.044105915512488e-09, + "GPN": 7.308985334914231e-09, + "GRMN": 0.001805462719788528, + "GS": 3.947897366818198e-09, + "GWW": 1.3554892839082592e-09, + "HAL": 1.290968144126957e-09, + "HAS": 8.804110740358096e-07, + "HBAN": 1.0147044791691568e-09, + "HCA": 0.004847906276962473, + "HD": 0.00719745001690903, + "HES": 2.9955342739370063e-09, + "HIG": 0.004650021203743856, + "HII": 2.200957430993588e-08, + "HLT": 5.840187363817285e-09, + "HOLX": 0.002320405995298327, + "HON": 3.922788571935245e-09, + "HPE": 1.1772998148697476e-09, + "HPQ": 1.268831775577705e-09, + "HRL": 4.015032269602772e-09, + "HSIC": 3.833503952686789e-09, + "HST": 1.50124177053328e-09, + "HSY": 0.008576992170565283, + "HUBB": 5.194369351417563e-10, + "HUM": 0.0009576352013375607, + "HWM": 0.0017387709044981497, + "IBM": 1.706749092681494e-09, + "ICE": 0.0006042040578615224, + "IDXX": 6.898715625168323e-09, + "IEX": 2.0994729238817847e-09, + "IFF": 2.157203077633328e-09, + "INCY": 0.0032900230574383596, + "INTC": 0.00019717482663102214, + "INTU": 0.0011662996217942027, + "INVH": 1.1605466425392619e-09, + "IP": 1.8555181631909258e-09, + "IPG": 3.489389977655795e-09, + "IQV": 1.9383933257233374e-09, + "IR": 1.765730068418008e-08, + "IRM": 2.8953104584465515e-09, + "ISRG": 0.005366292748278349, + "IT": 7.983709028810726e-09, + "ITW": 3.15678691202086e-09, + "IVZ": 1.4829446991498578e-09, + "J": 3.2634959691251942e-09, + "JBHT": 5.396956599535154e-09, + "JBL": 0.0021018284597457953, + "JCI": 1.3178818490100883e-09, + "JKHY": 0.0007587381837442602, + "JNJ": 0.01054196522052798, + "JNPR": 2.128364987160861e-09, + "JPM": 0.0020729944686611814, + "K": 0.00037688207410451803, + "KDP": 1.328026123504754e-09, + "KEY": 9.775840695060706e-10, + "KEYS": 2.5649226896318083e-09, + "KHC": 7.852615434238065e-10, + "KIM": 1.1825499360325305e-09, + "KKR": 3.789026852300156e-09, + "KLAC": 1.9333540097859505e-05, + "KMB": 0.004176529391611129, + "KMI": 5.813886495905959e-10, + "KMX": 6.615908312771274e-05, + "KO": 0.00015817430518718137, + "KR": 7.820816349107101e-09, + "KVUE": -2.4774472189510537e-10, + "L": 3.466603246252836e-09, + "LDOS": 1.3273740148054729e-08, + "LEN": 6.874569592873176e-09, + "LH": 1.5971090605141174e-09, + "LHX": 4.104287759617201e-09, + "LIN": 1.328834895746898e-07, + "LKQ": 0.0039892253577206195, + "LLY": 1.619916086321601e-08, + "LMT": 0.006651642798191226, + "LNT": 1.264369359624644e-09, + "LOW": 5.702811555888376e-09, + "LRCX": 0.0008256368924198277, + "LULU": 0.0014714968009031993, + "LUV": 2.2960256397925258e-05, + "LVS": 0.001530713581237464, + "LW": 2.3433313640693817e-05, + "LYB": 0.002934675497108994, + "LYV": 0.0024554970576229056, + "MA": 0.02510530321278206, + "MAA": 1.7647665364731626e-09, + "MAR": 9.619696846626123e-09, + "MAS": 2.2358842404796004e-09, + "MCD": 0.008786740618839297, + "MCHP": 0.0019781323174344395, + "MCK": 8.748151834262736e-08, + "MCO": 2.0759358975372787e-09, + "MDLZ": 2.4837827475526566e-09, + "MDT": 1.0404892787371005e-06, + "MET": 2.893924495299725e-09, + "META": 0.01791787570256976, + "MGM": 0.003582062345196356, + "MHK": 1.934638538108997e-09, + "MKC": 2.8534175229007714e-09, + "MKTX": 0.005580757545151356, + "MLM": 1.6564375702284421e-09, + "MMC": 2.4816591030069633e-09, + "MMM": 2.2774435957180353e-09, + "MNST": 0.004257757310613794, + "MO": 2.402303647719065e-09, + "MOH": 0.0014525522417987828, + "MOS": 9.398704360763398e-10, + "MPC": 0.012451335392138716, + "MPWR": 8.597296301251032e-09, + "MRK": 0.004756607903492453, + "MRNA": 0.006175806129636444, + "MRO": 6.413721381953218e-10, + "MS": 0.005080117403228897, + "MSCI": 0.004867217431198302, + "MSFT": 0.031601742549249495, + "MSI": 4.658955950925667e-09, + "MTB": 7.018924630362482e-09, + "MTCH": 7.1109262205158125e-09, + "MTD": 3.808855950414138e-09, + "MU": 0.0030812407081029464, + "NCLH": 2.0629936888507862e-09, + "NDAQ": 2.947142789259972e-09, + "NDSN": 1.7390225158159336e-09, + "NEE": 1.0249726421184174e-09, + "NEM": 9.203826757074551e-10, + "NFLX": 0.013792909056977602, + "NI": 1.0321265319645096e-09, + "NKE": 1.2474766457806527e-08, + "NOC": 3.123233372983505e-08, + "NOW": 0.004318541222901821, + "NRG": 3.919340388033415e-10, + "NSC": 6.289670416871639e-09, + "NTAP": 0.004940685442106798, + "NTRS": 2.3110361796061804e-09, + "NUE": 6.92011130841076e-09, + "NVDA": 0.11393380085443126, + "NVR": 0.001477081855845755, + "NWS": 7.677799441787148e-10, + "NWSA": 7.553080360758636e-10, + "NXPI": 0.00718169873007515, + "O": 3.8451588755664976e-09, + "ODFL": 0.0035936864341468834, + "OKE": 2.16898446582747e-09, + "OMC": 2.48288838958635e-09, + "ON": 5.1896793054700536e-09, + "ORCL": 0.0062412297650427115, + "ORLY": 1.1831868902042675e-08, + "OTIS": 0.0013875484587018573, + "OXY": 1.4792481471276195e-09, + "PANW": 0.0038005544809880413, + "PARA": 0.001780489762702807, + "PAYC": 1.2482614195393674e-08, + "PAYX": 0.00038906978373510364, + "PCAR": 4.517363764789744e-09, + "PCG": 9.782812159879533e-10, + "PEG": 1.897004664404401e-09, + "PEP": 0.00962403013477427, + "PFE": 3.0688913848594327e-09, + "PFG": 0.0001405206393843532, + "PG": 7.814935468374091e-09, + "PGR": 0.0065796092979065746, + "PH": 1.3447901361252228e-09, + "PHM": 4.498864394025145e-09, + "PKG": 6.504589271280394e-09, + "PLD": 2.5431196359529256e-09, + "PM": 4.787497991543606e-09, + "PNC": 5.282063547521083e-09, + "PNR": 1.0436219105769986e-09, + "PNW": 1.4884644882249606e-09, + "PODD": 1.012921442130276e-08, + "POOL": 0.0010497260226985522, + "PPG": 5.624417501140745e-09, + "PPL": 1.648853981442472e-09, + "PRU": 0.0009212691608128219, + "PSA": 2.0465044681501088e-09, + "PSX": 0.002548665278810027, + "PTC": 4.803866508896648e-09, + "PWR": 2.7544860807464486e-09, + "PYPL": 1.218138165161924e-09, + "QCOM": 0.003955837175189773, + "QRVO": 6.767938061441989e-10, + "RCL": 0.0024421655980624356, + "REG": 2.048285584412299e-09, + "REGN": 0.0012118172547738383, + "RF": 1.6130113886254165e-09, + "RJF": 4.9352382276992296e-09, + "RL": 2.362089815061091e-09, + "RMD": 2.034502907251895e-08, + "ROK": 4.281419970513776e-09, + "ROL": 1.5220611157344528e-09, + "ROP": 0.004567312531194587, + "ROST": 0.0009743652958725846, + "RSG": 3.829643195886824e-09, + "RTX": 6.310217258064421e-09, + "RVTY": 1.3736684114525387e-09, + "SBAC": 0.005096293921112572, + "SBUX": 0.006995426515509314, + "SCHW": 0.00011904365326450088, + "SHW": 1.3733897692698426e-07, + "SJM": 7.911201093308871e-07, + "SLB": 1.2869498096648936e-09, + "SMCI": 0.007492818236030065, + "SNA": 2.373237311961744e-09, + "SNPS": 1.683374145151683e-09, + "SO": 6.45776166986136e-08, + "SOLV": -6.98680408135098e-10, + "SPG": 1.911711381598942e-09, + "SPGI": 4.539134966827541e-09, + "SRE": 2.4183280167608853e-09, + "STE": 4.166908214117138e-07, + "STLD": 1.0524125481171965e-08, + "STT": 0.0002595281707783257, + "STX": 7.641625757788764e-05, + "STZ": 0.00020896301821786686, + "SWK": 1.7955736034190273e-09, + "SWKS": 9.93341804961402e-10, + "SYF": 4.132805869577271e-09, + "SYK": 1.5323202678850932e-08, + "SYY": 4.380874137913173e-09, + "T": 2.7329633313922796e-09, + "TAP": 2.312500169443413e-09, + "TDG": 0.0040026514821550315, + "TDY": 0.00027301479948975426, + "TECH": 6.74281873896081e-09, + "TEL": 3.4327083462704644e-09, + "TER": 1.7407008810073583e-09, + "TFC": 1.615077761342219e-09, + "TFX": 5.638906951638453e-09, + "TGT": 4.868168667971824e-09, + "TJX": 0.0003727283949408072, + "TMO": 7.167159158206846e-09, + "TMUS": 0.00689200510770425, + "TPR": 0.002387153525915321, + "TRGP": 0.00033954516137624474, + "TRMB": 4.943045134675818e-09, + "TROW": 4.093086602633256e-09, + "TRV": 3.94299938707632e-09, + "TSCO": 6.144516999732937e-09, + "TSLA": 0.08863646503923572, + "TSN": 0.0039358463028261416, + "TT": 1.326732951046037e-09, + "TTWO": 0.0006665178813606212, + "TXN": 2.579983784088479e-09, + "TXT": 1.6249509445030285e-09, + "TYL": 1.8283911518198572e-08, + "UAL": 0.0032084886642808706, + "UBER": 4.667546152055049e-09, + "UDR": 1.0927327324500905e-09, + "UHS": 4.25216442938497e-09, + "ULTA": 0.003570257340862436, + "UNH": 0.01658012455143014, + "UNP": 5.864759522894395e-09, + "UPS": 1.683286224120327e-09, + "URI": 2.8864316432217504e-09, + "USB": 1.7417963121079766e-09, + "USDOLLAR": 1.708176899895236e-07, + "V": 0.0017233144709320864, + "VICI": 1.4660277504390994e-09, + "VLO": 4.042389474720766e-08, + "VLTO": 0.007134250975126614, + "VMC": 9.58472342157649e-10, + "VRSK": 5.172815499748299e-09, + "VRSN": 0.0026218501316019214, + "VRTX": 0.0023808487220518754, + "VST": 4.2137686831963357e-10, + "VTR": 2.8233292787346144e-09, + "VTRS": 1.1470946815750958e-09, + "VZ": 3.794409661841608e-09, + "WAB": 1.221037117248424e-09, + "WAT": 4.845830003066124e-09, + "WBA": 7.220116478654855e-10, + "WBD": 2.664021733235112e-10, + "WDC": 1.901845821530221e-09, + "WEC": 3.1838885462627957e-09, + "WELL": 2.3409101379938977e-09, + "WFC": 5.72361392016962e-09, + "WM": 1.7870585454746782e-08, + "WMB": 8.724929701034961e-09, + "WMT": 0.00977327024629205, + "WRB": 4.1437509248851e-09, + "WST": 2.861366736698203e-09, + "WTW": 2.9350125743427895e-09, + "WY": 9.495463403261324e-10, + "WYNN": 0.002669164121660974, + "XEL": 1.6969485352869971e-09, + "XOM": 4.0453582360415026e-09, + "XYL": 2.5124194437108946e-09, + "YUM": 8.38431519077946e-09, + "ZBH": 1.7996450154662872e-09, + "ZBRA": 1.0203760392957315e-09, + "ZTS": 6.232711659440221e-09 } } \ No newline at end of file From cadbaea37ce91676201c38260c402e6adfff73ae Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 11:31:11 +0400 Subject: [PATCH 034/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-16 --- .../ftse100_daily_initial_holdings.json | 275 ++++++++++++------ .../ftse100_daily_target_weights.json | 103 +++++++ 2 files changed, 292 insertions(+), 86 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 589355db7..e9b6c9f74 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10485,106 +10485,209 @@ "WTB.L": 11901.268912123796 }, "2024-07-15 07:00:00+00:00": { - "AAF.L": 21956.8166480016, - "AAL.L": 10390.725453524034, - "ABF.L": 9827.440465224667, - "ADM.L": 10347.422617232181, - "AHT.L": 15542.958881890885, - "ANTO.L": 20117.577054913632, - "AUTO.L": 10504.881540974073, - "AV.L": 13470.912151041874, - "AZN.L": 12441.821194720698, - "BA.L": 10271.02563425967, - "BARC.L": 10525.947454067878, - "BATS.L": 10508.523172035124, - "BDEV.L": 10262.297156011602, - "BEZ.L": 10265.935377032069, - "BKG.L": 9664.999161522766, - "BME.L": 10813.330811911474, - "BNZL.L": 9551.410886998656, - "BP.L": 1.3818591131095966e-12, - "BRBY.L": 9647.91091039459, + "AAF.L": 22031.183796825644, + "AAL.L": 10469.37686570378, + "ABF.L": 9950.631186786322, + "ADM.L": 10399.23944852033, + "AHT.L": 15650.854469964168, + "ANTO.L": 20420.44203794838, + "AUTO.L": 10556.237597606912, + "AV.L": 13528.94086434877, + "AZN.L": 12494.817156559287, + "BA.L": 10336.238495429569, + "BARC.L": 10462.452846764456, + "BATS.L": 10441.881725046396, + "BDEV.L": 10318.261636058825, + "BEZ.L": 10273.551056095146, + "BKG.L": 9721.121097757248, + "BME.L": 10748.594392419613, + "BNZL.L": 9593.540613658393, + "BP.L": 1.373530099277156e-12, + "BRBY.L": 10800.299971731238, "BT-A.L": 0.0, "CCH.L": 0.0, - "CNA.L": 10237.088179261242, + "CNA.L": 10270.639951563953, "CPG.L": 0.0, - "CRDA.L": 12130.02407443741, - "CTEC.L": 42.12228118662142, - "DARK.L": 24922.804199218735, - "DCC.L": 22830.274502709173, - "DGE.L": 10160.385553533952, - "DPLM.L": 8493.343264915624, - "EDV.L": 7236.0, - "ENT.L": 11185.229799968929, - "EXPN.L": 11242.547099772662, - "EZJ.L": 9614.65994158549, + "CRDA.L": 12223.031926603506, + "CTEC.L": 42.46839689938136, + "DARK.L": 24750.798950195305, + "DCC.L": 22850.49618074525, + "DGE.L": 10224.806464513364, + "DPLM.L": 8564.916382316602, + "EDV.L": 7244.0, + "ENT.L": 11325.882799065701, + "EXPN.L": 11173.241663349494, + "EZJ.L": 9709.348971673047, "FCIT.L": 0.0, - "FRAS.L": 10251.53509619676, - "FRES.L": 10638.388416217009, + "FRAS.L": 10263.264541386914, + "FRES.L": 10716.167048017134, "GBPOUND": 1063.7022630080808, - "GLEN.L": 10614.732872507258, - "GSK.L": 10675.994163531754, - "HIK.L": 10976.902342331568, - "HL.L": 9999.000000000002, - "HLMA.L": 10587.346326394267, + "GLEN.L": 10629.176061545639, + "GSK.L": 10800.588960371902, + "HIK.L": 11085.524795416763, + "HL.L": 9935.999999999996, + "HLMA.L": 10651.149543427153, "HLN.L": 0.0, - "HSBA.L": 10106.700277775075, - "HWDN.L": 10233.645512997997, - "IAG.L": 10238.715617946014, - "ICG.L": 11421.034662906535, - "IHG.L": 16677.00290143873, - "III.L": 11944.415751682522, - "IMB.L": 10566.882606809666, - "IMI.L": 11029.843814507745, - "INF.L": 10244.017778357036, - "ITRK.L": 9621.025308756773, - "JD.L": 10507.159622804584, - "KGF.L": 10442.716307128145, + "HSBA.L": 10185.622557436276, + "HWDN.L": 10305.713439145875, + "IAG.L": 10360.78248991687, + "ICG.L": 11491.410756780082, + "IHG.L": 16701.102616614244, + "III.L": 12020.139441799956, + "IMB.L": 10501.406213154507, + "IMI.L": 11113.812174161423, + "INF.L": 10287.251323379303, + "ITRK.L": 9749.412635645936, + "JD.L": 10626.507285007921, + "KGF.L": 10574.363211466063, "LAND.L": 0.0, - "LGEN.L": 10469.167379417944, + "LGEN.L": 10406.477345252164, "LLOY.L": 0.0, "LMP.L": 0.0, - "LSEG.L": 28284.557636111622, + "LSEG.L": 28392.973742893962, "MKS.L": 0.0, - "MNDI.L": 9851.116381382277, - "MNG.L": 10344.951838261215, - "MRO.L": 45777.22131397398, - "NG.L": 10669.524371585416, - "NWG.L": 10234.140299110693, - "NXT.L": 9208.926581217851, + "MNDI.L": 9904.196881694006, + "MNG.L": 10394.759021651978, + "MRO.L": 46059.79483193176, + "NG.L": 10741.829076671438, + "NWG.L": 10375.212207412022, + "NXT.L": 9152.652040782641, "PHNX.L": 0.0, - "PRU.L": 10226.020417294565, - "PSH.L": 54315.11052878505, - "PSN.L": 10524.381560642658, - "PSON.L": 1023.847965149413, - "REL.L": 10849.932636256428, - "RIO.L": 11111.056196362888, - "RKT.L": 8809.949713509233, - "RMV.L": 12146.892678382977, - "RR.L": 10702.210496780928, - "RTO.L": 10409.022729713744, + "PRU.L": 10399.342973610343, + "PSH.L": 54523.513830574135, + "PSN.L": 10566.761620618396, + "PSON.L": 1029.4344371814777, + "REL.L": 10783.590635701232, + "RIO.L": 11200.4897648273, + "RKT.L": 8889.410407039966, + "RMV.L": 12230.896082018293, + "RR.L": 10638.379928624654, + "RTO.L": 10492.693188511428, "SBRY.L": 0.0, - "SDR.L": 10273.124524006904, - "SGE.L": 37974.21159880986, + "SDR.L": 10332.289443790067, + "SGE.L": 38334.66923145163, "SGRO.L": 0.0, - "SHEL.L": 9.086918286251768e-13, - "SMDS.L": 10592.412318778135, + "SHEL.L": 9.032322912204664e-13, + "SMDS.L": 10678.694392950429, "SMIN.L": 0.0, - "SMT.L": 10768.689694369725, - "SN.L": 3333.651551807144, - "SPX.L": 8909.212907400082, - "SSE.L": 11122.102957656123, - "STAN.L": 10222.291302436468, - "SVT.L": 10749.245142840655, - "TSCO.L": 10670.56141162298, - "TW.L": 10787.855807319504, + "SMT.L": 10704.461906610168, + "SN.L": 3370.4197674520756, + "SPX.L": 8989.566575110564, + "SSE.L": 11160.91835052848, + "STAN.L": 10368.48801343486, + "SVT.L": 10781.683453343383, + "TSCO.L": 10697.447455318801, + "TW.L": 10722.99232570539, "ULVR.L": 8967.666513442577, - "UTG.L": 10412.837692030618, - "UU.L": 9762.93925155676, - "VOD.L": 10237.498826229408, - "VTY.L": 10584.000000000004, - "WEIR.L": 9899.91597612982, - "WPP.L": 10272.520341251144, - "WTB.L": 11728.086318817084 + "UTG.L": 10451.650186090374, + "UU.L": 9804.681034580046, + "VOD.L": 10325.348995500182, + "VTY.L": 10687.999999999996, + "WEIR.L": 10030.046317575412, + "WPP.L": 10365.676443999633, + "WTB.L": 11812.663864385473 + }, + "2024-07-16 07:00:00+00:00": { + "AAF.L": 21901.042350210097, + "AAL.L": 10395.09497642291, + "ABF.L": 9771.805945809734, + "ADM.L": 10347.422617232181, + "AHT.L": 15938.57603815961, + "ANTO.L": 19539.380269120044, + "AUTO.L": 10543.398583448698, + "AV.L": 13285.773123653515, + "AZN.L": 12189.071222875133, + "BA.L": 10324.011083960215, + "BARC.L": 10683.50700331885, + "BATS.L": 10225.29702233303, + "BDEV.L": 10158.660424833777, + "BEZ.L": 10227.856981716668, + "BKG.L": 9636.938193405535, + "BME.L": 10772.57073568327, + "BNZL.L": 9443.077304159362, + "BP.L": 1.3692898925392825e-12, + "BRBY.L": 9119.226072853773, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10233.35995173976, + "CPG.L": 0.0, + "CRDA.L": 11848.00026464342, + "CTEC.L": 41.94922333024149, + "DARK.L": 24733.600524902336, + "DCC.L": 22243.8458396635, + "DGE.L": 10077.846261341581, + "DPLM.L": 8481.414412015456, + "EDV.L": 7228.000000000004, + "ENT.L": 11225.416663137834, + "EXPN.L": 10877.940238590005, + "EZJ.L": 9606.771296088207, + "FCIT.L": 0.0, + "FRAS.L": 10104.917031319805, + "FRES.L": 10992.713294417576, + "GBPOUND": 1063.912098412153, + "GLEN.L": 10316.977636992002, + "GSK.L": 10533.600110000156, + "HIK.L": 11049.317311055034, + "HL.L": 10097.999999999996, + "HLMA.L": 10591.334027458819, + "HLN.L": 0.0, + "HSBA.L": 10014.116947616625, + "HWDN.L": 10372.237678666992, + "IAG.L": 10304.215181027083, + "ICG.L": 11179.745198197248, + "IHG.L": 16793.484858120275, + "III.L": 12075.93584504438, + "IMB.L": 10315.050323520589, + "IMI.L": 10951.873194829333, + "INF.L": 10212.793632840461, + "ITRK.L": 9496.650085832893, + "JD.L": 10525.521178755269, + "KGF.L": 10314.940432209329, + "LAND.L": 0.0, + "LGEN.L": 10469.167379417944, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28537.528551937143, + "MKS.L": 0.0, + "MNDI.L": 9763.689674986494, + "MNG.L": 10260.279778496391, + "MRO.L": 45714.42773118817, + "NG.L": 10452.608877216637, + "NWG.L": 10250.171220018796, + "NXT.L": 9007.946079663561, + "PHNX.L": 0.0, + "PRU.L": 10066.904613674971, + "PSH.L": 54263.009703337746, + "PSN.L": 10390.178037386146, + "PSON.L": 1022.8322429617649, + "REL.L": 10617.735634313194, + "RIO.L": 10859.790456391493, + "RKT.L": 8606.20434548174, + "RMV.L": 11928.483316215064, + "RR.L": 10690.390074638004, + "RTO.L": 10228.114226463545, + "SBRY.L": 0.0, + "SDR.L": 10439.86142833464, + "SGE.L": 38100.37177023448, + "SGRO.L": 0.0, + "SHEL.L": 8.940795373360993e-13, + "SMDS.L": 10820.806454530433, + "SMIN.L": 0.0, + "SMT.L": 10545.085524175758, + "SN.L": 3263.179138487691, + "SPX.L": 8889.124490472448, + "SSE.L": 10760.821223998028, + "STAN.L": 10385.686906056375, + "SVT.L": 10372.149783246476, + "TSCO.L": 10512.603084408796, + "TW.L": 10623.990059890895, + "ULVR.L": 8824.070590471356, + "UTG.L": 10496.007322158657, + "UU.L": 9368.711300781306, + "VOD.L": 10126.222466454994, + "VTY.L": 10528.000000000002, + "WEIR.L": 9834.85080540703, + "WPP.L": 10190.656513851318, + "WTB.L": 11856.96638825463 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 44a66952d..95c15a793 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10195,5 +10195,108 @@ "WEIR.L": 0.009999997982709861, "WPP.L": 0.009999991896959779, "WTB.L": 0.009999985428929502 + }, + "2024-07-16 07:00:00+00:00": { + "AAF.L": 0.021123071047419034, + "AAL.L": 0.009999999617034652, + "ABF.L": 0.009641897396512262, + "ADM.L": 0.010000024937235938, + "AHT.L": 0.015305759994411874, + "ANTO.L": 0.018836884449068107, + "AUTO.L": 0.010000010154731936, + "AV.L": 0.012535013853211156, + "AZN.L": 0.010000019346365163, + "BA.L": 0.010000005077281054, + "BARC.L": 0.010000000742757304, + "BATS.L": 0.01000000076804581, + "BDEV.L": 0.010000002273479247, + "BEZ.L": 0.010000006648965701, + "BKG.L": 0.010000001374171426, + "BME.L": 0.009999995893330359, + "BNZL.L": 0.00999998830888311, + "BP.L": 1.8539875521428908e-07, + "BRBY.L": 0.009999962055604626, + "BT-A.L": 2.20631770820437e-08, + "CCH.L": 6.78854950139953e-08, + "CNA.L": 0.009999955865862506, + "CPG.L": 8.41496663740326e-08, + "CRDA.L": 0.00999999741494445, + "CTEC.L": 3.962864722137566e-05, + "DARK.L": 0.024008726834614812, + "DCC.L": 0.020688200865635217, + "DGE.L": 0.009724171052294188, + "DPLM.L": 0.010000004995879013, + "EDV.L": 0.007487460319550921, + "ENT.L": 0.010662469445448184, + "EXPN.L": 0.010000001791766449, + "EZJ.L": 0.00926001011112211, + "FCIT.L": 2.554938534239859e-08, + "FRAS.L": 0.010000001045468944, + "FRES.L": 0.01000000019320875, + "GBPOUND": 1.3226090551324982e-07, + "GLEN.L": 0.009999881550461496, + "GSK.L": 0.009999992904139953, + "HIK.L": 0.010000005598563802, + "HL.L": 0.010000003874869637, + "HLMA.L": 0.010000004224970034, + "HLN.L": 8.588171465334678e-09, + "HSBA.L": 0.009999998270173244, + "HWDN.L": 0.009999999608935304, + "IAG.L": 0.009999783001396874, + "ICG.L": 0.010000012973694784, + "IHG.L": 0.015007482734339625, + "III.L": 0.010000005367147263, + "IMB.L": 0.010000007380757358, + "IMI.L": 0.009999993267504777, + "INF.L": 0.009999893552364685, + "ITRK.L": 0.00999999555187009, + "JD.L": 0.010000136192013918, + "KGF.L": 0.009999977807494707, + "LAND.L": 1.6810698578268047e-08, + "LGEN.L": 0.010000000218912473, + "LLOY.L": 6.514990949895024e-08, + "LMP.L": 4.664627728506548e-08, + "LSEG.L": 0.02692417843533328, + "MKS.L": 3.762440741483789e-08, + "MNDI.L": 0.009999998181604198, + "MNG.L": 0.009999998827277244, + "MRO.L": 0.04406304468290349, + "NG.L": 0.009999981878224285, + "NWG.L": 0.009999986681097844, + "NXT.L": 0.010000006102979424, + "PHNX.L": 2.680754354042045e-08, + "PRU.L": 0.009999996296112104, + "PSH.L": 0.052384678815562115, + "PSN.L": 0.010000000194323344, + "PSON.L": 0.0009858492144871878, + "REL.L": 0.009999995080573537, + "RIO.L": 0.010000003001343101, + "RKT.L": 0.009999986974813654, + "RMV.L": 0.011497561994479407, + "RR.L": 0.009999997521414925, + "RTO.L": 0.009999997372579807, + "SBRY.L": 4.1605601574644824e-08, + "SDR.L": 0.009999995935782859, + "SGE.L": 0.0366183136237238, + "SGRO.L": 5.223775142766598e-08, + "SHEL.L": 6.0130496039883995e-05, + "SMDS.L": 0.009999996096697375, + "SMIN.L": 6.747499891973899e-08, + "SMT.L": 0.009999981060069382, + "SN.L": 0.0031451326254392994, + "SPX.L": 0.00999997729674757, + "SSE.L": 0.00999999758665185, + "STAN.L": 0.009999995214948713, + "SVT.L": 0.010000001989045505, + "TSCO.L": 0.009999994908237511, + "TW.L": 0.009999998454527757, + "ULVR.L": 0.009999936780870173, + "UTG.L": 0.010000017055156218, + "UU.L": 0.009999976473444805, + "VOD.L": 0.009999998458760215, + "VTY.L": 0.009999999373728441, + "WEIR.L": 0.009999997387775959, + "WPP.L": 0.009999989163741554, + "WTB.L": 0.009999981909622263 } } \ No newline at end of file From ac728ecd28466454af2eb547371dde7ab12fa8ce Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 14:53:59 +0400 Subject: [PATCH 035/125] moving docstrings to new implementations --- cvxportfolio/forecast.py | 398 +++++++++++------- .../leverage_indicator_based_portfolio.py | 13 +- 2 files changed, 256 insertions(+), 155 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index d4cb784b5..dec764002 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -535,29 +535,112 @@ class SumPastVolumes(VectorSum, OnPastVolumes): """Sum non-nan past volumes.""" class HistoricalMeanReturn(BaseForecast): - """Test.""" + r"""Historical means of non-cash returns. - def __init__(self, **kwargs): - self._denominator = CountPastReturns( **kwargs) - self._numerator = SumPastReturns(**kwargs) + .. versionadded:: 1.2.0 - def values_in_time(self, **kwargs): - """Current value.""" + Added the ``half_life`` and ``rolling`` parameters. + + When both ``half_life`` and ``rolling`` are infinity, this is equivalent to + + .. code-block:: + + past_returns.iloc[:,:-1].mean() + + where ``past_returns`` is a time-indexed dataframe containing the past + returns (if in back-test that's relative to each point in time, ), and its + last column, which we skip over, are the cash returns. We use the same + logic as Pandas to handle ``np.nan`` values. + + :param half_life: Half-life of exponential smoothing, expressed as + Pandas Timedelta. If in back-test, that is with respect to each point + in time. Default ``np.inf``, meaning no exponential smoothing. + :type half_life: pandas.Timedelta or np.inf + :param rolling: Rolling window used: observations older than this Pandas + Timedelta are skipped over. If in back-test, that is with respect to + each point in time. Default ``np.inf``, meaning that all past is used. + :type rolling: pandas.Timedelta or np.inf + """ + def __init__(self, half_life=np.inf, rolling=np.inf): + self.half_life = half_life + self.rolling = rolling + self._numerator = SumPastReturns( + half_life=half_life, rolling=rolling) + self._denominator = CountPastReturns( + half_life=half_life, rolling=rolling) + + def values_in_time( # pylint: disable=arguments-differ + self, **kwargs): + """Mean of the past returns, excluding cash. + + :param kwargs: Unused arguments to :meth:`values_in_time`. + :type kwargs: dict + + :returns: Mean of the past returns, excluding cash. + :rtype: pd.Series + """ return self._numerator.current_value / self._denominator.current_value class HistoricalVariance(BaseForecast): - """Test.""" + r"""Historical variances of non-cash returns. - def __init__(self, kelly=True, **kwargs): + .. versionadded:: 1.2.0 + + Added the ``half_life`` and ``rolling`` parameters. + + When both ``half_life`` and ``rolling`` are infinity, this is equivalent to + + .. code-block:: + + past_returns.iloc[:,:-1].var(ddof=0) + + if you set ``kelly=False`` and + + .. code-block:: + + (past_returns**2).iloc[:,:-1].mean() + + otherwise (we use the same logic to handle ``np.nan`` values). + + :param half_life: Half-life of exponential smoothing, expressed as + Pandas Timedelta. If in back-test, that is with respect to each point + in time. Default ``np.inf``, meaning no exponential smoothing. + :type half_life: pandas.Timedelta or np.inf + :param rolling: Rolling window used: observations older than this Pandas + Timedelta are skipped over. If in back-test, that is with respect to + each point in time. Default ``np.inf``, meaning that all past is used. + :type rolling: pandas.Timedelta or np.inf + :param kelly: if ``True`` compute :math:`\mathbf{E}[r^2]`, else + :math:`\mathbf{E}[r^2] - {\mathbf{E}[r]}^2`. The second corresponds + to the classic definition of variance, while the first is what is + obtained by Taylor approximation of the Kelly gambling objective. + See discussion above. Default True. + :type kelly: bool + """ + def __init__(self, half_life=np.inf, rolling=np.inf, kelly=True): self.kelly = kelly - self._denominator = CountPastReturns(**kwargs) - self._numerator = SumPastReturnsSquared(**kwargs) + self.half_life = half_life + self.rolling = rolling + self._denominator = CountPastReturns( + half_life=half_life, rolling=rolling) + self._numerator = SumPastReturnsSquared( + half_life=half_life, rolling=rolling) if not self.kelly: - self._correction = HistoricalMeanReturn(**kwargs) + self._correction = HistoricalMeanReturn( + half_life=half_life, rolling=rolling) - def values_in_time(self, **kwargs): - """Current value.""" - result = self._numerator.current_value / self._denominator.current_value + def values_in_time( # pylint: disable=arguments-differ + self, **kwargs): + """Variance of the past returns, excluding cash. + + :param kwargs: Unused arguments to :meth:`values_in_time`. + :type kwargs: dict + + :returns: Variance of the past returns, excluding cash. + :rtype: pd.Series + """ + result = ( + self._numerator.current_value / self._denominator.current_value) if not self.kelly: result -= self._correction.current_value ** 2 return result @@ -598,7 +681,7 @@ def values_in_time(self, **kwargs): :returns: Standard deviation of the mean of past returns (excluding cash). - :rtype: numpy.array + :rtype: pd.Series """ variance = super().values_in_time(**kwargs) return np.sqrt(variance / self._denominator.current_value) @@ -624,14 +707,37 @@ def simulate(self, **kwargs): ) class HistoricalMeanVolume(BaseForecast): - """Test.""" + r"""Historical means of traded volume in units of value (e.g., dollars). - def __init__(self, **kwargs): - self._denominator = CountPastVolumes(**kwargs) - self._numerator = SumPastVolumes(**kwargs) + .. versionadded:: 1.2.0 - def values_in_time(self, **kwargs): - """Current value.""" + :param half_life: Half-life of exponential smoothing, expressed as + Pandas Timedelta. If in back-test, that is with respect to each point + in time. Default ``np.inf``, meaning no exponential smoothing. + :type half_life: pandas.Timedelta or np.inf + :param rolling: Rolling window used: observations older than this Pandas + Timedelta are skipped over. If in back-test, that is with respect to + each point in time. Default ``np.inf``, meaning that all past is used. + :type rolling: pandas.Timedelta or np.inf + """ + def __init__(self, half_life=np.inf, rolling=np.inf): + self.half_life = half_life + self.rolling = rolling + self._numerator = SumPastVolumes( + half_life=half_life, rolling=rolling) + self._denominator = CountPastVolumes( + half_life=half_life, rolling=rolling) + + def values_in_time( # pylint: disable=arguments-differ + self, **kwargs): + """Mean of the past volumes. + + :param kwargs: Unused arguments to :meth:`values_in_time`. + :type kwargs: dict + + :returns: Mean of the past volumes. + :rtype: pd.Series + """ return self._numerator.current_value / self._denominator.current_value class MatrixCount(VectorCount): # inheritance is for the min counts check @@ -933,37 +1039,37 @@ def _update_denominator(self, last_row): return ~(last_row.isnull()) -class OldHistoricalMeanReturn(BaseMeanForecast): - r"""Historical means of non-cash returns. +# class OldHistoricalMeanReturn(BaseMeanForecast): +# r"""Historical means of non-cash returns. - .. versionadded:: 1.2.0 +# .. versionadded:: 1.2.0 - Added the ``half_life`` and ``rolling`` parameters. +# Added the ``half_life`` and ``rolling`` parameters. - When both ``half_life`` and ``rolling`` are infinity, this is equivalent to +# When both ``half_life`` and ``rolling`` are infinity, this is equivalent to - .. code-block:: +# .. code-block:: - past_returns.iloc[:,:-1].mean() +# past_returns.iloc[:,:-1].mean() - where ``past_returns`` is a time-indexed dataframe containing the past - returns (if in back-test that's relative to each point in time, ), and its - last column, which we skip over, are the cash returns. We use the same - logic as Pandas to handle ``np.nan`` values. +# where ``past_returns`` is a time-indexed dataframe containing the past +# returns (if in back-test that's relative to each point in time, ), and its +# last column, which we skip over, are the cash returns. We use the same +# logic as Pandas to handle ``np.nan`` values. - :param half_life: Half-life of exponential smoothing, expressed as - Pandas Timedelta. If in back-test, that is with respect to each point - in time. Default ``np.inf``, meaning no exponential smoothing. - :type half_life: pandas.Timedelta or np.inf - :param rolling: Rolling window used: observations older than this Pandas - Timedelta are skipped over. If in back-test, that is with respect to - each point in time. Default ``np.inf``, meaning that all past is used. - :type rolling: pandas.Timedelta or np.inf - """ - # pylint: disable=arguments-differ - def _dataframe_selector(self, past_returns, **kwargs): - """Return dataframe to compute the historical means of.""" - return past_returns.iloc[:, :-1] +# :param half_life: Half-life of exponential smoothing, expressed as +# Pandas Timedelta. If in back-test, that is with respect to each point +# in time. Default ``np.inf``, meaning no exponential smoothing. +# :type half_life: pandas.Timedelta or np.inf +# :param rolling: Rolling window used: observations older than this Pandas +# Timedelta are skipped over. If in back-test, that is with respect to +# each point in time. Default ``np.inf``, meaning that all past is used. +# :type rolling: pandas.Timedelta or np.inf +# """ +# # pylint: disable=arguments-differ +# def _dataframe_selector(self, past_returns, **kwargs): +# """Return dataframe to compute the historical means of.""" +# return past_returns.iloc[:, :-1] class RegressionXtY(HistoricalMeanReturn): @@ -1155,93 +1261,93 @@ def solve_for_single_X(self, asset, X_last, quad_reg): # return df.multiply(regr_on_df, axis=0).dropna(how='all') -class OldHistoricalMeanVolume(BaseMeanForecast): - r"""Historical means of traded volume in units of value (e.g., dollars). +# class OldHistoricalMeanVolume(BaseMeanForecast): +# r"""Historical means of traded volume in units of value (e.g., dollars). - .. versionadded:: 1.2.0 +# .. versionadded:: 1.2.0 - :param half_life: Half-life of exponential smoothing, expressed as - Pandas Timedelta. If in back-test, that is with respect to each point - in time. Default ``np.inf``, meaning no exponential smoothing. - :type half_life: pandas.Timedelta or np.inf - :param rolling: Rolling window used: observations older than this Pandas - Timedelta are skipped over. If in back-test, that is with respect to - each point in time. Default ``np.inf``, meaning that all past is used. - :type rolling: pandas.Timedelta or np.inf - """ - # pylint: disable=arguments-differ - def _dataframe_selector(self, past_volumes, **kwargs): - """Return dataframe to compute the historical means of.""" - if past_volumes is None: - raise DataError( - f"{self.__class__.__name__} can only be used if MarketData" - + " provides market volumes.") - return past_volumes +# :param half_life: Half-life of exponential smoothing, expressed as +# Pandas Timedelta. If in back-test, that is with respect to each point +# in time. Default ``np.inf``, meaning no exponential smoothing. +# :type half_life: pandas.Timedelta or np.inf +# :param rolling: Rolling window used: observations older than this Pandas +# Timedelta are skipped over. If in back-test, that is with respect to +# each point in time. Default ``np.inf``, meaning that all past is used. +# :type rolling: pandas.Timedelta or np.inf +# """ +# # pylint: disable=arguments-differ +# def _dataframe_selector(self, past_volumes, **kwargs): +# """Return dataframe to compute the historical means of.""" +# if past_volumes is None: +# raise DataError( +# f"{self.__class__.__name__} can only be used if MarketData" +# + " provides market volumes.") +# return past_volumes -class OldHistoricalVariance(BaseMeanForecast): - r"""Historical variances of non-cash returns. +# class OldHistoricalVariance(BaseMeanForecast): +# r"""Historical variances of non-cash returns. - .. versionadded:: 1.2.0 +# .. versionadded:: 1.2.0 - Added the ``half_life`` and ``rolling`` parameters. +# Added the ``half_life`` and ``rolling`` parameters. - When both ``half_life`` and ``rolling`` are infinity, this is equivalent to +# When both ``half_life`` and ``rolling`` are infinity, this is equivalent to - .. code-block:: +# .. code-block:: - past_returns.iloc[:,:-1].var(ddof=0) +# past_returns.iloc[:,:-1].var(ddof=0) - if you set ``kelly=False`` and +# if you set ``kelly=False`` and - .. code-block:: +# .. code-block:: - (past_returns**2).iloc[:,:-1].mean() +# (past_returns**2).iloc[:,:-1].mean() - otherwise (we use the same logic to handle ``np.nan`` values). +# otherwise (we use the same logic to handle ``np.nan`` values). - :param half_life: Half-life of exponential smoothing, expressed as - Pandas Timedelta. If in back-test, that is with respect to each point - in time. Default ``np.inf``, meaning no exponential smoothing. - :type half_life: pandas.Timedelta or np.inf - :param rolling: Rolling window used: observations older than this Pandas - Timedelta are skipped over. If in back-test, that is with respect to - each point in time. Default ``np.inf``, meaning that all past is used. - :type rolling: pandas.Timedelta or np.inf - :param kelly: if ``True`` compute :math:`\mathbf{E}[r^2]`, else - :math:`\mathbf{E}[r^2] - {\mathbf{E}[r]}^2`. The second corresponds - to the classic definition of variance, while the first is what is - obtained by Taylor approximation of the Kelly gambling objective. - See discussion above. - :type kelly: bool - """ +# :param half_life: Half-life of exponential smoothing, expressed as +# Pandas Timedelta. If in back-test, that is with respect to each point +# in time. Default ``np.inf``, meaning no exponential smoothing. +# :type half_life: pandas.Timedelta or np.inf +# :param rolling: Rolling window used: observations older than this Pandas +# Timedelta are skipped over. If in back-test, that is with respect to +# each point in time. Default ``np.inf``, meaning that all past is used. +# :type rolling: pandas.Timedelta or np.inf +# :param kelly: if ``True`` compute :math:`\mathbf{E}[r^2]`, else +# :math:`\mathbf{E}[r^2] - {\mathbf{E}[r]}^2`. The second corresponds +# to the classic definition of variance, while the first is what is +# obtained by Taylor approximation of the Kelly gambling objective. +# See discussion above. +# :type kelly: bool +# """ - def __init__(self, rolling=np.inf, half_life=np.inf, kelly=True): - super().__init__(rolling=rolling, half_life=half_life) - self.kelly = kelly +# def __init__(self, rolling=np.inf, half_life=np.inf, kelly=True): +# super().__init__(rolling=rolling, half_life=half_life) +# self.kelly = kelly - if not self.kelly: - self.meanforecaster = HistoricalMeanReturn( - half_life=_resolve_hyperpar(self.half_life), - rolling=_resolve_hyperpar(self.rolling)) +# if not self.kelly: +# self.meanforecaster = HistoricalMeanReturn( +# half_life=_resolve_hyperpar(self.half_life), +# rolling=_resolve_hyperpar(self.rolling)) - def values_in_time(self, **kwargs): - """Obtain current value either by update or from scratch. +# def values_in_time(self, **kwargs): +# """Obtain current value either by update or from scratch. - :param kwargs: All arguments to :meth:`values_in_time`. - :type kwargs: dict +# :param kwargs: All arguments to :meth:`values_in_time`. +# :type kwargs: dict - :returns: Variances of past returns (excluding cash). - :rtype: numpy.array - """ - result = super().values_in_time(**kwargs) - if not self.kelly: - result -= self.meanforecaster.current_value**2 - return result +# :returns: Variances of past returns (excluding cash). +# :rtype: numpy.array +# """ +# result = super().values_in_time(**kwargs) +# if not self.kelly: +# result -= self.meanforecaster.current_value**2 +# return result - # pylint: disable=arguments-differ - def _dataframe_selector(self, past_returns, **kwargs): - """Return dataframe to compute the historical means of.""" - return past_returns.iloc[:, :-1]**2 +# # pylint: disable=arguments-differ +# def _dataframe_selector(self, past_returns, **kwargs): +# """Return dataframe to compute the historical means of.""" +# return past_returns.iloc[:, :-1]**2 class OldHistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): @@ -1304,46 +1410,46 @@ def simulate(self, **kwargs): current_prices=kwargs['current_prices'] ) -class OldHistoricalMeanError(HistoricalVariance): - r"""Historical standard deviations of the mean of non-cash returns. +# class OldHistoricalMeanError(HistoricalVariance): +# r"""Historical standard deviations of the mean of non-cash returns. - .. versionadded:: 1.2.0 +# .. versionadded:: 1.2.0 - Added the ``half_life`` and ``rolling`` parameters. +# Added the ``half_life`` and ``rolling`` parameters. - For a given time series of past returns :math:`r_{t-1}, r_{t-2}, - \ldots, r_0` this is :math:`\sqrt{\text{Var}[r]/t}`. When there are - missing values we ignore them, both to compute the variance and the - count. +# For a given time series of past returns :math:`r_{t-1}, r_{t-2}, +# \ldots, r_0` this is :math:`\sqrt{\text{Var}[r]/t}`. When there are +# missing values we ignore them, both to compute the variance and the +# count. - :param half_life: Half-life of exponential smoothing, expressed as - Pandas Timedelta. If in back-test, that is with respect to each point - in time. Default ``np.inf``, meaning no exponential smoothing. - :type half_life: pandas.Timedelta or np.inf - :param rolling: Rolling window used: observations older than this Pandas - Timedelta are skipped over. If in back-test, that is with respect to - each point in time. Default ``np.inf``, meaning that all past is used. - :type rolling: pandas.Timedelta or np.inf - :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. - Default False. - :type kelly: bool - """ +# :param half_life: Half-life of exponential smoothing, expressed as +# Pandas Timedelta. If in back-test, that is with respect to each point +# in time. Default ``np.inf``, meaning no exponential smoothing. +# :type half_life: pandas.Timedelta or np.inf +# :param rolling: Rolling window used: observations older than this Pandas +# Timedelta are skipped over. If in back-test, that is with respect to +# each point in time. Default ``np.inf``, meaning that all past is used. +# :type rolling: pandas.Timedelta or np.inf +# :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. +# Default False. +# :type kelly: bool +# """ - def __init__(self, rolling=np.inf, half_life=np.inf, kelly=False): - super().__init__(rolling=rolling, half_life=half_life, kelly=kelly) +# def __init__(self, rolling=np.inf, half_life=np.inf, kelly=False): +# super().__init__(rolling=rolling, half_life=half_life, kelly=kelly) - def values_in_time(self, **kwargs): - """Obtain current value either by update or from scratch. +# def values_in_time(self, **kwargs): +# """Obtain current value either by update or from scratch. - :param kwargs: All arguments to :meth:`values_in_time`. - :type kwargs: dict +# :param kwargs: All arguments to :meth:`values_in_time`. +# :type kwargs: dict - :returns: Standard deviation of the mean of past returns (excluding - cash). - :rtype: numpy.array - """ - variance = super().values_in_time(**kwargs) - return np.sqrt(variance / self._denominator.values) +# :returns: Standard deviation of the mean of past returns (excluding +# cash). +# :rtype: numpy.array +# """ +# variance = super().values_in_time(**kwargs) +# return np.sqrt(variance / self._denominator.values) class OldHistoricalCovariance(BaseMeanVarForecast): @@ -1631,7 +1737,7 @@ def __init__(self, num_factors, svd_iters=10, svd='numpy'): # # matches original 2016 method from example # notebooks with new heuristic for NaNs. can probably be improved - # by terminating early if idyosyncratic becomes negative + # by terminating early if idiosyncratic becomes negative @staticmethod def build_low_rank_model(rets, num_factors=10, iters=10, svd='numpy'): diff --git a/examples/user_contributed/leverage_indicator_based_portfolio.py b/examples/user_contributed/leverage_indicator_based_portfolio.py index d847460ca..d03609ca9 100644 --- a/examples/user_contributed/leverage_indicator_based_portfolio.py +++ b/examples/user_contributed/leverage_indicator_based_portfolio.py @@ -35,9 +35,9 @@ from cvxportfolio.estimator import DataEstimator from cvxportfolio.utils import set_pd_read_only + class ForecastIndicator(object): - """ - A simple forecast indicator that predicts future market stress based on historical volatility. + """A simple forecast indicator that predicts future market stress based on historical volatility. The indicator provides a forecast value between 0 and 1, where a higher value indicates a higher predicted market stress. """ @@ -45,15 +45,12 @@ def __init__(self, lookback_period=252): self.lookback_period = lookback_period def calculate_indicator(self, returns): - """ - Calculate the forecast indicator based on the volatility of the returns over the lookback period. - """ + """Calculate the forecast indicator based on the volatility of the returns over the lookback period.""" volatility = returns[-self.lookback_period:].std() indicator = np.clip(volatility / 0.05, 0, 1) # Normalize and clip the indicator value return indicator - class StressModel(object): """A simple stress model that increases transaction costs (bid-ask spread) under certain conditions. @@ -149,9 +146,7 @@ def _get_exchange_rate(self): class LeverageBasedOnIndicator(cvx.policies.Policy): - """ - A policy that adjusts the leverage of the portfolio based on a forecast indicator. - """ + """A policy that adjusts the leverage of the portfolio based on a forecast indicator.""" def __init__(self, target_weights, forecast_indicator, max_leverage=3.0, min_leverage=1.0): self.target_weights = DataEstimator(target_weights, data_includes_cash=True) self.forecast_indicator = forecast_indicator From 9b8c1b20925dda35b3442c3d6aa4fbe6cc5f9ad3 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 18:00:35 +0400 Subject: [PATCH 036/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-16 --- .../dow30_daily_initial_holdings.json | 57 +++++++++++++++---- .../dow30_daily_target_weights.json | 33 +++++++++++ 2 files changed, 78 insertions(+), 12 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index eca11fb50..2993b1ea8 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4521,36 +4521,69 @@ "WMT": 0.0003876873752615693 }, "2024-07-15 13:30:00+00:00": { - "AAPL": 230583.9982589919, - "AMGN": 20971.21731927905, - "AMZN": 227228.7429402873, + "AAPL": 224742.67300733703, + "AMGN": 20904.867548712205, + "AMZN": 227168.00367582645, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, - "CRM": 80827.04646391024, - "CSCO": 44874.517114067814, + "CRM": 80179.85301924573, + "CSCO": 44846.122666919706, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, "GS": 0.0, - "HD": 110052.17295619613, + "HD": 110245.21757660306, "HON": 0.0, "IBM": 0.0, "INTC": 0.0, "JNJ": 0.0, "JPM": 0.0, "KO": 0.0, - "MCD": 1.1944345603279958e-12, + "MCD": 1.1956589193613004e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 242230.85868941748, - "NKE": 9.963806627648186e-13, + "MSFT": 242300.2949762288, + "NKE": 1.002113238846103e-12, "PG": 0.0, "TRV": 0.0, - "UNH": 108287.44303929183, + "UNH": 105662.05676323477, "USDOLLAR": -137.82252847615771, - "V": 34437.49509907215, + "V": 34446.56584779778, "VZ": 0.0, - "WMT": 0.0003843595951683625 + "WMT": 0.0003840267875385279 + }, + "2024-07-16 13:30:00+00:00": { + "AAPL": 229290.37197723566, + "AMGN": 20881.487869625023, + "AMZN": 228455.14853479533, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 80119.86810861834, + "CSCO": 44902.911561215915, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 110334.08562038191, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1820023472786773e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 242658.23667074423, + "NKE": 9.760436071617932e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 110282.8276350433, + "USDOLLAR": -137.85093164478002, + "V": 34806.923394749545, + "VZ": 0.0, + "WMT": 0.0003872436599651366 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 5e8231173..9390532f7 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4552,5 +4552,38 @@ "V": 0.03132491815983915, "VZ": 4.737677490895789e-09, "WMT": 3.665902829035781e-08 + }, + "2024-07-16 13:30:00+00:00": { + "AAPL": 0.20741008146830722, + "AMGN": 0.01892413882008177, + "AMZN": 0.20931963763759848, + "AXP": 7.046145270425135e-09, + "BA": 1.2046888199877128e-08, + "CAT": 6.121160461534108e-09, + "CRM": 0.07275438635310993, + "CSCO": 0.04076174213812072, + "CVX": 6.813481235288629e-09, + "DIS": 8.990601183924077e-09, + "DOW": 9.486753326235443e-09, + "GS": 7.147824736644372e-09, + "HD": 0.10015852541879121, + "HON": 4.2899919948181525e-09, + "IBM": 3.1297460391573896e-09, + "INTC": 8.054326658101402e-09, + "JNJ": 9.551369503819873e-09, + "JPM": 1.1731886185274146e-08, + "KO": 7.298596277194232e-09, + "MCD": 1.9430158641967627e-08, + "MMM": 4.196256373736172e-09, + "MRK": 8.392830837320434e-09, + "MSFT": 0.2202791966964656, + "NKE": 1.7885744441846882e-08, + "PG": 5.6522509608808244e-09, + "TRV": 5.067834665860942e-09, + "UNH": 0.09879536559199163, + "USDOLLAR": 5.492783012960413e-09, + "V": 0.03159671891486125, + "VZ": 4.453265899021993e-09, + "WMT": 3.468077621079035e-08 } } \ No newline at end of file From 6a949b21f9ff80523227b2e4ac857d13f671c906 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 18:01:42 +0400 Subject: [PATCH 037/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-16 --- .../ndx100_daily_initial_holdings.json | 240 +++++++++++++----- .../ndx100_daily_target_weights.json | 104 ++++++++ 2 files changed, 276 insertions(+), 68 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index a1f5d48f0..309cde2e6 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14143,107 +14143,211 @@ "ZS": 18945.49693972058 }, "2024-07-15 13:30:00+00:00": { - "AAPL": 8456.772026443852, + "AAPL": 8242.538791013221, "ABNB": 0.0, - "ADBE": 11454.091052264783, + "ADBE": 11429.965703710432, "ADI": 0.0, "ADP": 0.0, - "ADSK": 86.43374992781393, + "ADSK": 86.49517623833181, "AEP": 0.0, - "AMAT": -63.040880813260706, - "AMD": -2.2827578393737052e-11, - "AMGN": 37789.940466268454, - "AMZN": 19559.607259028384, - "ANSS": 11.730738939827365, - "ARM": 75939.87025451665, + "AMAT": -62.75469449060769, + "AMD": -2.2470008271108054e-11, + "AMGN": 37670.37879078257, + "AMZN": 19554.378888080744, + "ANSS": 11.767539254396299, + "ARM": 75552.05694580077, "ASML": 19.173790379273647, - "AVGO": -36.76419539024638, + "AVGO": -36.793836435287176, "AZN": 0.0, "BIIB": 14564.727699597586, - "BKNG": 11393.288452673356, + "BKNG": 11370.160340557173, "BKR": 0.0, - "CCEP": 19141.545034296632, - "CDNS": -98.85378439140995, - "CDW": 8876.020683366196, - "CEG": 83771.79829101726, + "CCEP": 19203.74283932665, + "CDNS": -99.06404903561504, + "CDW": 8867.87051992249, + "CEG": 83825.84437687209, "CHTR": 19585.35183925879, - "CMCSA": 35811.878070490486, + "CMCSA": 35849.32925766886, "COST": 0.0, - "CPRT": -0.8714344933694417, - "CRWD": 13938.796021212527, - "CSCO": 59713.93586324352, - "CSGP": 5777.872773577592, + "CPRT": -0.8720625686407373, + "CRWD": 13903.22613542008, + "CSCO": 59676.15174198904, + "CSGP": 5806.218422576899, "CSX": 0.0, "CTAS": 0.0, "CTSH": 27830.98581423917, "DASH": 0.0, - "DDOG": 17957.938272344934, - "DLTR": 29779.59841969134, - "DXCM": 10808.788199347675, - "EA": 13733.331208587088, + "DDOG": 17748.237640860094, + "DLTR": 29892.362673830452, + "DXCM": 10858.290872713495, + "EA": 13818.223844163393, "EXC": 0.0, - "FANG": 27426.782567904305, - "FAST": 18208.283244120026, - "FTNT": 25744.166294765208, - "GEHC": 2445.7623823323756, - "GFS": 22747.994746886907, - "GILD": 29952.710860841864, - "GOOG": -61.258315844060014, - "GOOGL": -2.4061353601077466e-12, + "FANG": 27315.737300824778, + "FAST": 18238.941780996964, + "FTNT": 25679.481802682374, + "GEHC": 2452.483225775683, + "GFS": 22840.228192660477, + "GILD": 29829.062269067177, + "GOOG": -61.26815613694945, + "GOOGL": -2.4052257220818593e-12, "HON": 0.0, "IDXX": 0.0, - "ILMN": 5618.952179864999, - "INTC": 2.21929734880237, + "ILMN": 5617.984106057745, + "INTC": 2.205866501506285, "INTU": -99.85443793646901, - "ISRG": 9073.469553229566, + "ISRG": 9076.739346825409, "KDP": 0.0, "KHC": 0.0, - "KLAC": 17890.996890881925, + "KLAC": 17874.324395458523, "LIN": 0.0, "LRCX": -11.30847150915968, - "LULU": 21712.645115784646, + "LULU": 21829.645714649017, "MAR": 0.0, - "MCHP": 12212.514597506966, + "MCHP": 12228.359935686478, "MDB": 25923.53045085092, "MDLZ": 0.0, "MELI": 22626.22915577496, - "META": -135.32747444676522, - "MNST": 17904.78886901006, - "MRNA": 20022.4154496578, - "MRVL": 0.0, - "MSFT": 44.354072793243965, - "MU": 9.890904245390665, - "NFLX": 16162.015114890159, - "NVDA": 19.572372876228954, - "NXPI": 21097.379081048228, - "ODFL": 9357.419055883547, - "ON": -3.2836311737679567, - "ORLY": 27870.396052519878, - "PANW": -7.778615912150111, - "PAYX": 6659.1614801331325, - "PCAR": 0.0, - "PDD": 27047.75467697083, - "PEP": 26328.755907515057, - "PYPL": 8127.00010299683, - "QCOM": -7.680963533349272, - "REGN": 16499.320671419588, - "ROP": 14398.401351562394, - "ROST": 9148.893714007532, - "SBUX": 32728.95999855564, - "SNPS": 0.0, - "TEAM": 12879.982617433909, - "TMUS": 3983.247250256712, - "TSLA": 2066.1121904993774, - "TTD": 40041.62423081573, + "META": -135.38988956607722, + "MNST": 18018.22374261372, + "MRNA": 20081.937182716534, + "MRVL": 0.0, + "MSFT": 44.36678703674038, + "MU": 9.865051175265588, + "NFLX": 16164.510569609922, + "NVDA": 19.358624854692994, + "NXPI": 20971.635146084147, + "ODFL": 9297.786468518205, + "ON": -3.3357042877515806, + "ORLY": 28066.027962213808, + "PANW": -7.858957165752179, + "PAYX": 6625.557723398647, + "PCAR": 0.0, + "PDD": 28054.338650209793, + "PEP": 26389.027328016462, + "PYPL": 8136.4500617981, + "QCOM": -7.648093302797383, + "REGN": 16540.821354519012, + "ROP": 14411.305919951243, + "ROST": 9229.184032576226, + "SBUX": 32702.739438918437, + "SNPS": 0.0, + "TEAM": 12869.343216291607, + "TMUS": 4000.4036889664308, + "TSLA": 2003.676391529931, + "TTD": 39913.234379690344, "TTWO": 9854.121781161068, "TXN": 0.0, "USDOLLAR": -1299.7048220607255, "VRSK": 0.0, "VRTX": 11637.686753394826, - "WBA": 217.93000507354736, + "WBA": 218.50000000000006, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, - "ZS": 20165.325543793453 + "ZS": 20105.575823271694 + }, + "2024-07-16 13:30:00+00:00": { + "AAPL": 8409.327699713334, + "ABNB": 0.0, + "ADBE": 11551.411058629881, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 86.95589439675526, + "AEP": 0.0, + "AMAT": -63.67255612717176, + "AMD": -2.2235545622945072e-11, + "AMGN": 37628.24882439226, + "AMZN": 19665.174941437097, + "ANSS": 11.74610302482013, + "ARM": 75112.5449523926, + "ASML": 18.989871492180868, + "AVGO": -36.793836435287176, + "AZN": 0.0, + "BIIB": 14041.167056369184, + "BKNG": 11625.919466329851, + "BKR": 0.0, + "CCEP": 18877.200902762055, + "CDNS": -99.55674157130763, + "CDW": 9033.585377724232, + "CEG": 82667.70891662757, + "CHTR": 20438.558086212153, + "CMCSA": 36448.53396635588, + "COST": 0.0, + "CPRT": -0.8595013626976052, + "CRWD": 14162.329026068088, + "CSCO": 59751.719984498, + "CSGP": 5829.200859929761, + "CSX": 0.0, + "CTAS": 0.0, + "CTSH": 28375.700245548895, + "DASH": 0.0, + "DDOG": 18225.410994454895, + "DLTR": 28661.697737796167, + "DXCM": 10750.717322602934, + "EA": 13835.298185587568, + "EXC": 0.0, + "FANG": 28075.660923290307, + "FAST": 19010.97426298963, + "FTNT": 25920.968708797296, + "GEHC": 2457.676520046865, + "GFS": 22940.84664252947, + "GILD": 29986.821490221468, + "GOOG": -61.96028509984144, + "GOOGL": -2.43544208476821e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 5662.022233988295, + "INTC": 2.196912359333467, + "INTU": -102.66208861261812, + "ISRG": 9008.892532922715, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 17949.13821208267, + "LIN": 0.0, + "LRCX": -11.352656531565431, + "LULU": 21349.642964329316, + "MAR": 0.0, + "MCHP": 12241.563880471209, + "MDB": 26158.008324159855, + "MDLZ": 0.0, + "MELI": 22370.448366690314, + "META": -136.10365482381462, + "MNST": 17649.56412204597, + "MRNA": 20367.972247772537, + "MRVL": 0.0, + "MSFT": 44.4323285291009, + "MU": 9.629412563400493, + "NFLX": 16518.95197798315, + "NVDA": 19.234300393278872, + "NXPI": 21360.845174317925, + "ODFL": 9569.065739592314, + "ON": -3.326157533634382, + "ORLY": 28227.11993041645, + "PANW": -7.9544790261609934, + "PAYX": 6807.018351600841, + "PCAR": 0.0, + "PDD": 27008.358649817834, + "PEP": 25916.376834879437, + "PYPL": 8207.999897003176, + "QCOM": -7.922386807098653, + "REGN": 16357.977898218714, + "ROP": 14431.436227500206, + "ROST": 8987.703291080556, + "SBUX": 31531.506650841533, + "SNPS": 0.0, + "TEAM": 12762.955698247484, + "TMUS": 4054.5476851187555, + "TSLA": 2060.9059330698396, + "TTD": 40523.08540727202, + "TTWO": 9882.394928256559, + "TXN": 0.0, + "USDOLLAR": -1300.0429759512472, + "VRSK": 0.0, + "VRTX": 11745.077353623634, + "WBA": 222.86999130249035, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 20073.31231134864 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index d3779da36..60def6024 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14038,5 +14038,109 @@ "WDAY": 2.699468888519813e-08, "XEL": 1.031646212798368e-07, "ZS": 0.01771975753487532 + }, + "2024-07-16 13:30:00+00:00": { + "AAPL": 0.007403319400168107, + "ABNB": 1.0838805903879323e-08, + "ADBE": 0.010174202526531527, + "ADI": 8.321050116805056e-08, + "ADP": 1.515074483084132e-07, + "ADSK": 2.7639444528568778e-08, + "AEP": 9.035833485724627e-09, + "AMAT": 4.17204690193729e-08, + "AMD": 5.258488649404862e-09, + "AMGN": 0.033516001732377315, + "AMZN": 0.017585590107645613, + "ANSS": 4.359870796037481e-08, + "ARM": 0.06626960065561205, + "ASML": 1.8290090742994163e-08, + "AVGO": 1.0588517513146229e-08, + "AZN": 4.570408845118984e-08, + "BIIB": 0.013648592734594223, + "BKNG": 0.009059169895544459, + "BKR": 1.0673163923582324e-07, + "CCEP": 0.01587991537018217, + "CDNS": 1.0400465786259425e-08, + "CDW": 0.008476007620446249, + "CEG": 0.07393702470868294, + "CHTR": 0.018572590901933354, + "CMCSA": 0.03203574418017929, + "COST": 1.108539803080199e-08, + "CPRT": 9.428829121529341e-08, + "CRWD": 0.012670859698152803, + "CSCO": 0.05304101387964069, + "CSGP": 0.005200484931129319, + "CSX": 0.0008093264834988273, + "CTAS": 1.6484055246047624e-08, + "CTSH": 0.02462158216272987, + "DASH": 9.29328428782553e-09, + "DDOG": 0.016754747645415288, + "DLTR": 0.02594978726886862, + "DXCM": 0.009407208418679534, + "EA": 0.012324985393884089, + "EXC": 2.8302617162036525e-08, + "FANG": 0.02549542967639848, + "FAST": 0.01875266985608793, + "FTNT": 0.022855057498794854, + "GEHC": 0.002200201886666539, + "GFS": 0.02100042864545995, + "GILD": 0.026895879132639848, + "GOOG": 2.0221517271843125e-07, + "GOOGL": 8.592174211454151e-08, + "HON": 3.3517868134610576e-08, + "IDXX": 2.4077726330128697e-08, + "ILMN": 0.005167959016086042, + "INTC": 2.7925670479311304e-08, + "INTU": 5.9214037169763394e-08, + "ISRG": 0.008022621776135073, + "KDP": 4.153505667298783e-07, + "KHC": 2.192147614642537e-08, + "KLAC": 0.014552505100003107, + "LIN": 5.580250506075962e-08, + "LRCX": 3.0148339099805944e-08, + "LULU": 0.019258443156182966, + "MAR": 6.969805162525667e-08, + "MCHP": 0.010919104727058824, + "MDB": 0.02266621486189427, + "MDLZ": 8.793481782318235e-08, + "MELI": 0.019568674974783054, + "META": 1.0315278844299862e-08, + "MNST": 0.015889141456659834, + "MRNA": 0.01837562431957786, + "MRVL": 8.710644770461113e-09, + "MSFT": 2.4415241141369638e-08, + "MU": 1.003755068302022e-08, + "NFLX": 0.014783421508371312, + "NVDA": 6.230651215064241e-08, + "NXPI": 0.018688331810584657, + "ODFL": 0.008499511777280616, + "ON": 1.9664088026930397e-07, + "ORLY": 0.025062217479617555, + "PANW": 1.8507961962189922e-08, + "PAYX": 0.0061925224022391845, + "PCAR": 1.0978845986151755e-08, + "PDD": 0.02490332102080592, + "PEP": 0.023384425818588975, + "PYPL": 0.007426834600900881, + "QCOM": 4.181477569185491e-08, + "REGN": 0.014301602079614867, + "ROP": 0.013151624563531295, + "ROST": 0.008020986994747358, + "SBUX": 0.02813109902026388, + "SNPS": 4.961501372381801e-09, + "TEAM": 0.010550737619097212, + "TMUS": 0.003623729332781724, + "TSLA": 0.001228841721569352, + "TTD": 0.03578154356717003, + "TTWO": 0.008815903370405595, + "TXN": 2.6724411547552597e-08, + "USDOLLAR": 3.153416451506189e-07, + "VRSK": 1.3075762581067057e-07, + "VRTX": 0.010685737398596715, + "WBA": 0.0003360526609402384, + "WBD": 1.6609661159006533e-08, + "WDAY": 2.3482360424391337e-08, + "XEL": 7.803743173657076e-08, + "ZS": 0.017471026104118857 } } \ No newline at end of file From 012fb26d3c61374ead840b09877da966c0969c38 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 18:06:40 +0400 Subject: [PATCH 038/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-16 --- .../sp500_daily_initial_holdings.json | 931 ++++++++++++++---- .../sp500_daily_target_weights.json | 505 ++++++++++ 2 files changed, 1223 insertions(+), 213 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index b7e7a4821..0c958292a 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -67793,172 +67793,172 @@ }, "2024-07-15 13:30:00+00:00": { "A": 0.0, - "AAL": 624.8397967497334, - "AAPL": 50845.88836800433, - "ABBV": 4565.996848036863, + "AAL": 625.4254144570717, + "AAPL": 49557.82252688187, + "ABBV": 4603.030731473501, "ABNB": 0.0, - "ABT": 3338.0486090489517, + "ABT": 3347.3629278198214, "ACGL": 0.0, - "ACN": 2.48733409807273e-13, - "ADBE": 11611.191293269047, + "ACN": 2.47110554209924e-13, + "ADBE": 11586.735050010357, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, - "ADSK": -16.20076001103719, + "ADSK": -16.21227348714918, "AEE": 0.0, "AEP": 0.0, "AES": 0.0, - "AFL": 3484.0511261385523, + "AFL": 3475.7968132405917, "AIG": 0.0, - "AIZ": 1.4454234691129144, + "AIZ": 1.4404548904371424, "AJG": 0.0, - "AKAM": 191.04178097847708, + "AKAM": 190.68102165212852, "ALB": 0.0, "ALGN": 1185.0070579698722, - "ALL": 6.45441924423564e-14, + "ALL": 6.432413405459914e-14, "ALLE": 0.0, - "AMAT": 2374.0304485463107, + "AMAT": 2363.253076225827, "AMCR": 0.0, - "AMD": 29737.200428428645, + "AMD": 29271.398308710435, "AME": 0.0, - "AMGN": 6521.657062110569, - "AMP": 9.847656770029404, - "AMT": 629.8318621939867, - "AMZN": 37383.917277570654, - "ANET": 3935.330485512623, - "ANSS": 650.1937307150853, - "AON": 17.244067767772066, + "AMGN": 6501.023522187787, + "AMP": 9.827177009415873, + "AMT": 631.661375624259, + "AMZN": 37373.92438842853, + "ANET": 3901.158819170918, + "ANSS": 652.2334431273894, + "AON": 17.206553413245626, "AOS": 0.0, "APA": 0.0, "APD": 0.0, - "APH": 27.96893106029292, - "APTV": 2.465557028115122e-14, + "APH": 27.86522339430723, + "APTV": 2.4888299252589244e-14, "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 19770.952075978814, + "AVGO": 19786.892359038535, "AVY": 0.0, "AWK": 0.0, - "AXON": 4631.428244074785, + "AXON": 4598.2761386501115, "AXP": 0.0, "AZO": 1.7137533486482717e-12, - "BA": -1.0993394743254087e-12, + "BA": -1.092210228230686e-12, "BAC": 0.0, "BALL": 0.0, "BAX": 0.0, "BBWI": 0.0, - "BBY": 506.0299257013149, + "BBY": 508.8611671018448, "BDX": 0.0, - "BEN": 189.12481509276557, + "BEN": 188.15162572308162, "BF-B": 0.0, - "BG": 1686.1937913692984, + "BG": 1685.890235941016, "BIIB": 2504.7648361793367, "BIO": 0.0, "BK": 0.0, - "BKNG": 3794.5343184875646, + "BKNG": 3786.8315015606318, "BKR": 0.0, - "BLDR": 347.05162379354454, - "BLK": 9.520427117063212e-13, - "BMY": 82.19698019746397, + "BLDR": 344.6595704091433, + "BLK": 9.49737095675991e-13, + "BMY": 81.85305577423857, "BR": 0.0, "BRK-B": 0.0, - "BRO": 0.3119113847293338, + "BRO": 0.31124730443189313, "BSX": 0.0, "BWA": 0.0, - "BX": 1409.0749898299234, + "BX": 1404.4053025447345, "BXP": 0.0, "C": 0.0, "CAG": 0.0, "CAH": 0.0, - "CARR": 20518.80675780529, + "CARR": 20137.416297623033, "CAT": 0.0, - "CB": 813.7863973645505, + "CB": 810.8673730992334, "CBOE": 0.0, "CBRE": 4537.529772091698, - "CCI": 299.3770306468856, + "CCI": 300.01443808930946, "CCL": 0.0, "CDNS": 0.0, - "CDW": 398.26278680810543, - "CE": -2.7533070792715295e-14, - "CEG": 39461.10156877501, - "CF": 9507.085640437126, + "CDW": 397.8970928871669, + "CE": -2.7531136314934974e-14, + "CEG": 39486.56023298923, + "CF": 9554.424741648556, "CFG": 0.0, - "CHD": 2529.2269327917757, + "CHD": 2531.1708543298196, "CHRW": 0.0, "CHTR": 7157.782078424853, - "CI": 3.9272062389733146e-13, + "CI": 3.906088492164807e-13, "CINF": 0.015237102891186426, - "CL": 9.636646099549527, - "CLX": 15.242641896705235, - "CMCSA": 6165.87022029415, - "CME": 4556.390568674554, - "CMG": 5905.722916575555, + "CL": 9.634681571263222, + "CLX": 15.284101156614282, + "CMCSA": 6172.318336734267, + "CME": 4501.928666764075, + "CMG": 5897.541641302348, "CMI": 0.0, "CMS": 0.0, - "CNC": 876.1270608242636, + "CNC": 879.8872746899563, "CNP": 0.0, - "COF": 8770.215007322764, + "COF": 8620.120921356194, "COO": 0.0, "COP": 0.0, "COR": 3350.4800608758505, "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 767.5445796082189, + "CPRT": 768.0977775522261, "CPT": 0.0, "CRL": 0.0, - "CRM": 7774.029719638929, - "CRWD": 4094.9698791503897, - "CSCO": 7005.923631053092, - "CSGP": -7.610014688840143e-14, + "CRM": 7711.78197840266, + "CRWD": 4084.520080566407, + "CSCO": 7001.490617818433, + "CSGP": -7.647348637458028e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, "CTSH": 11296.103139533003, - "CTVA": 107.02084561467252, + "CTVA": 107.18232157250257, "CVS": 0.0, - "CVX": -5.704970986638901e-13, - "CZR": 9385.849938537025, + "CVX": -5.655536363034381e-13, + "CZR": 9538.465236780075, "D": 0.0, - "DAL": 634.9697103291251, + "DAL": 635.1152877480395, "DAY": 0.0, "DD": 0.0, - "DE": 1.0309449882585609e-13, + "DE": 1.0317074487373629e-13, "DECK": 874.7455897126838, - "DFS": 3475.08543931573, + "DFS": 3405.0546856193805, "DG": 0.0, "DGX": 0.0, - "DHI": -6.951933237313757, - "DHR": 2459.392788554532, - "DIS": -4.322156889085744, - "DLR": 3.2279377436020286e-14, - "DLTR": 959.8636380238185, + "DHI": -6.941548649861375, + "DHR": 2462.387209659704, + "DIS": -4.313275237520774, + "DLR": 3.216157962354458e-14, + "DLTR": 963.4982843239994, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, - "DPZ": 1487.0850720751748, - "DRI": 2.4101033131120695, + "DPZ": 1486.7220880530508, + "DRI": 2.3994781196555546, "DTE": 0.0, - "DUK": 1.1899775191508286, - "DVA": 3492.4468323768133, + "DUK": 1.1979341588724546, + "DVA": 3518.797355339941, "DVN": 0.0, - "DXCM": 4936.951089309616, - "EA": 3910.756869130419, + "DXCM": 4959.561605187045, + "EA": 3934.931226587919, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.798856192985176e-14, + "EG": 5.725643240553765e-14, "EIX": 0.0, "EL": 0.0, - "ELV": -2.298225947907103e-13, + "ELV": -2.269033590072339e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 2832.1960425236125, + "ENPH": 2947.795696387632, "EOG": 0.0, - "EPAM": 5402.311815728254, - "EQIX": 813.3796199082676, + "EPAM": 5387.832766333946, + "EQIX": 816.45337065384, "EQR": 0.0, "EQT": 0.0, "ES": 0.0, @@ -67969,18 +67969,18 @@ "EVRG": 0.0, "EW": 0.0, "EXC": 0.0, - "EXPD": -1.097764026718292, - "EXPE": 4359.203610333856, - "EXR": 5.803177409621371e-14, + "EXPD": -1.0978556181897274, + "EXPE": 4360.528376012194, + "EXR": 5.77855280741042e-14, "F": 0.0, - "FANG": 14292.669549018465, - "FAST": 3077.562078595657, + "FANG": 14234.801539767992, + "FAST": 3082.7439812062808, "FCX": 0.0, - "FDS": 3389.7529752257483, - "FDX": 8184.644886230227, + "FDS": 3379.0713444349735, + "FDX": 8145.418669917245, "FE": 0.0, "FFIV": 3676.866008387019, - "FI": 2.4852376774219653e-13, + "FI": 2.469280748220924e-13, "FICO": 1526.3185093983475, "FIS": 0.0, "FITB": 0.0, @@ -67988,86 +67988,86 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.192820734405143e-14, - "FTNT": 6225.838170350648, + "FSLR": -7.616419573862278e-14, + "FTNT": 6210.195201950428, "FTV": 0.0, - "GD": 3.790407394910589e-13, + "GD": 3.768900473044881e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1715.7866979266857, + "GEHC": 1720.5016014930238, "GEN": 0.0, - "GEV": 28439.66776584899, - "GILD": 8621.96918232074, - "GIS": 7433.816329107941, - "GL": 0.2922116471168503, + "GEV": 28472.801848372736, + "GILD": 8586.37659930975, + "GIS": 7417.3412653276555, + "GL": 0.2922796020300485, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 24467.244571267103, - "GOOGL": 1821.370744009195, + "GOOG": 24471.174892391038, + "GOOGL": 1820.682175894758, "GPC": 0.0, - "GPN": -1.0247498849256195e-13, - "GRMN": 2209.1512607858826, + "GPN": -1.0189987057011539e-13, + "GRMN": 2205.7538444788415, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, "HAS": 1.0843913338531685, "HBAN": 0.0, - "HCA": 5932.366906397069, - "HD": 8807.428211075634, + "HCA": 6111.770499171613, + "HD": 8822.877489268853, "HES": 0.0, - "HIG": 5690.177288893546, - "HII": 0.6962770438994461, - "HLT": -1.386539154258431e-13, - "HOLX": 2839.441225620498, + "HIG": 5679.571564437679, + "HII": 0.6936785759445755, + "HLT": -1.3830302128920048e-13, + "HOLX": 2849.711733816432, "HON": 0.0, "HPE": 0.0, "HPQ": 0.0, "HRL": 0.0, "HSIC": 0.0, "HST": 0.0, - "HSY": 10495.543682283069, - "HUBB": 1.339443437232446e-13, - "HUM": 1171.4722142775402, - "HWM": 2125.7434568542294, + "HSY": 10521.717175733842, + "HUBB": 1.3401479499360892e-13, + "HUM": 1139.338705270181, + "HWM": 2114.7998808803563, "IBM": 0.0, - "ICE": 739.3525125578224, + "ICE": 736.8202649426821, "IDXX": -10.176878778630726, "IEX": 0.0, "IFF": 0.0, - "INCY": 4025.9590008426353, - "INTC": 241.27940116140036, + "INCY": 4036.738740018863, + "INTC": 239.8192152181159, "INTU": 1269.8776676836794, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, "IQV": 0.0, - "IR": 0.045716166684180874, + "IR": 0.04533403372482664, "IRM": 0.0, - "ISRG": 6566.633054917097, + "ISRG": 6568.999463332671, "IT": 7.509448100824196e-13, "ITW": 0.0, "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, - "JBL": 2571.4174578933184, + "JBL": 2582.8789892484356, "JCI": 0.0, - "JKHY": 823.7831598719695, - "JNJ": 12900.073341928648, + "JKHY": 830.5764269873108, + "JNJ": 12882.88267515754, "JNPR": 0.0, - "JPM": 2536.6579448828593, - "K": 461.1844240969108, + "JPM": 2509.110861004618, + "K": 461.2660237703022, "KDP": 0.0, "KEY": 0.0, "KEYS": 0.0, "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": -20.94621399011928, - "KMB": 5110.776978045292, + "KLAC": -20.926694359155295, + "KMB": 5110.416092798242, "KMI": 0.0, - "KMX": 81.02301562537181, - "KO": 193.55637001842044, + "KMX": 81.54697650358979, + "KO": 193.28328485482115, "KR": 0.0, "KVUE": 0.0, "L": -0.21151683080905775, @@ -68076,218 +68076,723 @@ "LH": 0.0, "LHX": 0.0, "LIN": 1.6443766814134653, - "LKQ": 4881.56974585658, + "LKQ": 4907.338825838354, "LLY": 1.6493944170436674, - "LMT": 8016.064007227798, + "LMT": 7964.880800064583, "LNT": 0.0, "LOW": -2.758612606348869e-13, "LRCX": 1010.3281021425748, - "LULU": 1738.5310936459819, - "LUV": 28.09115347387608, - "LVS": 1873.1154882414817, - "LW": 28.693293424634298, - "LYB": 3591.132377104233, - "LYV": 3004.2425117886864, - "MA": 30678.51495681813, + "LULU": 1747.8993294374395, + "LUV": 27.88854984460289, + "LVS": 1878.8316155395264, + "LW": 28.646122608210394, + "LYB": 3588.112646522235, + "LYV": 2966.9811875755286, + "MA": 30663.18710964515, "MAA": 0.0, - "MAR": -6.002635552632887e-13, + "MAR": -6.000905220539317e-13, "MAS": 0.0, - "MCD": 10752.19573859377, - "MCHP": 2409.7361336032573, + "MCD": 10763.217311828213, + "MCHP": 2412.8626874063643, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, - "MDT": 1.2789069203082204, - "MET": -0.03545951945069649, - "META": 21925.89830159681, - "MGM": 4383.330086710993, + "MDT": 1.2810433169629274, + "MET": -0.035387191711257815, + "META": 21936.010864209176, + "MGM": 4389.994547229719, "MHK": 0.0, "MKC": 0.0, - "MKTX": 6829.245946388356, + "MKTX": 6803.674621565669, "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5194.160836201105, - "MO": -21.38468154463805, - "MOH": 1741.4869749688573, + "MNST": 5227.068176368145, + "MO": -21.353365201417752, + "MOH": 1753.1407873597448, "MOS": 0.0, - "MPC": 15224.041356204, - "MPWR": -9.732128287502003e-13, - "MRK": 5820.593926310266, - "MRNA": 7556.224077844994, + "MPC": 15099.927313358909, + "MPWR": -9.666941425804875e-13, + "MRK": 5809.680409840077, + "MRNA": 7578.686879779371, "MRO": 0.0, - "MS": 6216.465416966538, - "MSCI": 5956.014019427119, - "MSFT": 38008.04131634657, + "MS": 6225.43628331587, + "MSCI": 5975.535864746733, + "MSFT": 38018.93644866892, "MSI": 0.0, - "MTB": -6.085244141241416, + "MTB": -5.967969270824183, "MTCH": 0.0, "MTD": 0.0, - "MU": 3770.463258205047, + "MU": 3760.607935718852, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16168.817245749507, + "NFLX": 16171.313750734937, "NI": 0.0, - "NKE": -3.0062063875001696e-14, - "NOC": -3.910486035638605e-13, - "NOW": 5258.00156702803, + "NKE": -3.023502294051154e-14, + "NOC": -3.8945379318990173e-13, + "NOW": 5200.001947650869, "NRG": 0.0, - "NSC": -2.6793475296103552e-14, - "NTAP": 6045.873423546712, + "NSC": -2.6693384264268164e-14, + "NTAP": 6034.746648054967, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 139419.44605031583, + "NVDA": 137896.85954814023, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 8788.155464166884, + "NXPI": 8735.776576491064, "O": 0.0, - "ODFL": 4397.741741004868, + "ODFL": 4369.7159876412, "OKE": 0.0, "OMC": 0.0, - "ON": -2.748417394439357, - "ORCL": 7637.319832923143, - "ORLY": -0.728295102642031, - "OTIS": 1697.8869074523768, + "ON": -2.792002877912212, + "ORCL": 7587.0092448887235, + "ORLY": -0.7334072568246306, + "OTIS": 1697.2094308363169, "OXY": 0.0, - "PANW": 4630.668895361365, - "PARA": 2178.7644608282912, + "PANW": 4678.496651387771, + "PARA": 2165.6507165590665, "PAYC": 0.0, - "PAYX": 476.1076025594581, + "PAYX": 473.7050472071696, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11776.802445596115, + "PEP": 11803.761737362645, "PFE": 0.0, "PFG": 171.95527723339896, - "PG": 1.0575294277348302, - "PGR": 8006.5455589419325, + "PG": 1.058418798031775, + "PGR": 7968.440340583015, "PH": 0.0, - "PHM": -11.316664634954094, - "PKG": -4.839121992943193e-13, + "PHM": -11.266304106946148, + "PKG": -4.840427192081617e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, "PNR": 0.0, "PNW": 0.0, - "PODD": -64.01833784934024, + "PODD": -64.24416619870429, "POOL": 1284.5221117830695, "PPG": -0.41578458131432405, "PPL": 0.0, "PRU": 1127.3548407904923, "PSA": 0.0, - "PSX": 3118.7736089152268, - "PTC": 2.740136871134102e-14, - "PWR": -5.153871728000049, + "PSX": 3109.130283055358, + "PTC": 2.7329577010342862e-14, + "PWR": -5.193088885824342, "PYPL": 0.0, - "QCOM": 4840.424608244134, + "QCOM": 4819.710296536858, "QRVO": 0.0, - "RCL": 2988.4713106328904, + "RCL": 2977.7341787373143, "REG": 0.0, - "REGN": 1113.6323460603148, + "REGN": 1116.4334615730988, "RF": 0.0, "RJF": 0.0, "RL": 0.0, "RMD": -26.003816776108856, - "ROK": 1.261823439704855, + "ROK": 1.2545181731295774, "ROL": 0.0, - "ROP": 5522.2963863718405, - "ROST": 1192.0470492183401, + "ROP": 5527.245744959743, + "ROST": 1202.5084055661653, "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, - "SBAC": 6231.218094968276, - "SBUX": 8560.19538675923, - "SCHW": 145.67158449167079, + "SBAC": 6314.890687350748, + "SBUX": 8553.337450740044, + "SCHW": 149.17434516824326, "SHW": 1.3626771901383574, - "SJM": 0.9778661180349855, + "SJM": 0.9712572035590928, "SLB": 0.0, - "SMCI": 9320.023457109653, + "SMCI": 9022.179521082096, "SNA": 0.0, "SNPS": 0.0, - "SO": 10.191762581498931, - "SOLV": -1.3516906505138555e-12, + "SO": 10.25200077386106, + "SOLV": -1.3577868702876912e-12, "SPG": 0.0, - "SPGI": -5.687905791538955, + "SPGI": -5.681017278226266, "SRE": 0.0, - "STE": 0.4909992013195589, + "STE": 0.49153126971277344, "STLD": -2.825300879964781e-14, - "STT": 317.5790041584121, - "STX": 93.68648048364629, - "STZ": 255.67739942598118, + "STT": 316.57158437032547, + "STX": 93.46830050736467, + "STZ": 256.6553615801709, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, - "SYK": -6.936145120987286, + "SYK": -6.953355815819993, "SYY": 0.0, "T": 0.0, "TAP": 0.0, "TDG": 4747.083182560249, - "TDY": 379.3998322097708, + "TDY": 379.15931602766415, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, "TFC": 0.0, "TFX": 0.0, "TGT": 0.0, - "TJX": 456.0890895525514, + "TJX": 456.12900437598677, "TMO": 0.0, - "TMUS": 8433.663280123335, - "TPR": 2921.126557817828, - "TRGP": 415.48984522576154, + "TMUS": 8469.988323002486, + "TPR": 2943.9269123650074, + "TRGP": 413.0126940499819, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, - "TSCO": -2.862717710597242e-12, - "TSLA": 113994.46327063572, - "TSN": 4816.248451070629, + "TSCO": -2.861873237124297e-12, + "TSLA": 110549.66708525766, + "TSN": 4812.050982837561, "TT": 0.0, "TTWO": 756.1381793088772, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3869.754041215809, + "UAL": 3867.1598982568003, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, - "ULTA": 4368.901081800277, - "UNH": 20288.77079997303, + "ULTA": 4456.093683395936, + "UNH": 19796.87756728317, "UNP": 0.0, "UPS": 0.0, "URI": 0.0, "USB": 0.0, "USDOLLAR": 176.732727691773, - "V": 2108.7914402872466, + "V": 2109.3468905955388, "VICI": 0.0, "VLO": 0.0, - "VLTO": 8730.101228795786, + "VLTO": 8708.937535407882, "VMC": 0.0, "VRSK": 0.0, - "VRSN": 3208.320336238001, + "VRSN": 3210.3069233886613, "VRTX": 2908.9896540334594, "VST": 0.0, "VTR": 0.0, "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.0709324167196502e-13, + "WAT": -2.0800808281831038e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -3.2162259267234465, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5251895254391674, + "WMB": 0.0, + "WMT": 11949.078982093353, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3260.152485210326, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-07-16 13:30:00+00:00": { + "A": 0.0, + "AAL": 623.6685613350573, + "AAPL": 50560.63189743947, + "ABBV": 4599.484555634564, + "ABNB": 0.0, + "ABT": 3322.984851098521, + "ACGL": 0.0, + "ACN": 2.532757886207126e-13, + "ADBE": 11709.846106244702, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -16.298628462185885, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3508.438790723359, + "AIG": 0.0, + "AIZ": 1.460243587318214, + "AJG": 0.0, + "AKAM": 193.40675538655157, + "ALB": 0.0, + "ALGN": 1186.276843319787, + "ALL": 6.604531443849387e-14, + "ALLE": 0.0, + "AMAT": 2397.818447848891, + "AMCR": 0.0, + "AMD": 28965.966753897963, + "AME": 0.0, + "AMGN": 6493.752878480871, + "AMP": 9.649250058838595, + "AMT": 631.1515172275144, + "AMZN": 37585.686845542456, + "ANET": 3900.188689264378, + "ANSS": 651.0453080787715, + "AON": 17.19443377037523, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 28.036738631333534, + "APTV": 2.4888299252589244e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19786.892359038535, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4886.748364070869, + "AXP": 0.0, + "AZO": 1.7137533486482717e-12, + "BA": -1.0786707123008588e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 507.917434968925, + "BDX": 0.0, + "BEN": 188.71932210015828, + "BF-B": 0.0, + "BG": 1668.8948366763818, + "BIIB": 2414.725645896214, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3872.012069404772, + "BKR": 0.0, + "BLDR": 351.2941543599252, + "BLK": 9.457568065178375e-13, + "BMY": 81.22591173005617, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3108488815855018, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1449.2566712342793, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20137.416297623033, + "CAT": 0.0, + "CB": 817.8040069583096, + "CBOE": 0.0, + "CBRE": 4630.05416410121, + "CCI": 301.3761460472663, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 405.3326389993241, + "CE": -2.7718884028668817e-14, + "CEG": 38941.01505001075, + "CF": 9516.553460679414, + "CFG": 0.0, + "CHD": 2468.9668481728936, + "CHRW": 0.0, + "CHTR": 7469.600034709985, + "CI": 3.894887647802946e-13, + "CINF": 0.015407732884939443, + "CL": 9.567876366520506, + "CLX": 15.029740868770759, + "CMCSA": 6275.485740071254, + "CME": 4612.714094202225, + "CMG": 5804.481780645344, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 873.0151972170687, + "CNP": 0.0, + "COF": 9008.122619860736, + "COO": 0.0, + "COP": 0.0, + "COR": 3343.255140864186, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 757.0340824513872, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7706.01256706885, + "CRWD": 4160.639892578126, + "CSCO": 7010.356644287751, + "CSGP": -7.677618720011668e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11517.19305847215, + "CTVA": 106.91992217853317, + "CVS": 0.0, + "CVX": -5.707151836194186e-13, + "CZR": 9373.927038922833, + "D": 0.0, + "DAL": 629.5824571460744, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0505438508655805e-13, + "DECK": 874.7455897126838, + "DFS": 3553.4163335429726, + "DG": 0.0, + "DGX": 0.0, + "DHI": -6.993923540242661, + "DHR": 2475.3629329137198, + "DIS": -4.308390413860134, + "DLR": 3.257591119269253e-14, + "DLTR": 923.8311771306022, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1467.1201200200753, + "DRI": 2.419042094557043, + "DTE": 0.0, + "DUK": 1.2083914815696968, + "DVA": 3403.2025862469327, + "DVN": 0.0, + "DXCM": 4910.427017145872, + "EA": 3939.793382535102, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.725643240553765e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.3042422847870146e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2830.960926172841, + "EOG": 0.0, + "EPAM": 5783.775859430652, + "EQIX": 821.6877990194314, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.094833728406754, + "EXPE": 4403.905104851548, + "EXR": 5.833512175007555e-14, + "F": 0.0, + "FANG": 14630.813619985638, + "FAST": 3213.2328284067426, + "FCX": 0.0, + "FDS": 3425.943145073644, + "FDX": 8331.198273384234, + "FE": 0.0, + "FFIV": 3725.6240989865023, + "FI": 2.511348792531415e-13, + "FICO": 1533.505597064237, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.057694910475593e-14, + "FTNT": 6268.59516645174, + "FTV": 0.0, + "GD": 3.768900473044881e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1724.144876609724, + "GEN": 0.0, + "GEV": 28209.29656848534, + "GILD": 8631.788019642907, + "GIS": 7372.623363327411, + "GL": 0.29591441236998034, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 24747.61880660253, + "GOOGL": 1843.5550366239343, + "GPC": 0.0, + "GPN": -1.043467264846062e-13, + "GRMN": 2234.501780727036, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0805793934858152, + "HBAN": 0.0, + "HCA": 6007.935045375422, + "HD": 8829.989560705666, + "HES": 0.0, + "HIG": 5749.3451708804005, + "HII": 0.6936785759445755, + "HLT": -1.3830302128920048e-13, + "HOLX": 2846.4103391246763, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10525.058328134606, + "HUBB": 1.3325749220928844e-13, + "HUM": 1177.4934890934755, + "HWM": 2114.7998808803563, + "IBM": 0.0, + "ICE": 735.0328272337305, + "IDXX": -10.001116654726708, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4030.397745432075, + "INTC": 238.845731397871, + "INTU": 1305.5833705645784, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04626606567987789, + "IRM": 0.0, + "ISRG": 6519.897504238572, + "IT": 7.53929588198089e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2599.0599343476206, + "JCI": 0.0, + "JKHY": 840.2169075389152, + "JNJ": 12866.551082677643, + "JNPR": 0.0, + "JPM": 2571.0611619691863, + "K": 459.3080361839562, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -21.014284012319095, + "KMB": 5093.0842344526845, + "KMI": 0.0, + "KMX": 83.35062363134814, + "KO": 192.46402936402325, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2130842324195796, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6345260383314737, + "LKQ": 4933.107905820127, + "LLY": 1.6493944170436674, + "LMT": 7964.880800064583, + "LNT": 0.0, + "LOW": -2.7437636798993705e-13, + "LRCX": 1014.2757063607197, + "LULU": 1709.4655180792956, + "LUV": 28.202586725899742, + "LVS": 1860.3643595896829, + "LW": 27.95673109184057, + "LYB": 3606.2307420368606, + "LYV": 2974.8574260013615, + "MA": 31139.045642644945, + "MAA": 0.0, + "MAR": -6.000905220539317e-13, + "MAS": 0.0, + "MCD": 10640.282041008306, + "MCHP": 2415.4680495207617, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.2660882896144825, + "MET": -0.03594652230559237, + "META": 22051.655854380922, + "MGM": 4407.131835188113, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6999.617556212079, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5120.120399600105, + "MO": -21.407050117422163, + "MOH": 1723.8570683244398, + "MOS": 0.0, + "MPC": 15106.314809174306, + "MPWR": -9.93864643816869e-13, + "MRK": 5814.682510500255, + "MRNA": 7686.633148855566, + "MRO": 0.0, + "MS": 6227.828666442501, + "MSCI": 6001.247377397969, + "MSFT": 38075.100484859824, + "MSI": 0.0, + "MTB": -6.094088277823978, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3670.7812923494325, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16525.904333380342, + "NI": 0.0, + "NKE": -2.944846920439545e-14, + "NOC": -3.8852575103591087e-13, + "NOW": 5264.171472212516, + "NRG": 0.0, + "NSC": -2.6693384264268164e-14, + "NTAP": 6061.17247457093, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 137011.26189217524, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8897.902792415382, + "O": 0.0, + "ODFL": 4497.210136054043, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.784012192086789, + "ORCL": 7497.916945503818, + "ORLY": -0.7376168307142827, + "OTIS": 1686.2006619523881, + "OXY": 0.0, + "PANW": 4735.361537482896, + "PARA": 2164.7139950167834, + "PAYC": 0.0, + "PAYX": 486.67887054964734, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11592.346070665704, + "PFE": 0.0, + "PFG": 174.243149484503, + "PG": 1.0476192738734131, + "PGR": 8312.88023095399, + "PH": 0.0, + "PHM": -11.460967641811314, + "PKG": -4.840427192081617e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -63.81158818558448, + "POOL": 1280.6106558279646, + "PPG": -0.4180446475774622, + "PPL": 0.0, + "PRU": 1146.0114885552848, + "PSA": 0.0, + "PSX": 3125.5011127797143, + "PTC": 2.766459810190082e-14, + "PWR": -5.193088885824342, + "PYPL": 0.0, + "QCOM": 4992.56582727031, + "QRVO": 0.0, + "RCL": 3008.1559614225744, + "REG": 0.0, + "REGN": 1104.0923239434635, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -26.11299657447339, + "ROK": 1.2545181731295774, + "ROL": 0.0, + "ROP": 5534.966430188602, + "ROST": 1171.044885020261, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6311.033305324153, + "SBUX": 8247.003808920703, + "SCHW": 138.9431018746059, + "SHW": 1.3706383712705181, + "SJM": 0.9999245365217512, + "SLB": 0.0, + "SMCI": 8943.256551396713, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.317365724916694, + "SOLV": -1.3095715349142063e-12, + "SPG": 0.0, + "SPGI": -5.75441718756066, + "SRE": 0.0, + "STE": 0.49004595017067587, + "STLD": -2.8467277702698566e-14, + "STT": 320.3594926116157, + "STX": 95.38828829363733, + "STZ": 246.9549633834599, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.738835837839972, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4761.718111941512, + "TDY": 380.8333286198497, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 454.8120892174362, + "TMO": 0.0, + "TMUS": 8584.626507252678, + "TPR": 2880.890502598293, + "TRGP": 413.0126940499819, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.8645126597455716e-12, + "TSLA": 113707.21627405056, + "TSN": 4850.668202975839, + "TT": 0.0, + "TTWO": 758.3076680205946, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3826.516565894961, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 4307.661489830288, + "UNH": 20662.62671146878, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 176.7405902125678, + "V": 2131.4135045658236, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8686.009808448332, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3201.63830471779, + "VRTX": 2935.8333173512506, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.0800808281831038e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -3.242357794892217, + "WDC": -3.1945857605719823, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, - "WM": 1.525260840139228, + "WM": 1.5487363328705508, "WMB": 0.0, - "WMT": 11959.43436558164, + "WMT": 12049.172683752144, "WRB": 0.0, "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 3266.229747852192, + "WYNN": 3215.3315502761743, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 542c78c6d..7118a5d69 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -65269,5 +65269,510 @@ "ZBH": 1.7996450154662872e-09, "ZBRA": 1.0203760392957315e-09, "ZTS": 6.232711659440221e-09 + }, + "2024-07-16 13:30:00+00:00": { + "A": 3.458235086898035e-09, + "AAL": 0.000509899900323477, + "AAPL": 0.04128614844285138, + "ABBV": 0.0037604755169385437, + "ABNB": 3.0439364653804886e-09, + "ABT": 0.002716809888851146, + "ACGL": 8.773585665511239e-09, + "ACN": 9.875758141575898e-09, + "ADBE": 0.009668560413005628, + "ADI": 1.7248531321521812e-08, + "ADM": 9.255381518992002e-09, + "ADP": 2.1713988587941925e-08, + "ADSK": 1.2919040576952202e-08, + "AEE": 2.8904141967894646e-09, + "AEP": 2.952016570806448e-09, + "AES": 1.309549716627328e-09, + "AFL": 0.0028684162787839555, + "AIG": 3.045552585689778e-09, + "AIZ": 1.0831014763587732e-08, + "AJG": 6.0806242349480816e-09, + "AKAM": 0.0001581149691515675, + "ALB": 1.0003427473322513e-09, + "ALGN": 0.0009698140830891331, + "ALL": 7.539230936354907e-09, + "ALLE": 2.994710886444666e-09, + "AMAT": 0.001988313045697183, + "AMCR": 7.94970534111017e-10, + "AMD": 0.023684123114606683, + "AME": 3.258695033430317e-09, + "AMGN": 0.0053091446729057745, + "AMP": 2.240711740341091e-07, + "AMT": 0.0005168853443814391, + "AMZN": 0.031145560975163716, + "ANET": 0.003300815022891473, + "ANSS": 0.000504504001830683, + "AON": 3.91010987837051e-08, + "AOS": 2.7300750882139996e-09, + "APA": 1.9599193272360654e-09, + "APD": 7.546566499882129e-09, + "APH": 2.407526472871977e-08, + "APTV": 7.93309047848449e-09, + "ARE": 2.496966351034629e-09, + "ATO": 3.4273222262819083e-09, + "AVB": 3.3670615829548547e-09, + "AVGO": 0.016453120760435112, + "AVY": 3.887281813614517e-09, + "AWK": 5.455177725288066e-09, + "AXON": 0.004028393386927416, + "AXP": 8.731373729344428e-09, + "AZO": 5.918154567383533e-08, + "BA": 5.8775502144737486e-08, + "BAC": 4.874206515715648e-09, + "BALL": 1.0223256695411544e-08, + "BAX": 6.164194237732213e-09, + "BBWI": 3.802961603550089e-09, + "BBY": 0.00041529507954242493, + "BDX": 1.2713684234106593e-08, + "BEN": 0.00015429426504505459, + "BF-B": 8.289843883864696e-09, + "BG": 0.0013644226995948203, + "BIIB": 0.0019742615213362634, + "BIO": 4.0250066770419645e-09, + "BK": 4.973125375295596e-09, + "BKNG": 0.0022624224304891704, + "BKR": 2.1161397842329416e-09, + "BLDR": 0.0002872125434751627, + "BLK": 2.2787529942966638e-07, + "BMY": 6.640910100658924e-05, + "BR": 5.865786957872689e-09, + "BRK-B": 8.790680608050739e-09, + "BRO": 3.19871539983304e-08, + "BSX": 5.66812649317479e-09, + "BWA": 5.026289249860694e-09, + "BX": 0.0011848300353754769, + "BXP": 2.719805011952591e-09, + "C": 6.4979381368058784e-09, + "CAG": 8.274983745730024e-09, + "CAH": 7.902093677540204e-09, + "CARR": 0.016463958808953107, + "CAT": 2.3593318578014656e-09, + "CB": 0.0006685887809130687, + "CBOE": 1.6084769667217895e-08, + "CBRE": 0.003785423663437788, + "CCI": 0.0002464099919962897, + "CCL": 3.150082314747517e-09, + "CDNS": 2.6176148763285565e-08, + "CDW": 0.00033146956351969877, + "CE": 7.226113478110482e-09, + "CEG": 0.03193197677339126, + "CF": 0.007780598465715649, + "CFG": 3.972234932182241e-09, + "CHD": 0.0020185696706998342, + "CHRW": 9.869679796814788e-09, + "CHTR": 0.0061069658518517, + "CI": 3.323263476156699e-08, + "CINF": 1.68272860457739e-08, + "CL": 7.791035807752382e-06, + "CLX": 2.438816445330118e-07, + "CMCSA": 0.005130708624338628, + "CME": 0.00378769405055787, + "CMG": 0.004745616630686439, + "CMI": 3.107499100584132e-09, + "CMS": 2.6903435163653378e-09, + "CNC": 0.0007137738635852699, + "CNP": 2.494988361425343e-09, + "COF": 0.007364897033934063, + "COO": 6.427299363630207e-09, + "COP": 5.811550437935679e-09, + "COR": 0.0027333754904316546, + "COST": 6.441859064215111e-09, + "CPAY": 1.863464635344262e-08, + "CPB": 1.2104465912704275e-08, + "CPRT": 0.0006189314927202152, + "CPT": 2.6022188614618503e-09, + "CRL": 2.0000948620586433e-09, + "CRM": 0.006300356254678155, + "CRWD": 0.0034263282435526158, + "CSCO": 0.005731949698829518, + "CSGP": 6.574872128218805e-09, + "CSX": 8.87025030522733e-09, + "CTAS": 5.752733775869259e-09, + "CTLT": 4.24274660351233e-09, + "CTRA": 2.1751581532007286e-09, + "CTSH": 0.009416147467941794, + "CTVA": 8.7416524967107e-05, + "CVS": 7.303959234014249e-09, + "CVX": 7.582971472212353e-09, + "CZR": 0.007663919405652076, + "D": 4.374684818307209e-09, + "DAL": 0.0005147386720760263, + "DAY": 3.2088860771989584e-09, + "DD": 5.053562764669005e-09, + "DE": 7.641585622652947e-09, + "DECK": 0.0008831494233011749, + "DFS": 0.002933815369583103, + "DG": 4.02744974551578e-09, + "DGX": 9.807247580681082e-09, + "DHI": 1.001252298820561e-08, + "DHR": 0.002023771451837604, + "DIS": 8.203911419468589e-09, + "DLR": 5.8600608569091555e-09, + "DLTR": 0.0007556929764225486, + "DOC": 1.4992395787179967e-09, + "DOV": 3.386756632001618e-09, + "DOW": 5.07512415366997e-09, + "DPZ": 0.0011990988904135387, + "DRI": 1.980505171422984e-06, + "DTE": 3.236127296733982e-09, + "DUK": 1.9045731340576835e-08, + "DVA": 0.0027823742497667912, + "DVN": 2.368788298262692e-09, + "DXCM": 0.00401479323457287, + "EA": 0.003221052664275442, + "EBAY": 3.6247275197036918e-09, + "ECL": 4.747478477463529e-09, + "ED": 4.525697199955139e-09, + "EFX": 3.795370350567067e-09, + "EG": 1.8623059295548244e-08, + "EIX": 4.59260041142924e-09, + "EL": 4.752680349537428e-09, + "ELV": 1.255222661327418e-07, + "EMN": 3.2981820286975318e-09, + "EMR": 2.2198291736310433e-09, + "ENPH": 0.0023145374459907007, + "EOG": 5.9350030013271335e-09, + "EPAM": 0.00472875670957204, + "EQIX": 0.0006705362887548981, + "EQR": 3.3818786676616245e-09, + "EQT": 1.238663779745525e-09, + "ES": 2.3592448063501656e-09, + "ESS": 4.373565540692639e-09, + "ETN": 1.7533131598124536e-09, + "ETR": 4.285752495453325e-09, + "ETSY": 1.033330767476528e-08, + "EVRG": 1.7012453610012818e-09, + "EW": 1.0026006820351613e-08, + "EXC": 3.91567897833247e-09, + "EXPD": 1.2675263134815935e-08, + "EXPE": 0.0036005397800001324, + "EXR": 8.337618735418063e-09, + "F": 2.8032025785709515e-09, + "FANG": 0.011961857518968552, + "FAST": 0.00262707194797012, + "FCX": 2.2894472667804404e-09, + "FDS": 0.002678511135818066, + "FDX": 0.006803290589798182, + "FE": 3.0161904926380804e-09, + "FFIV": 0.0030459231897403743, + "FI": 1.3464678419241452e-08, + "FICO": 0.0012577188199732244, + "FIS": 4.881458450089208e-09, + "FITB": 6.33324515739886e-09, + "FMC": 3.95940622907609e-09, + "FOX": 2.2436544667807885e-09, + "FOXA": 3.144608592576735e-09, + "FRT": 3.0218440892656317e-09, + "FSLR": 8.592616254893343e-10, + "FTNT": 0.00512507238680477, + "FTV": 2.413374809278837e-09, + "GD": 1.4903966218656054e-08, + "GDDY": 2.109757199242722e-08, + "GE": 4.037455709301049e-09, + "GEHC": 0.001409611416091235, + "GEN": 2.3228892083658448e-09, + "GEV": 0.023199223681631933, + "GILD": 0.00705715486222349, + "GIS": 0.006027709407117334, + "GL": 9.056283712109935e-09, + "GLW": 3.623796303084474e-09, + "GM": 3.254213586045815e-09, + "GNRC": 2.2901601005786942e-09, + "GOOG": 0.020233199828282783, + "GOOGL": 0.0015072779912562186, + "GPC": 7.653665244125918e-09, + "GPN": 1.3548413470963707e-08, + "GRMN": 0.0018269320069679853, + "GS": 7.483222043060114e-09, + "GWW": 2.5826577501121855e-09, + "HAL": 2.483614370604238e-09, + "HAS": 8.68303918888825e-07, + "HBAN": 1.9399245054136554e-09, + "HCA": 0.004853472351302945, + "HD": 0.007219195554250016, + "HES": 5.30656530892276e-09, + "HIG": 0.004700534446420642, + "HII": 2.6595390108899313e-08, + "HLT": 1.0273500041326333e-08, + "HOLX": 0.002327172277422214, + "HON": 6.961040449594911e-09, + "HPE": 2.3020142445632017e-09, + "HPQ": 2.5389153601777315e-09, + "HRL": 7.131011050960838e-09, + "HSIC": 6.897762839735376e-09, + "HST": 2.8907713142248123e-09, + "HSY": 0.008605066490428234, + "HUBB": 1.0425006280383178e-09, + "HUM": 0.000962733807877081, + "HWM": 0.0017290936659515688, + "IBM": 3.297492156090534e-09, + "ICE": 0.0006009471211513501, + "IDXX": 1.1288724278853802e-08, + "IEX": 3.899091470540783e-09, + "IFF": 3.900173686729177e-09, + "INCY": 0.0032951697542702514, + "INTC": 0.00019527700268009686, + "INTU": 0.0011918683628887687, + "INVH": 2.1758961291382013e-09, + "IP": 3.5198745792957416e-09, + "IPG": 6.313266128648191e-09, + "IQV": 3.6840370021698477e-09, + "IR": 2.0096099736964475e-08, + "IRM": 5.353803672611667e-09, + "ISRG": 0.005330515497631443, + "IT": 1.4007748872274798e-08, + "ITW": 5.724586576084796e-09, + "IVZ": 2.8683969051194402e-09, + "J": 5.9378154298692684e-09, + "JBHT": 9.814488328262142e-09, + "JBL": 0.0021265008369727736, + "JCI": 2.5012433372237117e-09, + "JKHY": 0.0007246158734698188, + "JNJ": 0.010519412356421523, + "JNPR": 4.17261635459147e-09, + "JPM": 0.002102072747698188, + "K": 0.0003755215375044864, + "KDP": 2.418107736028026e-09, + "KEY": 1.8910440388638657e-09, + "KEYS": 5.0908912951880406e-09, + "KHC": 1.4544279556408766e-09, + "KIM": 2.322650312446116e-09, + "KKR": 7.766138986234043e-09, + "KLAC": 3.8428362823125025e-05, + "KMB": 0.004163966896316441, + "KMI": 1.1159892512843887e-09, + "KMX": 6.764176830108346e-05, + "KO": 0.00015735191072761067, + "KR": 1.3116543393457846e-08, + "KVUE": -5.211573140946367e-10, + "L": 6.364968141070142e-09, + "LDOS": 2.1368510066900734e-08, + "LEN": 1.339757240251274e-08, + "LH": 2.9578631785635294e-09, + "LHX": 7.609322994097788e-09, + "LIN": 6.059050254053403e-08, + "LKQ": 0.0040331990255754145, + "LLY": 2.5166565370689292e-08, + "LMT": 0.006512894679620297, + "LNT": 2.3513003913954428e-09, + "LOW": 1.0084599775689415e-08, + "LRCX": 0.0008300265601102825, + "LULU": 0.0014004805708584978, + "LUV": 2.306479997420184e-05, + "LVS": 0.0015209942501542343, + "LW": 2.093385055782073e-05, + "LYB": 0.0029483623427575467, + "LYV": 0.00243224930233088, + "MA": 0.025458612084895672, + "MAA": 3.3253387696423016e-09, + "MAR": 1.5793566457917803e-08, + "MAS": 4.243525586526319e-09, + "MCD": 0.008699265641293226, + "MCHP": 0.001999551509027576, + "MCK": 5.846733142370904e-08, + "MCO": 3.8660879112205855e-09, + "MDLZ": 4.402078883365422e-09, + "MDT": 1.016501897596979e-06, + "MET": 6.781890321474794e-09, + "META": 0.018028915804119756, + "MGM": 0.0036031699591335163, + "MHK": 3.724421111549845e-09, + "MKC": 5.345374399605567e-09, + "MKTX": 0.005713842388396646, + "MLM": 3.1549267664251875e-09, + "MMC": 4.487388819148756e-09, + "MMM": 4.258802387871693e-09, + "MNST": 0.004186165857802372, + "MO": 4.353403711580486e-09, + "MOH": 0.001409466388103511, + "MOS": 1.7709230430642451e-09, + "MPC": 0.012350630704538113, + "MPWR": 1.957938805544565e-08, + "MRK": 0.0047539644423531926, + "MRNA": 0.006284459502915704, + "MRO": 1.17589561620593e-09, + "MS": 0.005091748722106922, + "MSCI": 0.004877646580232044, + "MSFT": 0.03148677138970095, + "MSI": 9.291221588901588e-09, + "MTB": 1.2355337307131776e-08, + "MTCH": 1.4781091798469193e-08, + "MTD": 6.842256197474449e-09, + "MU": 0.0030012471406038856, + "NCLH": 3.872124185308994e-09, + "NDAQ": 5.560511980636377e-09, + "NDSN": 3.2496576571915196e-09, + "NEE": 1.8736366333062763e-09, + "NEM": 1.7483555895515219e-09, + "NFLX": 0.013817562248893963, + "NI": 1.9490132122589993e-09, + "NKE": 1.8230497023661685e-08, + "NOC": 3.980216971618131e-08, + "NOW": 0.0043046001365711975, + "NRG": 7.373727337313856e-10, + "NSC": 1.1132050597756362e-08, + "NTAP": 0.0049554709296431255, + "NTRS": 4.273799018602222e-09, + "NUE": 1.2167897551960992e-08, + "NVDA": 0.11375817712941959, + "NVR": 0.001287162490259475, + "NWS": 1.4689182964951735e-09, + "NWSA": 1.4444067189018204e-09, + "NXPI": 0.007274723860506648, + "O": 7.012949265646588e-09, + "ODFL": 0.00364353804048066, + "OKE": 3.87645417940699e-09, + "OMC": 4.605753755971016e-09, + "ON": 1.0480157597648302e-08, + "ORCL": 0.00613013770210565, + "ORLY": 2.1291053378703728e-08, + "OTIS": 0.0013786196930648021, + "OXY": 2.700209859534302e-09, + "PANW": 0.0038727244083919875, + "PARA": 0.0017698233960038228, + "PAYC": 2.637295808975703e-08, + "PAYX": 0.00039787852791474615, + "PCAR": 8.247550802848876e-09, + "PCG": 1.819731658494696e-09, + "PEG": 3.4854962561335546e-09, + "PEP": 0.009477650769913266, + "PFE": 5.658551807934173e-09, + "PFG": 0.0001424509552299016, + "PG": 1.3196990204175835e-08, + "PGR": 0.006796552259618924, + "PH": 2.657995070537711e-09, + "PHM": 8.894128409704663e-09, + "PKG": 1.1553676345481052e-08, + "PLD": 4.803578006256716e-09, + "PM": 8.18472728488605e-09, + "PNC": 9.232437949770028e-09, + "PNR": 2.0353989362096703e-09, + "PNW": 2.7586424820999086e-09, + "PODD": 1.6841085880245376e-08, + "POOL": 0.0010469788701958818, + "PPG": 9.681861190342272e-09, + "PPL": 3.045895967826008e-09, + "PRU": 0.0009369243437810314, + "PSA": 3.7956409885077434e-09, + "PSX": 0.002555326728052869, + "PTC": 9.339077970702669e-09, + "PWR": 5.452050930964288e-09, + "PYPL": 2.2835830097420363e-09, + "QCOM": 0.0040861463010482225, + "QRVO": 1.397391292262326e-09, + "RCL": 0.0024587116063287642, + "REG": 3.7889759655785926e-09, + "REGN": 0.0011033384313661632, + "RF": 3.0702088779320897e-09, + "RJF": 8.392037953289186e-09, + "RL": 4.1395163482359876e-09, + "RMD": 3.3196519441430934e-08, + "ROK": 8.025798214595113e-09, + "ROL": 2.8171487320354196e-09, + "ROP": 0.004525345423113604, + "ROST": 0.0009574378619757003, + "RSG": 6.990451632610905e-09, + "RTX": 1.1073173580245347e-08, + "RVTY": 2.5674766945830337e-09, + "SBAC": 0.005159844766031676, + "SBUX": 0.0067425873678251865, + "SCHW": 0.0001135941665893685, + "SHW": 7.53658009363354e-08, + "SJM": 7.814223195759856e-07, + "SLB": 2.462580817765858e-09, + "SMCI": 0.0073119203768242085, + "SNA": 4.344810027098684e-09, + "SNPS": 3.275317411957095e-09, + "SO": 5.482815188574324e-08, + "SOLV": -1.3816376537602771e-09, + "SPG": 3.6639876687801684e-09, + "SPGI": 7.906909008193277e-09, + "SRE": 4.409390963327537e-09, + "STE": 4.293478602375567e-07, + "STLD": 1.9169573114101914e-08, + "STT": 0.000261920135803434, + "STX": 7.779073075444926e-05, + "STZ": 0.00020189431805636666, + "SWK": 3.3479355413816587e-09, + "SWKS": 2.0760449666576707e-09, + "SYF": 7.80329922751126e-09, + "SYK": 2.0028056536733376e-08, + "SYY": 7.657204964771099e-09, + "T": 4.9131855158865085e-09, + "TAP": 4.310153419896694e-09, + "TDG": 0.0039494501109812565, + "TDY": 0.00021789853864731504, + "TECH": 1.1925858337013639e-08, + "TEL": 6.271271815372356e-09, + "TER": 3.6989051029222683e-09, + "TFC": 3.0975200443101115e-09, + "TFX": 9.382761059451555e-09, + "TGT": 8.773183656685287e-09, + "TJX": 0.00037185235597361657, + "TMO": 1.1716173327232084e-08, + "TMUS": 0.007018591444014877, + "TPR": 0.0023553600057608553, + "TRGP": 0.00033766884736541417, + "TRMB": 8.97464177609757e-09, + "TROW": 7.502327988451623e-09, + "TRV": 7.205545208638241e-09, + "TSCO": 1.1022602054899882e-08, + "TSLA": 0.0887063905770327, + "TSN": 0.003965800615155784, + "TT": 2.603525746121481e-09, + "TTWO": 0.0006370242792732281, + "TXN": 5.368065035356014e-09, + "TXT": 3.1461259945001677e-09, + "TYL": 2.569742279875544e-08, + "UAL": 0.0031363140896513665, + "UBER": 8.289266901309792e-09, + "UDR": 2.1001248918808384e-09, + "UHS": 6.7661430190274595e-09, + "ULTA": 0.0035142438177996438, + "UNH": 0.016893123441945188, + "UNP": 1.071914762293406e-08, + "UPS": 3.1180650631655777e-09, + "URI": 5.8518939209914875e-09, + "USB": 3.2796535978857068e-09, + "USDOLLAR": 2.873636314690308e-07, + "V": 0.0017425777106214253, + "VICI": 2.926326753608523e-09, + "VLO": 4.47895425912433e-08, + "VLTO": 0.0071014807265770245, + "VMC": 1.826238077637482e-09, + "VRSK": 8.807182830052525e-09, + "VRSN": 0.0026175968053527184, + "VRTX": 0.0024002997732764614, + "VST": 8.468006085121592e-10, + "VTR": 5.211719291381521e-09, + "VTRS": 2.066616314504439e-09, + "VZ": 6.762356644060507e-09, + "WAB": 2.3738912548749963e-09, + "WAT": 8.780234631809944e-09, + "WBA": 1.453046653129437e-09, + "WBD": 5.215932984829332e-10, + "WDC": 3.862282553051795e-09, + "WEC": 5.727105096080827e-09, + "WELL": 4.335577994808849e-09, + "WFC": 1.0395128932759202e-08, + "WM": 2.983571421411455e-08, + "WMB": 1.4296117662949795e-08, + "WMT": 0.009851144788289433, + "WRB": 7.410385223909641e-09, + "WST": 5.092097206833315e-09, + "WTW": 5.287204393184898e-09, + "WY": 1.790956600101707e-09, + "WYNN": 0.0026287714430054065, + "XEL": 3.119625146319494e-09, + "XOM": 7.177559902069057e-09, + "XYL": 4.6674066369829245e-09, + "YUM": 1.2708800613849906e-08, + "ZBH": 3.202660942710125e-09, + "ZBRA": 2.0270397245725374e-09, + "ZTS": 1.0316625527494882e-08 } } \ No newline at end of file From 751bb84bad71cf25603be1381680069bf735480e Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 21:10:54 +0400 Subject: [PATCH 039/125] more moving docstrings; next can remove most old code from forecast module; finalized estimate method; need minor fixes tests --- cvxportfolio/estimator.py | 3 +- cvxportfolio/forecast.py | 295 ++++++++++++++------- cvxportfolio/tests/test_hyperparameters.py | 6 +- 3 files changed, 201 insertions(+), 103 deletions(-) diff --git a/cvxportfolio/estimator.py b/cvxportfolio/estimator.py index 3fb0f1864..b4ccaf285 100644 --- a/cvxportfolio/estimator.py +++ b/cvxportfolio/estimator.py @@ -238,8 +238,7 @@ def __repr__(self): for name, attr in self.__dict__.items(): if attr is None: continue - if hasattr(attr, "values_in_time_recursive") or\ - hasattr(attr, "values_in_time") or (name[0] != '_'): + if name[0] != '_': core += name + '=' + attr.__repr__() + ', ' core = core[:-2] # remove trailing comma and space if present rhs = ')' diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index dec764002..3834451cf 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -111,7 +111,6 @@ logger = logging.getLogger(__name__) - class BaseForecast(Estimator): """Base class for forecasters.""" @@ -128,6 +127,10 @@ def values_in_time_recursive( # pylint: disable=arguments-differ :type cache: dict or None :param kwargs: Various arguments to :meth:`values_in_time_recursive`. :type kwargs: dict + + :returns: Forecasted value for this period, possibly retrieved from + cache. + :rtype: pd.Series, pd.DataFrame, pd.Series """ # TODO: implement workspace logic @@ -162,45 +165,55 @@ def values_in_time_recursive( # pylint: disable=arguments-differ return super().values_in_time_recursive(t=t, cache=cache, **kwargs) - def estimate(self, market_data, t=None): + def estimate(self, market_data, t): """Estimate the forecaster at given time on given market data. This uses the same logic used by a trading policy to evaluate the forecaster at a given point in time. :param market_data: Market data server, used to provide data to the - forecaster. + forecaster. If you wish to forecast the value for the last + period available (``market_data.trading_calendar()[-1]``), you + typically need to set ``online_usage=True`` in its constructor. :type market_data: cvx.MarketData instance - :param t: Time at which to estimate the forecaster. Must be among - the ones returned by ``market_data.trading_calendar()``. Default is - ``None``, meaning that the last valid timestamp is chosen. Note - that with default market data servers you need to set - ``online_usage=True`` if forecasting on the last timestamp - (usually, today). - :type t: pd.Timestamp or None + :param t: Trading period at which to make the forecast. **Only data + available at that time or before is used**, like ``past_returns``. + It must be among the timestamps provided by the + :meth:`cvxportfolio.data.MarketData.trading_calendar` method of the + market data server. + :type t: str, pd.Timestamp - .. note:: + :Example: - This method is not finalized! It is still experimental, and not - covered by semantic versioning guarantees. + >>> md = cvx.DownloadedMarketData(['AAPL', 'MSFT', 'GOOG']) + >>> cvx.forecast.HistoricalCovariance().estimate( + market_data=md, t=md.trading_calendar()[-3]) :raises ValueError: If the provided time t is not in the trading calendar. - :returns: Forecasted value and time at which the forecast is made - (for safety checking). - :rtype: (np.array, pd.Timestamp) + :returns: Forecasted value. + :rtype: np.array, pd.DataFrame """ - # TODO: make sure Pandas objects are returned trading_calendar = market_data.trading_calendar() - - if t is None: - t = trading_calendar[-1] + t = pd.Timestamp(t) if not t in trading_calendar: + if (t.tz is None and (trading_calendar.tz is not None)) or \ + (t.tz is not None and (trading_calendar.tz is None)): + raise ValueError( + f"Provided time {t} does not have timezone and the " + "market data does, or the other way round.") + before = trading_calendar[trading_calendar < t] + after = trading_calendar[trading_calendar > t] raise ValueError(f'Provided time {t} must be in the ' - + 'trading calendar implied by the market data server.') + + 'trading calendar implied by the market data server; ' + + (f'last valid timestamp before t is {before[-1]}; ' + if len(before) > 0 else '') + + (f'first valid timestamp after t is {after[0]}; ' + if len(after) > 0 else '') + ) past_returns, _, past_volumes, _, current_prices = market_data.serve(t) @@ -215,7 +228,7 @@ def estimate(self, market_data, t=None): self.finalize_estimator_recursive() - return forecast, t + return forecast def _is_timedelta_or_inf(value): @@ -270,6 +283,10 @@ def values_in_time( # pylint: disable=arguments-differ :type past_returns: pd.DataFrame :param kwargs: Other unused arguments to :meth:`values_in_time`. :type kwargs: dict + + :returns: Forecasted value for the period, either computed from scratch + or updated with last observation. + :rtype: pd.Series, pd.DataFrame, np.array """ if (self._last_time is None) or ( self._last_time != past_returns.index[-1]): @@ -465,14 +482,14 @@ class VectorCount(SumForecaster): # pylint: disable=abstract-method """Intermediate class, count of non-NaN values of vectors.""" def _batch_compute(self, df, emw_weights): - """Compute from scratch.""" + """Compute for a batch at once.""" if emw_weights is None: return df.count() ones = (~df.isnull()) * 1. return ones.multiply(emw_weights, axis=0).sum() def _single_compute(self, last_row): - """Update with last observation.""" + """Update with one observation.""" return ~(last_row.isnull()) def values_in_time( # pylint: disable=arguments-differ @@ -618,9 +635,9 @@ class HistoricalVariance(BaseForecast): :type kelly: bool """ def __init__(self, half_life=np.inf, rolling=np.inf, kelly=True): - self.kelly = kelly self.half_life = half_life self.rolling = rolling + self.kelly = kelly self._denominator = CountPastReturns( half_life=half_life, rolling=rolling) self._numerator = SumPastReturnsSquared( @@ -687,16 +704,63 @@ def values_in_time(self, **kwargs): return np.sqrt(variance / self._denominator.current_value) class HistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): - """Test.""" + """Historical standard deviation of non-cash returns. + + .. versionadded:: 1.2.0 + + Added the ``half_life`` and ``rolling`` parameters. + + When both ``half_life`` and ``rolling`` are infinity, this is equivalent to + + .. code-block:: + + past_returns.iloc[:,:-1].std(ddof=0) + + if you set ``kelly=False`` and + + .. code-block:: + + np.sqrt((past_returns**2).iloc[:,:-1].mean()) + + otherwise (we use the same logic to handle ``np.nan`` values). + + :param half_life: Half-life of exponential smoothing, expressed as + Pandas Timedelta. If in back-test, that is with respect to each point + in time. Default ``np.inf``, meaning no exponential smoothing. + :type half_life: pandas.Timedelta or np.inf + :param rolling: Rolling window used: observations older than this Pandas + Timedelta are skipped over. If in back-test, that is with respect to + each point in time. Default ``np.inf``, meaning that all past is used. + :type rolling: pandas.Timedelta or np.inf + :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. + Default True. + :type kelly: bool + """ def values_in_time(self, **kwargs): - """Current value.""" + """Obtain current value either by update or from scratch. + + :param kwargs: All arguments to :meth:`values_in_time`. + :type kwargs: dict + + :returns: Standard deviations of past returns (excluding cash). + :rtype: pd.Series + """ return np.sqrt(super().values_in_time(**kwargs)) - def simulate(self, **kwargs): + def simulate( # pylint: disable=arguments-differ + self, **kwargs): + """Obtain current value for use in simulation (transaction cost). + + :param kwargs: All arguments to :meth:`simulate`. + :type kwargs: dict + + :returns: Standard deviations of past returns (excluding cash). + :rtype: pd.Series + """ # TODO could take last return as well + # with new design of forecasters we need to launch recursive loop - # here... return self.values_in_time_recursive( t=kwargs['t'], current_weights=kwargs['current_weights'], @@ -740,13 +804,15 @@ def values_in_time( # pylint: disable=arguments-differ """ return self._numerator.current_value / self._denominator.current_value -class MatrixCount(VectorCount): # inheritance is for the min counts check - """Joint count, e.g., for the denominator of covariances.""" - - # TODO: checks that too few counts +class MatrixCount(VectorCount): # pylint: disable=abstract-method + """Intermediate class: joint count for the denominator of covariances. + + We inherit from :class:`VectorCount` which implements a check for + too few observations. + """ def _batch_compute(self, df, emw_weights): - """Exponential moving window (optional) denominator.""" + """Compute for a batch at once.""" ones = (~df.isnull()) * 1. if emw_weights is None: return ones.T @ ones @@ -754,7 +820,7 @@ def _batch_compute(self, df, emw_weights): return tmp.T @ ones def _single_compute(self, last_row): - """Update with last observation.""" + """Update with one observation.""" nonnull = ~(last_row.isnull()) return np.outer(nonnull, nonnull) @@ -762,11 +828,11 @@ def _single_compute(self, last_row): class CovarianceDenominator(MatrixCount, OnPastReturns): """Compute denominator of (Kelly) covariance of past returns.""" -class MatrixSum(SumForecaster): - """Joint sum, e.g., for the numerator of covariances.""" +class MatrixSum(SumForecaster): # pylint: disable=abstract-method + """Intermediate class: joint sum for the denominator of covariances.""" def _batch_compute(self, df, emw_weights): - """Exponential moving window (optional) numerator.""" + """Compute for a batch at once.""" filled = df.fillna(0.) if emw_weights is None: return filled.T @ filled @@ -774,18 +840,15 @@ def _batch_compute(self, df, emw_weights): return tmp.T @ filled def _single_compute(self, last_row): - """Update with last observation. - - Emw (if any) is applied upstream. - """ + """Update with one observation.""" filled = last_row.fillna(0.) return np.outer(filled, filled) class CovarianceNumerator(MatrixSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" -class JointMean(SumForecaster): - """Corrector that we need for non-Kelly covariance.""" +class JointMean(SumForecaster): # pylint: disable=abstract-method + """Intermediate class: corrector for non-Kelly covariance.""" def _batch_compute(self, df, emw_weights): r"""Compute precursor of :math:`\Sigma_{i,j} = @@ -803,22 +866,54 @@ def _single_compute(self, last_row): class JointMeanReturns(JointMean, OnPastReturns): """Compute corrector for non-Kelly covariance.""" +class HistoricalCovariance(BaseForecast): + r"""Historical covariance matrix. -class HistoricalCovariance(HistoricalVariance): # inheritance maybe not needed - """Test.""" + .. versionadded:: 1.2.0 + + Added the ``half_life`` and ``rolling`` parameters. - def __init__(self, kelly=True, **kwargs): + :param half_life: Half-life of exponential smoothing, expressed as + Pandas Timedelta. If in back-test, that is with respect to each point + in time. Default ``np.inf``, meaning no exponential smoothing. + :type half_life: pandas.Timedelta or np.inf + :param rolling: Rolling window used: observations older than this Pandas + Timedelta are skipped over. If in back-test, that is with respect to + each point in time. Default ``np.inf``, meaning that all past is used. + :type rolling: pandas.Timedelta or np.inf + :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. + Default False. + :type kelly: bool + """ + + def __init__(self, half_life=np.inf, rolling=np.inf, kelly=True): + self.half_life = half_life + self.rolling = rolling self.kelly = kelly - self._denominator = CovarianceDenominator(**kwargs) - self._numerator = CovarianceNumerator(**kwargs) + self._denominator = CovarianceDenominator( + half_life=half_life, rolling=rolling) + self._numerator = CovarianceNumerator( + half_life=half_life, rolling=rolling) if not self.kelly: - self._correction = JointMeanReturns(**kwargs) + self._correction = JointMeanReturns( + half_life=half_life, rolling=rolling) - def values_in_time(self, **kwargs): - """Current value.""" - result = self._numerator.current_value / self._denominator.current_value + def values_in_time( # pylint: disable=arguments-differ + self, **kwargs): + """Current historical covariance matrix. + + :param kwargs: Unused arguments to :meth:`values_in_time`. + :type kwargs: dict + + :returns: Historical covariance. + :rtype: pd.DataFrame + """ + result = ( + self._numerator.current_value / self._denominator.current_value) if not self.kelly: - tmp = self._correction.current_value / self._denominator.current_value + tmp = ( + self._correction.current_value + / self._denominator.current_value) result -= tmp.T * tmp return result @@ -1350,65 +1445,65 @@ def solve_for_single_X(self, asset, X_last, quad_reg): # return past_returns.iloc[:, :-1]**2 -class OldHistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): - """Historical standard deviation of non-cash returns. - - .. versionadded:: 1.2.0 +# class OldHistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): +# """Historical standard deviation of non-cash returns. - Added the ``half_life`` and ``rolling`` parameters. +# .. versionadded:: 1.2.0 - When both ``half_life`` and ``rolling`` are infinity, this is equivalent to +# Added the ``half_life`` and ``rolling`` parameters. - .. code-block:: +# When both ``half_life`` and ``rolling`` are infinity, this is equivalent to - past_returns.iloc[:,:-1].std(ddof=0) +# .. code-block:: - if you set ``kelly=False`` and +# past_returns.iloc[:,:-1].std(ddof=0) - .. code-block:: +# if you set ``kelly=False`` and - np.sqrt((past_returns**2).iloc[:,:-1].mean()) +# .. code-block:: - otherwise (we use the same logic to handle ``np.nan`` values). +# np.sqrt((past_returns**2).iloc[:,:-1].mean()) - :param half_life: Half-life of exponential smoothing, expressed as - Pandas Timedelta. If in back-test, that is with respect to each point - in time. Default ``np.inf``, meaning no exponential smoothing. - :type half_life: pandas.Timedelta or np.inf - :param rolling: Rolling window used: observations older than this Pandas - Timedelta are skipped over. If in back-test, that is with respect to - each point in time. Default ``np.inf``, meaning that all past is used. - :type rolling: pandas.Timedelta or np.inf - :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. - Default True. - :type kelly: bool - """ +# otherwise (we use the same logic to handle ``np.nan`` values). - def values_in_time(self, **kwargs): - """Obtain current value either by update or from scratch. +# :param half_life: Half-life of exponential smoothing, expressed as +# Pandas Timedelta. If in back-test, that is with respect to each point +# in time. Default ``np.inf``, meaning no exponential smoothing. +# :type half_life: pandas.Timedelta or np.inf +# :param rolling: Rolling window used: observations older than this Pandas +# Timedelta are skipped over. If in back-test, that is with respect to +# each point in time. Default ``np.inf``, meaning that all past is used. +# :type rolling: pandas.Timedelta or np.inf +# :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. +# Default True. +# :type kelly: bool +# """ - :param kwargs: All arguments to :meth:`values_in_time`. - :type kwargs: dict +# def values_in_time(self, **kwargs): +# """Obtain current value either by update or from scratch. - :returns: Standard deviations of past returns (excluding cash). - :rtype: numpy.array - """ - variances = \ - super().values_in_time(**kwargs) - return np.sqrt(variances) +# :param kwargs: All arguments to :meth:`values_in_time`. +# :type kwargs: dict - def simulate(self, **kwargs): - # TODO could take last return as well - return self.values_in_time( - t=kwargs['t'], - # These are not necessary with current design of - # DataEstimator - current_weights=kwargs['current_weights'], - current_portfolio_value=kwargs['current_portfolio_value'], - past_returns=kwargs['past_returns'], - past_volumes=kwargs['past_volumes'], - current_prices=kwargs['current_prices'] - ) +# :returns: Standard deviations of past returns (excluding cash). +# :rtype: numpy.array +# """ +# variances = \ +# super().values_in_time(**kwargs) +# return np.sqrt(variances) + +# def simulate(self, **kwargs): +# # TODO could take last return as well +# return self.values_in_time( +# t=kwargs['t'], +# # These are not necessary with current design of +# # DataEstimator +# current_weights=kwargs['current_weights'], +# current_portfolio_value=kwargs['current_portfolio_value'], +# past_returns=kwargs['past_returns'], +# past_volumes=kwargs['past_volumes'], +# current_prices=kwargs['current_prices'] +# ) # class OldHistoricalMeanError(HistoricalVariance): # r"""Historical standard deviations of the mean of non-cash returns. diff --git a/cvxportfolio/tests/test_hyperparameters.py b/cvxportfolio/tests/test_hyperparameters.py index e62a7fd8f..c325ced46 100644 --- a/cvxportfolio/tests/test_hyperparameters.py +++ b/cvxportfolio/tests/test_hyperparameters.py @@ -61,7 +61,9 @@ def test_repr(self): obj = cvx.ReturnsForecast() - cvx.Gamma() * cvx.FullCovariance()\ - cvx.Gamma() * cvx.StocksTransactionCost() - str(obj) + # print() + # print(obj) + # print() ref = ('ReturnsForecast(r_hat=HistoricalMeanReturn(half_life=inf,' + ' rolling=inf), decay=1.0)' @@ -76,7 +78,9 @@ def test_repr(self): + "rolling=Timedelta('365 days 05:45:36'), kelly=True), " + 'exponent=1.5, pershare_cost=0.005)') + # print() # print(ref) + # print() self.assertTrue(str(obj) == ref) From f8e60f3c05ae08e4c2d7bd0ab2e0122ab5733734 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 23:26:41 +0400 Subject: [PATCH 040/125] another addition of lots of text in the comment headers, related to #166; following instructions from https://softwarefreedom.org/resources/2007/gpl-non-gpl-collaboration.html which is linked on the apache2.0 page about gplv3 relicensing --- cvxportfolio/__init__.py | 34 +++++++++++++++++++ cvxportfolio/constraints/__init__.py | 17 ++++++++++ cvxportfolio/constraints/constraints.py | 17 ++++++++++ cvxportfolio/costs.py | 17 ++++++++++ cvxportfolio/policies.py | 17 ++++++++++ cvxportfolio/result.py | 17 ++++++++++ cvxportfolio/returns.py | 17 ++++++++++ cvxportfolio/risks.py | 17 ++++++++++ cvxportfolio/simulator.py | 17 ++++++++++ cvxportfolio/tests/__init__.py | 17 ++++++++++ cvxportfolio/tests/__main__.py | 17 ++++++++++ cvxportfolio/tests/test_constraints.py | 17 ++++++++++ cvxportfolio/tests/test_costs.py | 17 ++++++++++ cvxportfolio/tests/test_policies.py | 17 ++++++++++ cvxportfolio/tests/test_result.py | 17 ++++++++++ cvxportfolio/tests/test_returns.py | 17 ++++++++++ cvxportfolio/tests/test_risks.py | 17 ++++++++++ cvxportfolio/tests/test_simulator.py | 17 ++++++++++ .../paper_examples/data_risk_model.rst | 2 +- docs/examples/paper_examples/hello_world.rst | 2 +- .../paper_examples/multi_period_opt.rst | 2 +- .../paper_examples/portfolio_simulation.rst | 2 +- docs/examples/paper_examples/rank_and_spo.rst | 2 +- .../paper_examples/real_time_optimization.rst | 2 +- .../paper_examples/single_period_opt.rst | 2 +- .../single_period_opt_lin_tcost.rst | 2 +- .../examples/paper_examples/solution_time.rst | 2 +- docs/examples/risk_models.rst | 2 +- examples/paper_examples/__init__.py | 17 ++++++++++ examples/paper_examples/common.py | 17 ++++++++++ examples/paper_examples/data_risk_model.py | 17 ++++++++++ examples/paper_examples/hello_world.py | 17 ++++++++++ examples/paper_examples/multi_period_opt.py | 17 ++++++++++ .../paper_examples/portfolio_simulation.py | 17 ++++++++++ examples/paper_examples/rank_and_spo.py | 17 ++++++++++ .../paper_examples/real_time_optimization.py | 17 ++++++++++ examples/paper_examples/single_period_opt.py | 17 ++++++++++ .../single_period_opt_lin_tcost.py | 17 ++++++++++ examples/paper_examples/solution_time.py | 17 ++++++++++ 39 files changed, 520 insertions(+), 10 deletions(-) diff --git a/cvxportfolio/__init__.py b/cvxportfolio/__init__.py index 46e8302f4..6856c3808 100644 --- a/cvxportfolio/__init__.py +++ b/cvxportfolio/__init__.py @@ -15,6 +15,40 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Cvxportfolio __init__ module. This module only republishes the api of a selection of cvxportfolio diff --git a/cvxportfolio/constraints/__init__.py b/cvxportfolio/constraints/__init__.py index ce5d79111..abfbde70b 100644 --- a/cvxportfolio/constraints/__init__.py +++ b/cvxportfolio/constraints/__init__.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Here we define many realistic constraints that apply to :ref:`portfolio optimization trading policies `. diff --git a/cvxportfolio/constraints/constraints.py b/cvxportfolio/constraints/constraints.py index a6addf7d4..1c5a356a1 100644 --- a/cvxportfolio/constraints/constraints.py +++ b/cvxportfolio/constraints/constraints.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module defines user-facing constraints.""" import cvxpy as cp diff --git a/cvxportfolio/costs.py b/cvxportfolio/costs.py index b0925cfc4..f60ad6e4a 100644 --- a/cvxportfolio/costs.py +++ b/cvxportfolio/costs.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module defines cost models for both simulation and optimization. We implement two types of costs, as discussed in the paper: diff --git a/cvxportfolio/policies.py b/cvxportfolio/policies.py index bae1b26a9..718fbbbeb 100644 --- a/cvxportfolio/policies.py +++ b/cvxportfolio/policies.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module contains trading policies that can be back-tested.""" import copy diff --git a/cvxportfolio/result.py b/cvxportfolio/result.py index cf01d60e7..02fd1407b 100644 --- a/cvxportfolio/result.py +++ b/cvxportfolio/result.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module defines :class:`BacktestResult`. This is the object that is returned by the diff --git a/cvxportfolio/returns.py b/cvxportfolio/returns.py index 293bcbf59..abcc0c2d4 100644 --- a/cvxportfolio/returns.py +++ b/cvxportfolio/returns.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module contains classes that define return models for portfolio optimization policies and related objects.""" diff --git a/cvxportfolio/risks.py b/cvxportfolio/risks.py index 8d72643b1..ef8f76c15 100644 --- a/cvxportfolio/risks.py +++ b/cvxportfolio/risks.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module implements risk models, which are objective terms that are used to penalize allocations which might incur in losses.""" diff --git a/cvxportfolio/simulator.py b/cvxportfolio/simulator.py index dbcdc032f..e0e036b73 100644 --- a/cvxportfolio/simulator.py +++ b/cvxportfolio/simulator.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module implements :class:`cvxportfolio.MarketSimulator` and derived classes. diff --git a/cvxportfolio/tests/__init__.py b/cvxportfolio/tests/__init__.py index bc834e9b0..72b9be98d 100644 --- a/cvxportfolio/tests/__init__.py +++ b/cvxportfolio/tests/__init__.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """We make the tests a sub-package so we can ship them.""" diff --git a/cvxportfolio/tests/__main__.py b/cvxportfolio/tests/__main__.py index a117810e2..058a5d2a9 100644 --- a/cvxportfolio/tests/__main__.py +++ b/cvxportfolio/tests/__main__.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Run all tests with ``python -m cvxportfolio.tests``.""" import unittest diff --git a/cvxportfolio/tests/test_constraints.py b/cvxportfolio/tests/test_constraints.py index 38402941c..b48b43a7a 100644 --- a/cvxportfolio/tests/test_constraints.py +++ b/cvxportfolio/tests/test_constraints.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the constraints objects.""" import unittest diff --git a/cvxportfolio/tests/test_costs.py b/cvxportfolio/tests/test_costs.py index 00baa4c31..0d9d0b985 100644 --- a/cvxportfolio/tests/test_costs.py +++ b/cvxportfolio/tests/test_costs.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the cost objects.""" import unittest diff --git a/cvxportfolio/tests/test_policies.py b/cvxportfolio/tests/test_policies.py index 753bfd0dd..ef9a11aa1 100644 --- a/cvxportfolio/tests/test_policies.py +++ b/cvxportfolio/tests/test_policies.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the policy objects.""" import unittest diff --git a/cvxportfolio/tests/test_result.py b/cvxportfolio/tests/test_result.py index ba73d31da..44226b6f8 100644 --- a/cvxportfolio/tests/test_result.py +++ b/cvxportfolio/tests/test_result.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the BacktestResult class and methods.""" import logging diff --git a/cvxportfolio/tests/test_returns.py b/cvxportfolio/tests/test_returns.py index 7b51bcd43..b8de41b34 100644 --- a/cvxportfolio/tests/test_returns.py +++ b/cvxportfolio/tests/test_returns.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the return forecast objects.""" import unittest diff --git a/cvxportfolio/tests/test_risks.py b/cvxportfolio/tests/test_risks.py index eab629422..fb4c474e6 100644 --- a/cvxportfolio/tests/test_risks.py +++ b/cvxportfolio/tests/test_risks.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the risk objects.""" import unittest diff --git a/cvxportfolio/tests/test_simulator.py b/cvxportfolio/tests/test_simulator.py index 42fca2a25..065bdeb19 100644 --- a/cvxportfolio/tests/test_simulator.py +++ b/cvxportfolio/tests/test_simulator.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Unit tests for the market simulator and its backtest methods.""" # pylint: disable=too-many-lines diff --git a/docs/examples/paper_examples/data_risk_model.rst b/docs/examples/paper_examples/data_risk_model.rst index 15dde6482..0a000bcb7 100644 --- a/docs/examples/paper_examples/data_risk_model.rst +++ b/docs/examples/paper_examples/data_risk_model.rst @@ -30,4 +30,4 @@ which doesn't run any more for reasons explained below. .. literalinclude:: ../../../examples/paper_examples/data_risk_model.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/hello_world.rst b/docs/examples/paper_examples/hello_world.rst index 7c0fc8454..5b7a1303a 100644 --- a/docs/examples/paper_examples/hello_world.rst +++ b/docs/examples/paper_examples/hello_world.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/hello_world.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/multi_period_opt.rst b/docs/examples/paper_examples/multi_period_opt.rst index 28df670d2..aa135554a 100644 --- a/docs/examples/paper_examples/multi_period_opt.rst +++ b/docs/examples/paper_examples/multi_period_opt.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/multi_period_opt.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/portfolio_simulation.rst b/docs/examples/paper_examples/portfolio_simulation.rst index ef8a91c92..4fe5f94e1 100644 --- a/docs/examples/paper_examples/portfolio_simulation.rst +++ b/docs/examples/paper_examples/portfolio_simulation.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/portfolio_simulation.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/rank_and_spo.rst b/docs/examples/paper_examples/rank_and_spo.rst index 3df83be1e..a6dba1bec 100644 --- a/docs/examples/paper_examples/rank_and_spo.rst +++ b/docs/examples/paper_examples/rank_and_spo.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/rank_and_spo.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/real_time_optimization.rst b/docs/examples/paper_examples/real_time_optimization.rst index 39b0fcbc2..3f1c26777 100644 --- a/docs/examples/paper_examples/real_time_optimization.rst +++ b/docs/examples/paper_examples/real_time_optimization.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/real_time_optimization.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/single_period_opt.rst b/docs/examples/paper_examples/single_period_opt.rst index 214c9f029..166471141 100644 --- a/docs/examples/paper_examples/single_period_opt.rst +++ b/docs/examples/paper_examples/single_period_opt.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/single_period_opt.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/single_period_opt_lin_tcost.rst b/docs/examples/paper_examples/single_period_opt_lin_tcost.rst index c9693a82f..06302bf74 100644 --- a/docs/examples/paper_examples/single_period_opt_lin_tcost.rst +++ b/docs/examples/paper_examples/single_period_opt_lin_tcost.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/single_period_opt_lin_tcost.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/paper_examples/solution_time.rst b/docs/examples/paper_examples/solution_time.rst index e4d35423e..b6baa008b 100644 --- a/docs/examples/paper_examples/solution_time.rst +++ b/docs/examples/paper_examples/solution_time.rst @@ -30,4 +30,4 @@ using Cvxportfolio's stable API. .. literalinclude:: ../../../examples/paper_examples/solution_time.py :language: python - :lines: 16- \ No newline at end of file + :lines: 35- \ No newline at end of file diff --git a/docs/examples/risk_models.rst b/docs/examples/risk_models.rst index a48e78d6e..e2775360f 100644 --- a/docs/examples/risk_models.rst +++ b/docs/examples/risk_models.rst @@ -24,4 +24,4 @@ This example script is .. literalinclude:: ../../examples/risk_models.py :language: python - :lines: 16- + :lines: 35- diff --git a/examples/paper_examples/__init__.py b/examples/paper_examples/__init__.py index e2a941ac1..98f1a15a6 100644 --- a/examples/paper_examples/__init__.py +++ b/examples/paper_examples/__init__.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This package contains the restored versions of the original code examples developed for the 2017 paper. You can find the originals at: diff --git a/examples/paper_examples/common.py b/examples/paper_examples/common.py index a4e02a031..2f99350fe 100644 --- a/examples/paper_examples/common.py +++ b/examples/paper_examples/common.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This module defines some common operations used by the examples.""" from pathlib import Path diff --git a/examples/paper_examples/data_risk_model.py b/examples/paper_examples/data_risk_model.py index 2fadfc3a5..2dabe1faf 100644 --- a/examples/paper_examples/data_risk_model.py +++ b/examples/paper_examples/data_risk_model.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This is the restored version of the IPython notebook used to download data for the original 2016 examples: diff --git a/examples/paper_examples/hello_world.py b/examples/paper_examples/hello_world.py index 863e1f8b7..94b1c806c 100644 --- a/examples/paper_examples/hello_world.py +++ b/examples/paper_examples/hello_world.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """This is a simple example of back-tests with Cvxportfolio. This is a close translation of what was done in `this notebook diff --git a/examples/paper_examples/multi_period_opt.py b/examples/paper_examples/multi_period_opt.py index 05fabd487..b6d8081d5 100644 --- a/examples/paper_examples/multi_period_opt.py +++ b/examples/paper_examples/multi_period_opt.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/paper_examples/portfolio_simulation.py b/examples/paper_examples/portfolio_simulation.py index d7324d1e9..b1335d7be 100644 --- a/examples/paper_examples/portfolio_simulation.py +++ b/examples/paper_examples/portfolio_simulation.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Simulate periodic rebalancing policy, analyze transaction cost. This is a close translation of what was done in `this notebook diff --git a/examples/paper_examples/rank_and_spo.py b/examples/paper_examples/rank_and_spo.py index fb6afa0dd..0203b63d4 100644 --- a/examples/paper_examples/rank_and_spo.py +++ b/examples/paper_examples/rank_and_spo.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """Ranking vs. SPO example. *Work in progress.* diff --git a/examples/paper_examples/real_time_optimization.py b/examples/paper_examples/real_time_optimization.py index 05fabd487..b6d8081d5 100644 --- a/examples/paper_examples/real_time_optimization.py +++ b/examples/paper_examples/real_time_optimization.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/paper_examples/single_period_opt.py b/examples/paper_examples/single_period_opt.py index 3fa5d2194..4ad05a888 100644 --- a/examples/paper_examples/single_period_opt.py +++ b/examples/paper_examples/single_period_opt.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """*Work in progress.*""" import matplotlib.pyplot as plt diff --git a/examples/paper_examples/single_period_opt_lin_tcost.py b/examples/paper_examples/single_period_opt_lin_tcost.py index 05fabd487..b6d8081d5 100644 --- a/examples/paper_examples/single_period_opt_lin_tcost.py +++ b/examples/paper_examples/single_period_opt_lin_tcost.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """*Work in progress.*""" import cvxportfolio as cvx diff --git a/examples/paper_examples/solution_time.py b/examples/paper_examples/solution_time.py index 05fabd487..b6d8081d5 100644 --- a/examples/paper_examples/solution_time.py +++ b/examples/paper_examples/solution_time.py @@ -15,6 +15,23 @@ # # You should have received a copy of the GNU General Public License along with # Cvxportfolio. If not, see . +# +## Earlier versions of this module had the following copyright and licensing +## notice, which is subsumed by the above. +## +### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. +### +### Licensed under the Apache License, Version 2.0 (the "License"); +### you may not use this file except in compliance with the License. +### You may obtain a copy of the License at +### +### http://www.apache.org/licenses/LICENSE-2.0 +### +### Unless required by applicable law or agreed to in writing, software +### distributed under the License is distributed on an "AS IS" BASIS, +### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +### See the License for the specific language governing permissions and +### limitations under the License. """*Work in progress.*""" import cvxportfolio as cvx From 2686b26f223859edc6f16224e1c7568d16a0e909 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 16 Jul 2024 23:28:55 +0400 Subject: [PATCH 041/125] *amend to last commit; copy-pasted twice by mistake --- cvxportfolio/__init__.py | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/cvxportfolio/__init__.py b/cvxportfolio/__init__.py index 6856c3808..546bb1791 100644 --- a/cvxportfolio/__init__.py +++ b/cvxportfolio/__init__.py @@ -32,23 +32,6 @@ ### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ### See the License for the specific language governing permissions and ### limitations under the License. -# -## Earlier versions of this module had the following copyright and licensing -## notice, which is subsumed by the above. -## -### Copyright 2016 Enzo Busseti, Stephen Boyd, Steven Diamond, BlackRock Inc. -### -### Licensed under the Apache License, Version 2.0 (the "License"); -### you may not use this file except in compliance with the License. -### You may obtain a copy of the License at -### -### http://www.apache.org/licenses/LICENSE-2.0 -### -### Unless required by applicable law or agreed to in writing, software -### distributed under the License is distributed on an "AS IS" BASIS, -### WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -### See the License for the specific language governing permissions and -### limitations under the License. """Cvxportfolio __init__ module. This module only republishes the api of a selection of cvxportfolio From f48e4d1684bae3c34c0c626821d5147f240b3db4 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 17 Jul 2024 11:31:20 +0400 Subject: [PATCH 042/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-17 --- .../ftse100_daily_initial_holdings.json | 279 ++++++++++++------ .../ftse100_daily_target_weights.json | 103 +++++++ 2 files changed, 294 insertions(+), 88 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index e9b6c9f74..5a7f6e64f 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10588,106 +10588,209 @@ "WTB.L": 11812.663864385473 }, "2024-07-16 07:00:00+00:00": { - "AAF.L": 21901.042350210097, - "AAL.L": 10395.09497642291, - "ABF.L": 9771.805945809734, - "ADM.L": 10347.422617232181, - "AHT.L": 15938.57603815961, - "ANTO.L": 19539.380269120044, - "AUTO.L": 10543.398583448698, - "AV.L": 13285.773123653515, - "AZN.L": 12189.071222875133, - "BA.L": 10324.011083960215, - "BARC.L": 10683.50700331885, - "BATS.L": 10225.29702233303, - "BDEV.L": 10158.660424833777, - "BEZ.L": 10227.856981716668, - "BKG.L": 9636.938193405535, - "BME.L": 10772.57073568327, - "BNZL.L": 9443.077304159362, - "BP.L": 1.3692898925392825e-12, - "BRBY.L": 9119.226072853773, + "AAF.L": 22093.02059603586, + "AAL.L": 10321.889849302988, + "ABF.L": 9822.802925856107, + "ADM.L": 10299.092689578492, + "AHT.L": 16049.217908073553, + "ANTO.L": 19833.540647259175, + "AUTO.L": 10594.942941435238, + "AV.L": 13409.609006772362, + "AZN.L": 12302.400247529695, + "BA.L": 10340.295103944258, + "BARC.L": 10727.597345524335, + "BATS.L": 10353.853015200553, + "BDEV.L": 10274.495907627661, + "BEZ.L": 10128.745811239209, + "BKG.L": 9692.897187477576, + "BME.L": 10203.034397028308, + "BNZL.L": 9484.72918892882, + "BP.L": 1.3761392556501275e-12, + "BRBY.L": 9957.549458583013, "BT-A.L": 0.0, "CCH.L": 0.0, - "CNA.L": 10233.35995173976, + "CNA.L": 10395.47167450012, "CPG.L": 0.0, - "CRDA.L": 11848.00026464342, - "CTEC.L": 41.94922333024149, - "DARK.L": 24733.600524902336, - "DCC.L": 22243.8458396635, - "DGE.L": 10077.846261341581, - "DPLM.L": 8481.414412015456, - "EDV.L": 7228.000000000004, - "ENT.L": 11225.416663137834, - "EXPN.L": 10877.940238590005, - "EZJ.L": 9606.771296088207, + "CRDA.L": 11938.84567849549, + "CTEC.L": 42.29391703921572, + "DARK.L": 25291.623377287084, + "DCC.L": 22263.5480946145, + "DGE.L": 10020.188780163078, + "DPLM.L": 8552.887005375143, + "EDV.L": 7235.991155334442, + "ENT.L": 11366.575007491707, + "EXPN.L": 10886.748287366183, + "EZJ.L": 9709.348971673047, "FCIT.L": 0.0, - "FRAS.L": 10104.917031319805, - "FRES.L": 10992.713294417576, - "GBPOUND": 1063.912098412153, - "GLEN.L": 10316.977636992002, - "GSK.L": 10533.600110000156, - "HIK.L": 11049.317311055034, - "HL.L": 10097.999999999996, - "HLMA.L": 10591.334027458819, + "FRAS.L": 10116.478721286987, + "FRES.L": 11073.08244116799, + "GBPOUND": 1383.0507036639603, + "GLEN.L": 10405.555774095736, + "GSK.L": 10653.812643707917, + "HIK.L": 11158.656349867011, + "HL.L": 11265.941765241123, + "HLMA.L": 10655.161275835222, "HLN.L": 0.0, - "HSBA.L": 10014.116947616625, - "HWDN.L": 10372.237678666992, - "IAG.L": 10304.215181027083, - "ICG.L": 11179.745198197248, - "IHG.L": 16793.484858120275, - "III.L": 12075.93584504438, - "IMB.L": 10315.050323520589, - "IMI.L": 10951.873194829333, - "INF.L": 10212.793632840461, - "ITRK.L": 9496.650085832893, - "JD.L": 10525.521178755269, - "KGF.L": 10314.940432209329, + "HSBA.L": 10181.033003449149, + "HWDN.L": 10272.217079105321, + "IAG.L": 10576.404545387322, + "ICG.L": 11329.559901050789, + "IHG.L": 16817.752899822783, + "III.L": 9176.686359227973, + "IMB.L": 10349.797846265848, + "IMI.L": 11035.247977171703, + "INF.L": 10255.895400416595, + "ITRK.L": 9623.377693316901, + "JD.L": 10530.427402817677, + "KGF.L": 10379.55179935713, + "LAND.L": 0.0, + "LGEN.L": 10370.578013371525, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28646.91430873755, + "MKS.L": 0.0, + "MNDI.L": 9816.29909637311, + "MNG.L": 10515.67929669212, + "MRO.L": 45996.61363707418, + "NG.L": 10523.443600108261, + "NWG.L": 10436.854350150075, + "NXT.L": 9053.671694281142, + "PHNX.L": 0.0, + "PRU.L": 10175.330092515194, + "PSH.L": 54471.2130978829, + "PSN.L": 10492.297864231485, + "PSON.L": 1028.4131728588773, + "REL.L": 10635.580568152385, + "RIO.L": 10880.475771546538, + "RKT.L": 8737.278961591099, + "RMV.L": 12091.33114660549, + "RR.L": 10695.626670546579, + "RTO.L": 10310.330495193593, + "SBRY.L": 0.0, + "SDR.L": 10499.98661834001, + "SGE.L": 37917.39644757877, + "SGRO.L": 0.0, + "SHEL.L": 9.011418479614547e-13, + "SMDS.L": 10836.256762727171, + "SMIN.L": 0.0, + "SMT.L": 10649.543029996521, + "SN.L": 3278.0794998506467, + "SPX.L": 8969.29697742146, + "SSE.L": 10864.292601078187, + "STAN.L": 10455.060418380866, + "SVT.L": 10423.785247423268, + "TSCO.L": 10288.408160306044, + "TW.L": 10536.470732109234, + "ULVR.L": 8864.520146237905, + "UTG.L": 10535.129820164577, + "UU.L": 10418.76754862313, + "VOD.L": 10416.722813822858, + "VTY.L": 10591.421686746988, + "WEIR.L": 9964.125891827955, + "WPP.L": 10351.433964447755, + "WTB.L": 11942.473357400693 + }, + "2024-07-17 07:00:00+00:00": { + "AAF.L": 22505.623114113692, + "AAL.L": 10079.746986555432, + "ABF.L": 9850.765357934588, + "ADM.L": 10467.339244600787, + "AHT.L": 16489.832013861196, + "ANTO.L": 19004.425984222038, + "AUTO.L": 10579.460646411457, + "AV.L": 12896.981990361399, + "AZN.L": 12384.27978328698, + "BA.L": 10433.597099782122, + "BARC.L": 10641.029783739326, + "BATS.L": 10362.23670185254, + "BDEV.L": 10387.035897872376, + "BEZ.L": 10250.687070065262, + "BKG.L": 9866.272636338452, + "BME.L": 11177.286263875505, + "BNZL.L": 9551.225059596898, + "BP.L": 1.3715347297976122e-12, + "BRBY.L": 10333.540126315975, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10587.482594443298, + "CPG.L": 0.0, + "CRDA.L": 12065.822512756504, + "CTEC.L": 42.852254721626934, + "DARK.L": 25485.090370144335, + "DCC.L": 22364.746040499133, + "DGE.L": 10034.370203830922, + "DPLM.L": 8709.268905614068, + "EDV.L": 7336.101713653952, + "ENT.L": 11373.356352332137, + "EXPN.L": 10732.94658025935, + "EZJ.L": 9723.23043901773, + "FCIT.L": 0.0, + "FRAS.L": 9952.078602775066, + "FRES.L": 10256.56686435533, + "GBPOUND": 6940.545894438922, + "GLEN.L": 10146.334854947014, + "GSK.L": 10707.511296145964, + "HIK.L": 11298.825162563322, + "HL.L": 9854.631483166513, + "HLMA.L": 10783.536712893481, + "HLN.L": 0.0, + "HSBA.L": 10141.263715258758, + "HWDN.L": 10473.19523934868, + "IAG.L": 10351.799518030803, + "ICG.L": 11086.78361745684, + "IHG.L": 17119.434666741403, + "III.L": 9200.772150197083, + "IMB.L": 10364.95868295471, + "IMI.L": 11071.508375782345, + "INF.L": 10364.436152949316, + "ITRK.L": 9651.83719642345, + "JD.L": 10651.983288685788, + "KGF.L": 10691.250058731426, "LAND.L": 0.0, - "LGEN.L": 10469.167379417944, + "LGEN.L": 10195.565689142031, "LLOY.L": 0.0, "LMP.L": 0.0, - "LSEG.L": 28537.528551937143, + "LSEG.L": 28568.313657405015, "MKS.L": 0.0, - "MNDI.L": 9763.689674986494, - "MNG.L": 10260.279778496391, - "MRO.L": 45714.42773118817, - "NG.L": 10452.608877216637, - "NWG.L": 10250.171220018796, - "NXT.L": 9007.946079663561, + "MNDI.L": 9992.094667014906, + "MNG.L": 10505.470055099728, + "MRO.L": 46280.93142414131, + "NG.L": 10496.145155202257, + "NWG.L": 10631.511247025172, + "NXT.L": 9152.65204078264, "PHNX.L": 0.0, - "PRU.L": 10066.904613674971, - "PSH.L": 54263.009703337746, - "PSN.L": 10390.178037386146, - "PSON.L": 1022.8322429617649, - "REL.L": 10617.735634313194, - "RIO.L": 10859.790456391493, - "RKT.L": 8606.20434548174, - "RMV.L": 11928.483316215064, - "RR.L": 10690.390074638004, - "RTO.L": 10228.114226463545, + "PRU.L": 10146.610559794068, + "PSH.L": 54523.51383057413, + "PSN.L": 10637.679483844018, + "PSON.L": 1031.4769658266785, + "REL.L": 10683.91038612752, + "RIO.L": 10709.801641796788, + "RKT.L": 8809.23302362773, + "RMV.L": 12294.334337027396, + "RR.L": 10482.611653988402, + "RTO.L": 10435.704846849607, "SBRY.L": 0.0, - "SDR.L": 10439.86142833464, - "SGE.L": 38100.37177023448, + "SDR.L": 10267.374701376957, + "SGE.L": 38062.53480718673, "SGRO.L": 0.0, - "SHEL.L": 8.940795373360993e-13, - "SMDS.L": 10820.806454530433, + "SHEL.L": 8.882775817521554e-13, + "SMDS.L": 10727.230455350138, "SMIN.L": 0.0, - "SMT.L": 10545.085524175758, - "SN.L": 3263.179138487691, - "SPX.L": 8889.124490472448, - "SSE.L": 10760.821223998028, - "STAN.L": 10385.686906056375, - "SVT.L": 10372.149783246476, - "TSCO.L": 10512.603084408796, - "TW.L": 10623.990059890895, - "ULVR.L": 8824.070590471356, - "UTG.L": 10496.007322158657, - "UU.L": 9368.711300781306, - "VOD.L": 10126.222466454994, - "VTY.L": 10528.000000000002, - "WEIR.L": 9834.85080540703, - "WPP.L": 10190.656513851318, - "WTB.L": 11856.96638825463 + "SMT.L": 10628.053066482293, + "SN.L": 3264.228459710433, + "SPX.L": 8928.757782043289, + "SSE.L": 10912.232116140867, + "STAN.L": 10443.517607186743, + "SVT.L": 10025.216790830416, + "TSCO.L": 10409.3707288798, + "TW.L": 10470.935506794185, + "ULVR.L": 8842.272890566297, + "UTG.L": 10551.825746979415, + "UU.L": 10255.781013884494, + "VOD.L": 10437.681922729074, + "VTY.L": 10663.855421686743, + "WEIR.L": 10075.683535400585, + "WPP.L": 10397.010072872166, + "WTB.L": 8931.22933095273 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 95c15a793..b9954d6a2 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10298,5 +10298,108 @@ "WEIR.L": 0.009999997387775959, "WPP.L": 0.009999989163741554, "WTB.L": 0.009999981909622263 + }, + "2024-07-17 07:00:00+00:00": { + "AAF.L": 0.02154725839018171, + "AAL.L": 0.009999998748889311, + "ABF.L": 0.009571845418370806, + "ADM.L": 0.01000003297367689, + "AHT.L": 0.01554751494653363, + "ANTO.L": 0.018159738044501342, + "AUTO.L": 0.010000010160911402, + "AV.L": 0.012321417047385973, + "AZN.L": 0.010000020754698516, + "BA.L": 0.010000005402193365, + "BARC.L": 0.010000000688123081, + "BATS.L": 0.010000000954677889, + "BDEV.L": 0.010000002559497529, + "BEZ.L": 0.010000006494037787, + "BKG.L": 0.010000001792276718, + "BME.L": 0.009999997497885452, + "BNZL.L": 0.009999987567946242, + "BP.L": 1.895159474443406e-07, + "BRBY.L": 0.00999998045109384, + "BT-A.L": 2.305513935036418e-08, + "CCH.L": 6.79055660073456e-08, + "CNA.L": 0.009999994177068169, + "CPG.L": 9.14207767855314e-08, + "CRDA.L": 0.009999997374713708, + "CTEC.L": 4.085923080100869e-05, + "DARK.L": 0.024411759368242147, + "DCC.L": 0.020621337680729497, + "DGE.L": 0.009587436283398927, + "DPLM.L": 0.010000005476789446, + "EDV.L": 0.007731823260600488, + "ENT.L": 0.0106796302748222, + "EXPN.L": 0.010000001290562993, + "EZJ.L": 0.009289580750883023, + "FCIT.L": 2.8147558339607517e-08, + "FRAS.L": 0.010000000410781968, + "FRES.L": 0.009999996932477016, + "GBPOUND": 1.4219288716789402e-07, + "GLEN.L": 0.009999475884909558, + "GSK.L": 0.009999992672492521, + "HIK.L": 0.010000006673932126, + "HL.L": 0.010000002721376825, + "HLMA.L": 0.010000004743620955, + "HLN.L": 9.412158032694672e-09, + "HSBA.L": 0.009999998212339366, + "HWDN.L": 0.010000000262941072, + "IAG.L": 0.009999164932128473, + "ICG.L": 0.010000011820739601, + "IHG.L": 0.01519751143113238, + "III.L": 0.010000003516050885, + "IMB.L": 0.010000007587714039, + "IMI.L": 0.009999992734012916, + "INF.L": 0.009999891735826924, + "ITRK.L": 0.009999995558162455, + "JD.L": 0.010000158382663708, + "KGF.L": 0.009999992539429407, + "LAND.L": 1.770291314521705e-08, + "LGEN.L": 0.009999995487241066, + "LLOY.L": 7.070658165900176e-08, + "LMP.L": 5.144709638426908e-08, + "LSEG.L": 0.02674894631461299, + "MKS.L": 4.1112757534141085e-08, + "MNDI.L": 0.009999998593329281, + "MNG.L": 0.010000001862258844, + "MRO.L": 0.0442160850746508, + "NG.L": 0.009999979886784648, + "NWG.L": 0.009999992941693608, + "NXT.L": 0.010000006361234572, + "PHNX.L": 2.8330597986866958e-08, + "PRU.L": 0.009999995916057504, + "PSH.L": 0.052188844869358694, + "PSN.L": 0.010000000690223231, + "PSON.L": 0.0009854197450876363, + "REL.L": 0.0099999946649211, + "RIO.L": 0.010000003015298591, + "RKT.L": 0.00999998676807921, + "RMV.L": 0.011745854145719194, + "RR.L": 0.009999996989895383, + "RTO.L": 0.00999999765294168, + "SBRY.L": 4.5530409431055635e-08, + "SDR.L": 0.009999990336071615, + "SGE.L": 0.036286204676409174, + "SGRO.L": 5.401305317662137e-08, + "SHEL.L": 3.4979926554679806e-06, + "SMDS.L": 0.009999995640189148, + "SMIN.L": 7.003685600744688e-08, + "SMT.L": 0.00999997879039253, + "SN.L": 0.003118055538575456, + "SPX.L": 0.009999974461444138, + "SSE.L": 0.009999997419910173, + "STAN.L": 0.009999992798001933, + "SVT.L": 0.01000000056031238, + "TSCO.L": 0.0099999893710959, + "TW.L": 0.009999997772630257, + "ULVR.L": 0.009999930588857321, + "UTG.L": 0.010000016608562402, + "UU.L": 0.009999979547160748, + "VOD.L": 0.009999998806947309, + "VTY.L": 0.009999999283213368, + "WEIR.L": 0.009999997465251128, + "WPP.L": 0.009999989229755289, + "WTB.L": 0.009999927788652448 } } \ No newline at end of file From 238a06e086afbead707dbea5f6960bc2fe12d943 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 17 Jul 2024 18:00:35 +0400 Subject: [PATCH 043/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-17 --- .../dow30_daily_initial_holdings.json | 59 +++++++++++++++---- .../dow30_daily_target_weights.json | 33 +++++++++++ 2 files changed, 79 insertions(+), 13 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 2993b1ea8..fb7e887e0 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4554,36 +4554,69 @@ "WMT": 0.0003840267875385279 }, "2024-07-16 13:30:00+00:00": { - "AAPL": 229290.37197723566, - "AMGN": 20881.487869625023, - "AMZN": 228455.14853479533, + "AAPL": 225451.13460300709, + "AMGN": 20815.421989511797, + "AMZN": 229152.9889151741, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, - "CRM": 80119.86810861834, - "CSCO": 44902.911561215915, + "CRM": 79478.33713976823, + "CSCO": 44551.81037451525, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, "GS": 0.0, - "HD": 110334.08562038191, + "HD": 109447.44475650652, "HON": 0.0, "IBM": 0.0, "INTC": 0.0, "JNJ": 0.0, "JPM": 0.0, "KO": 0.0, - "MCD": 1.1820023472786773e-12, + "MCD": 1.1832139626315355e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 242658.23667074423, - "NKE": 9.760436071617932e-13, + "MSFT": 240520.96538910866, + "NKE": 9.81659176036023e-13, "PG": 0.0, "TRV": 0.0, - "UNH": 110282.8276350433, - "USDOLLAR": -137.85093164478002, - "V": 34806.923394749545, + "UNH": 108676.86409659423, + "USDOLLAR": -151.64860103778182, + "V": 34547.5714609361, "VZ": 0.0, - "WMT": 0.0003872436599651366 + "WMT": 0.0003869083550937049 + }, + "2024-07-17 13:30:00+00:00": { + "AAPL": 221302.82723594373, + "AMGN": 20815.421989511797, + "AMZN": 223884.58441105942, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 79547.23670346245, + "CSCO": 44561.1980102971, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 111447.57268468701, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2207845471993696e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 234277.8580192229, + "NKE": 9.9566126014007e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 112214.27113013966, + "USDOLLAR": -401.7009178094483, + "V": 34537.28045120006, + "VZ": 0.0, + "WMT": 0.0003889033027389737 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 9390532f7..7cfad586c 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4585,5 +4585,38 @@ "V": 0.03159671891486125, "VZ": 4.453265899021993e-09, "WMT": 3.468077621079035e-08 + }, + "2024-07-17 13:30:00+00:00": { + "AAPL": 0.2044958743561874, + "AMGN": 0.01921227157079588, + "AMZN": 0.20942302371788038, + "AXP": 1.3303074187461916e-08, + "BA": 2.2797685078032105e-08, + "CAT": 1.1575138065217299e-08, + "CRM": 0.07351155768675714, + "CSCO": 0.041176972708006715, + "CVX": 1.278542708242354e-08, + "DIS": 1.6975672921170373e-08, + "DOW": 1.9534256502407915e-08, + "GS": 1.364446040113905e-08, + "HD": 0.10298294905005223, + "HON": 8.079018414820716e-09, + "IBM": 5.902923298979275e-09, + "INTC": 1.6012738875677383e-08, + "JNJ": 1.799465994292195e-08, + "JPM": 2.2187031391140517e-08, + "KO": 1.3794054936124599e-08, + "MCD": 3.746148718225879e-08, + "MMM": 7.833310780492849e-09, + "MRK": 1.5641052964478887e-08, + "MSFT": 0.21648984259393456, + "NKE": 3.4250515908235545e-08, + "PG": 1.0648115945063004e-08, + "TRV": 9.531138176591623e-09, + "UNH": 0.10079302396889046, + "USDOLLAR": 8.678150284914098e-09, + "V": 0.03191409167493964, + "VZ": 8.404105046552015e-09, + "WMT": 6.563853811326232e-08 } } \ No newline at end of file From 17189687d34831f7c6a2df3de1e1c9af2cfd7b17 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 17 Jul 2024 18:01:45 +0400 Subject: [PATCH 044/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-17 --- .../ndx100_daily_initial_holdings.json | 274 ++++++++++++------ .../ndx100_daily_target_weights.json | 104 +++++++ 2 files changed, 293 insertions(+), 85 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 309cde2e6..59021aaa3 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14247,107 +14247,211 @@ "ZS": 20105.575823271694 }, "2024-07-16 13:30:00+00:00": { - "AAPL": 8409.327699713334, + "AAPL": 7485.953361314426, "ABNB": 0.0, - "ADBE": 11551.411058629881, + "ADBE": 11519.123542555546, "ADI": 0.0, "ADP": 0.0, - "ADSK": 86.95589439675526, + "ADSK": 86.99708289658888, "AEP": 0.0, - "AMAT": -63.67255612717176, - "AMD": -2.2235545622945072e-11, - "AMGN": 37628.24882439226, - "AMZN": 19665.174941437097, + "AMAT": -63.38090750014194, + "AMD": -2.189013774951056e-11, + "AMGN": 37509.19871688919, + "AMZN": 19853.48958053996, "ANSS": 11.74610302482013, - "ARM": 75112.5449523926, - "ASML": 18.989871492180868, + "ARM": 74136.68005417113, + "ASML": 18.77334771178931, "AVGO": -36.793836435287176, "AZN": 0.0, - "BIIB": 14041.167056369184, - "BKNG": 11625.919466329851, + "BIIB": 14928.327029513715, + "BKNG": 11602.319118634987, "BKR": 0.0, - "CCEP": 18877.200902762055, - "CDNS": -99.55674157130763, - "CDW": 9033.585377724232, - "CEG": 82667.70891662757, - "CHTR": 20438.558086212153, - "CMCSA": 36448.53396635588, + "CCEP": 18728.973179233173, + "CDNS": -99.90487718762436, + "CDW": 9000.89060449511, + "CEG": 82721.04268986244, + "CHTR": 20329.40889480517, + "CMCSA": 36457.081754629864, "COST": 0.0, - "CPRT": -0.8595013626976052, - "CRWD": 14162.329026068088, - "CSCO": 59751.719984498, - "CSGP": 5829.200859929761, - "CSX": 0.0, + "CPRT": -0.8612148079019742, + "CRWD": 14148.99219118759, + "CSCO": 59536.701891067845, + "CSGP": 5857.798319236521, + "CSX": 380.59998321533203, + "CTAS": 0.0, + "CTSH": 28081.807304035337, + "DASH": 0.0, + "DDOG": 18565.75458761819, + "DLTR": 28801.197979189856, + "DXCM": 10574.09403921322, + "EA": 13915.428308707313, + "EXC": 0.0, + "FANG": 29011.238514908342, + "FAST": 21329.226402650835, + "FTNT": 25915.87190003864, + "GEHC": 2297.695246343627, + "GFS": 23690.502035383633, + "GILD": 30080.722827379002, + "GOOG": -62.079633513703826, + "GOOGL": -2.436962455221189e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 5778.046739759946, + "INTC": 2.1842528147451694, + "INTU": -102.80782992797744, + "ISRG": 9012.139054987618, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 15348.48154249112, + "LIN": 0.0, + "LRCX": -11.369780598742567, + "LULU": 21749.347496147562, + "MAR": 0.0, + "MCHP": 12257.44690914507, + "MDB": 25594.99617691098, + "MDLZ": 0.0, + "MELI": 22570.364986196862, + "META": -136.16916140725445, + "MNST": 17668.896710532357, + "MRNA": 20848.254562736263, + "MRVL": 0.0, + "MSFT": 44.45683345394406, + "MU": 9.607945045398736, + "NFLX": 16521.502544628827, + "NVDA": 19.044285156968996, + "NXPI": 20662.750907737896, + "ODFL": 9366.258209795826, + "ON": -3.3748908597742178, + "ORLY": 28425.25580788087, + "PANW": -8.043393100430587, + "PAYX": 6790.945179061892, + "PCAR": 0.0, + "PDD": 28424.806499140446, + "PEP": 26302.551559638097, + "PYPL": 9001.12459671591, + "QCOM": -7.911820658066259, + "REGN": 16399.123062339153, + "ROP": 15003.530376543848, + "ROST": 9223.069389902676, + "SBUX": 31315.814977909162, + "SNPS": 0.0, + "TEAM": 12212.562975361236, + "TMUS": 3890.4969311682594, + "TSLA": 721.9600414687854, + "TTD": 40454.05918655042, + "TTWO": 9869.523233123415, + "TXN": 0.0, + "USDOLLAR": -2446.3695209674697, + "VRSK": 0.0, + "VRTX": 12245.30005149832, + "WBA": 223.06795822806643, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 19833.195221452617 + }, + "2024-07-17 13:30:00+00:00": { + "AAPL": 7998.552946208114, + "ABNB": 0.0, + "ADBE": 11558.704004407722, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 84.84605510546595, + "AEP": 0.0, + "AMAT": -59.346456916303524, + "AMD": -2.0674357916202397e-11, + "AMGN": 37509.19871688919, + "AMZN": 19238.791210531374, + "ANSS": 11.735741453626726, + "ARM": 70187.97560671718, + "ASML": 17.097143460063812, + "AVGO": -36.793836435287176, + "AZN": 0.0, + "BIIB": 15482.80086068194, + "BKNG": 11560.27255686214, + "BKR": 0.0, + "CCEP": 18033.50338752396, + "CDNS": -96.17939051502589, + "CDW": 9753.957305026493, + "CEG": 78283.78130996593, + "CHTR": 20983.760475178493, + "CMCSA": 36594.37897279877, + "COST": 0.0, + "CPRT": -0.8432924936040134, + "CRWD": 13444.236036499558, + "CSCO": 59501.7870359025, + "CSGP": 5891.671964732364, + "CSX": 914.159996032715, "CTAS": 0.0, - "CTSH": 28375.700245548895, + "CTSH": 27966.52542015015, "DASH": 0.0, - "DDOG": 18225.410994454895, - "DLTR": 28661.697737796167, - "DXCM": 10750.717322602934, - "EA": 13835.298185587568, + "DDOG": 17681.846873022143, + "DLTR": 29073.254392311137, + "DXCM": 10865.296012355877, + "EA": 13830.70149094499, "EXC": 0.0, - "FANG": 28075.660923290307, - "FAST": 19010.97426298963, - "FTNT": 25920.968708797296, - "GEHC": 2457.676520046865, - "GFS": 22940.84664252947, - "GILD": 29986.821490221468, - "GOOG": -61.96028509984144, - "GOOGL": -2.43544208476821e-12, + "FANG": 28690.998594879948, + "FAST": 21371.608282915382, + "FTNT": 24760.00557791929, + "GEHC": 2524.3004449455325, + "GFS": 24691.4802617045, + "GILD": 30871.28283967022, + "GOOG": -60.67022332754368, + "GOOGL": -2.378561650487346e-12, "HON": 0.0, "IDXX": 0.0, - "ILMN": 5662.022233988295, - "INTC": 2.196912359333467, - "INTU": -102.66208861261812, - "ISRG": 9008.892532922715, + "ILMN": 6135.100563050404, + "INTC": 2.2951817658799465, + "INTU": -102.80782992797744, + "ISRG": 8790.740484613574, "KDP": 0.0, "KHC": 0.0, - "KLAC": 17949.13821208267, + "KLAC": 15380.585588993374, "LIN": 0.0, - "LRCX": -11.352656531565431, - "LULU": 21349.642964329316, - "MAR": 0.0, - "MCHP": 12241.563880471209, - "MDB": 26158.008324159855, - "MDLZ": 0.0, - "MELI": 22370.448366690314, - "META": -136.10365482381462, - "MNST": 17649.56412204597, - "MRNA": 20367.972247772537, - "MRVL": 0.0, - "MSFT": 44.4323285291009, - "MU": 9.629412563400493, - "NFLX": 16518.95197798315, - "NVDA": 19.234300393278872, - "NXPI": 21360.845174317925, - "ODFL": 9569.065739592314, - "ON": -3.326157533634382, - "ORLY": 28227.11993041645, - "PANW": -7.9544790261609934, - "PAYX": 6807.018351600841, - "PCAR": 0.0, - "PDD": 27008.358649817834, - "PEP": 25916.376834879437, - "PYPL": 8207.999897003176, - "QCOM": -7.922386807098653, - "REGN": 16357.977898218714, - "ROP": 14431.436227500206, - "ROST": 8987.703291080556, - "SBUX": 31531.506650841533, - "SNPS": 0.0, - "TEAM": 12762.955698247484, - "TMUS": 4054.5476851187555, - "TSLA": 2060.9059330698396, - "TTD": 40523.08540727202, - "TTWO": 9882.394928256559, - "TXN": 0.0, - "USDOLLAR": -1300.0429759512472, - "VRSK": 0.0, - "VRTX": 11745.077353623634, - "WBA": 222.86999130249035, - "WBD": 0.0, - "WDAY": 0.0, - "XEL": 0.0, - "ZS": 20073.31231134864 + "LRCX": -10.766419491818095, + "LULU": 21921.639477755707, + "MAR": 0.0, + "MCHP": 12437.256373522263, + "MDB": 25196.695395627194, + "MDLZ": 0.0, + "MELI": 22299.724310348924, + "META": -129.91325185116673, + "MNST": 18233.28868414174, + "MRNA": 20663.153236265134, + "MRVL": 0.0, + "MSFT": 43.302885048119684, + "MU": 9.025957761355942, + "NFLX": 16226.921807330427, + "NVDA": 17.991540386793087, + "NXPI": 20948.140922386334, + "ODFL": 9869.251445184913, + "ON": -3.4043908030413492, + "ORLY": 28412.48523773352, + "PANW": -7.892207350257596, + "PAYX": 7085.382671481518, + "PCAR": 0.0, + "PDD": 27366.04976950345, + "PEP": 26730.70700853051, + "PYPL": 8376.178903862674, + "QCOM": -7.524894791583948, + "REGN": 16476.303134657825, + "ROP": 15215.774535271867, + "ROST": 8971.936262617764, + "SBUX": 32846.84364486451, + "SNPS": 0.0, + "TEAM": 12136.547112497232, + "TMUS": 4112.638777405673, + "TSLA": 1473.6411627235382, + "TTD": 39204.278612502785, + "TTWO": 9890.701208809436, + "TXN": 0.0, + "USDOLLAR": -2225.2771579817263, + "VRSK": 0.0, + "VRTX": 11673.425374940185, + "WBA": 375.42796169944097, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 19387.248871999855 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 60def6024..4ea409bcf 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14142,5 +14142,109 @@ "WDAY": 2.3482360424391337e-08, "XEL": 7.803743173657076e-08, "ZS": 0.017471026104118857 + }, + "2024-07-17 13:30:00+00:00": { + "AAPL": 0.006632133789586271, + "ABNB": 1.5705378389907366e-08, + "ADBE": 0.010620250817778374, + "ADI": 2.2568505005502217e-07, + "ADP": 1.94968401986296e-07, + "ADSK": 3.562038845528442e-08, + "AEP": 1.265271557748809e-08, + "AMAT": 4.84853800838668e-08, + "AMD": 6.771975697804112e-09, + "AMGN": 0.03215968236819136, + "AMZN": 0.01740906772984635, + "ANSS": 5.834223141691504e-08, + "ARM": 0.06358691378300572, + "ASML": 1.9051987460876513e-08, + "AVGO": 1.8195961054775242e-08, + "AZN": 5.7790635493893705e-08, + "BIIB": 0.013633076129832607, + "BKNG": 0.009265568558765968, + "BKR": 1.9405508091350523e-07, + "CCEP": 0.015037588817609445, + "CDNS": 1.4339595192194073e-08, + "CDW": 0.01191450800084819, + "CEG": 0.07014306189247942, + "CHTR": 0.016989174599328992, + "CMCSA": 0.03134822763893233, + "COST": 1.569782639980717e-08, + "CPRT": 1.0036631533848243e-07, + "CRWD": 0.012199458014324802, + "CSCO": 0.0520908797231937, + "CSGP": 0.005285996069671166, + "CSX": 0.001371601342965122, + "CTAS": 2.3161247302813538e-08, + "CTSH": 0.024814146446154022, + "DASH": 1.3075820371341178e-08, + "DDOG": 0.014751630910937952, + "DLTR": 0.024742443582578065, + "DXCM": 0.010054697467044175, + "EA": 0.012438093096479537, + "EXC": 3.782980426213058e-08, + "FANG": 0.02582478847648305, + "FAST": 0.0191751892389063, + "FTNT": 0.02068697514137471, + "GEHC": 0.006384752301730263, + "GFS": 0.024913874640248503, + "GILD": 0.027030612907793104, + "GOOG": 1.8214637001795264e-07, + "GOOGL": 9.69415532591438e-08, + "HON": 4.1800707104028915e-08, + "IDXX": 4.1133893638325424e-08, + "ILMN": 0.006274390161982133, + "INTC": 5.6261167810042225e-08, + "INTU": 1.1083498870243186e-07, + "ISRG": 0.007585567574585511, + "KDP": 2.452776458933253e-07, + "KHC": 3.247539730695862e-08, + "KLAC": 0.011223187806457629, + "LIN": 9.843679657622377e-08, + "LRCX": 4.147876616001278e-08, + "LULU": 0.019699428914121925, + "MAR": 1.571194242044263e-07, + "MCHP": 0.011925821911708809, + "MDB": 0.023539914804275287, + "MDLZ": 1.877977278064327e-07, + "MELI": 0.019352901852383992, + "META": 1.3509062425257979e-08, + "MNST": 0.016277226136491088, + "MRNA": 0.018538894083807024, + "MRVL": 1.2279625347333522e-08, + "MSFT": 3.4987963893590266e-08, + "MU": 1.4370922740427496e-08, + "NFLX": 0.014447217090458663, + "NVDA": 1.292102797503061e-07, + "NXPI": 0.018729655581450316, + "ODFL": 0.008871710022726548, + "ON": 3.2334840241642246e-06, + "ORLY": 0.024276081920197035, + "PANW": 2.8035869429751458e-08, + "PAYX": 0.007040377073829304, + "PCAR": 1.6791062677989978e-08, + "PDD": 0.02495836891653143, + "PEP": 0.02387801557616938, + "PYPL": 0.006852860637479119, + "QCOM": 4.847739443597844e-08, + "REGN": 0.014254664181074085, + "ROP": 0.013511830264455316, + "ROST": 0.007797440766839672, + "SBUX": 0.029099381712551574, + "SNPS": 7.2336424655443225e-09, + "TEAM": 0.011290950239480266, + "TMUS": 0.005542615291006124, + "TSLA": 0.0016311245612744712, + "TTD": 0.035447894079322174, + "TTWO": 0.008888852611277427, + "TXN": 4.016375072475162e-08, + "USDOLLAR": 4.1745671234844767e-07, + "VRSK": 2.2944329637879934e-07, + "VRTX": 0.010621375636540885, + "WBA": 0.0003368425453712708, + "WBD": 2.795272726538372e-08, + "WDAY": 3.25971704267093e-08, + "XEL": 1.0561817485501537e-07, + "ZS": 0.017594239448148728 } } \ No newline at end of file From b529c0164ee1c314d54838fc645957cb7cc3afbe Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 17 Jul 2024 18:06:59 +0400 Subject: [PATCH 045/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-17 --- .../sp500_daily_initial_holdings.json | 979 +++++++++++++----- .../sp500_daily_target_weights.json | 505 +++++++++ 2 files changed, 1247 insertions(+), 237 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 0c958292a..12320d347 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -68298,172 +68298,172 @@ }, "2024-07-16 13:30:00+00:00": { "A": 0.0, - "AAL": 623.6685613350573, - "AAPL": 50560.63189743947, - "ABBV": 4599.484555634564, + "AAL": 624.2530813271063, + "AAPL": 49952.66789676074, + "ABBV": 4594.5828701393475, "ABNB": 0.0, - "ABT": 3322.984851098521, + "ABT": 3314.8329201424485, "ACGL": 0.0, - "ACN": 2.532757886207126e-13, - "ADBE": 11709.846106244702, + "ACN": 2.5162329637387453e-13, + "ADBE": 11677.115746077932, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, - "ADSK": -16.298628462185885, + "ADSK": -16.3063486525233, "AEE": 0.0, "AEP": 0.0, "AES": 0.0, - "AFL": 3508.438790723359, + "AFL": 3500.126699277654, "AIG": 0.0, - "AIZ": 1.460243587318214, + "AIZ": 1.455224065147431, "AJG": 0.0, - "AKAM": 193.40675538655157, + "AKAM": 192.92009980395557, "ALB": 0.0, - "ALGN": 1186.276843319787, - "ALL": 6.604531443849387e-14, + "ALGN": 1184.5681843254613, + "ALL": 6.582013809242314e-14, "ALLE": 0.0, - "AMAT": 2397.818447848891, + "AMAT": 2386.8353728678085, "AMCR": 0.0, - "AMD": 28965.966753897963, + "AMD": 28695.698246298834, "AME": 0.0, - "AMGN": 6493.752878480871, - "AMP": 9.649250058838595, - "AMT": 631.1515172275144, - "AMZN": 37585.686845542456, - "ANET": 3900.188689264378, + "AMGN": 6473.207623189043, + "AMP": 9.629182916378214, + "AMT": 632.9848639452911, + "AMZN": 37962.961581868396, + "ANET": 3866.322169781485, "ANSS": 651.0453080787715, - "AON": 17.19443377037523, + "AON": 17.157027394279403, "AOS": 0.0, "APA": 0.0, "APD": 0.0, - "APH": 28.036738631333534, - "APTV": 2.4888299252589244e-14, + "APH": 27.932779537614916, + "APTV": 2.5102497110699396e-14, "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, "AVGO": 19786.892359038535, "AVY": 0.0, "AWK": 0.0, - "AXON": 4886.748364070869, + "AXON": 4851.768658370626, "AXP": 0.0, - "AZO": 1.7137533486482717e-12, - "BA": -1.0786707123008588e-12, + "AZO": 1.7385784656832028e-12, + "BA": -1.0716755036844468e-12, "BAC": 0.0, "BALL": 0.0, "BAX": 0.0, "BBWI": 0.0, - "BBY": 507.917434968925, + "BBY": 510.75923699860135, "BDX": 0.0, - "BEN": 188.71932210015828, + "BEN": 187.7482192967966, "BF-B": 0.0, - "BG": 1668.8948366763818, + "BG": 1668.594395475911, "BIIB": 2414.725645896214, "BIO": 0.0, "BK": 0.0, - "BKNG": 3872.012069404772, + "BKNG": 3864.1519744349666, "BKR": 0.0, - "BLDR": 351.2941543599252, - "BLK": 9.457568065178375e-13, - "BMY": 81.22591173005617, + "BLDR": 348.87285933277127, + "BLK": 9.434664134219295e-13, + "BMY": 80.88605040211436, "BR": 0.0, "BRK-B": 0.0, - "BRO": 0.3108488815855018, + "BRO": 0.3101870634286509, "BSX": 0.0, "BWA": 0.0, - "BX": 1449.2566712342793, + "BX": 1444.4538214927936, "BXP": 0.0, "C": 0.0, "CAG": 0.0, "CAH": 0.0, - "CARR": 20137.416297623033, + "CARR": 20564.204668950613, "CAT": 0.0, - "CB": 817.8040069583096, + "CB": 814.8705716633531, "CBOE": 0.0, "CBRE": 4630.05416410121, - "CCI": 301.3761460472663, + "CCI": 302.0178098317071, "CCL": 0.0, "CDNS": 0.0, - "CDW": 405.3326389993241, - "CE": -2.7718884028668817e-14, - "CEG": 38941.01505001075, - "CF": 9516.553460679414, + "CDW": 403.86564022084104, + "CE": -2.771693649562201e-14, + "CEG": 38751.998176608635, + "CF": 9493.579704865566, "CFG": 0.0, - "CHD": 2468.9668481728936, + "CHD": 2470.8644548173006, "CHRW": 0.0, - "CHTR": 7469.600034709985, - "CI": 3.894887647802946e-13, - "CINF": 0.015407732884939443, - "CL": 9.567876366520506, - "CLX": 15.029740868770759, - "CMCSA": 6275.485740071254, - "CME": 4612.714094202225, - "CMG": 5804.481780645344, + "CHTR": 7429.709705828507, + "CI": 3.8739436875959086e-13, + "CINF": 0.01535752010368169, + "CL": 9.565925857643485, + "CLX": 15.070621048024899, + "CMCSA": 6244.721898263306, + "CME": 4796.438089073357, + "CMG": 5739.680757721642, "CMI": 0.0, "CMS": 0.0, - "CNC": 873.0151972170687, + "CNC": 876.7620554027384, "CNP": 0.0, - "COF": 9008.122619860736, + "COF": 8998.596965412498, "COO": 0.0, "COP": 0.0, - "COR": 3343.255140864186, + "COR": 3345.058562808386, "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 757.0340824513872, + "CPRT": 758.5432556469353, "CPT": 0.0, "CRL": 0.0, - "CRM": 7706.01256706885, - "CRWD": 4160.639892578126, - "CSCO": 7010.356644287751, - "CSGP": -7.677618720011668e-14, + "CRM": 7644.309448668548, + "CRWD": 4156.72176815506, + "CSCO": 6959.947936938855, + "CSGP": -7.715284327046695e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 11517.19305847215, - "CTVA": 106.91992217853317, + "CTSH": 11502.56872949067, + "CTVA": 107.08124586034238, "CVS": 0.0, - "CVX": -5.707151836194186e-13, - "CZR": 9373.927038922833, + "CVX": -5.65769831512688e-13, + "CZR": 9327.379170922908, "D": 0.0, - "DAL": 629.5824571460744, + "DAL": 629.7267994471545, "DAY": 0.0, "DD": 0.0, - "DE": 1.0505438508655805e-13, - "DECK": 874.7455897126838, - "DFS": 3553.4163335429726, + "DE": 1.0513208061606311e-13, + "DECK": 886.4348403547237, + "DFS": 3618.807036914014, "DG": 0.0, "DGX": 0.0, - "DHI": -6.993923540242661, - "DHR": 2475.3629329137198, - "DIS": -4.308390413860134, - "DLR": 3.257591119269253e-14, - "DLTR": 923.8311771306022, + "DHI": -6.9834762289467065, + "DHR": 2478.3767983864377, + "DIS": -4.299537051188733, + "DLR": 3.2457031233328136e-14, + "DLTR": 1031.2675870561607, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, - "DPZ": 1467.1201200200753, - "DRI": 2.419042094557043, + "DPZ": 1466.762009262255, + "DRI": 2.4083774935441795, "DTE": 0.0, - "DUK": 1.2083914815696968, - "DVA": 3403.2025862469327, + "DUK": 1.2164712440078924, + "DVA": 3428.879761076261, "DVN": 0.0, - "DXCM": 4910.427017145872, - "EA": 3939.793382535102, + "DXCM": 4932.916056641634, + "EA": 3962.611548401434, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.725643240553765e-14, + "EG": 5.869480877037296e-14, "EIX": 0.0, "EL": 0.0, - "ELV": -2.3042422847870146e-13, + "ELV": -2.274973506677206e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 2830.960926172841, + "ENPH": 2831.9001665947385, "EOG": 0.0, - "EPAM": 5783.775859430652, - "EQIX": 821.6877990194314, + "EPAM": 5768.2744261164025, + "EQIX": 819.874580636364, "EQR": 0.0, "EQT": 0.0, "ES": 0.0, @@ -68474,325 +68474,830 @@ "EVRG": 0.0, "EW": 0.0, "EXC": 0.0, - "EXPD": -1.094833728406754, - "EXPE": 4403.905104851548, - "EXR": 5.833512175007555e-14, + "EXPD": -1.0949250753900048, + "EXPE": 4398.55796037932, + "EXR": 5.808758853393755e-14, "F": 0.0, - "FANG": 14630.813619985638, - "FAST": 3213.2328284067426, + "FANG": 14571.576536598272, + "FAST": 3213.312639924057, "FCX": 0.0, - "FDS": 3425.943145073644, - "FDX": 8331.198273384234, + "FDS": 3415.1474735148854, + "FDX": 8291.269676583666, "FE": 0.0, - "FFIV": 3725.6240989865023, - "FI": 2.511348792531415e-13, - "FICO": 1533.505597064237, + "FFIV": 3725.835448517147, + "FI": 2.495224212075547e-13, + "FICO": 1528.7898192671214, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.057694910475593e-14, - "FTNT": 6268.59516645174, + "FSLR": -7.501595449671102e-14, + "FTNT": 6252.816209879133, "FTV": 0.0, - "GD": 3.768900473044881e-13, + "GD": 3.76969247619444e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1724.144876609724, + "GEHC": 1724.7893905241076, "GEN": 0.0, - "GEV": 28209.29656848534, - "GILD": 8631.788019642907, - "GIS": 7372.623363327411, - "GL": 0.29591441236998034, + "GEV": 28420.942252199235, + "GILD": 8577.839046347097, + "GIS": 7293.63391584788, + "GL": 0.2959832283751091, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 24747.61880660253, - "GOOGL": 1843.5550366239343, + "GOOG": 24606.32786801318, + "GOOGL": 1844.705910472938, "GPC": 0.0, - "GPN": -1.043467264846062e-13, - "GRMN": 2234.501780727036, + "GPN": -1.0376110385187686e-13, + "GRMN": 2231.0653782847457, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.0805793934858152, + "HAS": 1.0789693909726519, "HBAN": 0.0, - "HCA": 6007.935045375422, - "HD": 8829.989560705666, + "HCA": 5870.813933434165, + "HD": 8845.478414193565, "HES": 0.0, - "HIG": 5749.3451708804005, - "HII": 0.6936785759445755, - "HLT": -1.3830302128920048e-13, - "HOLX": 2846.4103391246763, + "HIG": 5738.629165457681, + "HII": 0.7057686104105135, + "HLT": -1.4000305919958e-13, + "HOLX": 2856.706055215994, "HON": 0.0, "HPE": 0.0, "HPQ": 0.0, "HRL": 0.0, "HSIC": 0.0, "HST": 0.0, - "HSY": 10525.058328134606, - "HUBB": 1.3325749220928844e-13, - "HUM": 1177.4934890934755, - "HWM": 2114.7998808803563, + "HSY": 10362.305424384174, + "HUBB": 1.3332758221347035e-13, + "HUM": 1145.194816383405, + "HWM": 2108.426859062159, "IBM": 0.0, - "ICE": 735.0328272337305, - "IDXX": -10.001116654726708, + "ICE": 732.5153743378538, + "IDXX": -10.036501111070839, "IEX": 0.0, "IFF": 0.0, - "INCY": 4030.397745432075, - "INTC": 238.845731397871, - "INTU": 1305.5833705645784, + "INCY": 4017.055275978744, + "INTC": 237.4694005790698, + "INTU": 1307.436804878148, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, "IQV": 0.0, - "IR": 0.04626606567987789, + "IR": 0.04587933621679615, "IRM": 0.0, - "ISRG": 6519.897504238572, + "ISRG": 6522.247070628788, "IT": 7.53929588198089e-13, "ITW": 0.0, "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, - "JBL": 2599.0599343476206, + "JBL": 2610.6446760004837, "JCI": 0.0, - "JKHY": 840.2169075389152, - "JNJ": 12866.551082677643, + "JKHY": 1008.4774197763907, + "JNJ": 12849.405087744663, "JNPR": 0.0, - "JPM": 2571.0611619691863, - "K": 459.3080361839562, + "JPM": 2543.1404730060854, + "K": 459.38930385862244, "KDP": 0.0, "KEY": 0.0, "KEYS": 0.0, "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": -21.014284012319095, - "KMB": 5093.0842344526845, + "KLAC": -20.994700947375414, + "KMB": 5092.724598536249, "KMI": 0.0, - "KMX": 83.35062363134814, - "KO": 192.46402936402325, + "KMX": 83.88963672066373, + "KO": 192.19248536399445, "KR": 0.0, "KVUE": 0.0, - "L": -0.2130842324195796, + "L": -0.21239392453609016, "LDOS": 0.0, "LEN": 0.0, "LH": 0.0, "LHX": 0.0, "LIN": 1.6345260383314737, - "LKQ": 4933.107905820127, - "LLY": 1.6493944170436674, - "LMT": 7964.880800064583, + "LKQ": 4915.119049296698, + "LLY": 1.6486181698020828, + "LMT": 7914.36553460947, "LNT": 0.0, - "LOW": -2.7437636798993705e-13, - "LRCX": 1014.2757063607197, - "LULU": 1709.4655180792956, - "LUV": 28.202586725899742, - "LVS": 1860.3643595896829, - "LW": 27.95673109184057, - "LYB": 3606.2307420368606, - "LYV": 2974.8574260013615, - "MA": 31139.045642644945, + "LOW": -2.744701740234297e-13, + "LRCX": 1015.80561482607, + "LULU": 1718.6771313252502, + "LUV": 27.99917939943046, + "LVS": 1866.0415746716765, + "LW": 27.910771159300605, + "LYB": 3603.1983154610825, + "LYV": 2937.9605621153105, + "MA": 31123.487701414917, "MAA": 0.0, - "MAR": -6.000905220539317e-13, + "MAR": -6.127942489003996e-13, "MAS": 0.0, - "MCD": 10640.282041008306, - "MCHP": 2415.4680495207617, + "MCD": 10651.188896742822, + "MCHP": 2418.6020402972617, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, - "MDT": 1.2660882896144825, - "MET": -0.03594652230559237, - "META": 22051.655854380922, - "MGM": 4407.131835188113, + "MDT": 1.2682032729205734, + "MET": -0.03587320121327863, + "META": 22062.269299229858, + "MGM": 4367.542483216519, "MHK": 0.0, "MKC": 0.0, - "MKTX": 6999.617556212079, + "MKTX": 6973.408294520584, "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5120.120399600105, - "MO": -21.407050117422163, - "MOH": 1723.8570683244398, + "MNST": 5104.818422603261, + "MO": -21.375701017019995, + "MOH": 1735.3929035914923, "MOS": 0.0, - "MPC": 15106.314809174306, - "MPWR": -9.93864643816869e-13, - "MRK": 5814.682510500255, - "MRNA": 7686.633148855566, + "MPC": 14983.160532357182, + "MPWR": -9.872076295268548e-13, + "MRK": 5803.7800778360515, + "MRNA": 7559.813319698731, "MRO": 0.0, - "MS": 6227.828666442501, - "MSCI": 6001.247377397969, - "MSFT": 38075.100484859824, + "MS": 6236.815930887134, + "MSCI": 6020.9174827140705, + "MSFT": 38550.31932874002, "MSI": 0.0, - "MTB": -6.094088277823978, + "MTB": -5.976642963140648, "MTCH": 0.0, "MTD": 0.0, - "MU": 3670.7812923494325, + "MU": 3662.597764750508, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16525.904333380342, + "NFLX": 17190.255961279698, "NI": 0.0, - "NKE": -2.944846920439545e-14, - "NOC": -3.8852575103591087e-13, - "NOW": 5264.171472212516, + "NKE": -2.961789801458846e-14, + "NOC": -3.8694122959112075e-13, + "NOW": 5206.103794249268, "NRG": 0.0, - "NSC": -2.6693384264268164e-14, - "NTAP": 6061.17247457093, + "NSC": -2.742385429106588e-14, + "NTAP": 6050.017542832097, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 137011.26189217524, + "NVDA": 136299.9306205175, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 8897.902792415382, + "NXPI": 8844.869792166965, "O": 0.0, - "ODFL": 4497.210136054043, + "ODFL": 4493.902683479186, "OKE": 0.0, "OMC": 0.0, - "ON": -2.784012192086789, - "ORCL": 7497.916945503818, - "ORLY": -0.7376168307142827, - "OTIS": 1686.2006619523881, + "ON": -2.8248022547228175, + "ORCL": 7448.524669310882, + "ORLY": -0.7427944173170382, + "OTIS": 1685.5278482841495, "OXY": 0.0, - "PANW": 4735.361537482896, - "PARA": 2164.7139950167834, + "PANW": 4788.292758503455, + "PARA": 2150.753735441795, "PAYC": 0.0, - "PAYX": 486.67887054964734, + "PAYX": 485.52969288428005, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11592.346070665704, + "PEP": 11455.485319231653, "PFE": 0.0, "PFG": 174.243149484503, - "PG": 1.0476192738734131, - "PGR": 8312.88023095399, + "PG": 1.0485003098429613, + "PGR": 8273.31708676651, "PH": 0.0, - "PHM": -11.460967641811314, - "PKG": -4.840427192081617e-13, + "PHM": -11.409964947948595, + "PKG": -4.864970119925545e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, "PNR": 0.0, "PNW": 0.0, - "PODD": -63.81158818558448, - "POOL": 1280.6106558279646, - "PPG": -0.4180446475774622, + "PODD": -64.03668721368112, + "POOL": 1277.731399528796, + "PPG": -0.4191356335352676, "PPL": 0.0, - "PRU": 1146.0114885552848, + "PRU": 1144.8969369147833, "PSA": 0.0, - "PSX": 3125.5011127797143, - "PTC": 2.766459810190082e-14, - "PWR": -5.193088885824342, + "PSX": 3115.836985309942, + "PTC": 2.7592116738794895e-14, + "PWR": -5.052934813025706, "PYPL": 0.0, - "QCOM": 4992.56582727031, + "QCOM": 4985.907203313991, "QRVO": 0.0, - "RCL": 3008.1559614225744, + "RCL": 2997.3481055113134, "REG": 0.0, - "REGN": 1104.0923239434635, + "REGN": 1106.8694434722604, "RF": 0.0, "RJF": 0.0, "RL": 0.0, - "RMD": -26.11299657447339, - "ROK": 1.2545181731295774, + "RMD": -26.175615307926385, + "ROK": 1.2616931582095008, "ROL": 0.0, - "ROP": 5534.966430188602, - "ROST": 1171.044885020261, + "ROP": 5539.927144304313, + "ROST": 1182.4412041318922, "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, - "SBAC": 6311.033305324153, - "SBUX": 8247.003808920703, - "SCHW": 138.9431018746059, - "SHW": 1.3706383712705181, - "SJM": 0.9999245365217512, + "SBAC": 6183.0776567875, + "SBUX": 8175.039226724658, + "SCHW": 142.28407214842895, + "SHW": 1.374394115177401, + "SJM": 0.9931665400820153, "SLB": 0.0, - "SMCI": 8943.256551396713, + "SMCI": 8650.926502151204, "SNA": 0.0, "SNPS": 0.0, - "SO": 10.317365724916694, - "SOLV": -1.3095715349142063e-12, + "SO": 10.378346291942082, + "SOLV": -1.3154777945183263e-12, "SPG": 0.0, - "SPGI": -5.75441718756066, + "SPGI": -5.747448123575414, "SRE": 0.0, - "STE": 0.49004595017067587, - "STLD": -2.8467277702698566e-14, - "STT": 320.3594926116157, - "STX": 95.38828829363733, - "STZ": 246.9549633834599, + "STE": 0.49057698557889634, + "STLD": -2.795669256955899e-14, + "STT": 319.3432525959585, + "STX": 95.16614509463989, + "STZ": 247.89956235278822, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, - "SYK": -6.738835837839972, + "SYK": -6.75555694806903, "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4761.718111941512, - "TDY": 380.8333286198497, + "TDG": 4732.310558955439, + "TDY": 380.59190368909753, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, "TFC": 0.0, "TFX": 0.0, "TGT": 0.0, - "TJX": 454.8120892174362, + "TJX": 454.8518922836643, "TMO": 0.0, - "TMUS": 8584.626507252678, - "TPR": 2880.890502598293, - "TRGP": 413.0126940499819, + "TMUS": 8440.596630813447, + "TPR": 2860.416802402531, + "TRGP": 410.06390253228324, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, - "TSCO": -2.8645126597455716e-12, - "TSLA": 113707.21627405056, - "TSN": 4850.668202975839, + "TSCO": -2.8636676567803424e-12, + "TSLA": 107456.21126778265, + "TSN": 4846.4407371592415, "TT": 0.0, - "TTWO": 758.3076680205946, + "TTWO": 757.3199818179335, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3826.516565894961, + "UAL": 3871.6226012508987, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, - "ULTA": 4307.661489830288, - "UNH": 20662.62671146878, + "ULTA": 4406.0176848820975, + "UNH": 20695.569514315637, "UNP": 0.0, "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 176.7405902125678, - "V": 2131.4135045658236, + "USDOLLAR": 828.8420098900538, + "V": 2131.974913468379, "VICI": 0.0, "VLO": 0.0, - "VLTO": 8686.009808448332, + "VLTO": 8664.953002400773, "VMC": 0.0, "VRSK": 0.0, - "VRSN": 3201.63830471779, - "VRTX": 2935.8333173512506, + "VRSN": 3203.6207543645332, + "VRTX": 2937.576232967384, "VST": 0.0, "VTR": 0.0, "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.0800808281831038e-13, + "WAT": -2.1021204294678669e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -3.1652516935376447, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5486639205564434, + "WMB": 0.0, + "WMT": 11968.91959834083, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3216.0811175785166, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-07-17 13:30:00+00:00": { + "A": 0.0, + "AAL": 641.8376869771487, + "AAPL": 49008.79070010131, + "ABBV": 4610.933448772948, + "ABNB": 0.0, + "ABT": 3306.1369059888607, + "ACGL": 0.0, + "ACN": 2.5760605335384064e-13, + "ADBE": 11717.239079474228, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.90316951185015, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3510.981580296408, + "AIG": 0.0, + "AIZ": 1.455224065147431, + "AJG": 0.0, + "AKAM": 192.92009980395557, + "ALB": 0.0, + "ALGN": 1197.7349145318983, + "ALL": 6.571831219884891e-14, + "ALLE": 0.0, + "AMAT": 2234.9036675104635, + "AMCR": 0.0, + "AMD": 27271.647097657402, + "AME": 0.0, + "AMGN": 6473.207623189043, + "AMP": 9.392513449612139, + "AMT": 632.5637581974248, + "AMZN": 37153.587466381185, + "ANET": 3747.7068745372417, + "ANSS": 650.4710025158513, + "AON": 17.176031114757816, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 27.539360961555758, + "APTV": 2.5026491334086284e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19786.892359038535, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4982.960844165506, + "AXP": 0.0, + "AZO": 1.7566075255646773e-12, + "BA": -1.1030430926174232e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 512.0048411258269, + "BDX": 0.0, + "BEN": 193.39598620962985, + "BF-B": 0.0, + "BG": 1694.68979081244, + "BIIB": 2432.1456192435467, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3850.1483685151993, + "BKR": 0.0, + "BLDR": 362.43155329092275, + "BLK": 9.684233572343584e-13, + "BMY": 83.00137513395326, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.30915993678809695, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1466.3182123321558, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20409.07411479488, + "CAT": 0.0, + "CB": 818.3108427990289, + "CBOE": 0.0, + "CBRE": 4661.215296991144, + "CCI": 302.2210510853311, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 416.1323705531517, + "CE": -2.846206565384639e-14, + "CEG": 36578.60092921664, + "CF": 9874.07844901384, + "CFG": 0.0, + "CHD": 2492.5066932139366, + "CHRW": 0.0, + "CHTR": 7431.541258728326, + "CI": 3.940785955725116e-13, + "CINF": 0.0156343556193137, + "CL": 9.621912867128437, + "CLX": 15.287471768842922, + "CMCSA": 6363.394339178688, + "CME": 4596.554791878289, + "CMG": 5812.780249769842, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 873.6367367665899, + "CNP": 0.0, + "COF": 9261.76086805467, + "COO": 0.0, + "COP": 0.0, + "COR": 3394.1533035839298, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 742.7575881089821, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7650.936280642028, + "CRWD": 3949.676968790653, + "CSCO": 6961.414486911647, + "CSGP": -7.759899179240527e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11562.879453007356, + "CTVA": 109.56774539507973, + "CVS": 0.0, + "CVX": -5.711389174709943e-13, + "CZR": 9327.379170922908, + "D": 0.0, + "DAL": 660.1645666961014, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0683623738428841e-13, + "DECK": 889.2305147102431, + "DFS": 3736.352148377845, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.231888260810448, + "DHR": 2523.1474333380625, + "DIS": -4.356261800419292, + "DLR": 3.262904117631281e-14, + "DLTR": 927.1551820891365, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1470.8749470907605, + "DRI": 2.4401133157167076, + "DTE": 0.0, + "DUK": 1.225167704974316, + "DVA": 3443.9078755875207, + "DVN": 0.0, + "DXCM": 5068.764563730193, + "EA": 3980.2507296453496, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.877331917124328e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.2003054486174595e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2831.9001665947385, + "EOG": 0.0, + "EPAM": 5790.212121294643, + "EQIX": 819.874580636364, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1136073119393555, + "EXPE": 4588.7068914123265, + "EXR": 5.864550514566182e-14, + "F": 0.0, + "FANG": 14622.266021019726, + "FAST": 3261.392333477113, + "FCX": 0.0, + "FDS": 3498.6628381191927, + "FDX": 8415.703687529502, + "FE": 0.0, + "FFIV": 3795.0174614648363, + "FI": 2.515242377238034e-13, + "FICO": 1546.7694024543518, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.474964992115565e-14, + "FTNT": 6044.076810744773, + "FTV": 0.0, + "GD": 3.8577401834041643e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1770.8838586672482, + "GEN": 0.0, + "GEV": 28867.73084555161, + "GILD": 8782.741247974065, + "GIS": 7459.612081539526, + "GL": 0.3010799433269158, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 24047.683958919897, + "GOOGL": 1800.498290680487, + "GPC": 0.0, + "GPN": -1.0638138274744404e-13, + "GRMN": 2266.814684671344, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1227064750117322, + "HBAN": 0.0, + "HCA": 5854.05642200134, + "HD": 9007.127582465211, + "HES": 0.0, + "HIG": 5761.472456460837, + "HII": 0.738486193027514, + "HLT": -1.4156559334243255e-13, + "HOLX": 2896.096192682337, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10566.936919827645, + "HUBB": 1.3616808751673028e-13, + "HUM": 1146.8763327197332, + "HWM": 2130.467137652029, + "IBM": 0.0, + "ICE": 735.2863687796486, + "IDXX": -10.357690509640882, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3977.62936823159, + "INTC": 249.52946585860735, + "INTU": 1307.436804878148, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04614736703207114, + "IRM": 0.0, + "ISRG": 6362.016944545198, + "IT": 7.640382783100155e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2617.8682426982105, + "JCI": 0.0, + "JKHY": 849.2589773332194, + "JNJ": 13009.067729979008, + "JNPR": 0.0, + "JPM": 2589.1592423321417, + "K": 467.2225776969371, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -19.92072470757002, + "KMB": 5143.633922738214, + "KMI": 0.0, + "KMX": 84.1938739864825, + "KO": 195.34368132449194, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21576526596561213, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6682568730019853, + "LKQ": 5061.355998717078, + "LLY": 1.5697191072993781, + "LMT": 8021.028142892619, + "LNT": 0.0, + "LOW": -2.822862308425721e-13, + "LRCX": 961.8997725049495, + "LULU": 1755.2652683513588, + "LUV": 28.331066145658987, + "LVS": 1883.2421194969945, + "LW": 28.102759141880263, + "LYB": 3698.2375406259707, + "LYV": 2898.767881023431, + "MA": 30807.335870430117, + "MAA": 0.0, + "MAR": -6.305152039673191e-13, + "MAS": 0.0, + "MCD": 10989.396022276607, + "MCHP": 2454.081495409808, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.283183282439254, + "MET": -0.036436200247693215, + "META": 21048.680319818843, + "MGM": 4382.638748437074, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 7046.651790143385, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5223.7019485624, + "MO": -21.500784651796824, + "MOH": 1804.8807385862776, + "MOS": 0.0, + "MPC": 15206.735866603738, + "MPWR": -9.98160155814488e-13, + "MRK": 5694.848500894762, + "MRNA": 7705.10290017321, + "MRO": 0.0, + "MS": 6294.3146127425125, + "MSCI": 6051.728903979713, + "MSFT": 37107.253976384265, + "MSI": 0.0, + "MTB": -6.089772676485228, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3440.741237097992, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16233.751255564037, + "NI": 0.0, + "NKE": -3.0040358588593364e-14, + "NOC": -3.904857267284229e-13, + "NOW": 5017.278023359506, + "NRG": 0.0, + "NSC": -2.8107468597664228e-14, + "NTAP": 6089.3510238308545, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 130706.87725049687, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8844.869792166965, + "O": 0.0, + "ODFL": 4638.289551184813, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.849493869864637, + "ORCL": 7313.683233062462, + "ORLY": -0.7424607032327915, + "OTIS": 1682.1419459729757, + "OXY": 0.0, + "PANW": 4698.290737751356, + "PARA": 2200.0999187979974, + "PAYC": 0.0, + "PAYX": 497.6739309932609, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11641.958804437647, + "PFE": 0.0, + "PFG": 175.78190348855222, + "PG": 1.0665570497259607, + "PGR": 7986.286632053336, + "PH": 0.0, + "PHM": -11.892048998186782, + "PKG": -4.986378809572552e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -64.03668721368112, + "POOL": 1314.806685178805, + "PPG": -0.42449727813041493, + "PPL": 0.0, + "PRU": 1158.5103975990526, + "PSA": 0.0, + "PSX": 3137.0760128974425, + "PTC": 2.729974103624344e-14, + "PWR": -4.998430781409232, + "PYPL": 0.0, + "QCOM": 4742.0724972181415, + "QRVO": 0.0, + "RCL": 3033.009592681821, + "REG": 0.0, + "REGN": 1112.078762493148, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -26.087807255743964, + "ROK": 1.2839222861405948, + "ROL": 0.0, + "ROP": 5618.296511156505, + "ROST": 1188.3574517485997, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6189.182442113865, + "SBUX": 8515.807622351189, + "SCHW": 134.27920591714516, + "SHW": 1.3930209309724493, + "SJM": 1.005868823542011, + "SLB": 0.0, + "SMCI": 8115.1625373137385, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.491798667493997, + "SOLV": -1.3878486239324063e-12, + "SPG": 0.0, + "SPGI": -5.79406820413286, + "SRE": 0.0, + "STE": 0.5056238587635002, + "STLD": -2.85149688600251e-14, + "STT": 341.07467606783354, + "STX": 93.08520252976471, + "STZ": 245.92627638944836, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.835867841643722, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4804.046812288771, + "TDY": 387.41823891071317, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 458.3639429253632, + "TMO": 0.0, + "TMUS": 8707.621812625914, + "TPR": 2840.441875105428, + "TRGP": 409.85112753320055, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.961402812166068e-12, + "TSLA": 106932.88019051067, + "TSN": 4970.57937031964, + "TT": 0.0, + "TTWO": 758.9450354079237, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4044.473139217495, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 4496.352878313157, + "UNH": 21474.704975924462, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -341.4729627924464, + "V": 2131.339842067881, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8752.922068414991, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3258.0142614664146, + "VRTX": 2917.922982668941, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.1642319180823373e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -3.1945857605719823, + "WDC": -3.0411336596367056, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, - "WM": 1.5487363328705508, + "WM": 1.5799153916818292, "WMB": 0.0, - "WMT": 12049.172683752144, + "WMT": 12030.632837806384, "WRB": 0.0, "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 3215.3315502761743, + "WYNN": 3247.994836567633, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 7118a5d69..45e06a73a 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -65774,5 +65774,510 @@ "ZBH": 3.202660942710125e-09, "ZBRA": 2.0270397245725374e-09, "ZTS": 1.0316625527494882e-08 + }, + "2024-07-17 13:30:00+00:00": { + "A": 3.5109422859628296e-09, + "AAL": 0.0005332649517636215, + "AAPL": 0.04071834824139568, + "ABBV": 0.003830920837491775, + "ABNB": 3.6911660020865124e-09, + "ABT": 0.00274686157713912, + "ACGL": 7.074417967019755e-09, + "ACN": 8.73810122594173e-09, + "ADBE": 0.009907691087370581, + "ADI": 1.5951452733380968e-08, + "ADM": 7.756092490795883e-09, + "ADP": 1.7233273543768372e-08, + "ADSK": 1.1215194518731289e-08, + "AEE": 2.626539661029899e-09, + "AEP": 2.664815797029217e-09, + "AES": 1.331051404028763e-09, + "AFL": 0.002913238232038209, + "AIG": 2.734662780932286e-09, + "AIZ": 7.64602087886297e-09, + "AJG": 5.157619734789181e-09, + "AKAM": 0.00016027547921478283, + "ALB": 9.80678631165869e-10, + "ALGN": 0.0009879962920937323, + "ALL": 5.810931340278439e-09, + "ALLE": 2.7237146648898145e-09, + "AMAT": 0.001895739040465058, + "AMCR": 8.430784054667679e-10, + "AMD": 0.023283598051760137, + "AME": 2.8912440242885284e-09, + "AMGN": 0.005197548665489621, + "AMP": 2.575017051358245e-08, + "AMT": 0.000525569806062447, + "AMZN": 0.031257022741165666, + "ANET": 0.0031494414077043215, + "ANSS": 0.00043935122274984644, + "AON": 2.1868771218810698e-08, + "AOS": 2.419348092001018e-09, + "APA": 1.9141563997483096e-09, + "APD": 6.381028644861671e-09, + "APH": 1.3618002653918796e-08, + "APTV": 6.744491080281209e-09, + "ARE": 2.225403819248236e-09, + "ATO": 3.0562973612016524e-09, + "AVB": 2.921241303650987e-09, + "AVGO": 0.016439826518459176, + "AVY": 3.4017306037472074e-09, + "AWK": 4.658857591405488e-09, + "AXON": 0.004140018067375672, + "AXP": 7.131099357480605e-09, + "AZO": 2.3050046618017145e-08, + "BA": 2.729425538894331e-08, + "BAC": 4.3982529990991245e-09, + "BALL": 8.588584138364501e-09, + "BAX": 5.812798598857762e-09, + "BBWI": 3.3232519820971996e-09, + "BBY": 0.00042540490057128047, + "BDX": 1.0270155572474646e-08, + "BEN": 0.00016068143757033197, + "BF-B": 7.223995795841639e-09, + "BG": 0.001327657294181257, + "BIIB": 0.0020207006915456036, + "BIO": 3.815900583500946e-09, + "BK": 4.3617027454493726e-09, + "BKNG": 0.002067637581698526, + "BKR": 1.900637664573441e-09, + "BLDR": 0.0002907010085462093, + "BLK": 3.9181038909125734e-08, + "BMY": 6.895925475850981e-05, + "BR": 5.194881276570406e-09, + "BRK-B": 6.974070005766767e-09, + "BRO": 1.6164958846716097e-08, + "BSX": 4.823086233277052e-09, + "BWA": 4.612530896954073e-09, + "BX": 0.0010814220540691154, + "BXP": 2.3110447824057106e-09, + "C": 5.661122852088666e-09, + "CAG": 7.07677309869614e-09, + "CAH": 6.538131396997032e-09, + "CARR": 0.01695664196725186, + "CAT": 2.1177068877203847e-09, + "CB": 0.0003080863490521321, + "CBOE": 1.2089449823053902e-08, + "CBRE": 0.0038560732134419163, + "CCI": 0.0002510972748239535, + "CCL": 3.130851044276991e-09, + "CDNS": 2.531566313877572e-08, + "CDW": 0.00034573497555118844, + "CE": 5.885207085306117e-09, + "CEG": 0.030390896954899292, + "CF": 0.00820376674663778, + "CFG": 3.2354748544315772e-09, + "CHD": 0.0020708048870538686, + "CHRW": 7.726082846704746e-09, + "CHTR": 0.00611503107364264, + "CI": 1.8899403754190277e-08, + "CINF": 1.1658949716692482e-08, + "CL": 4.927195801010322e-08, + "CLX": 2.5999876407616204e-08, + "CMCSA": 0.005286954833230052, + "CME": 0.003818989199754078, + "CMG": 0.004829473466167371, + "CMI": 2.715158277738059e-09, + "CMS": 2.466171939804587e-09, + "CNC": 0.0007258577249416502, + "CNP": 2.308632186635566e-09, + "COF": 0.0076950103400430315, + "COO": 5.792685827140293e-09, + "COP": 4.986960580938811e-09, + "COR": 0.0028065957847041288, + "COST": 5.700841836021163e-09, + "CPAY": 1.3634468273855882e-08, + "CPB": 9.703042679128054e-09, + "CPRT": 0.0006171035531544859, + "CPT": 2.3305404242885976e-09, + "CRL": 2.033110045348983e-09, + "CRM": 0.006356689777912536, + "CRWD": 0.003373750434626524, + "CSCO": 0.005783851422268798, + "CSGP": 6.113517524756424e-09, + "CSX": 7.83460271371571e-09, + "CTAS": 5.0099807826224536e-09, + "CTLT": 4.2392136550191105e-09, + "CTRA": 2.0988931402767816e-09, + "CTSH": 0.009534082247869731, + "CTVA": 9.103039122379643e-05, + "CVS": 6.158673742700167e-09, + "CVX": 5.979552147076791e-09, + "CZR": 0.007749540874771866, + "D": 3.877770437124348e-09, + "DAL": 0.000548491421415153, + "DAY": 3.780714196831665e-09, + "DD": 4.37051373273527e-09, + "DE": 5.932314844596973e-09, + "DECK": 0.0007921359795884808, + "DFS": 0.003104310106742026, + "DG": 3.4665860337143507e-09, + "DGX": 8.065377168218921e-09, + "DHI": 7.608717586499911e-09, + "DHR": 0.002003484002088448, + "DIS": 6.8308272428780134e-09, + "DLR": 5.083812078623517e-09, + "DLTR": 0.0007703299323133589, + "DOC": 1.4466388878185362e-09, + "DOV": 3.0145437447050107e-09, + "DOW": 4.295680999872598e-09, + "DPZ": 0.001023229751979124, + "DRI": 1.8721161994163017e-06, + "DTE": 2.8274531458747824e-09, + "DUK": 1.2290240721159017e-08, + "DVA": 0.0028604710973247588, + "DVN": 2.224387174151642e-09, + "DXCM": 0.0042113403868239575, + "EA": 0.00328786084271751, + "EBAY": 3.5802691761003494e-09, + "ECL": 4.276822388178171e-09, + "ED": 3.85748207086938e-09, + "EFX": 3.535503636505923e-09, + "EG": 1.2418150157527994e-08, + "EIX": 4.036567018102701e-09, + "EL": 4.315654456199649e-09, + "ELV": 3.25553029874041e-08, + "EMN": 2.8782441120221858e-09, + "EMR": 1.9861076556158693e-09, + "ENPH": 0.00235284462390259, + "EOG": 5.0257284825842144e-09, + "EPAM": 0.004810771687185373, + "EQIX": 0.0006493485459349205, + "EQR": 2.996431810648665e-09, + "EQT": 1.1629091500257094e-09, + "ES": 2.1819865059936882e-09, + "ESS": 3.754025278259024e-09, + "ETN": 1.5934817663729445e-09, + "ETR": 3.735175724724712e-09, + "ETSY": 1.1528322652506589e-08, + "EVRG": 1.610419647507501e-09, + "EW": 8.266611927790212e-09, + "EXC": 3.6499167577657895e-09, + "EXPD": 9.577741132209159e-09, + "EXPE": 0.003812457123114633, + "EXR": 6.593302947590904e-09, + "F": 2.7961622974558686e-09, + "FANG": 0.012129386175729213, + "FAST": 0.002709686469351773, + "FCX": 2.1546688041896185e-09, + "FDS": 0.00256021134873919, + "FDX": 0.006660649427635947, + "FE": 2.769917383316858e-09, + "FFIV": 0.0031528296946931053, + "FI": 1.1201517864152052e-08, + "FICO": 0.001268581826427424, + "FIS": 4.34413119234968e-09, + "FITB": 5.334775395128882e-09, + "FMC": 3.341356395726448e-09, + "FOX": 2.1003885832892973e-09, + "FOXA": 2.880402550652479e-09, + "FRT": 2.7161689679423145e-09, + "FSLR": 8.498258429777205e-10, + "FTNT": 0.005021654080824037, + "FTV": 2.3577436204589593e-09, + "GD": 1.022812479527277e-08, + "GDDY": 2.0026588555089283e-08, + "GE": 3.4958299693873135e-09, + "GEHC": 0.0014713080699440156, + "GEN": 2.194025882849076e-09, + "GEV": 0.025553164814420153, + "GILD": 0.007296942509326029, + "GIS": 0.0061977330674409, + "GL": 5.974611346483159e-09, + "GLW": 3.506147306095657e-09, + "GM": 2.960133947368373e-09, + "GNRC": 2.20657765802382e-09, + "GOOG": 0.01997974027756754, + "GOOGL": 0.0014959178868123525, + "GPC": 5.92748462133224e-09, + "GPN": 1.1457298484610148e-08, + "GRMN": 0.0018833491103042402, + "GS": 6.172179750047319e-09, + "GWW": 2.4311188102715717e-09, + "HAL": 2.3358711298107138e-09, + "HAS": 5.6471587654482944e-08, + "HBAN": 1.8728255273719725e-09, + "HCA": 0.004490057584703769, + "HD": 0.007005928978106074, + "HES": 4.440598857584202e-09, + "HIG": 0.004784436589870886, + "HII": 1.5595632903588958e-08, + "HLT": 8.324369430904903e-09, + "HOLX": 0.002406191799647363, + "HON": 6.059717213325568e-09, + "HPE": 2.186149952600697e-09, + "HPQ": 2.5464309250686483e-09, + "HRL": 6.481746039171453e-09, + "HSIC": 5.988259310653641e-09, + "HST": 2.72186113443769e-09, + "HSY": 0.00875862481469292, + "HUBB": 9.44784488966979e-10, + "HUM": 0.0008928512069572328, + "HWM": 0.001770078853868625, + "IBM": 3.081578121691322e-09, + "ICE": 0.0006108213842716554, + "IDXX": 9.84999389876027e-09, + "IEX": 3.4855087324527913e-09, + "IFF": 3.4169808476419477e-09, + "INCY": 0.0033047699546900314, + "INTC": 0.00020732080402009252, + "INTU": 0.00110399469504637, + "INVH": 2.130713187854292e-09, + "IP": 3.251119695288268e-09, + "IPG": 5.8672579823494034e-09, + "IQV": 3.5055706512492885e-09, + "IR": 1.2833135590832973e-08, + "IRM": 4.9086949272385446e-09, + "ISRG": 0.005259710583886813, + "IT": 1.0926165217657788e-08, + "ITW": 4.980096377060447e-09, + "IVZ": 2.829220676935809e-09, + "J": 5.016523519899382e-09, + "JBHT": 8.159246801853956e-09, + "JBL": 0.002175053888296675, + "JCI": 2.2088629639364286e-09, + "JKHY": 0.0007056852585541698, + "JNJ": 0.010806733905000258, + "JNPR": 4.403455338264967e-09, + "JPM": 0.0021510095296331136, + "K": 0.0003881823549583898, + "KDP": 2.391623529703951e-09, + "KEY": 1.8224541833352409e-09, + "KEYS": 4.92755438121969e-09, + "KHC": 1.463054921486887e-09, + "KIM": 2.1578299911275385e-09, + "KKR": 6.455904097034031e-09, + "KLAC": 6.725536410228817e-08, + "KMB": 0.003983588714040478, + "KMI": 1.0624755233034135e-09, + "KMX": 2.9407669231052673e-05, + "KO": 0.00016228690087433478, + "KR": 1.1187084116873783e-08, + "KVUE": -4.9459767861198e-10, + "L": 5.058956229181405e-09, + "LDOS": 1.4222874139229627e-08, + "LEN": 9.596056136257996e-09, + "LH": 2.8061205720784986e-09, + "LHX": 6.370464412490891e-09, + "LIN": 2.1946994897664086e-08, + "LKQ": 0.004205160601898645, + "LLY": 1.4236681209244433e-08, + "LMT": 0.00648987592067658, + "LNT": 2.2160500239072808e-09, + "LOW": 7.918851632948457e-09, + "LRCX": 0.0008138087309722743, + "LULU": 0.0014583437290307908, + "LUV": 2.3543220703902563e-05, + "LVS": 0.0015646683213877393, + "LW": 2.870419742928828e-08, + "LYB": 0.0029930546281256554, + "LYV": 0.002408412699529848, + "MA": 0.025429181903077136, + "MAA": 2.8900492012207864e-09, + "MAR": 1.1857209339038378e-08, + "MAS": 3.7533720155201665e-09, + "MCD": 0.00887214434429564, + "MCHP": 0.002039215972530833, + "MCK": 2.5817147526894895e-08, + "MCO": 3.652199615523243e-09, + "MDLZ": 4.09233876470895e-09, + "MDT": 4.3056684863369094e-08, + "MET": 4.729368970607564e-09, + "META": 0.017486911613570532, + "MGM": 0.003641250493540372, + "MHK": 3.0838036616650912e-09, + "MKC": 4.661492938267941e-09, + "MKTX": 0.0057825994977335066, + "MLM": 2.7753305496253053e-09, + "MMC": 4.078995920552122e-09, + "MMM": 3.546338102629477e-09, + "MNST": 0.004340059673142632, + "MO": 3.740387351755558e-09, + "MOH": 0.0014995422934776454, + "MOS": 1.6744723985680747e-09, + "MPC": 0.01263431627361918, + "MPWR": 1.6059294902296338e-08, + "MRK": 0.0047314779759656, + "MRNA": 0.006401702097343635, + "MRO": 1.177837333956784e-09, + "MS": 0.0052295508491793175, + "MSCI": 0.004934925071827926, + "MSFT": 0.030852146667909666, + "MSI": 8.39389090543951e-09, + "MTB": 7.7452919829826e-09, + "MTCH": 1.6444012586553444e-08, + "MTD": 6.004486442462279e-09, + "MU": 0.0028588835125952362, + "NCLH": 3.746299630289381e-09, + "NDAQ": 4.8592819575417675e-09, + "NDSN": 2.9326068421184193e-09, + "NEE": 1.743367942922756e-09, + "NEM": 1.5871833886105197e-09, + "NFLX": 0.013706211578041387, + "NI": 1.8499116162530568e-09, + "NKE": 1.522867574808618e-08, + "NOC": 1.8180395862000802e-08, + "NOW": 0.004168754014106516, + "NRG": 6.629335344414091e-10, + "NSC": 8.84666863311344e-09, + "NTAP": 0.005059218343073883, + "NTRS": 3.6793228826884843e-09, + "NUE": 9.29143632904148e-09, + "NVDA": 0.11343603712710908, + "NVR": 0.0007384618080384333, + "NWS": 1.4290905327687662e-09, + "NWSA": 1.4049922639716302e-09, + "NXPI": 0.007329557879909863, + "O": 5.7978843166385465e-09, + "ODFL": 0.0036403709216884382, + "OKE": 3.4325149998683407e-09, + "OMC": 3.878670688028331e-09, + "ON": 9.861489375446148e-09, + "ORCL": 0.006076475290720082, + "ORLY": 1.2053053556567472e-08, + "OTIS": 0.001397583279709066, + "OXY": 2.4719851761157277e-09, + "PANW": 0.0039034974893315186, + "PARA": 0.0018279269669623191, + "PAYC": 2.803529583940805e-08, + "PAYX": 0.00041319882305065994, + "PCAR": 6.9975270012056395e-09, + "PCG": 1.7935307187312284e-09, + "PEG": 3.082539308146374e-09, + "PEP": 0.009672493430288549, + "PFE": 5.188683582850621e-09, + "PFG": 0.00014576742347336547, + "PG": 9.34815291311235e-09, + "PGR": 0.006635296321297875, + "PH": 2.2983080717689166e-09, + "PHM": 6.698648996077334e-09, + "PKG": 8.461100831000987e-09, + "PLD": 4.194396616593918e-09, + "PM": 6.419706316570662e-09, + "PNC": 7.179580107111179e-09, + "PNR": 1.8494330611709131e-09, + "PNW": 2.506252048331953e-09, + "PODD": 1.1291744566632766e-08, + "POOL": 0.001088753819654835, + "PPG": 7.285652535392067e-09, + "PPL": 2.8269738938696253e-09, + "PRU": 0.0007344441105753999, + "PSA": 3.3376766327685384e-09, + "PSX": 0.002496748790754015, + "PTC": 8.540279800619058e-09, + "PWR": 4.206110365716037e-09, + "PYPL": 2.5182496175538177e-09, + "QCOM": 0.0039399662670506624, + "QRVO": 1.4653943004442239e-09, + "RCL": 0.002347069621434582, + "REG": 3.378821660275241e-09, + "REGN": 0.000988018891426823, + "RF": 2.9014922760499676e-09, + "RJF": 6.606766151476947e-09, + "RL": 3.58729318295644e-09, + "RMD": 1.5030179460634474e-08, + "ROK": 6.024008387479117e-09, + "ROL": 2.6859565508404637e-09, + "ROP": 0.004554882582293273, + "ROST": 0.0009873307267583159, + "RSG": 5.847345627215814e-09, + "RTX": 8.444462780343227e-09, + "RVTY": 2.5165513014087787e-09, + "SBAC": 0.005142217112837717, + "SBUX": 0.007075264246274169, + "SCHW": 0.00011155644300357873, + "SHW": 2.521925806292308e-08, + "SJM": 3.520923923795596e-08, + "SLB": 2.261769872690318e-09, + "SMCI": 0.006659918892852382, + "SNA": 3.8070175457820195e-09, + "SNPS": 3.3498696359394177e-09, + "SO": 1.8738661222739047e-08, + "SOLV": -1.430010102378492e-09, + "SPG": 3.017533085318867e-09, + "SPGI": 7.160439756936458e-09, + "SRE": 3.839756823003321e-09, + "STE": 2.207143395354944e-07, + "STLD": 1.2481461568133333e-08, + "STT": 0.00028337010903085115, + "STX": 1.5435586911848674e-05, + "STZ": 5.7423238114456343e-05, + "SWK": 2.9075456132994833e-09, + "SWKS": 2.1300454012100543e-09, + "SYF": 6.226975947447555e-09, + "SYK": 1.342821795619085e-08, + "SYY": 6.3884714361238786e-09, + "T": 4.496289575029819e-09, + "TAP": 3.683037125746182e-09, + "TDG": 0.003903182214365715, + "TDY": 1.1108725653699689e-05, + "TECH": 1.086843941254413e-08, + "TEL": 5.383026663944563e-09, + "TER": 3.715433594114008e-09, + "TFC": 2.666342074117871e-09, + "TFX": 7.860221472291976e-09, + "TGT": 7.2990207867847174e-09, + "TJX": 0.00038082118295195067, + "TMO": 1.0300629824454449e-08, + "TMUS": 0.00723450896647596, + "TPR": 0.0023599497954391838, + "TRGP": 0.00034031682530099704, + "TRMB": 8.550841584891922e-09, + "TROW": 6.3538812290267996e-09, + "TRV": 5.7740866915155295e-09, + "TSCO": 8.36914624267546e-09, + "TSLA": 0.0881811575142044, + "TSN": 0.00412974033065702, + "TT": 2.2807701867068227e-09, + "TTWO": 0.0006315804684973615, + "TXN": 5.309784197654327e-09, + "TXT": 2.7561580013389646e-09, + "TYL": 1.8494401630217363e-08, + "UAL": 0.0033603135810041118, + "UBER": 8.843623857634882e-09, + "UDR": 1.9547269779973508e-09, + "UHS": 6.727965712806397e-09, + "ULTA": 0.003437548434060033, + "UNH": 0.016801925374814227, + "UNP": 8.640941973416532e-09, + "UPS": 2.9590060102725944e-09, + "URI": 4.9877741413799224e-09, + "USB": 2.8872356965451523e-09, + "USDOLLAR": 1.776688118846942e-07, + "V": 0.0014624836726579021, + "VICI": 2.6935837294984427e-09, + "VLO": 2.2608638643891273e-08, + "VLTO": 0.007272133508009593, + "VMC": 1.6897103028962632e-09, + "VRSK": 7.84597556756446e-09, + "VRSN": 0.002706891176846311, + "VRTX": 0.002424257659121461, + "VST": 6.269916778331007e-10, + "VTR": 4.502156431031999e-09, + "VTRS": 2.137819347467674e-09, + "VZ": 5.938665147139974e-09, + "WAB": 2.0734288188281664e-09, + "WAT": 7.1604168853919695e-09, + "WBA": 1.4149168689780885e-09, + "WBD": 5.967138706798139e-10, + "WDC": 3.675124459761051e-09, + "WEC": 4.8948154885669e-09, + "WELL": 3.7082263485080112e-09, + "WFC": 8.361158810802498e-09, + "WM": 1.500042490761689e-08, + "WMB": 1.1472473882366628e-08, + "WMT": 0.009995505311190546, + "WRB": 6.514121001594889e-09, + "WST": 4.7834764430490965e-09, + "WTW": 4.5806124812513785e-09, + "WY": 1.748319686120183e-09, + "WYNN": 0.0026960172514429678, + "XEL": 2.862140016298557e-09, + "XOM": 5.867266451163283e-09, + "XYL": 4.006742270244882e-09, + "YUM": 9.81112644364315e-09, + "ZBH": 2.9164441090313295e-09, + "ZBRA": 1.950902753346718e-09, + "ZTS": 9.077977449763328e-09 } } \ No newline at end of file From 593e1bf19ed2237a3e1fe3b4e6c8418d5b8e5746 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 18 Jul 2024 11:31:13 +0400 Subject: [PATCH 046/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-18 --- .../ftse100_daily_initial_holdings.json | 107 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 +++++++++++++++++ 2 files changed, 208 insertions(+), 2 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 5a7f6e64f..0943f126a 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10773,7 +10773,7 @@ "SDR.L": 10267.374701376957, "SGE.L": 38062.53480718673, "SGRO.L": 0.0, - "SHEL.L": 8.882775817521554e-13, + "SHEL.L": 8.945489115291891e-13, "SMDS.L": 10727.230455350138, "SMIN.L": 0.0, "SMT.L": 10628.053066482293, @@ -10784,7 +10784,7 @@ "SVT.L": 10025.216790830416, "TSCO.L": 10409.3707288798, "TW.L": 10470.935506794185, - "ULVR.L": 8842.272890566297, + "ULVR.L": 8896.879790851128, "UTG.L": 10551.825746979415, "UU.L": 10255.781013884494, "VOD.L": 10437.681922729074, @@ -10792,5 +10792,108 @@ "WEIR.L": 10075.683535400585, "WPP.L": 10397.010072872166, "WTB.L": 8931.22933095273 + }, + "2024-07-18 07:00:00+00:00": { + "AAF.L": 22318.07625482942, + "AAL.L": 9954.272957677145, + "ABF.L": 9990.57751832701, + "ADM.L": 10455.32163352776, + "AHT.L": 16471.72458485624, + "ANTO.L": 18724.949131512894, + "AUTO.L": 10522.692493811675, + "AV.L": 12816.726969657706, + "AZN.L": 12605.354529831597, + "BA.L": 10344.351712458947, + "BARC.L": 10708.770378576897, + "BATS.L": 10563.445181500167, + "BDEV.L": 10341.186601999872, + "BEZ.L": 10349.764342861432, + "BKG.L": 9850.144687607202, + "BME.L": 10096.708247680077, + "BNZL.L": 9708.39711753963, + "BP.L": 1.4143568576977347e-12, + "BRBY.L": 10904.37307946941, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10548.177341363948, + "CPG.L": 0.0, + "CRDA.L": 12316.752923319973, + "CTEC.L": 43.61996504141527, + "DARK.L": 25546.649635526846, + "DCC.L": 22283.787683791423, + "DGE.L": 10289.635829852068, + "DPLM.L": 8296.260297290753, + "EDV.L": 7320.08402432283, + "ENT.L": 11363.183817648558, + "EXPN.L": 10521.846197955845, + "EZJ.L": 9661.754245405975, + "FCIT.L": 0.0, + "FRAS.L": 10958.864422874994, + "FRES.L": 10272.977371338302, + "GBPOUND": 3415.425500189182, + "GLEN.L": 10730.213893767648, + "GSK.L": 11112.041144512565, + "HIK.L": 11384.145309421949, + "HL.L": 10884.385805277527, + "HLMA.L": 10582.950092489955, + "HLN.L": 0.0, + "HSBA.L": 10275.86853712837, + "HWDN.L": 10473.19523934868, + "IAG.L": 10658.6049537948, + "ICG.L": 10763.081905998253, + "IHG.L": 16761.438969997987, + "III.L": 9390.447754078761, + "IMB.L": 10440.762866399045, + "IMI.L": 11131.94237346675, + "INF.L": 10362.02398900855, + "ITRK.L": 9550.196113900043, + "JD.L": 10546.313301282451, + "KGF.L": 10462.405267147857, + "LAND.L": 0.0, + "LGEN.L": 10574.152829725186, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28253.91105207483, + "MKS.L": 0.0, + "MNDI.L": 9941.867361117253, + "MNG.L": 10684.13450916974, + "MRO.L": 44969.90355428603, + "NG.L": 10537.092822561266, + "NWG.L": 10398.139683255687, + "NXT.L": 9104.171871067618, + "PHNX.L": 0.0, + "PRU.L": 10229.898782296392, + "PSH.L": 54523.51383057413, + "PSN.L": 10715.68913339221, + "PSON.L": 1033.00886231058, + "REL.L": 10560.065227566249, + "RIO.L": 10929.544583849587, + "RKT.L": 8905.857049791199, + "RMV.L": 12404.295527828712, + "RR.L": 10336.35272936823, + "RTO.L": 10485.854865775396, + "SBRY.L": 0.0, + "SDR.L": 11011.59712310684, + "SGE.L": 37881.11185767676, + "SGRO.L": 0.0, + "SHEL.L": 9.128804908774414e-13, + "SMDS.L": 10348.705341661356, + "SMIN.L": 0.0, + "SMT.L": 10351.069290366568, + "SN.L": 3359.646736231907, + "SPX.L": 9101.049362400545, + "SSE.L": 10987.137608426285, + "STAN.L": 10743.635101534184, + "SVT.L": 10309.908545539593, + "TSCO.L": 10448.602425430117, + "TW.L": 10524.307794293863, + "ULVR.L": 8969.68899123092, + "UTG.L": 10596.348218485657, + "UU.L": 10490.976828663095, + "VOD.L": 10614.338085071347, + "VTY.L": 10510.939759036142, + "WEIR.L": 9923.55947598336, + "WPP.L": 10724.587102565398, + "WTB.L": 11950.586450714149 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index b9954d6a2..ab326ffe1 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10401,5 +10401,108 @@ "WEIR.L": 0.009999997465251128, "WPP.L": 0.009999989229755289, "WTB.L": 0.009999927788652448 + }, + "2024-07-18 07:00:00+00:00": { + "AAF.L": 0.021350740782183162, + "AAL.L": 0.009999998017647171, + "ABF.L": 0.009891383308153676, + "ADM.L": 0.010000047036016563, + "AHT.L": 0.015687942167202953, + "ANTO.L": 0.017898463231474145, + "AUTO.L": 0.010000014445539957, + "AV.L": 0.0120416588044976, + "AZN.L": 0.010000035772980838, + "BA.L": 0.010000008141511195, + "BARC.L": 0.010000001722213462, + "BATS.L": 0.010000003413453975, + "BDEV.L": 0.010000004112079325, + "BEZ.L": 0.010000012165034109, + "BKG.L": 0.010000003164447224, + "BME.L": 0.009999983590210763, + "BNZL.L": 0.009999983305687939, + "BP.L": 3.596167557627286e-07, + "BRBY.L": 0.009999989241534196, + "BT-A.L": 3.675051907303429e-08, + "CCH.L": 1.4265224368952747e-07, + "CNA.L": 0.009999991195478772, + "CPG.L": 1.5588250903199038e-07, + "CRDA.L": 0.009999997204441734, + "CTEC.L": 4.162208716639221e-05, + "DARK.L": 0.024511419476206123, + "DCC.L": 0.02069918844420885, + "DGE.L": 0.00998137121947807, + "DPLM.L": 0.010000007079608809, + "EDV.L": 0.007662093543146506, + "ENT.L": 0.010806511240883108, + "EXPN.L": 0.010000000890309292, + "EZJ.L": 0.009216270785684644, + "FCIT.L": 4.339613493517976e-08, + "FRAS.L": 0.010000007587697467, + "FRES.L": 0.009999995378597106, + "GBPOUND": 2.1395801360311884e-07, + "GLEN.L": 0.009999957743972821, + "GSK.L": 0.009999991024635243, + "HIK.L": 0.010000011172473783, + "HL.L": 0.010000013757722274, + "HLMA.L": 0.010000005993799235, + "HLN.L": 1.9436519206812093e-08, + "HSBA.L": 0.00999999832938471, + "HWDN.L": 0.00999999948757687, + "IAG.L": 0.009999983432457655, + "ICG.L": 0.010000015763426172, + "IHG.L": 0.015128482093383501, + "III.L": 0.010000006275965595, + "IMB.L": 0.010000012917102633, + "IMI.L": 0.009999989814407776, + "INF.L": 0.009999874562569167, + "ITRK.L": 0.009999993061217132, + "JD.L": 0.010000374499974443, + "KGF.L": 0.009999972064537834, + "LAND.L": 2.7476253075641914e-08, + "LGEN.L": 0.01000000043763731, + "LLOY.L": 1.096577546475628e-07, + "LMP.L": 7.919981312967733e-08, + "LSEG.L": 0.026693400804428856, + "MKS.L": 6.610587787415726e-08, + "MNDI.L": 0.009999998050353084, + "MNG.L": 0.010000005028608297, + "MRO.L": 0.04288947800270094, + "NG.L": 0.009999970079745804, + "NWG.L": 0.009999981481466106, + "NXT.L": 0.010000010314618958, + "PHNX.L": 4.6954184325489434e-08, + "PRU.L": 0.009999994458175638, + "PSH.L": 0.05219731615166348, + "PSN.L": 0.010000001683316743, + "PSON.L": 0.0009852996010534293, + "REL.L": 0.009999991488719726, + "RIO.L": 0.010000005299814412, + "RKT.L": 0.009999980440484193, + "RMV.L": 0.011831219210642863, + "RR.L": 0.00999999276165161, + "RTO.L": 0.010000000855574407, + "SBRY.L": 7.001425214503866e-08, + "SDR.L": 0.009999995508391389, + "SGE.L": 0.03612625686174559, + "SGRO.L": 8.297894759318736e-08, + "SHEL.L": 0.0011540254329940216, + "SMDS.L": 0.009999987177082762, + "SMIN.L": 1.1185815910902184e-07, + "SMT.L": 0.009999917271941603, + "SN.L": 0.003204310738497266, + "SPX.L": 0.009999968317715156, + "SSE.L": 0.009999996722776692, + "STAN.L": 0.009999994020200204, + "SVT.L": 0.010000002419042241, + "TSCO.L": 0.00999998830904126, + "TW.L": 0.009999996994320656, + "ULVR.L": 0.009999904749176607, + "UTG.L": 0.010000028428346583, + "UU.L": 0.00999998293217515, + "VOD.L": 0.010000043729438792, + "VTY.L": 0.009999997907294935, + "WEIR.L": 0.009999996049125876, + "WPP.L": 0.009999991903094885, + "WTB.L": 0.009999971889623331 } } \ No newline at end of file From b1ca48a7e5f447380b7eaad67bb4e98cc9be2032 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 18 Jul 2024 17:12:26 +0400 Subject: [PATCH 047/125] removed old code; fixed 3 tests; need only adapt regression forecaster and its test --- cvxportfolio/forecast.py | 553 ---------------------------- cvxportfolio/tests/test_forecast.py | 14 +- 2 files changed, 9 insertions(+), 558 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 3834451cf..7bf32851a 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -918,255 +918,6 @@ def values_in_time( # pylint: disable=arguments-differ return result -class BaseMeanVarForecast(BaseForecast): - """This class contains logic common to mean and (co)variance forecasters. - - It implements both moving average and exponential moving average, which - can be used at the same time (e.g., ignore observations older than 5 - years and weight exponentially with half-life of 1 year the recent ones). - - Then, it implements the "online update" vs "compute from scratch" model, - updating with a new observations is much cheaper than computing from - scratch (especially for covariances). - """ - - _denominator = None - _numerator = None - - def __init__(self, half_life=np.inf, rolling=np.inf): - self.half_life = half_life - self.rolling = rolling - - def initialize_estimator( # pylint: disable=arguments-differ - self, **kwargs): - """Re-initialize whenever universe changes. - - :param kwargs: Unused arguments to :meth:`initialize_estimator`. - :type kwargs: dict - """ - super().initialize_estimator(**kwargs) - self._denominator = None - self._numerator = None - - def _compute_numerator(self, df, emw_weights): - """Exponential moving window (optional) numerator.""" - raise NotImplementedError # pragma: no cover - - def _compute_denominator(self, df, emw_weights): - """Exponential moving window (optional) denominator.""" - raise NotImplementedError # pragma: no cover - - def _update_numerator(self, last_row): - """Update with last observation. - - Emw (if any) is applied in this class. - """ - raise NotImplementedError # pragma: no cover - - def _update_denominator(self, last_row): - """Update with last observation. - - Emw (if any) is applied in this class. - """ - raise NotImplementedError # pragma: no cover - - def _dataframe_selector(self, **kwargs): - """Return dataframe we work with. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - raise NotImplementedError # pragma: no cover - - def _get_last_row(self, **kwargs): - """Return last row of the dataframe we work with. - - This method receives the **kwargs passed to :meth:`values_in_time`. - - You may redefine it if obtaining the full dataframe is expensive, - during online update (in most cases) only this method is required. - """ - return self._dataframe_selector(**kwargs).iloc[-1] - - def values_in_time( # pylint: disable=arguments-differ - self, **kwargs): - """Obtain current value of the historical mean of given dataframe. - - :param kwargs: All arguments to :meth:`values_in_time`. - :type kwargs: dict - - :returns: Historical means of given dataframe. - :rtype: numpy.array - """ - self._agnostic_update(**kwargs) - return (self._numerator / self._denominator).values - - def _emw_weights(self, index, t): - """Get weights to apply to the past obs for EMW.""" - index_in_halflifes = (index - t) / _resolve_hyperpar(self.half_life) - return np.exp(index_in_halflifes * np.log(2)) - - def _initial_compute(self, t, **kwargs): # pylint: disable=arguments-differ - """Make forecast from scratch. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - df = self._dataframe_selector(t=t, **kwargs) - - # Moving average window logic - if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): - df = df.loc[df.index >= t-_resolve_hyperpar(self.rolling)] - - # If EMW, compute weights here - if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): - emw_weights = self._emw_weights(df.index, t) - else: - emw_weights = None - - self._denominator = self._compute_denominator(df, emw_weights) - self._check_denominator_valid(t) - self._numerator = self._compute_numerator(df, emw_weights) - self._last_time = t - - # used by covariance forecaster - return df, emw_weights - - def _online_update(self, t, **kwargs): # pylint: disable=arguments-differ - """Update forecast from period before. - - This method receives the **kwargs passed to :meth:`values_in_time`. - """ - last_row = self._get_last_row(t=t, **kwargs) - - # if emw discount past - if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): - time_passed_in_halflifes = ( - self._last_time - t)/_resolve_hyperpar(self.half_life) - discount_factor = np.exp(time_passed_in_halflifes * np.log(2)) - self._denominator *= discount_factor - self._numerator *= discount_factor - else: - discount_factor = 1. - - # for emw we also need to discount last element - self._denominator += self._update_denominator( - last_row) * discount_factor - self._numerator += self._update_numerator(last_row) * discount_factor - - # Moving average window logic: subtract elements that have gone out - if _is_timedelta_or_inf(_resolve_hyperpar(self.rolling)): - df = self._dataframe_selector(t=t, **kwargs) - observations_to_subtract, emw_weights_of_subtract = \ - self._remove_part_gone_out_of_ma(df, t) - else: - observations_to_subtract, emw_weights_of_subtract = None, None - - self._last_time = t - - # used by covariance forecaster - return ( - discount_factor, observations_to_subtract, emw_weights_of_subtract) - - def _remove_part_gone_out_of_ma(self, df, t): - """Subtract from numerator and denominator too old observations.""" - - observations_to_subtract = df.loc[ - (df.index >= (self._last_time - _resolve_hyperpar(self.rolling))) - & (df.index < (t - _resolve_hyperpar(self.rolling)))] - - # If EMW, compute weights here - if _is_timedelta_or_inf(_resolve_hyperpar(self.half_life)): - emw_weights = self._emw_weights(observations_to_subtract.index, t) - else: - emw_weights = None - - self._denominator -= self._compute_denominator( - observations_to_subtract, emw_weights) - self._check_denominator_valid(t) - self._numerator -= self._compute_numerator( - observations_to_subtract, emw_weights).fillna(0.) - - # used by covariance forecaster - return observations_to_subtract, emw_weights - - def _check_denominator_valid(self, t): - """Check that there are enough obs to compute the forecast.""" - mindenom = np.min(self._denominator.values) - if mindenom == 0: - raise ForecastError( - f'{self.__class__.__name__} can not compute the forecast at' - + f' time {t} because there are no observation for either some' - ' asset or some pair of assets (in the case of covariance).') - if mindenom < 5: - logger.warning( - '%s at time %s is given 5 or less observations for either some' - + ' asset or some pair of assets (in the case of covariance).', - self.__class__.__name__, t) - - -class BaseMeanForecast(BaseMeanVarForecast): # pylint: disable=abstract-method - """This class contains the logic common to the mean forecasters.""" - - def _compute_numerator(self, df, emw_weights): - """Exponential moving window (optional) numerator.""" - if emw_weights is None: - return df.sum() - return df.multiply(emw_weights, axis=0).sum() - - def _compute_denominator(self, df, emw_weights): - """Exponential moving window (optional) denominator.""" - if emw_weights is None: - return df.count() - ones = (~df.isnull()) * 1. - return ones.multiply(emw_weights, axis=0).sum() - - def _update_numerator(self, last_row): - """Update with last observation. - - Emw (if any) is applied upstream. - """ - return last_row.fillna(0.) - - def _update_denominator(self, last_row): - """Update with last observation. - - Emw (if any) is applied upstream. - """ - return ~(last_row.isnull()) - - -# class OldHistoricalMeanReturn(BaseMeanForecast): -# r"""Historical means of non-cash returns. - -# .. versionadded:: 1.2.0 - -# Added the ``half_life`` and ``rolling`` parameters. - -# When both ``half_life`` and ``rolling`` are infinity, this is equivalent to - -# .. code-block:: - -# past_returns.iloc[:,:-1].mean() - -# where ``past_returns`` is a time-indexed dataframe containing the past -# returns (if in back-test that's relative to each point in time, ), and its -# last column, which we skip over, are the cash returns. We use the same -# logic as Pandas to handle ``np.nan`` values. - -# :param half_life: Half-life of exponential smoothing, expressed as -# Pandas Timedelta. If in back-test, that is with respect to each point -# in time. Default ``np.inf``, meaning no exponential smoothing. -# :type half_life: pandas.Timedelta or np.inf -# :param rolling: Rolling window used: observations older than this Pandas -# Timedelta are skipped over. If in back-test, that is with respect to -# each point in time. Default ``np.inf``, meaning that all past is used. -# :type rolling: pandas.Timedelta or np.inf -# """ -# # pylint: disable=arguments-differ -# def _dataframe_selector(self, past_returns, **kwargs): -# """Return dataframe to compute the historical means of.""" -# return past_returns.iloc[:, :-1] - - class RegressionXtY(HistoricalMeanReturn): """Class for the XtY matrix of returns regression forecaster.""" @@ -1356,310 +1107,6 @@ def solve_for_single_X(self, asset, X_last, quad_reg): # return df.multiply(regr_on_df, axis=0).dropna(how='all') -# class OldHistoricalMeanVolume(BaseMeanForecast): -# r"""Historical means of traded volume in units of value (e.g., dollars). - -# .. versionadded:: 1.2.0 - -# :param half_life: Half-life of exponential smoothing, expressed as -# Pandas Timedelta. If in back-test, that is with respect to each point -# in time. Default ``np.inf``, meaning no exponential smoothing. -# :type half_life: pandas.Timedelta or np.inf -# :param rolling: Rolling window used: observations older than this Pandas -# Timedelta are skipped over. If in back-test, that is with respect to -# each point in time. Default ``np.inf``, meaning that all past is used. -# :type rolling: pandas.Timedelta or np.inf -# """ -# # pylint: disable=arguments-differ -# def _dataframe_selector(self, past_volumes, **kwargs): -# """Return dataframe to compute the historical means of.""" -# if past_volumes is None: -# raise DataError( -# f"{self.__class__.__name__} can only be used if MarketData" -# + " provides market volumes.") -# return past_volumes - -# class OldHistoricalVariance(BaseMeanForecast): -# r"""Historical variances of non-cash returns. - -# .. versionadded:: 1.2.0 - -# Added the ``half_life`` and ``rolling`` parameters. - -# When both ``half_life`` and ``rolling`` are infinity, this is equivalent to - -# .. code-block:: - -# past_returns.iloc[:,:-1].var(ddof=0) - -# if you set ``kelly=False`` and - -# .. code-block:: - -# (past_returns**2).iloc[:,:-1].mean() - -# otherwise (we use the same logic to handle ``np.nan`` values). - -# :param half_life: Half-life of exponential smoothing, expressed as -# Pandas Timedelta. If in back-test, that is with respect to each point -# in time. Default ``np.inf``, meaning no exponential smoothing. -# :type half_life: pandas.Timedelta or np.inf -# :param rolling: Rolling window used: observations older than this Pandas -# Timedelta are skipped over. If in back-test, that is with respect to -# each point in time. Default ``np.inf``, meaning that all past is used. -# :type rolling: pandas.Timedelta or np.inf -# :param kelly: if ``True`` compute :math:`\mathbf{E}[r^2]`, else -# :math:`\mathbf{E}[r^2] - {\mathbf{E}[r]}^2`. The second corresponds -# to the classic definition of variance, while the first is what is -# obtained by Taylor approximation of the Kelly gambling objective. -# See discussion above. -# :type kelly: bool -# """ - -# def __init__(self, rolling=np.inf, half_life=np.inf, kelly=True): -# super().__init__(rolling=rolling, half_life=half_life) -# self.kelly = kelly - -# if not self.kelly: -# self.meanforecaster = HistoricalMeanReturn( -# half_life=_resolve_hyperpar(self.half_life), -# rolling=_resolve_hyperpar(self.rolling)) - -# def values_in_time(self, **kwargs): -# """Obtain current value either by update or from scratch. - -# :param kwargs: All arguments to :meth:`values_in_time`. -# :type kwargs: dict - -# :returns: Variances of past returns (excluding cash). -# :rtype: numpy.array -# """ -# result = super().values_in_time(**kwargs) -# if not self.kelly: -# result -= self.meanforecaster.current_value**2 -# return result - -# # pylint: disable=arguments-differ -# def _dataframe_selector(self, past_returns, **kwargs): -# """Return dataframe to compute the historical means of.""" -# return past_returns.iloc[:, :-1]**2 - - -# class OldHistoricalStandardDeviation(HistoricalVariance, SimulatorEstimator): -# """Historical standard deviation of non-cash returns. - -# .. versionadded:: 1.2.0 - -# Added the ``half_life`` and ``rolling`` parameters. - -# When both ``half_life`` and ``rolling`` are infinity, this is equivalent to - -# .. code-block:: - -# past_returns.iloc[:,:-1].std(ddof=0) - -# if you set ``kelly=False`` and - -# .. code-block:: - -# np.sqrt((past_returns**2).iloc[:,:-1].mean()) - -# otherwise (we use the same logic to handle ``np.nan`` values). - -# :param half_life: Half-life of exponential smoothing, expressed as -# Pandas Timedelta. If in back-test, that is with respect to each point -# in time. Default ``np.inf``, meaning no exponential smoothing. -# :type half_life: pandas.Timedelta or np.inf -# :param rolling: Rolling window used: observations older than this Pandas -# Timedelta are skipped over. If in back-test, that is with respect to -# each point in time. Default ``np.inf``, meaning that all past is used. -# :type rolling: pandas.Timedelta or np.inf -# :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. -# Default True. -# :type kelly: bool -# """ - -# def values_in_time(self, **kwargs): -# """Obtain current value either by update or from scratch. - -# :param kwargs: All arguments to :meth:`values_in_time`. -# :type kwargs: dict - -# :returns: Standard deviations of past returns (excluding cash). -# :rtype: numpy.array -# """ -# variances = \ -# super().values_in_time(**kwargs) -# return np.sqrt(variances) - -# def simulate(self, **kwargs): -# # TODO could take last return as well -# return self.values_in_time( -# t=kwargs['t'], -# # These are not necessary with current design of -# # DataEstimator -# current_weights=kwargs['current_weights'], -# current_portfolio_value=kwargs['current_portfolio_value'], -# past_returns=kwargs['past_returns'], -# past_volumes=kwargs['past_volumes'], -# current_prices=kwargs['current_prices'] -# ) - -# class OldHistoricalMeanError(HistoricalVariance): -# r"""Historical standard deviations of the mean of non-cash returns. - -# .. versionadded:: 1.2.0 - -# Added the ``half_life`` and ``rolling`` parameters. - -# For a given time series of past returns :math:`r_{t-1}, r_{t-2}, -# \ldots, r_0` this is :math:`\sqrt{\text{Var}[r]/t}`. When there are -# missing values we ignore them, both to compute the variance and the -# count. - -# :param half_life: Half-life of exponential smoothing, expressed as -# Pandas Timedelta. If in back-test, that is with respect to each point -# in time. Default ``np.inf``, meaning no exponential smoothing. -# :type half_life: pandas.Timedelta or np.inf -# :param rolling: Rolling window used: observations older than this Pandas -# Timedelta are skipped over. If in back-test, that is with respect to -# each point in time. Default ``np.inf``, meaning that all past is used. -# :type rolling: pandas.Timedelta or np.inf -# :param kelly: Same as in :class:`cvxportfolio.forecast.HistoricalVariance`. -# Default False. -# :type kelly: bool -# """ - -# def __init__(self, rolling=np.inf, half_life=np.inf, kelly=False): -# super().__init__(rolling=rolling, half_life=half_life, kelly=kelly) - -# def values_in_time(self, **kwargs): -# """Obtain current value either by update or from scratch. - -# :param kwargs: All arguments to :meth:`values_in_time`. -# :type kwargs: dict - -# :returns: Standard deviation of the mean of past returns (excluding -# cash). -# :rtype: numpy.array -# """ -# variance = super().values_in_time(**kwargs) -# return np.sqrt(variance / self._denominator.values) - - -class OldHistoricalCovariance(BaseMeanVarForecast): - r"""Historical covariance matrix.""" - - _joint_mean = None - - def __init__(self, rolling=np.inf, half_life=np.inf, kelly=True): - super().__init__(rolling=rolling, half_life=half_life) - self.kelly = kelly - - def initialize_estimator(self, **kwargs): - super().initialize_estimator(**kwargs) - self._joint_mean = None - - def _compute_numerator(self, df, emw_weights): - """Exponential moving window (optional) numerator.""" - filled = df.fillna(0.) - if emw_weights is None: - return filled.T @ filled - tmp = filled.multiply(emw_weights, axis=0) - return tmp.T @ filled - - def _compute_denominator(self, df, emw_weights): - """Exponential moving window (optional) denominator.""" - ones = (~df.isnull()) * 1. - if emw_weights is None: - return ones.T @ ones - tmp = ones.multiply(emw_weights, axis=0) - return tmp.T @ ones - - def _update_denominator(self, last_row): - """Update with last observation. - - Emw (if any) is applied upstream. - """ - nonnull = ~(last_row.isnull()) - return np.outer(nonnull, nonnull) - - def _update_numerator(self, last_row): - """Update with last observation. - - Emw (if any) is applied upstream. - """ - filled = last_row.fillna(0.) - return np.outer(filled, filled) - - def _dataframe_selector( # pylint: disable=arguments-differ - self, past_returns, **kwargs): - """Return dataframe to compute the historical covariance of.""" - return past_returns.iloc[:, :-1] - - def _compute_joint_mean(self, df, emw_weights): - r"""Compute precursor of :math:`\Sigma_{i,j} = - \mathbf{E}[r^{i}]\mathbf{E}[r^{j}]`.""" - nonnull = (~df.isnull()) * 1. - if emw_weights is None: - return nonnull.T @ df.fillna(0.) - return nonnull.T @ df.fillna(0.).multiply(emw_weights, axis=0) - - def _update_joint_mean(self, last_row): - r"""Update precursor of :math:`\Sigma_{i,j} = - \mathbf{E}[r^{i}]\mathbf{E}[r^{j}]`.""" - return last_row.fillna(0.) - - def _initial_compute( # pylint: disable=arguments-differ - self, **kwargs): - """Compute from scratch, taking care of non-Kelly correction.""" - - df, emw_weights = super()._initial_compute(**kwargs) - - if not self.kelly: - self._joint_mean = self._compute_joint_mean(df, emw_weights) - - def _online_update( # pylint: disable=arguments-differ - self, **kwargs): - """Update from last observation.""" - - discount_factor, observations_to_subtract, emw_weights_of_subtract = \ - super()._online_update(**kwargs) - last_row = self._get_last_row(**kwargs) - - if not self.kelly: - - # discount past if EMW - if discount_factor != 1.: - self._joint_mean *= discount_factor - - # add last anyways - self._joint_mean += self._update_joint_mean( - last_row) * discount_factor - - # if MW, update by removing old observations - if observations_to_subtract is not None: - self._joint_mean -= self._compute_joint_mean( - observations_to_subtract, emw_weights_of_subtract) - - def values_in_time(self, **kwargs): - """Obtain current value of the covariance estimate. - - :param kwargs: All arguments passed to :meth:`values_in_time`. - :type kwargs: dict - - :returns: Covariance matrix (excludes cash). - :rtype: numpy.array - """ - - covariance = super().values_in_time(**kwargs) - - if not self.kelly: - tmp = self._joint_mean / self._denominator - covariance -= tmp.T * tmp - - return covariance - class RegressorsXtXMatrix(HistoricalCovariance): """XtX matrix used for linear regression. diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index dc869f88b..f7af608a3 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -49,8 +49,10 @@ def test_estimate(self): t=self.market_data.trading_calendar()[20]) forecaster = cvx.forecast.HistoricalCovariance(kelly=False) - - full_cov, t_fore = forecaster.estimate(market_data=self.market_data) + t_fore = self.market_data.trading_calendar()[-1] + full_cov = forecaster.estimate( + market_data=self.market_data, + t=t_fore) pdcov = self.market_data.returns.loc[ self.market_data.returns.index < t_fore].iloc[:, :-1].cov(ddof=0) @@ -458,9 +460,11 @@ def test_counts_matrix(self): returns.iloc[:20, 3:10] = np.nan returns.iloc[10:15, 10:20] = np.nan + forecaster.values_in_time_recursive( + t=pd.Timestamp('2022-01-01'), past_returns=returns) + # pylint: disable=protected-access - count_matrix = forecaster._compute_denominator( - returns.iloc[:, :-1], None) + count_matrix = forecaster._denominator.current_value for indexes in [(1, 2), (4, 5), (1, 5), (7, 18), (7, 24), (1, 15), (13, 22)]: @@ -483,7 +487,7 @@ def test_sum_matrix(self): t=pd.Timestamp('2022-01-01'), past_returns=returns) # pylint: disable=protected-access - sum_matrix = forecaster._numerator + sum_matrix = forecaster._numerator.current_value for indexes in [(1, 2), (4, 5), (1, 5), (7, 18), (7, 24), (1, 15), (13, 22)]: From 3f9cac340bf047200f8757c36ea75b7cc1a0c804 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 18 Jul 2024 18:00:33 +0400 Subject: [PATCH 048/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-18 --- .../dow30_daily_initial_holdings.json | 43 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index fb7e887e0..cf52520c7 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4587,9 +4587,9 @@ "WMT": 0.0003869083550937049 }, "2024-07-17 13:30:00+00:00": { - "AAPL": 221302.82723594373, - "AMGN": 20815.421989511797, - "AMZN": 223884.58441105942, + "AAPL": 221273.89741724214, + "AMGN": 20786.447479747807, + "AMZN": 223802.72178107974, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4609,14 +4609,47 @@ "MCD": 1.2207845471993696e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 234277.8580192229, + "MSFT": 234362.58400040583, "NKE": 9.9566126014007e-13, "PG": 0.0, "TRV": 0.0, "UNH": 112214.27113013966, - "USDOLLAR": -401.7009178094483, + "USDOLLAR": -401.7009127806774, "V": 34537.28045120006, "VZ": 0.0, "WMT": 0.0003889033027389737 + }, + "2024-07-18 13:30:00+00:00": { + "AAPL": 222137.00958201225, + "AMGN": 21051.00303476524, + "AMZN": 224588.06656103677, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 78964.72525141433, + "CSCO": 45312.334232345725, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 112438.50864279742, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2163533758305268e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 235289.25320981926, + "NKE": 1.0017014282449713e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 110954.07590787692, + "USDOLLAR": 51.88919078862336, + "V": 35032.61922085671, + "VZ": 0.0, + "WMT": 0.00039167405865980467 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 7cfad586c..8fe896ef8 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4618,5 +4618,38 @@ "V": 0.03191409167493964, "VZ": 8.404105046552015e-09, "WMT": 6.563853811326232e-08 + }, + "2024-07-18 13:30:00+00:00": { + "AAPL": 0.2045799444238776, + "AMGN": 0.019321547378168602, + "AMZN": 0.20907195779383522, + "AXP": 8.545857267825331e-09, + "BA": 1.4550738786246872e-08, + "CAT": 7.419207914461355e-09, + "CRM": 0.07272696510283098, + "CSCO": 0.04173097925895466, + "CVX": 8.237259074372614e-09, + "DIS": 1.0824101578504889e-08, + "DOW": 1.2828371175605162e-08, + "GS": 8.705676803624563e-09, + "HD": 0.10354369325037191, + "HON": 5.194103460163288e-09, + "IBM": 3.7960024530569374e-09, + "INTC": 1.0042150664038804e-08, + "JNJ": 1.1610897493347302e-08, + "JPM": 1.4227953378428685e-08, + "KO": 8.842668323371727e-09, + "MCD": 2.36643998486175e-08, + "MMM": 5.049003654579871e-09, + "MRK": 1.0001672816039302e-08, + "MSFT": 0.2166929866218282, + "NKE": 2.1945583920458438e-08, + "PG": 6.838381234216214e-09, + "TRV": 6.134198142047716e-09, + "UNH": 0.10006804476557085, + "USDOLLAR": 5.292772341551014e-09, + "V": 0.032263630675460224, + "VZ": 5.412716722702694e-09, + "WMT": 4.156538460249474e-08 } } \ No newline at end of file From 70752dbc63f129f7ca3dc250bd9f781aba177239 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 18 Jul 2024 18:01:34 +0400 Subject: [PATCH 049/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-18 --- .../ndx100_daily_initial_holdings.json | 184 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 ++++++++++ 2 files changed, 248 insertions(+), 40 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 59021aaa3..9a501ebb2 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14351,107 +14351,211 @@ "ZS": 19833.195221452617 }, "2024-07-17 13:30:00+00:00": { - "AAPL": 7998.552946208114, + "AAPL": 7997.507335135273, "ABNB": 0.0, - "ADBE": 11558.704004407722, + "ADBE": 11505.454367480785, "ADI": 0.0, "ADP": 0.0, "ADSK": 84.84605510546595, "AEP": 0.0, "AMAT": -59.346456916303524, - "AMD": -2.0674357916202397e-11, - "AMGN": 37509.19871688919, - "AMZN": 19238.791210531374, + "AMD": -2.0685321421164345e-11, + "AMGN": 37456.98691714717, + "AMZN": 19231.756612547477, "ANSS": 11.735741453626726, - "ARM": 70187.97560671718, + "ARM": 70179.7164338494, "ASML": 17.097143460063812, "AVGO": -36.793836435287176, "AZN": 0.0, "BIIB": 15482.80086068194, "BKNG": 11560.27255686214, "BKR": 0.0, - "CCEP": 18033.50338752396, + "CCEP": 18133.59360777478, "CDNS": -96.17939051502589, - "CDW": 9753.957305026493, + "CDW": 9652.285800544763, "CEG": 78283.78130996593, "CHTR": 20983.760475178493, "CMCSA": 36594.37897279877, "COST": 0.0, "CPRT": -0.8432924936040134, - "CRWD": 13444.236036499558, + "CRWD": 13466.680732704328, "CSCO": 59501.7870359025, "CSGP": 5891.671964732364, "CSX": 914.159996032715, "CTAS": 0.0, "CTSH": 27966.52542015015, "DASH": 0.0, - "DDOG": 17681.846873022143, - "DLTR": 29073.254392311137, + "DDOG": 17683.279023352447, + "DLTR": 29112.844295692816, "DXCM": 10865.296012355877, "EA": 13830.70149094499, "EXC": 0.0, "FANG": 28690.998594879948, - "FAST": 21371.608282915382, - "FTNT": 24760.00557791929, - "GEHC": 2524.3004449455325, - "GFS": 24691.4802617045, + "FAST": 21368.518794116902, + "FTNT": 24908.204230660773, + "GEHC": 2523.99477427479, + "GFS": 24768.869674184574, "GILD": 30871.28283967022, - "GOOG": -60.67022332754368, - "GOOGL": -2.378561650487346e-12, + "GOOG": -60.67350685474245, + "GOOGL": -2.379862414357791e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 6135.100563050404, - "INTC": 2.2951817658799465, - "INTU": -102.80782992797744, + "INTC": 2.293592670418923, + "INTU": -103.28604324747124, "ISRG": 8790.740484613574, "KDP": 0.0, "KHC": 0.0, "KLAC": 15380.585588993374, "LIN": 0.0, - "LRCX": -10.766419491818095, - "LULU": 21921.639477755707, + "LRCX": -10.772867952802027, + "LULU": 21864.331208590702, "MAR": 0.0, "MCHP": 12437.256373522263, "MDB": 25196.695395627194, "MDLZ": 0.0, - "MELI": 22299.724310348924, - "META": -129.91325185116673, + "MELI": 22164.53292503548, + "META": -130.1060396808723, "MNST": 18233.28868414174, "MRNA": 20663.153236265134, "MRVL": 0.0, - "MSFT": 43.302885048119684, - "MU": 9.025957761355942, + "MSFT": 43.31854542445559, + "MU": 9.030378299285124, "NFLX": 16226.921807330427, - "NVDA": 17.991540386793087, - "NXPI": 20948.140922386334, + "NVDA": 17.99302344137834, + "NXPI": 20887.21617353885, "ODFL": 9869.251445184913, "ON": -3.4043908030413492, "ORLY": 28412.48523773352, - "PANW": -7.892207350257596, + "PANW": -7.909021621985193, "PAYX": 7085.382671481518, "PCAR": 0.0, - "PDD": 27366.04976950345, - "PEP": 26730.70700853051, - "PYPL": 8376.178903862674, + "PDD": 27390.446442610028, + "PEP": 26725.875934749354, + "PYPL": 8374.808685744802, "QCOM": -7.524894791583948, "REGN": 16476.303134657825, - "ROP": 15215.774535271867, + "ROP": 15295.46558577963, "ROST": 8971.936262617764, "SBUX": 32846.84364486451, "SNPS": 0.0, - "TEAM": 12136.547112497232, - "TMUS": 4112.638777405673, - "TSLA": 1473.6411627235382, - "TTD": 39204.278612502785, - "TTWO": 9890.701208809436, + "TEAM": 12144.45176692819, + "TMUS": 4112.526768725024, + "TSLA": 1472.8543557566882, + "TTD": 39252.03156897428, + "TTWO": 9891.34358879973, "TXN": 0.0, - "USDOLLAR": -2225.2771579817263, + "USDOLLAR": -2225.277091859029, "VRSK": 0.0, "VRTX": 11673.425374940185, - "WBA": 375.42796169944097, + "WBA": 375.1076233496035, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, - "ZS": 19387.248871999855 + "ZS": 19354.19670401943 + }, + "2024-07-18 13:30:00+00:00": { + "AAPL": 7337.66781340467, + "ABNB": 0.0, + "ADBE": 12074.734928718664, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 85.24894332918177, + "AEP": 0.0, + "AMAT": -56.97506107267782, + "AMD": -1.987520614225832e-11, + "AMGN": 36262.71352971997, + "AMZN": 19244.45568456579, + "ANSS": 11.469207125871677, + "ARM": 69075.43142212433, + "ASML": 16.66752175361916, + "AVGO": -36.793836435287176, + "AZN": 0.0, + "BIIB": 15437.69579692234, + "BKNG": 11278.626230534592, + "BKR": 0.0, + "CCEP": 16753.58935606259, + "CDNS": -91.12493597734394, + "CDW": 13166.737933849547, + "CEG": 73538.82757935145, + "CHTR": 19289.612008536627, + "CMCSA": 35403.14794361808, + "COST": 0.0, + "CPRT": -0.831658737994384, + "CRWD": 13167.421160866448, + "CSCO": 59056.96612440897, + "CSGP": 5821.6158011431635, + "CSX": 1518.7599868774412, + "CTAS": 0.0, + "CTSH": 28042.800784393217, + "DASH": 0.0, + "DDOG": 16304.173355738307, + "DLTR": 28832.54580142139, + "DXCM": 11073.779832821188, + "EA": 13885.394558986613, + "EXC": 0.0, + "FANG": 28757.76061783374, + "FAST": 21553.84806000502, + "FTNT": 23808.477758768186, + "GEHC": 7097.964168393846, + "GFS": 28492.318978789208, + "GILD": 30357.18592859238, + "GOOG": -60.335118071579814, + "GOOGL": -2.3663351845924875e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 6762.254850535634, + "INTC": 2.221758911110078, + "INTU": -103.06640301392896, + "ISRG": 8263.320320722522, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 11763.613985352918, + "LIN": 0.0, + "LRCX": -10.403219201198066, + "LULU": 22145.59137557962, + "MAR": 0.0, + "MCHP": 13077.715838167089, + "MDB": 27139.443628836783, + "MDLZ": 0.0, + "MELI": 21647.230429939013, + "META": -128.95993567167898, + "MNST": 17981.943105281858, + "MRNA": 20836.01728869358, + "MRVL": 0.0, + "MSFT": 43.489826870308534, + "MU": 8.882155667235384, + "NFLX": 16391.686865427815, + "NVDA": 18.06345326244919, + "NXPI": 20547.36547877655, + "ODFL": 9698.300339199028, + "ON": -3.3550772093412187, + "ORLY": 27264.01668134104, + "PANW": -7.775830623463066, + "PAYX": 7893.850692195903, + "PCAR": 0.0, + "PDD": 27377.851522993442, + "PEP": 26986.932553542247, + "PYPL": 7572.714125955171, + "QCOM": -7.300726654581405, + "REGN": 15360.633792984365, + "ROP": 15328.4703893325, + "ROST": 8625.049759529804, + "SBUX": 32142.668204967216, + "SNPS": 0.0, + "TEAM": 12195.596369106073, + "TMUS": 6129.547670148013, + "TSLA": 1715.2607958760698, + "TTD": 38589.72386345127, + "TTWO": 9626.29917158597, + "TXN": 0.0, + "USDOLLAR": -495.1304437699321, + "VRSK": 0.0, + "VRTX": 11635.780286400766, + "WBA": 376.8694537245634, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 19147.66676629003 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 4ea409bcf..4e05017b3 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14246,5 +14246,109 @@ "WDAY": 3.25971704267093e-08, "XEL": 1.0561817485501537e-07, "ZS": 0.017594239448148728 + }, + "2024-07-18 13:30:00+00:00": { + "AAPL": 0.006695857656164101, + "ABNB": 7.0195275780341784e-09, + "ADBE": 0.010509878873040094, + "ADI": 6.661706326294874e-08, + "ADP": 1.199810629354796e-07, + "ADSK": 1.6466560380710396e-08, + "AEP": 5.867698618834008e-09, + "AMAT": 2.0107018235856187e-08, + "AMD": 2.9569474021294464e-09, + "AMGN": 0.03211680494842851, + "AMZN": 0.017336507465325047, + "ANSS": 2.4088901040910616e-08, + "ARM": 0.06308221367541506, + "ASML": 8.603363468859664e-09, + "AVGO": 8.891548002454145e-09, + "AZN": 2.8121201758910318e-08, + "BIIB": 0.013769352421828385, + "BKNG": 0.009187684183354689, + "BKR": 7.811632876713982e-08, + "CCEP": 0.015032436337854796, + "CDNS": 6.058064142144153e-09, + "CDW": 0.012010769958491237, + "CEG": 0.06725496723190465, + "CHTR": 0.017225484194158744, + "CMCSA": 0.031144568077305798, + "COST": 7.0981990666192065e-09, + "CPRT": 4.2421451830229615e-08, + "CRWD": 0.011917860420719446, + "CSCO": 0.052300839394212664, + "CSGP": 0.005245105399310332, + "CSX": 0.0019193922704247302, + "CTAS": 1.2034050261175371e-08, + "CTSH": 0.02491403541186576, + "DASH": 5.274021765823933e-09, + "DDOG": 0.014536423822670686, + "DLTR": 0.025433510918920675, + "DXCM": 0.010034582772226035, + "EA": 0.012622057823393538, + "EXC": 2.002429545526981e-08, + "FANG": 0.026301248518920163, + "FAST": 0.019416984553129454, + "FTNT": 0.02144803392742817, + "GEHC": 0.0066319901387391945, + "GFS": 0.026718825115975786, + "GILD": 0.02693386412208343, + "GOOG": 9.113683098868803e-08, + "GOOGL": 4.686082740968207e-08, + "HON": 1.8479813090175075e-08, + "IDXX": 1.748240089278437e-08, + "ILMN": 0.006115591884267176, + "INTC": 2.1792814425134653e-08, + "INTU": 6.165191873301135e-08, + "ISRG": 0.007596844389648139, + "KDP": 1.0259242801153535e-07, + "KHC": 1.5165261881792434e-08, + "KLAC": 0.01032940191684191, + "LIN": 4.7655200370144196e-08, + "LRCX": 1.8317795373179598e-08, + "LULU": 0.019945909689951767, + "MAR": 4.293213272046878e-08, + "MCHP": 0.011865678090607297, + "MDB": 0.024784466497433363, + "MDLZ": 1.0275390472970226e-07, + "MELI": 0.018902849106553685, + "META": 6.220325131646681e-09, + "MNST": 0.016199371771121036, + "MRNA": 0.018681177690822327, + "MRVL": 5.354218460773656e-09, + "MSFT": 1.6732151986405058e-08, + "MU": 6.693658477384325e-09, + "NFLX": 0.014591160619868277, + "NVDA": 1.2623042524562123e-07, + "NXPI": 0.01815084942081383, + "ODFL": 0.00873701541110825, + "ON": 3.5120371117370627e-07, + "ORLY": 0.024048021581580297, + "PANW": 1.198031831408492e-08, + "PAYX": 0.0076263630342808105, + "PCAR": 7.568405425706496e-09, + "PDD": 0.025013845859190427, + "PEP": 0.024322581488322285, + "PYPL": 0.005604477272242795, + "QCOM": 2.0538864417795195e-08, + "REGN": 0.014259499832741584, + "ROP": 0.013825017816396942, + "ROST": 0.00760558472246062, + "SBUX": 0.02856989241175625, + "SNPS": 3.0609705915739853e-09, + "TEAM": 0.010944637673510768, + "TMUS": 0.006350246749631552, + "TSLA": 0.0019081674312762175, + "TTD": 0.0352532357378143, + "TTWO": 0.008741733043102906, + "TXN": 1.817174527678726e-08, + "USDOLLAR": 1.84362021760033e-07, + "VRSK": 1.0927693511755397e-07, + "VRTX": 0.010678352865913975, + "WBA": 0.0003395092999198426, + "WBD": 1.7537603626551906e-08, + "WDAY": 1.399028176748636e-08, + "XEL": 6.211352232293525e-08, + "ZS": 0.017265209453738405 } } \ No newline at end of file From c72f76e5bc7da42b11d828187d81c8fa69c1e334 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 18 Jul 2024 18:06:39 +0400 Subject: [PATCH 050/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-18 --- .../sp500_daily_initial_holdings.json | 633 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1074 insertions(+), 64 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 12320d347..60a57f250 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -68803,14 +68803,14 @@ }, "2024-07-17 13:30:00+00:00": { "A": 0.0, - "AAL": 641.8376869771487, - "AAPL": 49008.79070010131, - "ABBV": 4610.933448772948, + "AAL": 644.1822973371598, + "AAPL": 49002.38402447295, + "ABBV": 4619.381310107103, "ABNB": 0.0, "ABT": 3306.1369059888607, "ACGL": 0.0, "ACN": 2.5760605335384064e-13, - "ADBE": 11717.239079474228, + "ADBE": 11663.259089457164, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, @@ -68822,19 +68822,19 @@ "AIG": 0.0, "AIZ": 1.455224065147431, "AJG": 0.0, - "AKAM": 192.92009980395557, + "AKAM": 193.9196858133025, "ALB": 0.0, "ALGN": 1197.7349145318983, - "ALL": 6.571831219884891e-14, + "ALL": 6.604336029045514e-14, "ALLE": 0.0, "AMAT": 2234.9036675104635, "AMCR": 0.0, - "AMD": 27271.647097657402, + "AMD": 27286.109110914967, "AME": 0.0, - "AMGN": 6473.207623189043, + "AMGN": 6464.197091594876, "AMP": 9.392513449612139, "AMT": 632.5637581974248, - "AMZN": 37153.587466381185, + "AMZN": 37140.00238462498, "ANET": 3747.7068745372417, "ANSS": 650.4710025158513, "AON": 17.176031114757816, @@ -68849,9 +68849,9 @@ "AVGO": 19786.892359038535, "AVY": 0.0, "AWK": 0.0, - "AXON": 4982.960844165506, + "AXON": 5010.572334068961, "AXP": 0.0, - "AZO": 1.7566075255646773e-12, + "AZO": 1.762885848085915e-12, "BA": -1.1030430926174232e-12, "BAC": 0.0, "BALL": 0.0, @@ -68859,7 +68859,7 @@ "BBWI": 0.0, "BBY": 512.0048411258269, "BDX": 0.0, - "BEN": 193.39598620962985, + "BEN": 192.5891733570599, "BF-B": 0.0, "BG": 1694.68979081244, "BIIB": 2432.1456192435467, @@ -68882,13 +68882,13 @@ "CAH": 0.0, "CARR": 20409.07411479488, "CAT": 0.0, - "CB": 818.3108427990289, + "CB": 819.405487539078, "CBOE": 0.0, - "CBRE": 4661.215296991144, + "CBRE": 4633.889459234651, "CCI": 302.2210510853311, "CCL": 0.0, "CDNS": 0.0, - "CDW": 416.1323705531517, + "CDW": 411.7947665577062, "CE": -2.846206565384639e-14, "CEG": 36578.60092921664, "CF": 9874.07844901384, @@ -68901,7 +68901,7 @@ "CL": 9.621912867128437, "CLX": 15.287471768842922, "CMCSA": 6363.394339178688, - "CME": 4596.554791878289, + "CME": 4589.132968469165, "CMG": 5812.780249769842, "CMI": 0.0, "CMS": 0.0, @@ -68918,7 +68918,7 @@ "CPT": 0.0, "CRL": 0.0, "CRM": 7650.936280642028, - "CRWD": 3949.676968790653, + "CRWD": 3956.2708205670433, "CSCO": 6961.414486911647, "CSGP": -7.759899179240527e-14, "CSX": 0.0, @@ -68926,16 +68926,16 @@ "CTLT": 0.0, "CTRA": 0.0, "CTSH": 11562.879453007356, - "CTVA": 109.56774539507973, + "CTVA": 109.60817722226031, "CVS": 0.0, "CVX": -5.711389174709943e-13, - "CZR": 9327.379170922908, + "CZR": 9208.740416851786, "D": 0.0, "DAL": 660.1645666961014, "DAY": 0.0, "DD": 0.0, "DE": 1.0683623738428841e-13, - "DECK": 889.2305147102431, + "DECK": 884.1554103195006, "DFS": 3736.352148377845, "DG": 0.0, "DGX": 0.0, @@ -68943,12 +68943,12 @@ "DHR": 2523.1474333380625, "DIS": -4.356261800419292, "DLR": 3.262904117631281e-14, - "DLTR": 927.1551820891365, + "DLTR": 928.4177164990593, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, "DPZ": 1470.8749470907605, - "DRI": 2.4401133157167076, + "DRI": 2.4322213794433916, "DTE": 0.0, "DUK": 1.225167704974316, "DVA": 3443.9078755875207, @@ -68965,7 +68965,7 @@ "ELV": -2.2003054486174595e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 2831.9001665947385, + "ENPH": 2783.223377873065, "EOG": 0.0, "EPAM": 5790.212121294643, "EQIX": 819.874580636364, @@ -68979,49 +68979,49 @@ "EVRG": 0.0, "EW": 0.0, "EXC": 0.0, - "EXPD": -1.1136073119393555, + "EXPD": -1.1013356857997831, "EXPE": 4588.7068914123265, "EXR": 5.864550514566182e-14, "F": 0.0, "FANG": 14622.266021019726, - "FAST": 3261.392333477113, + "FAST": 3260.920865211911, "FCX": 0.0, "FDS": 3498.6628381191927, "FDX": 8415.703687529502, "FE": 0.0, "FFIV": 3795.0174614648363, "FI": 2.515242377238034e-13, - "FICO": 1546.7694024543518, + "FICO": 1548.7905328580305, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.474964992115565e-14, - "FTNT": 6044.076810744773, + "FSLR": -7.455251001935929e-14, + "FTNT": 6080.253056246801, "FTV": 0.0, "GD": 3.8577401834041643e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1770.8838586672482, + "GEHC": 1770.6694201450946, "GEN": 0.0, - "GEV": 28867.73084555161, + "GEV": 28466.481634562904, "GILD": 8782.741247974065, "GIS": 7459.612081539526, "GL": 0.3010799433269158, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 24047.683958919897, - "GOOGL": 1800.498290680487, + "GOOG": 24048.985441261906, + "GOOGL": 1801.4829290752225, "GPC": 0.0, "GPN": -1.0638138274744404e-13, "GRMN": 2266.814684671344, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.1227064750117322, + "HAS": 1.1201762395970745, "HBAN": 0.0, "HCA": 5854.05642200134, "HD": 9007.127582465211, @@ -69038,16 +69038,16 @@ "HST": 0.0, "HSY": 10566.936919827645, "HUBB": 1.3616808751673028e-13, - "HUM": 1146.8763327197332, + "HUM": 1134.3813020883701, "HWM": 2130.467137652029, "IBM": 0.0, "ICE": 735.2863687796486, - "IDXX": -10.357690509640882, + "IDXX": -10.322233345452506, "IEX": 0.0, "IFF": 0.0, - "INCY": 3977.62936823159, - "INTC": 249.52946585860735, - "INTU": 1307.436804878148, + "INCY": 4002.6615049346274, + "INTC": 249.35670126650305, + "INTU": 1313.5183814947068, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, @@ -69074,7 +69074,7 @@ "KIM": 0.0, "KKR": 0.0, "KLAC": -19.92072470757002, - "KMB": 5143.633922738214, + "KMB": 5153.382094744682, "KMI": 0.0, "KMX": 84.1938739864825, "KO": 195.34368132449194, @@ -69091,8 +69091,8 @@ "LMT": 8021.028142892619, "LNT": 0.0, "LOW": -2.822862308425721e-13, - "LRCX": 961.8997725049495, - "LULU": 1755.2652683513588, + "LRCX": 962.4758946928473, + "LULU": 1750.6765962971203, "LUV": 28.331066145658987, "LVS": 1883.2421194969945, "LW": 28.102759141880263, @@ -69100,7 +69100,7 @@ "LYV": 2898.767881023431, "MA": 30807.335870430117, "MAA": 0.0, - "MAR": -6.305152039673191e-13, + "MAR": -6.259181334431946e-13, "MAS": 0.0, "MCD": 10989.396022276607, "MCHP": 2454.081495409808, @@ -69109,7 +69109,7 @@ "MDLZ": 0.0, "MDT": 1.283183282439254, "MET": -0.036436200247693215, - "META": 21048.680319818843, + "META": 21079.916004702423, "MGM": 4382.638748437074, "MHK": 0.0, "MKC": 0.0, @@ -69122,18 +69122,18 @@ "MOH": 1804.8807385862776, "MOS": 0.0, "MPC": 15206.735866603738, - "MPWR": -9.98160155814488e-13, + "MPWR": -9.666268142833366e-13, "MRK": 5694.848500894762, "MRNA": 7705.10290017321, "MRO": 0.0, "MS": 6294.3146127425125, "MSCI": 6051.728903979713, - "MSFT": 37107.253976384265, + "MSFT": 37120.673718773636, "MSI": 0.0, "MTB": -6.089772676485228, "MTCH": 0.0, "MTD": 0.0, - "MU": 3440.741237097992, + "MU": 3442.4263687532957, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -69142,18 +69142,18 @@ "NFLX": 16233.751255564037, "NI": 0.0, "NKE": -3.0040358588593364e-14, - "NOC": -3.904857267284229e-13, + "NOC": -3.900819135511537e-13, "NOW": 5017.278023359506, "NRG": 0.0, "NSC": -2.8107468597664228e-14, - "NTAP": 6089.3510238308545, + "NTAP": 5995.412460952975, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 130706.87725049687, + "NVDA": 130717.65150492218, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 8844.869792166965, + "NXPI": 8819.145720867606, "O": 0.0, "ODFL": 4638.289551184813, "OKE": 0.0, @@ -69163,28 +69163,28 @@ "ORLY": -0.7424607032327915, "OTIS": 1682.1419459729757, "OXY": 0.0, - "PANW": 4698.290737751356, - "PARA": 2200.0999187979974, + "PANW": 4708.300400905635, + "PARA": 2201.0310023160796, "PAYC": 0.0, "PAYX": 497.6739309932609, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11641.958804437647, + "PEP": 11639.854738805434, "PFE": 0.0, - "PFG": 175.78190348855222, + "PFG": 175.9438808462439, "PG": 1.0665570497259607, "PGR": 7986.286632053336, "PH": 0.0, "PHM": -11.892048998186782, - "PKG": -4.986378809572552e-13, + "PKG": -4.987945311622457e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, "PNR": 0.0, "PNW": 0.0, - "PODD": -64.03668721368112, - "POOL": 1314.806685178805, + "PODD": -63.62492917070249, + "POOL": 1298.6497278905824, "PPG": -0.42449727813041493, "PPL": 0.0, "PRU": 1158.5103975990526, @@ -69204,7 +69204,7 @@ "RMD": -26.087807255743964, "ROK": 1.2839222861405948, "ROL": 0.0, - "ROP": 5618.296511156505, + "ROP": 5647.7217599337055, "ROST": 1188.3574517485997, "RSG": 0.0, "RTX": 0.0, @@ -69245,17 +69245,17 @@ "TGT": 0.0, "TJX": 458.3639429253632, "TMO": 0.0, - "TMUS": 8707.621812625914, + "TMUS": 8707.384658505747, "TPR": 2840.441875105428, - "TRGP": 409.85112753320055, + "TRGP": 410.3983030050076, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, "TSCO": -2.961402812166068e-12, - "TSLA": 106932.88019051067, + "TSLA": 106875.7865524884, "TSN": 4970.57937031964, "TT": 0.0, - "TTWO": 758.9450354079237, + "TTWO": 758.9943272724927, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, @@ -69269,7 +69269,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -341.4729627924464, + "USDOLLAR": -341.47292016135975, "V": 2131.339842067881, "VICI": 0.0, "VLO": 0.0, @@ -69286,7 +69286,7 @@ "WAT": -2.1642319180823373e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -3.0411336596367056, + "WDC": -3.0539985954434368, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -69305,5 +69305,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-18 13:30:00+00:00": { + "A": 0.0, + "AAL": 641.8376869771486, + "AAPL": 49193.52520401528, + "ABBV": 4753.867220746656, + "ABNB": 0.0, + "ABT": 3297.7627935149226, + "ACGL": 0.0, + "ACN": 2.6034056696022314e-13, + "ADBE": 11668.429615604435, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.978685099559165, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3508.735555745292, + "AIG": 0.0, + "AIZ": 1.4675172947562152, + "AJG": 0.0, + "AKAM": 194.39948282709693, + "ALB": 0.0, + "ALGN": 1228.359782340577, + "ALL": 6.794664997548218e-14, + "ALLE": 0.0, + "AMAT": 2145.6002525566014, + "AMCR": 0.0, + "AMD": 26870.0820421064, + "AME": 0.0, + "AMGN": 6212.268917852553, + "AMP": 9.26549853555158, + "AMT": 634.097776443848, + "AMZN": 37177.5739905369, + "ANET": 3618.9400210397603, + "ANSS": 635.6979392147559, + "AON": 17.20309819134045, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 25.75903738114508, + "APTV": 2.5130133418363032e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19786.892359038535, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4960.653616684544, + "AXP": 0.0, + "AZO": 1.7555836924004627e-12, + "BA": -1.1001860195442316e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 528.8502510564036, + "BDX": 0.0, + "BEN": 190.73346378483035, + "BF-B": 0.0, + "BG": 1579.4468443630496, + "BIIB": 2460.561849012264, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3756.3460694366513, + "BKR": 0.0, + "BLDR": 361.51269190710127, + "BLK": 9.556759592163726e-13, + "BMY": 85.4994704240052, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.30869608292906225, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1299.2151349637086, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 19960.00232803772, + "CAT": 0.0, + "CB": 300.5243556216896, + "CBOE": 0.0, + "CBRE": 4694.293711693928, + "CCI": 304.863209534078, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 410.3720462140096, + "CE": -2.7987892016213834e-14, + "CEG": 34450.44234934683, + "CF": 9810.661820085148, + "CFG": 0.0, + "CHD": 2517.5533161544204, + "CHRW": 0.0, + "CHTR": 7530.652579548512, + "CI": 3.9810537263436873e-13, + "CINF": 0.015715046706585575, + "CL": 9.745673901025045, + "CLX": 15.390841210908965, + "CMCSA": 6449.993097812511, + "CME": 4665.204888952585, + "CMG": 5461.480939864401, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 876.2411689633799, + "CNP": 0.0, + "COF": 9442.181316716398, + "COO": 0.0, + "COP": 0.0, + "COR": 3390.840153109777, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 732.5107753805441, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7594.909720989448, + "CRWD": 3868.353691221107, + "CSCO": 7078.758068576688, + "CSGP": -7.667628467362684e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11643.295195702167, + "CTVA": 110.8008891335489, + "CVS": 0.0, + "CVX": -5.809761843765284e-13, + "CZR": 9226.656679296773, + "D": 0.0, + "DAL": 666.2812200827107, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0818429886150099e-13, + "DECK": 866.5825915912907, + "DFS": 3831.445049256207, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.539359237874279, + "DHR": 2494.766058211729, + "DIS": -4.314604663077773, + "DLR": 3.1643530362164716e-14, + "DLTR": 970.983358899235, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1431.2875051736467, + "DRI": 2.444982682929046, + "DTE": 0.0, + "DUK": 1.2244811721324758, + "DVA": 3498.5092860954924, + "DVN": 0.0, + "DXCM": 5005.645267022694, + "EA": 3995.990504241868, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.907550758931044e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.122416329397729e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2808.426678228412, + "EOG": 0.0, + "EPAM": 5870.743839701933, + "EQIX": 811.6151305624427, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1150726182740427, + "EXPE": 4482.223449665949, + "EXR": 5.963341300436708e-14, + "F": 0.0, + "FANG": 14656.291050037224, + "FAST": 3289.2028475005172, + "FCX": 0.0, + "FDS": 3062.6794824259714, + "FDX": 8067.414922432137, + "FE": 0.0, + "FFIV": 3759.5929156928887, + "FI": 2.526132386154857e-13, + "FICO": 1540.2940678003195, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.332818552538099e-14, + "FTNT": 6223.5522447746725, + "FTV": 0.0, + "GD": 3.8466517364602863e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1758.0203280053336, + "GEN": 0.0, + "GEV": 28723.228610421003, + "GILD": 8842.747915865306, + "GIS": 7595.818243963086, + "GL": 0.3021672414797052, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23914.859241185037, + "GOOGL": 1791.2432306149867, + "GPC": 0.0, + "GPN": -1.0713003612703562e-13, + "GRMN": 2250.636127217068, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0927049841995449, + "HBAN": 0.0, + "HCA": 5624.623775719774, + "HD": 8347.41445870835, + "HES": 0.0, + "HIG": 5847.83021313171, + "HII": 0.7357047059982255, + "HLT": -1.3704674727164969e-13, + "HOLX": 2887.6293086558667, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10774.613475693892, + "HUBB": 1.2920073486980642e-13, + "HUM": 1155.4575867452797, + "HWM": 2071.2505270323804, + "IBM": 0.0, + "ICE": 737.7108851011355, + "IDXX": -10.140177547824571, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4092.7778654995545, + "INTC": 241.5470193243499, + "INTU": 1310.7251533391627, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04516767001366979, + "IRM": 0.0, + "ISRG": 6287.893630442312, + "IT": 7.582335869093442e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2595.971757707886, + "JCI": 0.0, + "JKHY": 842.9149410657982, + "JNJ": 13356.720405307198, + "JNPR": 0.0, + "JPM": 2611.320917199906, + "K": 481.0124365885504, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -19.348392829861737, + "KMB": 4724.861231318572, + "KMI": 0.0, + "KMX": 1.16765595143915, + "KO": 196.34358471058576, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21765650780984863, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6624360798607127, + "LKQ": 5111.590097818661, + "LLY": 1.5645787986973003, + "LMT": 8097.825220856485, + "LNT": 0.0, + "LOW": -2.8523346653311574e-13, + "LRCX": 929.4505188615601, + "LULU": 1773.1970926763854, + "LUV": 28.13997925593524, + "LVS": 1857.6617012742486, + "LW": 28.33821719669454, + "LYB": 3625.143093637679, + "LYV": 2901.4606316806144, + "MA": 31249.530204763803, + "MAA": 0.0, + "MAR": -6.049594637595326e-13, + "MAS": 0.0, + "MCD": 10691.477005302822, + "MCHP": 2415.993297810751, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3243373341607465, + "MET": -0.0365853699906822, + "META": 20894.223039904577, + "MGM": 4338.293311885225, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 7131.677763935272, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5180.657704344045, + "MO": -21.911769112041195, + "MOH": 1793.6303446920706, + "MOS": 0.0, + "MPC": 15116.219581683485, + "MPWR": -9.416806870453213e-13, + "MRK": 5687.13260220859, + "MRNA": 7769.562341405272, + "MRO": 0.0, + "MS": 6380.56286400504, + "MSCI": 6019.0066432196745, + "MSFT": 37267.44879174267, + "MSI": 0.0, + "MTB": -6.563785876187111, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3385.923143738411, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16398.585658571592, + "NI": 0.0, + "NKE": -3.0222598094207046e-14, + "NOC": -3.9253165689843225e-13, + "NOW": 5006.023230417045, + "NRG": 0.0, + "NSC": -2.8031779716257625e-14, + "NTAP": 6066.351694560602, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 136955.09249899493, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8675.651596253536, + "O": 0.0, + "ODFL": 4359.38701366138, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.808218120081744, + "ORCL": 7255.373938082322, + "ORLY": -0.739670160056624, + "OTIS": 1674.8621397564493, + "OXY": 0.0, + "PANW": 4629.010791936106, + "PARA": 2197.306845829773, + "PAYC": 0.0, + "PAYX": 501.54890541516085, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11827.029935783023, + "PFE": 0.0, + "PFG": 175.80215452001633, + "PG": 1.07323298508862, + "PGR": 8302.689119963987, + "PH": 0.0, + "PHM": -11.92290308357984, + "PKG": -5.001522326718766e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -63.088680814402075, + "POOL": 1301.1864341414162, + "PPG": -0.4268908799028101, + "PPL": 0.0, + "PRU": 901.1279916907957, + "PSA": 0.0, + "PSX": 2987.1452821295875, + "PTC": 2.6816429211680252e-14, + "PWR": -5.117951142663815, + "PYPL": 0.0, + "QCOM": 4600.805198913679, + "QRVO": 0.0, + "RCL": 2788.85416071313, + "REG": 0.0, + "REGN": 1110.4406891897008, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -26.28887449102336, + "ROK": 1.2326411315441446, + "ROL": 0.0, + "ROP": 5659.908505486661, + "ROST": 1181.5617635671392, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6117.9623123196925, + "SBUX": 8429.766251975176, + "SCHW": 127.44972692287567, + "SHW": 1.3945659509011359, + "SJM": 1.024368198226089, + "SLB": 0.0, + "SMCI": 7985.588682489684, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.450543168783422, + "SOLV": -1.4671780746363682e-12, + "SPG": 0.0, + "SPGI": -5.7876626402525115, + "SRE": 0.0, + "STE": 0.5041812913462174, + "STLD": -2.73683570878838e-14, + "STT": 341.43618202083627, + "STX": -13.67738396100532, + "STZ": -2.0766606776610748, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.797458420113764, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4732.8802879669665, + "TDY": -15.497467537958078, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 454.25323932972304, + "TMO": 0.0, + "TMUS": 8701.225158659088, + "TPR": 2833.783650671388, + "TRGP": 407.3583155753407, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.9394494356632572e-12, + "TSLA": 105482.7328403284, + "TSN": 5036.842656929062, + "TT": 0.0, + "TTWO": 738.6566241753851, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4145.67163719722, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3981.783742079518, + "UNH": 20752.716532327355, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -1726.7868365314641, + "V": 1889.6178238597145, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8664.95300240077, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3240.6662889332592, + "VRTX": 2908.5131080601063, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.1720390773320467e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.9330362224836457, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5886201686777868, + "WMB": 0.0, + "WMT": 12116.345525078337, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3208.4824060135793, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 45e06a73a..f79099a79 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -66279,5 +66279,510 @@ "ZBH": 2.9164441090313295e-09, "ZBRA": 1.950902753346718e-09, "ZTS": 9.077977449763328e-09 + }, + "2024-07-18 13:30:00+00:00": { + "A": 3.6670992568858092e-09, + "AAL": 0.000535591494843664, + "AAPL": 0.04066035875984939, + "ABBV": 0.004010101599070499, + "ABNB": 4.182858332073143e-09, + "ABT": 0.0027518626852557795, + "ACGL": 1.025378979485446e-08, + "ACN": 1.3490361970172598e-08, + "ADBE": 0.00973667630160968, + "ADI": 1.7162737995035433e-08, + "ADM": 1.0402589973713542e-08, + "ADP": 2.0916055858538342e-08, + "ADSK": 1.415257308875425e-08, + "AEE": 3.986379565371687e-09, + "AEP": 4.041800057371173e-09, + "AES": 1.7397882816047404e-09, + "AFL": 0.002927876044792152, + "AIG": 3.5816471032133335e-09, + "AIZ": 1.215553248163195e-08, + "AJG": 8.153923674270284e-09, + "AKAM": 0.00014189477778345485, + "ALB": 1.4722995212069224e-09, + "ALGN": 0.0010250237539983274, + "ALL": 9.931151007958925e-09, + "ALLE": 3.6442230578174596e-09, + "AMAT": 0.001790412972491963, + "AMCR": 1.0953403603752153e-09, + "AMD": 0.023356697124440128, + "AME": 3.902897729443674e-09, + "AMGN": 0.005183821958547994, + "AMP": 2.90367141442091e-08, + "AMT": 0.0005291863842553383, + "AMZN": 0.03102343026566926, + "ANET": 0.003045689913595424, + "ANSS": 0.0003541537314828111, + "AON": 2.590204107074687e-08, + "AOS": 3.278654843312853e-09, + "APA": 2.4804592484822366e-09, + "APD": 9.560084103872055e-09, + "APH": 1.8736131347608996e-08, + "APTV": 8.97365436541367e-09, + "ARE": 3.2319184222140653e-09, + "ATO": 4.954992310108042e-09, + "AVB": 4.294570931822377e-09, + "AVGO": 0.01777110412125021, + "AVY": 4.821190472804852e-09, + "AWK": 8.980794999506344e-09, + "AXON": 0.00414721918818779, + "AXP": 9.272657555322724e-09, + "AZO": 7.46510863915235e-08, + "BA": 3.7442588922962014e-08, + "BAC": 5.361074687816674e-09, + "BALL": 1.14944335742528e-08, + "BAX": 7.598484250232669e-09, + "BBWI": 5.638595321593828e-09, + "BBY": 0.0004657575695457035, + "BDX": 1.317669593491596e-08, + "BEN": 0.00015916111694669384, + "BF-B": 9.23190909116071e-09, + "BG": 0.001265802081386101, + "BIIB": 0.002053212968390123, + "BIO": 5.018348818972126e-09, + "BK": 4.7527711997213215e-09, + "BKNG": 0.0018729860637806876, + "BKR": 2.4797614879810212e-09, + "BLDR": 0.0003016956546219872, + "BLK": 8.128235358613287e-08, + "BMY": 7.134663257265077e-05, + "BR": 7.242103273996143e-09, + "BRK-B": 1.1071326828560079e-08, + "BRO": 5.2455462229153975e-08, + "BSX": 6.7399063575048825e-09, + "BWA": 5.7659558123864805e-09, + "BX": 0.0010318458280148427, + "BXP": 3.3189773928262518e-09, + "C": 6.783970513453665e-09, + "CAG": 1.0823795446224357e-08, + "CAH": 8.712478004945321e-09, + "CARR": 0.01667097160293682, + "CAT": 2.83261081218174e-09, + "CB": 0.0002507489846829197, + "CBOE": 2.8477963613319712e-08, + "CBRE": 0.00391716891716505, + "CCI": 0.00025440623529425076, + "CCL": 3.439665589901532e-09, + "CDNS": 1.4011671788618042e-08, + "CDW": 0.00034491205686915506, + "CE": 7.438078501240244e-09, + "CEG": 0.029280422073959252, + "CF": 0.008186636251116992, + "CFG": 5.700111526408451e-09, + "CHD": 0.002100800591949866, + "CHRW": 1.1519470279384172e-08, + "CHTR": 0.006226063715433735, + "CI": 2.5609266733669628e-08, + "CINF": 1.8697246812287693e-08, + "CL": 8.1006520695089e-06, + "CLX": 8.112991821116254e-07, + "CMCSA": 0.005382283670514794, + "CME": 0.0038930090509940772, + "CMG": 0.004557390659476805, + "CMI": 3.607625073040419e-09, + "CMS": 3.509346710961504e-09, + "CNC": 0.0007311974591947197, + "CNP": 3.337985420904378e-09, + "COF": 0.00787913378461742, + "COO": 8.369467719563439e-09, + "COP": 6.321983915076495e-09, + "COR": 0.0028294859941689478, + "COST": 8.431125618388404e-09, + "CPAY": 2.864915152257607e-08, + "CPB": 1.4781532205076774e-08, + "CPRT": 0.0006112482569627692, + "CPT": 3.555062982511177e-09, + "CRL": 2.3350776788776236e-09, + "CRM": 0.006337649282315186, + "CRWD": 0.003262608994962587, + "CSCO": 0.005906984602717019, + "CSGP": 7.876119189755661e-09, + "CSX": 9.506523757837068e-09, + "CTAS": 1.0256831964509018e-08, + "CTLT": 4.828727973640898e-09, + "CTRA": 2.5218496563363712e-09, + "CTSH": 0.009540001905304966, + "CTVA": 9.246276431842994e-05, + "CVS": 8.252247042304317e-09, + "CVX": 9.184004779670792e-09, + "CZR": 0.007699300465539446, + "D": 6.119243385108276e-09, + "DAL": 0.0005559915858120798, + "DAY": 4.015727167829044e-09, + "DD": 5.479134801486375e-09, + "DE": 8.894036999342594e-09, + "DECK": 0.0007992920061175748, + "DFS": 0.003197233205184528, + "DG": 5.018672104207006e-09, + "DGX": 1.115028909183956e-08, + "DHI": 2.1301693552048865e-08, + "DHR": 0.0019565892509366017, + "DIS": 9.034701915249833e-09, + "DLR": 6.733750309123843e-09, + "DLTR": 0.0008841096883824237, + "DOC": 1.9267084551338222e-09, + "DOV": 4.057036088429947e-09, + "DOW": 6.063420247487285e-09, + "DPZ": 0.0011030443558775426, + "DRI": 2.004532633484593e-06, + "DTE": 4.633323919387774e-09, + "DUK": 2.8465499724945345e-08, + "DVA": 0.0029193425420731417, + "DVN": 2.5998504259637014e-09, + "DXCM": 0.004177035013593112, + "EA": 0.0033179818142435964, + "EBAY": 4.769579244788325e-09, + "ECL": 5.366631785121021e-09, + "ED": 6.840191115205234e-09, + "EFX": 4.656267539350023e-09, + "EG": 2.250429702691231e-08, + "EIX": 6.751246653519565e-09, + "EL": 5.727007461667448e-09, + "ELV": 1.8284752450532197e-08, + "EMN": 3.860488473773551e-09, + "EMR": 2.5835200693688313e-09, + "ENPH": 0.00251233660347626, + "EOG": 6.152989855325582e-09, + "EPAM": 0.004898974673452533, + "EQIX": 0.0005575621715231253, + "EQR": 4.2303813038361705e-09, + "EQT": 1.6866213996210776e-09, + "ES": 3.3781315080481417e-09, + "ESS": 5.90957813487232e-09, + "ETN": 2.084991909903997e-09, + "ETR": 6.343701767889081e-09, + "ETSY": 1.3242993827466155e-08, + "EVRG": 2.3354223043330695e-09, + "EW": 1.1411272276693167e-08, + "EXC": 5.0202831433667135e-09, + "EXPD": 1.6712615093253145e-08, + "EXPE": 0.0037402254505918796, + "EXR": 1.220556302228928e-08, + "F": 3.3244722553661643e-09, + "FANG": 0.012230122922419602, + "FAST": 0.002744716987644365, + "FCX": 2.5080048718406233e-09, + "FDS": 0.0023054300599186306, + "FDX": 0.006423519663802046, + "FE": 3.957011387038352e-09, + "FFIV": 0.00303227099757301, + "FI": 1.5551052887201054e-08, + "FICO": 0.0012896768566927558, + "FIS": 5.657809479447266e-09, + "FITB": 7.451710097041355e-09, + "FMC": 5.827258852363269e-09, + "FOX": 2.9457742141778992e-09, + "FOXA": 4.233725035226165e-09, + "FRT": 3.795940314471168e-09, + "FSLR": 1.6881898348913553e-09, + "FTNT": 0.005193328210374137, + "FTV": 2.8134941802852495e-09, + "GD": 1.562069115006864e-08, + "GDDY": 1.9585796653305172e-08, + "GE": 4.21691399839737e-09, + "GEHC": 0.0014670055369876164, + "GEN": 3.1927482714331397e-09, + "GEV": 0.02027955914475498, + "GILD": 0.007369860037283601, + "GIS": 0.0063384372390797505, + "GL": 1.0105211998766639e-08, + "GLW": 4.164459380407144e-09, + "GM": 4.118801104165043e-09, + "GNRC": 3.7123493179918195e-09, + "GOOG": 0.020011284275973793, + "GOOGL": 0.0014950271944917369, + "GPC": 9.52321784198349e-09, + "GPN": 1.7121433759556897e-08, + "GRMN": 0.0018780728199518284, + "GS": 7.714338689020502e-09, + "GWW": 3.2688598516412386e-09, + "HAL": 2.8306620594072017e-09, + "HAS": 8.538491126701194e-07, + "HBAN": 2.2954312197695614e-09, + "HCA": 0.004686422741390917, + "HD": 0.006965976844831079, + "HES": 6.189601101092009e-09, + "HIG": 0.004879712378449235, + "HII": 3.6011587306348685e-08, + "HLT": 1.1062131442885785e-08, + "HOLX": 0.002409615431305244, + "HON": 6.781559403295573e-09, + "HPE": 2.644392229154204e-09, + "HPQ": 3.203580928720248e-09, + "HRL": 9.034184515291364e-09, + "HSIC": 1.02436163409254e-08, + "HST": 3.4369376612693693e-09, + "HSY": 0.008991001104412075, + "HUBB": 1.3150663289978732e-09, + "HUM": 0.0009640782253763734, + "HWM": 0.001728394272833206, + "IBM": 4.054225617326356e-09, + "ICE": 0.0006155766183596836, + "IDXX": 1.2414567949673951e-08, + "IEX": 4.402264807511266e-09, + "IFF": 4.560430257635376e-09, + "INCY": 0.0034152680815235756, + "INTC": 0.00020156248581020857, + "INTU": 0.0012162660487257955, + "INVH": 2.9529056306753872e-09, + "IP": 4.049488450678881e-09, + "IPG": 7.363568886357579e-09, + "IQV": 4.393425111519343e-09, + "IR": 1.9764677003833163e-08, + "IRM": 6.985959111433682e-09, + "ISRG": 0.0052251628264877795, + "IT": 1.5538246843396733e-08, + "ITW": 6.041142435400382e-09, + "IVZ": 3.2130262831642214e-09, + "J": 6.755457143141756e-09, + "JBHT": 8.08106149490504e-09, + "JBL": 0.0021662762737696666, + "JCI": 2.6837009795713244e-09, + "JKHY": 0.0007035210289002077, + "JNJ": 0.011145682054949401, + "JNPR": 4.404402879473208e-09, + "JPM": 0.0021790246444638828, + "K": 0.00040138860184453707, + "KDP": 2.8998989845427083e-09, + "KEY": 2.1670167389256584e-09, + "KEYS": 6.121683722674002e-09, + "KHC": 1.803297094801166e-09, + "KIM": 2.8597053211114736e-09, + "KKR": 1.0277206011564176e-08, + "KLAC": 3.6455737415690945e-05, + "KMB": 0.003942672582095973, + "KMI": 1.2953220330614372e-09, + "KMX": 5.454044518279843e-08, + "KO": 0.00016383565540113924, + "KR": 1.7686854195858626e-08, + "KVUE": -5.347546642724246e-10, + "L": 7.731759469979518e-09, + "LDOS": 2.723135764358166e-08, + "LEN": 1.6359729248020083e-08, + "LH": 3.6314239784959873e-09, + "LHX": 7.18977946612742e-09, + "LIN": 3.6583728413337306e-08, + "LKQ": 0.004265422967066116, + "LLY": 2.620217932427833e-08, + "LMT": 0.006757269262118502, + "LNT": 3.1909860130114703e-09, + "LOW": 1.3770801932112514e-08, + "LRCX": 0.000692821611707251, + "LULU": 0.0014860254831649746, + "LUV": 2.348597774071333e-05, + "LVS": 0.0015501436030425637, + "LW": 2.3555372402649e-05, + "LYB": 0.0030250220609509657, + "LYV": 0.0024211679433661154, + "MA": 0.025966126855767057, + "MAA": 4.384051840758147e-09, + "MAR": 1.1958327181372728e-08, + "MAS": 4.988296154720124e-09, + "MCD": 0.008915388475807091, + "MCHP": 0.0020163931921137685, + "MCK": 3.507761116963156e-08, + "MCO": 4.7048444269511506e-09, + "MDLZ": 5.7328688924371625e-09, + "MDT": 1.0941175548215025e-06, + "MET": 6.709501904630296e-09, + "META": 0.01790634749761767, + "MGM": 0.003619998445627007, + "MHK": 5.208043821338786e-09, + "MKC": 6.957777252230062e-09, + "MKTX": 0.0058212403734302625, + "MLM": 3.6349121418060325e-09, + "MMC": 4.903661279402004e-09, + "MMM": 5.3437685189526984e-09, + "MNST": 0.004323076531371218, + "MO": 5.7187760547963956e-09, + "MOH": 0.0014966714345318291, + "MOS": 2.1583748086317134e-09, + "MPC": 0.01261388710858909, + "MPWR": 3.218417679743523e-08, + "MRK": 0.004745690085233151, + "MRNA": 0.006483436184909484, + "MRO": 1.3421017614489772e-09, + "MS": 0.005324332290893175, + "MSCI": 0.004619572669189959, + "MSFT": 0.031789603337064695, + "MSI": 9.561266396740006e-09, + "MTB": 3.090180031825035e-08, + "MTCH": 2.5772099143748253e-08, + "MTD": 8.795847817008767e-09, + "MU": 0.0028675004276145066, + "NCLH": 4.498384172887619e-09, + "NDAQ": 6.760403958636169e-09, + "NDSN": 3.934160217932803e-09, + "NEE": 2.7993758642868677e-09, + "NEM": 2.557023409972082e-09, + "NFLX": 0.01393873318522625, + "NI": 2.730440880476002e-09, + "NKE": 2.3782812612015333e-08, + "NOC": 3.527214988155834e-08, + "NOW": 0.0041777670398270095, + "NRG": 1.2092183251562964e-09, + "NSC": 1.2292446298371101e-08, + "NTAP": 0.005059415171179211, + "NTRS": 4.236171375203586e-09, + "NUE": 9.53028945455351e-09, + "NVDA": 0.11486529129851167, + "NVR": 0.001052256156932906, + "NWS": 1.864282117064711e-09, + "NWSA": 1.8712356833128216e-09, + "NXPI": 0.007234374855528496, + "O": 8.659830748859625e-09, + "ODFL": 0.0032965856159403355, + "OKE": 4.714163335220675e-09, + "OMC": 5.4052476576478975e-09, + "ON": 1.138827372085313e-08, + "ORCL": 0.006054336133291053, + "ORLY": 2.9014422127635444e-08, + "OTIS": 0.001397617494699008, + "OXY": 3.366053475565935e-09, + "PANW": 0.0038797789926552874, + "PARA": 0.0018335707264787733, + "PAYC": 3.723962500362571e-08, + "PAYX": 0.0004184637518378149, + "PCAR": 9.218565038263221e-09, + "PCG": 2.473803451376296e-09, + "PEG": 5.106735656852542e-09, + "PEP": 0.009869176089607029, + "PFE": 6.782746541916024e-09, + "PFG": 0.00014649819483015272, + "PG": 1.7472745556042046e-08, + "PGR": 0.006928376927068543, + "PH": 3.186600216949912e-09, + "PHM": 1.218587781679639e-08, + "PKG": 1.4176730999289502e-08, + "PLD": 5.443483919367826e-09, + "PM": 9.98767523818942e-09, + "PNC": 1.0800248599260615e-08, + "PNR": 2.3697315403437296e-09, + "PNW": 3.765727606487871e-09, + "PODD": 1.888558461865693e-08, + "POOL": 0.00108510613700705, + "PPG": 1.0674976960810463e-08, + "PPL": 3.978716047248843e-09, + "PRU": 0.0006468697371898789, + "PSA": 4.777839485190783e-09, + "PSX": 0.002485398286481393, + "PTC": 9.239947755141562e-09, + "PWR": 8.629018430345495e-09, + "PYPL": 2.6078126770170215e-09, + "QCOM": 0.0038392940449176174, + "QRVO": 1.7899928373960457e-09, + "RCL": 0.0020631093247980075, + "REG": 4.58529148336299e-09, + "REGN": 0.0009492570409305376, + "RF": 3.6017909923172525e-09, + "RJF": 8.140844010880108e-09, + "RL": 4.85239802766613e-09, + "RMD": 1.101762585088096e-07, + "ROK": 7.407718766434975e-09, + "ROL": 3.6794318427507535e-09, + "ROP": 0.004674874506061534, + "ROST": 0.0009859704939493045, + "RSG": 8.766896188566433e-09, + "RTX": 1.1258448454003808e-08, + "RVTY": 3.1801695452342304e-09, + "SBAC": 0.0051052060148080326, + "SBUX": 0.007034328595643409, + "SCHW": 0.00010269833784733028, + "SHW": 7.890990264633646e-08, + "SJM": 1.0874494712705992e-07, + "SLB": 2.741204893244148e-09, + "SMCI": 0.007836122801818283, + "SNA": 4.5098963222568656e-09, + "SNPS": 3.5717200019827264e-09, + "SO": 4.276757304336302e-06, + "SOLV": -1.5262661550671748e-09, + "SPG": 4.947615333049861e-09, + "SPGI": 8.568609210871565e-09, + "SRE": 5.978430984872855e-09, + "STE": 4.264289214669226e-07, + "STLD": 1.2876598338929682e-08, + "STT": 0.00028491213600880525, + "STX": 1.0475951282271878e-08, + "STZ": 4.737663218401632e-08, + "SWK": 3.9087211972903615e-09, + "SWKS": 2.5611310338540525e-09, + "SYF": 8.808154611362498e-09, + "SYK": 2.5680680092931195e-08, + "SYY": 1.0016936818327134e-08, + "T": 5.937561079802163e-09, + "TAP": 5.310939178959465e-09, + "TDG": 0.003964802807532967, + "TDY": 1.6762161071563964e-08, + "TECH": 1.1563281231112496e-08, + "TEL": 6.517657382479058e-09, + "TER": 3.819409704530843e-09, + "TFC": 3.9783984497348975e-09, + "TFX": 1.029582632226306e-08, + "TGT": 1.0762251286020487e-08, + "TJX": 0.00037905283632216143, + "TMO": 1.1504329564275471e-08, + "TMUS": 0.007260765802120536, + "TPR": 0.0023646912912207545, + "TRGP": 0.0003398846067271988, + "TRMB": 8.942257978271202e-09, + "TROW": 7.527725308487227e-09, + "TRV": 8.659967349727538e-09, + "TSCO": 1.4593776329336273e-08, + "TSLA": 0.0880542488738843, + "TSN": 0.004203049734870714, + "TT": 2.974082084789089e-09, + "TTWO": 0.0006163921858804135, + "TXN": 7.09373705108372e-09, + "TXT": 3.184827968956691e-09, + "TYL": 3.8205403391532665e-08, + "UAL": 0.003459468941070946, + "UBER": 5.972670049376431e-09, + "UDR": 2.742115150501738e-09, + "UHS": 7.0431731907174135e-09, + "ULTA": 0.003149482817453938, + "UNH": 0.016770008611881833, + "UNP": 1.1493866892865601e-08, + "UPS": 3.4264946822934877e-09, + "URI": 6.5128307830879755e-09, + "USB": 4.176186510361507e-09, + "USDOLLAR": 3.631756515074143e-07, + "V": 0.0015767244878763713, + "VICI": 3.6673858839108036e-09, + "VLO": 2.3012878543457765e-08, + "VLTO": 0.007230583760202024, + "VMC": 2.1695218564166157e-09, + "VRSK": 1.058739595443735e-08, + "VRSN": 0.0027036786466137592, + "VRTX": 0.002280118582623024, + "VST": 1.4963493753935846e-09, + "VTR": 6.1949921304073274e-09, + "VTRS": 2.8652362168554564e-09, + "VZ": 8.064475929387788e-09, + "WAB": 2.929370315012712e-09, + "WAT": 1.1647939917291728e-08, + "WBA": 1.698596185139867e-09, + "WBD": 1.0979491329973644e-09, + "WDC": 4.136595466594841e-09, + "WEC": 8.343687208726452e-09, + "WELL": 5.2390787849549504e-09, + "WFC": 1.1566673484679982e-08, + "WM": 4.795240185641514e-08, + "WMB": 1.2986559532740996e-08, + "WMT": 0.0101106412968453, + "WRB": 8.964110651897468e-09, + "WST": 5.658166198730977e-09, + "WTW": 6.677003047753491e-09, + "WY": 2.4306078629108355e-09, + "WYNN": 0.0026318106133714158, + "XEL": 4.289574424986637e-09, + "XOM": 8.446788386653295e-09, + "XYL": 5.977722638676162e-09, + "YUM": 1.3140199661746334e-08, + "ZBH": 4.345466563659248e-09, + "ZBRA": 2.5661285093673622e-09, + "ZTS": 1.2160320278077554e-08 } } \ No newline at end of file From f026789a03331869ae9612f795b0af76f36f9056 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 18 Jul 2024 20:33:01 +0400 Subject: [PATCH 051/125] tests pass; only aggregation test on regression fails; need to rewrite that whole part anyways --- cvxportfolio/forecast.py | 143 +++++++++++++++++++++------- cvxportfolio/tests/test_forecast.py | 47 ++++++++- 2 files changed, 156 insertions(+), 34 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 7bf32851a..abbc60c21 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -917,38 +917,9 @@ def values_in_time( # pylint: disable=arguments-differ result -= tmp.T * tmp return result - -class RegressionXtY(HistoricalMeanReturn): - """Class for the XtY matrix of returns regression forecaster.""" - - def __init__(self, regressor, **kwargs): - assert isinstance(regressor, UserProvidedRegressor) - super().__init__(**kwargs) - self.regressor = regressor - - def _work_with(self, past_returns, **kwargs): - """Base DataFrame we work with.""" - return past_returns.iloc[:, :-1] - - # pylint: disable=arguments-differ - def _dataframe_selector(self, **kwargs): - """Return dataframe to compute the historical means of.""" - regr_on_df = self.regressor._get_all_history( - self._work_with(**kwargs).index) - return self._work_with( - **kwargs).multiply(regr_on_df, axis=0).dropna(how='all') - - def _get_last_row(self, **kwargs): - """Return last row of the dataframe we work with. - - This method receives the **kwargs passed to :meth:`values_in_time`. - - You may redefine it if obtaining the full dataframe is expensive, - during online update (in most cases) only this method is required. - """ - return self._work_with( - **kwargs).iloc[-1] * self.regressor.current_value - +### +# Linear regression +### class UserProvidedRegressor(DataEstimator): """User provided regressor series.""" @@ -961,7 +932,7 @@ def __init__(self, data, min_obs=10): super().__init__(data, use_last_available_time=True) self._min_obs = min_obs - def _get_all_history(self, pandas_obj_idx): + def get_all_history(self, pandas_obj_idx): """Get history of this regressor indexed on pandas obj.""" result = self.data.reindex( pandas_obj_idx, method='ffill').dropna() @@ -972,6 +943,13 @@ def _get_all_history(self, pandas_obj_idx): ' changing regressor in time is not (currently) supported.') return result + def get_one_time(self, timestamp): + """Get value of regressor at specific timestamp.""" + # breakpoint() + # TODO this is not correct I'm afraid + # return float(self.current_value) + return self.data[self.data.index <= timestamp].iloc[-1] + @property def name(self): """Name of the regressor. @@ -981,6 +959,102 @@ def name(self): """ return self.data.name +# probably can restate this as another intermediate class, not inheriting +# from OnPastReturns, and define specialized ones for other raw dataframes + +class OnWeightedPastReturns(OnPastReturns): # pylint: disable=abstract-method + """Intermediate class, operate on past returns weighted by regressor.""" + + # could put the __init__ we use in derived classes here, but then + # would have to be careful to use correct inheritance order for MRO + + # this needs to be populated by __init__ of derived class + regressor = None + + def _dataframe_selector( # pylint: disable=arguments-differ + self, **kwargs): + """Past returns, skipping cash, weighted by regressor. + + This method receives the full arguments to :meth:`values_in_time`. + """ + raw_past_df = super()._dataframe_selector(**kwargs) + regressor_history = self.regressor.get_all_history( + raw_past_df.index) + # with the dropna we remove (old) observations for which regressor had + # no data + return raw_past_df.multiply( + regressor_history, axis=0).dropna(how='all') + + # TODO: the below breaks on test for some reason, figure out why + # def _get_last_row(self, **kwargs): + # """Return last row of the dataframe we work with. + + # This method receives the **kwargs passed to :meth:`values_in_time`. + + # You may redefine it if obtaining the full dataframe is expensive, + # during online update (in most cases) only this method is required. + # """ + # raw_last_row = super()._get_last_row(**kwargs) + # regressor_on_last_row = self.regressor.get_one_time( + # raw_last_row.name) # check that this is robust enough? + # breakpoint() + # return raw_last_row * regressor_on_last_row + +class CountWeightedPastReturns(VectorCount, OnWeightedPastReturns): + """Count non-nan past returns, excluding cash, weighted by regressor.""" + + def __init__(self, regressor, **kwargs): + self.regressor = regressor + super().__init__(**kwargs) # this goes to SumForecaster + +class SumWeightedPastReturns(VectorSum, OnWeightedPastReturns): + """Sum non-nan past returns, excluding cash, weighted by regressor.""" + + def __init__(self, regressor, **kwargs): + self.regressor = regressor + super().__init__(**kwargs) # this goes to SumForecaster + +# We can reproduce this design pattern for other base forecasters + +class RegressionXtYReturns(HistoricalMeanReturn): + """Class for the XtY matrix of returns regression forecaster.""" + + def __init__(self, regressor, **kwargs): + assert isinstance(regressor, UserProvidedRegressor) + + # call super().__init__ first, then overwrite num and denom + super().__init__(**kwargs) + + # regression part + self.regressor = regressor + self._numerator = SumWeightedPastReturns(regressor=regressor, **kwargs) + self._denominator = CountWeightedPastReturns( + regressor=regressor, **kwargs) + + # def _work_with(self, past_returns, **kwargs): + # """Base DataFrame we work with.""" + # return past_returns.iloc[:, :-1] + + # # pylint: disable=arguments-differ + # def _dataframe_selector(self, **kwargs): + # """Return dataframe to compute the historical means of.""" + # regr_on_df = self.regressor._get_all_history( + # self._work_with(**kwargs).index) + # return self._work_with( + # **kwargs).multiply(regr_on_df, axis=0).dropna(how='all') + + # def _get_last_row(self, **kwargs): + # """Return last row of the dataframe we work with. + + # This method receives the **kwargs passed to :meth:`values_in_time`. + + # You may redefine it if obtaining the full dataframe is expensive, + # during online update (in most cases) only this method is required. + # """ + # return self._work_with( + # **kwargs).iloc[-1] * self.regressor.current_value + + class RegressionMeanReturn(BaseForecast): """Test class.""" @@ -1159,6 +1233,9 @@ def _get_last_row(self, **kwargs): # raise Exception return result1 +### +# More covariance classes +### def project_on_psd_cone_and_factorize(covariance): """Factorize matrix and remove negative eigenvalues. diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index f7af608a3..8426fffce 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -29,7 +29,8 @@ HistoricalMeanError, HistoricalMeanReturn, HistoricalMeanVolume, HistoricalStandardDeviation, - HistoricalVariance, RegressionMeanReturn) + HistoricalVariance, RegressionMeanReturn, + RegressionXtYReturns, UserProvidedRegressor) from cvxportfolio.tests import CvxportfolioTest from cvxportfolio.utils import set_pd_read_only @@ -40,6 +41,20 @@ class TestForecast(CvxportfolioTest): # pylint: disable=too-many-public-methods In most cases we test against the relevant pandas function as reference. """ + @classmethod + def setUpClass(cls): + """Add a few things used in tests here.""" + super().setUpClass() + cls.aligned_regressor = pd.Series( + np.random.randn(len(cls.market_data.returns)), cls.returns.index) + cls.aligned_regressor.name = 'regressor_aligned' + + # this one has index 1h before each trading period, and starts later + cls.unaligned_regressor = pd.Series( + np.random.randn(len(cls.market_data.returns)-100), + cls.returns.index[100:] - pd.Timedelta('3600s')) + cls.unaligned_regressor.name = 'regressor_unaligned' + def test_estimate(self): """Test estimate method of a forecaster.""" forecaster = cvx.forecast.HistoricalCovariance() @@ -84,6 +99,36 @@ def test_nested_cached_eval(self): self.assertEqual(len(cache), 1) self.assertEqual(len(list(cache.values())[0]), 5) + def test_regression_xty_returns(self): + """Test one of the components of returns regression.""" + md = copy.deepcopy(self.market_data) + xty = RegressionXtYReturns( + regressor=UserProvidedRegressor(self.aligned_regressor)) + t_fore = md.returns.index[-3] + + # check that estimate is correct + my_estimate = xty.estimate(md, t=t_fore) + pd_estimate = md.returns.iloc[:, :-1].multiply( + self.aligned_regressor, axis=0).loc[md.returns.index < t_fore].mean() + self.assertTrue(np.allclose(my_estimate, pd_estimate)) + + # iteratively + xty.initialize_estimator_recursive( + universe=md.returns.columns, trading_calendar=md.returns.index) + + for tidx in [-30, -29, -25, -24, -23]: + t = md.returns.index[tidx] + past_returns = md.returns.loc[md.returns.index < t] + + my_result = \ + xty.values_in_time_recursive(past_returns=past_returns, t=t) + pd_result = md.returns.iloc[:, :-1].multiply( + self.aligned_regressor, axis=0).loc[md.returns.index < t].mean() + # breakpoint() + self.assertTrue(np.allclose(my_result, pd_result)) + + xty.finalize_estimator_recursive() + def test_regression_mean_return(self): # pylint: disable=too-many-locals """Test historical mean return with regression.""" From a8197c1cc9ac3bb3d69db6452589163c2119a9c7 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 19 Jul 2024 11:31:03 +0400 Subject: [PATCH 052/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-19 --- .../ftse100_daily_initial_holdings.json | 171 ++++++++++++++---- .../ftse100_daily_target_weights.json | 103 +++++++++++ 2 files changed, 240 insertions(+), 34 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 0943f126a..bac874c0c 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10795,23 +10795,23 @@ }, "2024-07-18 07:00:00+00:00": { "AAF.L": 22318.07625482942, - "AAL.L": 9954.272957677145, + "AAL.L": 10178.805430406708, "ABF.L": 9990.57751832701, "ADM.L": 10455.32163352776, - "AHT.L": 16471.72458485624, - "ANTO.L": 18724.949131512894, + "AHT.L": 16381.187439831365, + "ANTO.L": 18506.025596890722, "AUTO.L": 10522.692493811675, - "AV.L": 12816.726969657706, + "AV.L": 12974.561680429035, "AZN.L": 12605.354529831597, "BA.L": 10344.351712458947, - "BARC.L": 10708.770378576897, + "BARC.L": 10646.9762253051, "BATS.L": 10563.445181500167, "BDEV.L": 10341.186601999872, - "BEZ.L": 10349.764342861432, + "BEZ.L": 10517.433573747252, "BKG.L": 9850.144687607202, - "BME.L": 10096.708247680077, + "BME.L": 10211.543542102409, "BNZL.L": 9708.39711753963, - "BP.L": 1.4143568576977347e-12, + "BP.L": 1.4059152269681238e-12, "BRBY.L": 10904.37307946941, "BT-A.L": 0.0, "CCH.L": 0.0, @@ -10822,78 +10822,181 @@ "DARK.L": 25546.649635526846, "DCC.L": 22283.787683791423, "DGE.L": 10289.635829852068, - "DPLM.L": 8296.260297290753, + "DPLM.L": 8252.15258183875, "EDV.L": 7320.08402432283, "ENT.L": 11363.183817648558, - "EXPN.L": 10521.846197955845, + "EXPN.L": 10657.553586579523, "EZJ.L": 9661.754245405975, "FCIT.L": 0.0, "FRAS.L": 10958.864422874994, - "FRES.L": 10272.977371338302, + "FRES.L": 10355.029906253143, "GBPOUND": 3415.425500189182, "GLEN.L": 10730.213893767648, - "GSK.L": 11112.041144512565, + "GSK.L": 11033.28312093676, "HIK.L": 11384.145309421949, - "HL.L": 10884.385805277527, + "HL.L": 11040.020473157414, "HLMA.L": 10582.950092489955, "HLN.L": 0.0, "HSBA.L": 10275.86853712837, "HWDN.L": 10473.19523934868, - "IAG.L": 10658.6049537948, - "ICG.L": 10763.081905998253, - "IHG.L": 16761.438969997987, - "III.L": 9390.447754078761, - "IMB.L": 10440.762866399045, + "IAG.L": 10594.671406043555, + "ICG.L": 10661.925121167442, + "IHG.L": 16801.66320558712, + "III.L": 9375.394134723074, + "IMB.L": 10592.371233287704, "IMI.L": 11131.94237346675, "INF.L": 10362.02398900855, "ITRK.L": 9550.196113900043, - "JD.L": 10546.313301282451, + "JD.L": 10461.907524458436, "KGF.L": 10462.405267147857, "LAND.L": 0.0, - "LGEN.L": 10574.152829725186, + "LGEN.L": 10519.10315022012, "LLOY.L": 0.0, "LMP.L": 0.0, - "LSEG.L": 28253.91105207483, + "LSEG.L": 28544.128841610374, "MKS.L": 0.0, "MNDI.L": 9941.867361117253, - "MNG.L": 10684.13450916974, + "MNG.L": 10627.982512038798, "MRO.L": 44969.90355428603, - "NG.L": 10537.092822561266, + "NG.L": 10609.887518596792, "NWG.L": 10398.139683255687, "NXT.L": 9104.171871067618, "PHNX.L": 0.0, - "PRU.L": 10229.898782296392, + "PRU.L": 10382.111078687549, "PSH.L": 54523.51383057413, "PSN.L": 10715.68913339221, "PSON.L": 1033.00886231058, "REL.L": 10560.065227566249, - "RIO.L": 10929.544583849587, - "RKT.L": 8905.857049791199, - "RMV.L": 12404.295527828712, - "RR.L": 10336.35272936823, + "RIO.L": 10833.540385865357, + "RKT.L": 9062.100155927898, + "RMV.L": 12353.543116904988, + "RR.L": 10267.794119982858, "RTO.L": 10485.854865775396, "SBRY.L": 0.0, "SDR.L": 11011.59712310684, "SGE.L": 37881.11185767676, "SGRO.L": 0.0, - "SHEL.L": 9.128804908774414e-13, + "SHEL.L": 9.08056391048954e-13, "SMDS.L": 10348.705341661356, "SMIN.L": 0.0, "SMT.L": 10351.069290366568, "SN.L": 3359.646736231907, "SPX.L": 9101.049362400545, "SSE.L": 10987.137608426285, - "STAN.L": 10743.635101534184, + "STAN.L": 10685.92016490352, "SVT.L": 10309.908545539593, - "TSCO.L": 10448.602425430117, - "TW.L": 10524.307794293863, - "ULVR.L": 8969.68899123092, + "TSCO.L": 10576.103942663412, + "TW.L": 10477.607424478541, + "ULVR.L": 9141.599603238717, "UTG.L": 10596.348218485657, "UU.L": 10490.976828663095, "VOD.L": 10614.338085071347, - "VTY.L": 10510.939759036142, + "VTY.L": 10615.566265060237, "WEIR.L": 9923.55947598336, "WPP.L": 10724.587102565398, "WTB.L": 11950.586450714149 + }, + "2024-07-19 07:00:00+00:00": { + "AAF.L": 22210.820599087623, + "AAL.L": 10110.56516908693, + "ABF.L": 10066.475548254324, + "ADM.L": 10475.350985316127, + "AHT.L": 16260.471246464904, + "ANTO.L": 17593.06787804085, + "AUTO.L": 10326.586048384574, + "AV.L": 12420.03184744423, + "AZN.L": 12363.809899347661, + "BA.L": 10206.427022959493, + "BARC.L": 10047.230862859398, + "BATS.L": 10404.155135112464, + "BDEV.L": 10309.925458264697, + "BEZ.L": 10250.68707006526, + "BKG.L": 9850.144687607202, + "BME.L": 10660.093122169486, + "BNZL.L": 9605.630771961683, + "BP.L": 1.38120430903135e-12, + "BRBY.L": 10129.372079750461, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10487.534772328418, + "CPG.L": 0.0, + "CRDA.L": 12346.985502905934, + "CTEC.L": 43.68975592054098, + "DARK.L": 25546.649635526846, + "DCC.L": 22405.225218852964, + "DGE.L": 10070.836721833944, + "DPLM.L": 12698.691159098784, + "EDV.L": 7083.823106688778, + "ENT.L": 11159.724845210256, + "EXPN.L": 10545.97195593339, + "EZJ.L": 9237.366372758512, + "FCIT.L": 0.0, + "FRAS.L": 10351.336033446867, + "FRES.L": 9977.588245644873, + "GBPOUND": 1969.5567083503074, + "GLEN.L": 10264.263475286027, + "GSK.L": 10807.74878069698, + "HIK.L": 11225.693608113075, + "HL.L": 10884.385805277527, + "HLMA.L": 10446.551190615557, + "HLN.L": 0.0, + "HSBA.L": 10260.572513425113, + "HWDN.L": 10288.965259125594, + "IAG.L": 10294.904316644579, + "ICG.L": 10722.619192065926, + "IHG.L": 16419.532967490213, + "III.L": 9119.48260567636, + "IMB.L": 10420.54841748056, + "IMI.L": 10986.900779024187, + "INF.L": 10144.942483943103, + "ITRK.L": 9493.277107686925, + "JD.L": 10803.974004335816, + "KGF.L": 10428.239444671626, + "LAND.L": 0.0, + "LGEN.L": 10477.81536559534, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28513.8978218671, + "MKS.L": 0.0, + "MNDI.L": 9860.247989033563, + "MNG.L": 10404.768266296129, + "MRO.L": 43027.04927460653, + "NG.L": 10712.255645651878, + "NWG.L": 10445.303907474456, + "NXT.L": 8987.011460922968, + "PHNX.L": 0.0, + "PRU.L": 10057.581585969623, + "PSH.L": 53895.90503827974, + "PSN.L": 10900.07557777884, + "PSON.L": 1037.604551762283, + "REL.L": 10463.405591615985, + "RIO.L": 10590.329750971947, + "RKT.L": 8942.861995981475, + "RMV.L": 11977.14306198185, + "RR.L": 10201.872702546632, + "RTO.L": 10303.492172457565, + "SBRY.L": 0.0, + "SDR.L": 10640.635089329118, + "SGE.L": 37445.69677885291, + "SGRO.L": 0.0, + "SHEL.L": 9.128804908774414e-13, + "SMDS.L": 10344.022383753438, + "SMIN.L": 0.0, + "SMT.L": 10262.720771957844, + "SN.L": 3365.802754072005, + "SPX.L": 9019.97097164419, + "SSE.L": 10933.20565398078, + "STAN.L": 10426.202950065528, + "SVT.L": 10342.444746077786, + "TSCO.L": 10448.602425430117, + "TW.L": 10467.599547952008, + "ULVR.L": 8967.666513442578, + "UTG.L": 10290.256226880243, + "UU.L": 10568.3439144202, + "VOD.L": 10499.12567031521, + "VTY.L": 10510.939759036142, + "WEIR.L": 9801.860228449585, + "WPP.L": 10542.283538159734, + "WTB.L": 11788.324584445112 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index ab326ffe1..aabd40146 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10504,5 +10504,108 @@ "WEIR.L": 0.009999996049125876, "WPP.L": 0.009999991903094885, "WTB.L": 0.009999971889623331 + }, + "2024-07-19 07:00:00+00:00": { + "AAF.L": 0.021439423506422015, + "AAL.L": 0.00999999932950212, + "ABF.L": 0.009999826080703407, + "ADM.L": 0.010000079199275586, + "AHT.L": 0.01569947522321627, + "ANTO.L": 0.01709528971160171, + "AUTO.L": 0.010000007146357513, + "AV.L": 0.01196896940043616, + "AZN.L": 0.010000027705621969, + "BA.L": 0.010000006375943393, + "BARC.L": 0.009999997682270194, + "BATS.L": 0.010000002819239498, + "BDEV.L": 0.010000003472140574, + "BEZ.L": 0.01000000990439058, + "BKG.L": 0.010000003140342413, + "BME.L": 0.009999997155266852, + "BNZL.L": 0.009999988889936164, + "BP.L": 2.690773811497541e-07, + "BRBY.L": 0.00999998535729858, + "BT-A.L": 2.8134310142043966e-08, + "CCH.L": 1.3763631089205483e-07, + "CNA.L": 0.009999994761937055, + "CPG.L": 1.543816768817372e-07, + "CRDA.L": 0.009999998927089917, + "CTEC.L": 4.2133002516316824e-05, + "DARK.L": 0.024746086772743082, + "DCC.L": 0.020967323644867173, + "DGE.L": 0.00999772142310323, + "DPLM.L": 0.010000055619579121, + "EDV.L": 0.007198083565890855, + "ENT.L": 0.010752431055800805, + "EXPN.L": 0.010000001710844095, + "EZJ.L": 0.008920889790305583, + "FCIT.L": 3.367788808773656e-08, + "FRAS.L": 0.010000002935565513, + "FRES.L": 0.00999999595179491, + "GBPOUND": 1.6486520863193306e-07, + "GLEN.L": 0.009999931124033678, + "GSK.L": 0.009999993287285529, + "HIK.L": 0.010000008523198484, + "HL.L": 0.010000012432723561, + "HLMA.L": 0.010000005262067594, + "HLN.L": 1.4079575556336318e-08, + "HSBA.L": 0.009999999530824696, + "HWDN.L": 0.009999999539704941, + "IAG.L": 0.00999992393540266, + "ICG.L": 0.010000014092858202, + "IHG.L": 0.01536682506481644, + "III.L": 0.010000004762115699, + "IMB.L": 0.010000013428514929, + "IMI.L": 0.009999993230552283, + "INF.L": 0.009999916892492026, + "ITRK.L": 0.009999995903414076, + "JD.L": 0.010405326203378626, + "KGF.L": 0.009999992280612633, + "LAND.L": 2.132167075773546e-08, + "LGEN.L": 0.01000000102743506, + "LLOY.L": 9.646400537419065e-08, + "LMP.L": 5.994113421646601e-08, + "LSEG.L": 0.027377497283026353, + "MKS.L": 5.39111908820932e-08, + "MNDI.L": 0.009999999072945898, + "MNG.L": 0.010000003557178923, + "MRO.L": 0.04146459321463389, + "NG.L": 0.009999984147194158, + "NWG.L": 0.009999993204343378, + "NXT.L": 0.010000008448016393, + "PHNX.L": 3.82130122860967e-08, + "PRU.L": 0.00999999611075513, + "PSH.L": 0.052132189080864304, + "PSN.L": 0.010000002601908104, + "PSON.L": 0.0010136866073484016, + "REL.L": 0.009999994516762669, + "RIO.L": 0.010000004082528597, + "RKT.L": 0.009999987078383583, + "RMV.L": 0.011542973161454907, + "RR.L": 0.009999994669214396, + "RTO.L": 0.009999997594652182, + "SBRY.L": 5.4161478062996935e-08, + "SDR.L": 0.009999996789318713, + "SGE.L": 0.03608555045735079, + "SGRO.L": 6.705378975270758e-08, + "SHEL.L": 0.0025308279111914767, + "SMDS.L": 0.009999992093209687, + "SMIN.L": 9.610987979665117e-08, + "SMT.L": 0.009999951448030042, + "SN.L": 0.0032517803418054673, + "SPX.L": 0.009999980337190004, + "SSE.L": 0.009999998552176478, + "STAN.L": 0.009999995531293734, + "SVT.L": 0.010000002907521304, + "TSCO.L": 0.01000000292088002, + "TW.L": 0.00999999838021568, + "ULVR.L": 0.00999994345359272, + "UTG.L": 0.010000012181732238, + "UU.L": 0.009999990734626816, + "VOD.L": 0.010000040934336532, + "VTY.L": 0.009999999753572736, + "WEIR.L": 0.009999997631511885, + "WPP.L": 0.009999994518271155, + "WTB.L": 0.009999981879015046 } } \ No newline at end of file From 66a31c3d3fe68ca4e275711297ae934ea17028ec Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 19 Jul 2024 18:00:34 +0400 Subject: [PATCH 053/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-19 --- .../dow30_daily_initial_holdings.json | 39 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 ++++++++++++++++ 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index cf52520c7..398ef0c45 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4620,14 +4620,14 @@ "WMT": 0.0003889033027389737 }, "2024-07-18 13:30:00+00:00": { - "AAPL": 222137.00958201225, + "AAPL": 222074.3234031372, "AMGN": 21051.00303476524, "AMZN": 224588.06656103677, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 78964.72525141433, - "CSCO": 45312.334232345725, + "CSCO": 45209.05591194532, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -4647,9 +4647,42 @@ "PG": 0.0, "TRV": 0.0, "UNH": 110954.07590787692, - "USDOLLAR": 51.88919078862336, + "USDOLLAR": 51.88921717081073, "V": 35032.61922085671, "VZ": 0.0, "WMT": 0.00039167405865980467 + }, + "2024-07-19 13:30:00+00:00": { + "AAPL": 216839.74788081957, + "AMGN": 21015.729217066782, + "AMZN": 217040.81050204154, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 77871.73197164621, + "CSCO": 45248.899352459324, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 111383.73230140138, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.223377189573543e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 229347.97911792996, + "NKE": 9.925039757093174e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 109200.56339793204, + "USDOLLAR": -251.27506638850173, + "V": 34779.160406857925, + "VZ": 0.0, + "WMT": 0.0003945556262149818 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 8fe896ef8..6671ce5b0 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4651,5 +4651,38 @@ "V": 0.032263630675460224, "VZ": 5.412716722702694e-09, "WMT": 4.156538460249474e-08 + }, + "2024-07-19 13:30:00+00:00": { + "AAPL": 0.20408880881709318, + "AMGN": 0.019538554097571385, + "AMZN": 0.20761693961430658, + "AXP": 2.785789501021292e-09, + "BA": 4.7177657309346146e-09, + "CAT": 2.4489799405770657e-09, + "CRM": 0.07329265542552436, + "CSCO": 0.04258810898473051, + "CVX": 2.721189799375604e-09, + "DIS": 3.5590202101881264e-09, + "DOW": 4.08468482564801e-09, + "GS": 2.8284111984682846e-09, + "HD": 0.10443191672348998, + "HON": 1.719293540292392e-09, + "IBM": 1.262207071774967e-09, + "INTC": 3.318714463875402e-09, + "JNJ": 3.822021119591731e-09, + "JPM": 4.619142143016784e-09, + "KO": 2.9293735286717415e-09, + "MCD": 7.678780242122105e-09, + "MMM": 1.672970090891113e-09, + "MRK": 3.292920272762051e-09, + "MSFT": 0.21586155680497943, + "NKE": 7.079533859865843e-09, + "PG": 2.2578850841901367e-09, + "TRV": 2.010403081595963e-09, + "UNH": 0.09984811469237402, + "USDOLLAR": 1.404089352733751e-09, + "V": 0.032733263327390266, + "VZ": 1.8017407145892705e-09, + "WMT": 1.3497624568514433e-08 } } \ No newline at end of file From abb7d1e755c8a7c93ef87a13714176f550ba2855 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 19 Jul 2024 18:01:36 +0400 Subject: [PATCH 054/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-19 --- .../ndx100_daily_initial_holdings.json | 176 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 244 insertions(+), 36 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 9a501ebb2..531db18a3 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14455,21 +14455,21 @@ "ZS": 19354.19670401943 }, "2024-07-18 13:30:00+00:00": { - "AAPL": 7337.66781340467, + "AAPL": 7335.597152788763, "ABNB": 0.0, "ADBE": 12074.734928718664, "ADI": 0.0, "ADP": 0.0, "ADSK": 85.24894332918177, "AEP": 0.0, - "AMAT": -56.97506107267782, - "AMD": -1.987520614225832e-11, + "AMAT": -57.01355616913153, + "AMD": -1.9906880968394542e-11, "AMGN": 36262.71352971997, "AMZN": 19244.45568456579, "ANSS": 11.469207125871677, - "ARM": 69075.43142212433, - "ASML": 16.66752175361916, - "AVGO": -36.793836435287176, + "ARM": 69137.96580539904, + "ASML": 16.65896094797749, + "AVGO": -36.018561620858534, "AZN": 0.0, "BIIB": 15437.69579692234, "BKNG": 11278.626230534592, @@ -14479,64 +14479,64 @@ "CDW": 13166.737933849547, "CEG": 73538.82757935145, "CHTR": 19289.612008536627, - "CMCSA": 35403.14794361808, + "CMCSA": 35411.94883983103, "COST": 0.0, - "CPRT": -0.831658737994384, - "CRWD": 13167.421160866448, - "CSCO": 59056.96612440897, + "CPRT": -0.8315014910424985, + "CRWD": 13157.694859474626, + "CSCO": 58922.36029637995, "CSGP": 5821.6158011431635, - "CSX": 1518.7599868774412, + "CSX": 1514.8899803161617, "CTAS": 0.0, - "CTSH": 28042.800784393217, + "CTSH": 28020.292578337816, "DASH": 0.0, - "DDOG": 16304.173355738307, - "DLTR": 28832.54580142139, - "DXCM": 11073.779832821188, + "DDOG": 16208.546614945986, + "DLTR": 28891.459104850062, + "DXCM": 11063.632932485189, "EA": 13885.394558986613, "EXC": 0.0, "FANG": 28757.76061783374, - "FAST": 21553.84806000502, - "FTNT": 23808.477758768186, - "GEHC": 7097.964168393846, - "GFS": 28492.318978789208, - "GILD": 30357.18592859238, - "GOOG": -60.335118071579814, + "FAST": 21578.55925721396, + "FTNT": 23820.292899556698, + "GEHC": 7093.635877300099, + "GFS": 28468.22232390486, + "GILD": 30398.21915934593, + "GOOG": -60.2989792203188, "GOOGL": -2.3663351845924875e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 6762.254850535634, - "INTC": 2.221758911110078, + "INTC": 2.222394500794702, "INTU": -103.06640301392896, "ISRG": 8263.320320722522, "KDP": 0.0, "KHC": 0.0, - "KLAC": 11763.613985352918, + "KLAC": 11763.762329351812, "LIN": 0.0, "LRCX": -10.403219201198066, "LULU": 22145.59137557962, "MAR": 0.0, "MCHP": 13077.715838167089, - "MDB": 27139.443628836783, + "MDB": 27138.41074240726, "MDLZ": 0.0, - "MELI": 21647.230429939013, - "META": -128.95993567167898, + "MELI": 21655.526117510828, + "META": -128.97378199091895, "MNST": 17981.943105281858, - "MRNA": 20836.01728869358, + "MRNA": 20827.625307718085, "MRVL": 0.0, "MSFT": 43.489826870308534, - "MU": 8.882155667235384, + "MU": 8.877146098950215, "NFLX": 16391.686865427815, - "NVDA": 18.06345326244919, + "NVDA": 18.067160333292758, "NXPI": 20547.36547877655, - "ODFL": 9698.300339199028, - "ON": -3.3550772093412187, + "ODFL": 9704.161281483628, + "ON": -3.359040073796368, "ORLY": 27264.01668134104, "PANW": -7.775830623463066, "PAYX": 7893.850692195903, "PCAR": 0.0, "PDD": 27377.851522993442, "PEP": 26986.932553542247, - "PYPL": 7572.714125955171, + "PYPL": 7571.46341068759, "QCOM": -7.300726654581405, "REGN": 15360.633792984365, "ROP": 15328.4703893325, @@ -14545,17 +14545,121 @@ "SNPS": 0.0, "TEAM": 12195.596369106073, "TMUS": 6129.547670148013, - "TSLA": 1715.2607958760698, + "TSLA": 1714.3867994284274, "TTD": 38589.72386345127, - "TTWO": 9626.29917158597, + "TTWO": 9617.956065614506, "TXN": 0.0, - "USDOLLAR": -495.1304437699321, + "USDOLLAR": -495.13013013320904, "VRSK": 0.0, "VRTX": 11635.780286400766, - "WBA": 376.8694537245634, + "WBA": 377.3499307001734, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, "ZS": 19147.66676629003 + }, + "2024-07-19 13:30:00+00:00": { + "AAPL": 7162.687756019534, + "ABNB": 0.0, + "ADBE": 11365.08662103117, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 82.95110192733736, + "AEP": 0.0, + "AMAT": -55.82016118606949, + "AMD": -1.8876268748392352e-11, + "AMGN": 35534.67039359221, + "AMZN": 18395.868394220983, + "ANSS": 11.26912729049751, + "ARM": 68701.60450168044, + "ASML": 15.986837466474396, + "AVGO": -36.683892295081975, + "AZN": 0.0, + "BIIB": 15189.483905477955, + "BKNG": 11098.124342395033, + "BKR": 0.0, + "CCEP": 16481.39010948254, + "CDNS": -88.35365326781032, + "CDW": 13301.820656684311, + "CEG": 73759.1597393773, + "CHTR": 18418.88058861611, + "CMCSA": 34524.157636679476, + "COST": 0.0, + "CPRT": -0.8156229673140668, + "CRWD": 11016.867428053623, + "CSCO": 57983.31511350266, + "CSGP": 5790.821631360576, + "CSX": 2105.9999084472656, + "CTAS": 0.0, + "CTSH": 27909.56915531384, + "DASH": 0.0, + "DDOG": 15674.431793365955, + "DLTR": 27935.211245355174, + "DXCM": 10908.653470482164, + "EA": 13910.66311310675, + "EXC": 0.0, + "FANG": 28867.459934604733, + "FAST": 21377.784903922875, + "FTNT": 22886.859216414778, + "GEHC": 7275.0028542906375, + "GFS": 28941.886357755444, + "GILD": 30264.67519588003, + "GOOG": -59.24110696517234, + "GOOGL": -2.325467700366234e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 6508.522283621786, + "INTC": 2.197284464520838, + "INTU": -99.5024069899115, + "ISRG": 8731.218729410302, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 11639.718705645739, + "LIN": 0.0, + "LRCX": -10.142763313640847, + "LULU": 21615.49678930514, + "MAR": 0.0, + "MCHP": 13033.801698143545, + "MDB": 25564.578023074206, + "MDLZ": 0.0, + "MELI": 21003.423050534104, + "META": -129.34576820475635, + "MNST": 18174.035407682793, + "MRNA": 20266.43315867396, + "MRVL": 0.0, + "MSFT": 42.391667995135, + "MU": 8.583794930375232, + "NFLX": 16492.544400759733, + "NVDA": 17.843266602964274, + "NXPI": 20201.549582494587, + "ODFL": 9560.07406978163, + "ON": -3.303562322873891, + "ORLY": 25919.25128373592, + "PANW": -7.839332948224332, + "PAYX": 8448.975379419997, + "PCAR": 0.0, + "PDD": 27618.96610227478, + "PEP": 27241.26912057117, + "PYPL": 6163.110485014989, + "QCOM": -7.22198533933662, + "REGN": 15090.266335026623, + "ROP": 15368.181622228365, + "ROST": 8317.22526521468, + "SBUX": 31781.045556852954, + "SNPS": 0.0, + "TEAM": 11876.624378620725, + "TMUS": 6993.581922114572, + "TSLA": 2186.825978304009, + "TTD": 38792.84698826116, + "TTWO": 9805.627870201413, + "TXN": 0.0, + "USDOLLAR": -347.42605912810404, + "VRSK": 0.0, + "VRTX": 11692.009429059603, + "WBA": 362.0381180578671, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18558.386931239806 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 4e05017b3..c43352078 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14350,5 +14350,109 @@ "WDAY": 1.399028176748636e-08, "XEL": 6.211352232293525e-08, "ZS": 0.017265209453738405 + }, + "2024-07-19 13:30:00+00:00": { + "AAPL": 0.006730066320666021, + "ABNB": 1.8419321844536957e-08, + "ADBE": 0.010838454311675941, + "ADI": 2.543218271061953e-07, + "ADP": 3.398543837949542e-07, + "ADSK": 4.604909580965843e-08, + "AEP": 1.586960591211532e-08, + "AMAT": 5.982699601217857e-08, + "AMD": 7.98964571098147e-09, + "AMGN": 0.03172414874784587, + "AMZN": 0.0172125249563511, + "ANSS": 7.351809973022279e-08, + "ARM": 0.06260433601917322, + "ASML": 2.3405503694282217e-08, + "AVGO": 2.5213034756739916e-08, + "AZN": 7.418257634824917e-08, + "BIIB": 0.013670287185334317, + "BKNG": 0.009217070421801102, + "BKR": 1.5703608980177035e-07, + "CCEP": 0.014505442076247769, + "CDNS": 1.7089605001800474e-08, + "CDW": 0.012355997529728411, + "CEG": 0.06704182937813662, + "CHTR": 0.016586437551582858, + "CMCSA": 0.031040223834139916, + "COST": 1.9313868259989114e-08, + "CPRT": 1.3390832160768876e-07, + "CRWD": 0.008823053025589616, + "CSCO": 0.05208538645754154, + "CSGP": 0.005350800889362446, + "CSX": 0.0019237170926801601, + "CTAS": 3.171701738273871e-08, + "CTSH": 0.024979535966570276, + "DASH": 1.4626304139576265e-08, + "DDOG": 0.014329764370059948, + "DLTR": 0.02521361883724729, + "DXCM": 0.010184595786694027, + "EA": 0.012703610719052705, + "EXC": 5.305042782385604e-08, + "FANG": 0.026384239675547646, + "FAST": 0.019375587952785236, + "FTNT": 0.021393797997805355, + "GEHC": 0.006270282296622849, + "GFS": 0.026258883010451987, + "GILD": 0.026774187085812053, + "GOOG": 2.5788527494588704e-07, + "GOOGL": 1.3126179439735713e-07, + "HON": 4.7627658367948106e-08, + "IDXX": 4.863461712688301e-08, + "ILMN": 0.0060579274348450465, + "INTC": 6.352922244406785e-08, + "INTU": 1.8666564939105019e-07, + "ISRG": 0.008397202816093918, + "KDP": 3.9789190613111573e-07, + "KHC": 3.946298476227224e-08, + "KLAC": 0.011234382388040625, + "LIN": 1.3232065546824874e-07, + "LRCX": 5.224140012863502e-08, + "LULU": 0.019859762753568176, + "MAR": 1.1623457050882132e-07, + "MCHP": 0.01213587966847972, + "MDB": 0.024598827387704254, + "MDLZ": 2.759150664311628e-07, + "MELI": 0.01910641945206034, + "META": 1.780222717517551e-08, + "MNST": 0.01632679144542549, + "MRNA": 0.01851517224032173, + "MRVL": 1.543472317544488e-08, + "MSFT": 4.74480668258379e-08, + "MU": 1.8444192180574624e-08, + "NFLX": 0.014906949555528189, + "NVDA": 0.00010117856341123864, + "NXPI": 0.018465158986014966, + "ODFL": 0.008702913575100734, + "ON": 1.3786331291205918e-05, + "ORLY": 0.023809607252630875, + "PANW": 4.103467632791283e-08, + "PAYX": 0.007752279761084243, + "PCAR": 2.0279936423522098e-08, + "PDD": 0.025093214840608266, + "PEP": 0.024823362743339163, + "PYPL": 0.005626183606754688, + "QCOM": 6.475133373141905e-08, + "REGN": 0.014112173303042291, + "ROP": 0.01400475509168075, + "ROST": 0.007396631795599111, + "SBUX": 0.02881210779963671, + "SNPS": 8.576324002468326e-09, + "TEAM": 0.011258185678123256, + "TMUS": 0.006598883407202717, + "TSLA": 0.002683530913167814, + "TTD": 0.035924610251738126, + "TTWO": 0.008951608210355823, + "TXN": 5.1369006359414625e-08, + "USDOLLAR": 5.033866029467097e-07, + "VRSK": 3.9073479954929213e-07, + "VRTX": 0.010739190548282618, + "WBA": 0.00033034233027352014, + "WBD": 4.3316309441066875e-08, + "WDAY": 3.5747756892337284e-08, + "XEL": 1.7992984407840448e-07, + "ZS": 0.018078547053764108 } } \ No newline at end of file From ed7ecb0a1b5846f14f067bc10f4fc4ec5d5883aa Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 19 Jul 2024 18:07:07 +0400 Subject: [PATCH 055/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-19 --- .../sp500_daily_initial_holdings.json | 627 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1071 insertions(+), 61 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 60a57f250..c0c270ee4 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -69308,9 +69308,9 @@ }, "2024-07-18 13:30:00+00:00": { "A": 0.0, - "AAL": 641.8376869771486, - "AAPL": 49193.52520401528, - "ABBV": 4753.867220746656, + "AAL": 642.4238535421317, + "AAPL": 49179.64298724179, + "ABBV": 4754.003194888035, "ABNB": 0.0, "ABT": 3297.7627935149226, "ACGL": 0.0, @@ -69325,16 +69325,16 @@ "AES": 0.0, "AFL": 3508.735555745292, "AIG": 0.0, - "AIZ": 1.4675172947562152, + "AIZ": 1.4664928915217097, "AJG": 0.0, "AKAM": 194.39948282709693, "ALB": 0.0, "ALGN": 1228.359782340577, "ALL": 6.794664997548218e-14, "ALLE": 0.0, - "AMAT": 2145.6002525566014, + "AMAT": 2147.0499234673166, "AMCR": 0.0, - "AMD": 26870.0820421064, + "AMD": 26912.90449993944, "AME": 0.0, "AMGN": 6212.268917852553, "AMP": 9.26549853555158, @@ -69351,18 +69351,18 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 19786.892359038535, + "AVGO": 19369.967113182385, "AVY": 0.0, "AWK": 0.0, "AXON": 4960.653616684544, "AXP": 0.0, "AZO": 1.7555836924004627e-12, - "BA": -1.1001860195442316e-12, + "BA": -1.0966148144354844e-12, "BAC": 0.0, "BALL": 0.0, "BAX": 0.0, "BBWI": 0.0, - "BBY": 528.8502510564036, + "BBY": 526.3589975483962, "BDX": 0.0, "BEN": 190.73346378483035, "BF-B": 0.0, @@ -69389,7 +69389,7 @@ "CAT": 0.0, "CB": 300.5243556216896, "CBOE": 0.0, - "CBRE": 4694.293711693928, + "CBRE": 4673.200319967743, "CCI": 304.863209534078, "CCL": 0.0, "CDNS": 0.0, @@ -69405,8 +69405,8 @@ "CINF": 0.015715046706585575, "CL": 9.745673901025045, "CLX": 15.390841210908965, - "CMCSA": 6449.993097812511, - "CME": 4665.204888952585, + "CMCSA": 6451.596506637016, + "CME": 4663.349786992322, "CMG": 5461.480939864401, "CMI": 0.0, "CMS": 0.0, @@ -69415,22 +69415,22 @@ "COF": 9442.181316716398, "COO": 0.0, "COP": 0.0, - "COR": 3390.840153109777, + "COR": 3382.105504568161, "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 732.5107753805441, + "CPRT": 732.3722749579675, "CPT": 0.0, "CRL": 0.0, "CRM": 7594.909720989448, - "CRWD": 3868.353691221107, - "CSCO": 7078.758068576688, + "CRWD": 3865.4962771966507, + "CSCO": 7062.623780722642, "CSGP": -7.667628467362684e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 11643.295195702167, + "CTSH": 11633.949849299584, "CTVA": 110.8008891335489, "CVS": 0.0, "CVX": -5.809761843765284e-13, @@ -69440,7 +69440,7 @@ "DAY": 0.0, "DD": 0.0, "DE": 1.0818429886150099e-13, - "DECK": 866.5825915912907, + "DECK": 875.2423923777066, "DFS": 3831.445049256207, "DG": 0.0, "DGX": 0.0, @@ -69448,17 +69448,17 @@ "DHR": 2494.766058211729, "DIS": -4.314604663077773, "DLR": 3.1643530362164716e-14, - "DLTR": 970.983358899235, + "DLTR": 972.9673612013903, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, - "DPZ": 1431.2875051736467, + "DPZ": 1239.3382546203345, "DRI": 2.444982682929046, "DTE": 0.0, "DUK": 1.2244811721324758, - "DVA": 3498.5092860954924, + "DVA": 3523.555888827036, "DVN": 0.0, - "DXCM": 5005.645267022694, + "DXCM": 5001.058596129048, "EA": 3995.990504241868, "EBAY": 0.0, "ECL": 0.0, @@ -69470,7 +69470,7 @@ "ELV": -2.122416329397729e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 2808.426678228412, + "ENPH": 2807.438295026751, "EOG": 0.0, "EPAM": 5870.743839701933, "EQIX": 811.6151305624427, @@ -69486,12 +69486,12 @@ "EXC": 0.0, "EXPD": -1.1150726182740427, "EXPE": 4482.223449665949, - "EXR": 5.963341300436708e-14, + "EXR": 5.925672941510019e-14, "F": 0.0, "FANG": 14656.291050037224, - "FAST": 3289.2028475005172, + "FAST": 3292.9738743723096, "FCX": 0.0, - "FDS": 3062.6794824259714, + "FDS": 3050.3151321167984, "FDX": 8067.414922432137, "FE": 0.0, "FFIV": 3759.5929156928887, @@ -69503,22 +69503,22 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.332818552538099e-14, - "FTNT": 6223.5522447746725, + "FSLR": -7.38919256402111e-14, + "FTNT": 6226.640730595635, "FTV": 0.0, "GD": 3.8466517364602863e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1758.0203280053336, + "GEHC": 1756.9482989632297, "GEN": 0.0, "GEV": 28723.228610421003, - "GILD": 8842.747915865306, + "GILD": 8854.700490013012, "GIS": 7595.818243963086, - "GL": 0.3021672414797052, + "GL": 0.30192939581888345, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23914.859241185037, + "GOOG": 23900.53498743915, "GOOGL": 1791.2432306149867, "GPC": 0.0, "GPN": -1.0713003612703562e-13, @@ -69528,11 +69528,11 @@ "HAL": 0.0, "HAS": 1.0927049841995449, "HBAN": 0.0, - "HCA": 5624.623775719774, + "HCA": 5616.78691500724, "HD": 8347.41445870835, "HES": 0.0, "HIG": 5847.83021313171, - "HII": 0.7357047059982255, + "HII": 0.7343001369928325, "HLT": -1.3704674727164969e-13, "HOLX": 2887.6293086558667, "HON": 0.0, @@ -69542,7 +69542,7 @@ "HSIC": 0.0, "HST": 0.0, "HSY": 10774.613475693892, - "HUBB": 1.2920073486980642e-13, + "HUBB": 1.31029796150728e-13, "HUM": 1155.4575867452797, "HWM": 2071.2505270323804, "IBM": 0.0, @@ -69550,8 +69550,8 @@ "IDXX": -10.140177547824571, "IEX": 0.0, "IFF": 0.0, - "INCY": 4092.7778654995545, - "INTC": 241.5470193243499, + "INCY": 4086.519891005399, + "INTC": 241.6161198883519, "INTU": 1310.7251533391627, "INVH": 0.0, "IP": 0.0, @@ -69560,7 +69560,7 @@ "IR": 0.04516767001366979, "IRM": 0.0, "ISRG": 6287.893630442312, - "IT": 7.582335869093442e-13, + "IT": 7.573101224274264e-13, "ITW": 0.0, "IVZ": 0.0, "J": 0.0, @@ -69571,14 +69571,14 @@ "JNJ": 13356.720405307198, "JNPR": 0.0, "JPM": 2611.320917199906, - "K": 481.0124365885504, + "K": 474.2398971829264, "KDP": 0.0, "KEY": 0.0, "KEYS": 0.0, "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": -19.348392829861737, + "KLAC": -19.348636821033846, "KMB": 4724.861231318572, "KMI": 0.0, "KMX": 1.16765595143915, @@ -69601,7 +69601,7 @@ "LUV": 28.13997925593524, "LVS": 1857.6617012742486, "LW": 28.33821719669454, - "LYB": 3625.143093637679, + "LYB": 3603.1147325711318, "LYV": 2901.4606316806144, "MA": 31249.530204763803, "MAA": 0.0, @@ -69614,7 +69614,7 @@ "MDLZ": 0.0, "MDT": 1.3243373341607465, "MET": -0.0365853699906822, - "META": 20894.223039904577, + "META": 20896.466434963473, "MGM": 4338.293311885225, "MHK": 0.0, "MKC": 0.0, @@ -69624,21 +69624,21 @@ "MMM": 0.0, "MNST": 5180.657704344045, "MO": -21.911769112041195, - "MOH": 1793.6303446920706, + "MOH": 1780.635181342014, "MOS": 0.0, "MPC": 15116.219581683485, "MPWR": -9.416806870453213e-13, "MRK": 5687.13260220859, - "MRNA": 7769.562341405272, + "MRNA": 7766.433047622607, "MRO": 0.0, "MS": 6380.56286400504, - "MSCI": 6019.0066432196745, + "MSCI": 5982.223985204805, "MSFT": 37267.44879174267, "MSI": 0.0, "MTB": -6.563785876187111, "MTCH": 0.0, "MTD": 0.0, - "MU": 3385.923143738411, + "MU": 3384.013470700427, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -69654,22 +69654,22 @@ "NTAP": 6066.351694560602, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 136955.09249899493, + "NVDA": 136983.19909760065, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, "NXPI": 8675.651596253536, "O": 0.0, - "ODFL": 4359.38701366138, + "ODFL": 4362.021507829398, "OKE": 0.0, "OMC": 0.0, - "ON": -2.808218120081744, + "ON": -2.8115350594771753, "ORCL": 7255.373938082322, "ORLY": -0.739670160056624, - "OTIS": 1674.8621397564493, + "OTIS": 1662.3341462084363, "OXY": 0.0, "PANW": 4629.010791936106, - "PARA": 2197.306845829773, + "PARA": 2208.479492874715, "PAYC": 0.0, "PAYX": 501.54890541516085, "PCAR": 0.0, @@ -69682,7 +69682,7 @@ "PGR": 8302.689119963987, "PH": 0.0, "PHM": -11.92290308357984, - "PKG": -5.001522326718766e-13, + "PKG": -4.967579988177129e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, @@ -69690,7 +69690,7 @@ "PNW": 0.0, "PODD": -63.088680814402075, "POOL": 1301.1864341414162, - "PPG": -0.4268908799028101, + "PPG": -0.42363561655487886, "PPL": 0.0, "PRU": 901.1279916907957, "PSA": 0.0, @@ -69720,7 +69720,7 @@ "SHW": 1.3945659509011359, "SJM": 1.024368198226089, "SLB": 0.0, - "SMCI": 7985.588682489684, + "SMCI": 7976.470405171537, "SNA": 0.0, "SNPS": 0.0, "SO": 10.450543168783422, @@ -69741,7 +69741,7 @@ "T": 0.0, "TAP": 0.0, "TDG": 4732.8802879669665, - "TDY": -15.497467537958078, + "TDY": -15.433482428714072, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, @@ -69757,14 +69757,14 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.9394494356632572e-12, - "TSLA": 105482.7328403284, + "TSLA": 105428.98501725, "TSN": 5036.842656929062, "TT": 0.0, - "TTWO": 738.6566241753851, + "TTWO": 738.0164310562881, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 4145.67163719722, + "UAL": 4143.941711681804, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -69774,7 +69774,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -1726.7868365314641, + "USDOLLAR": -1726.7866081875504, "V": 1889.6178238597145, "VICI": 0.0, "VLO": 0.0, @@ -69788,10 +69788,10 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.1720390773320467e-13, + "WAT": -2.1538684771338183e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.9330362224836457, + "WDC": -2.9346544864032915, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -69810,5 +69810,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-19 13:30:00+00:00": { + "A": 0.0, + "AAL": 622.4946375320782, + "AAPL": 47570.711960653396, + "ABBV": 4732.747151588209, + "ABNB": 0.0, + "ABT": 3240.432841548337, + "ACGL": 0.0, + "ACN": 2.616683051613694e-13, + "ADBE": 11520.966108897235, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.547987864673523, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3534.1883112718624, + "AIG": 0.0, + "AIZ": 1.471102966606798, + "AJG": 0.0, + "AKAM": 192.0204784965322, + "ALB": 0.0, + "ALGN": 1236.0160364980409, + "ALL": 6.952880565107967e-14, + "ALLE": 0.0, + "AMAT": 2102.1083555453192, + "AMCR": 0.0, + "AMD": 26449.278812106568, + "AME": 0.0, + "AMGN": 6201.859416654904, + "AMP": 9.185289602129023, + "AMT": 633.616499618548, + "AMZN": 35538.22303713345, + "ANET": 3554.6100767528255, + "ANSS": 309.1982117705312, + "AON": 17.25838349931137, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 26.462422291788492, + "APTV": 2.4262983312663582e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 21669.66685254225, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4803.566137901761, + "AXP": 0.0, + "AZO": 1.7354305414335265e-12, + "BA": -1.0797107832954992e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 523.4525879182028, + "BDX": 0.0, + "BEN": 189.84596656920965, + "BF-B": 0.0, + "BG": 1479.719739599468, + "BIIB": 2456.9689732795323, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3696.2299219396004, + "BKR": 0.0, + "BLDR": 357.1873750752709, + "BLK": 9.48615714647398e-13, + "BMY": 85.88224866729381, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.308894895495891, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1358.551624131368, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 19886.142044403434, + "CAT": 0.0, + "CB": 301.79843822981456, + "CBOE": 0.0, + "CBRE": 4673.200319967743, + "CCI": 304.9793505578111, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 407.2663069274756, + "CE": -2.777693357852493e-14, + "CEG": 34589.234587860214, + "CF": 9770.18384355594, + "CFG": 0.0, + "CHD": 2499.801908965067, + "CHRW": 0.0, + "CHTR": 7315.491216982253, + "CI": 3.9515780936419203e-13, + "CINF": 0.015681528972332038, + "CL": 9.727011314736375, + "CLX": 15.31556134704951, + "CMCSA": 6443.578239005279, + "CME": 4676.337624066272, + "CMG": 5506.414450221667, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 868.2978246237977, + "CNP": 0.0, + "COF": 9264.871745486284, + "COO": 0.0, + "COP": 0.0, + "COR": 3400.177088195486, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 718.3867431564723, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7489.784486157603, + "CRWD": 3236.5593277796015, + "CSCO": 7053.822802270886, + "CSGP": -7.627069581149788e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11518.29792183741, + "CTVA": 111.75101008175398, + "CVS": 0.0, + "CVX": -5.854804345143124e-13, + "CZR": 8808.573411831441, + "D": 0.0, + "DAL": 651.5720853515056, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0830864932424613e-13, + "DECK": 864.17658270568, + "DFS": 3774.3893087291885, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.833305633248506, + "DHR": 2203.306548744028, + "DIS": -4.290673988739293, + "DLR": 3.149985422948462e-14, + "DLTR": 1069.035949685819, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 1231.8986216112244, + "DRI": 2.398974400847902, + "DTE": 0.0, + "DUK": 1.231003496032114, + "DVA": 3407.840706505161, + "DVN": 0.0, + "DXCM": 4880.498769845315, + "EA": 3961.2545927477327, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.907402933163295e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.125721006405041e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 2877.629164861808, + "EOG": 0.0, + "EPAM": 6039.026762550674, + "EQIX": 805.7140406653584, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.107379899756238, + "EXPE": 4447.501005069301, + "EXR": 5.942375031560975e-14, + "F": 0.0, + "FANG": 14499.3603647123, + "FAST": 3262.3349103826026, + "FCX": 0.0, + "FDS": 2566.588109866701, + "FDX": 7699.175319046102, + "FE": 0.0, + "FFIV": 3526.998866171256, + "FI": 2.536541734294402e-13, + "FICO": 1526.9793962390522, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.401332531632535e-14, + "FTNT": 5982.640532308, + "FTV": 0.0, + "GD": 3.8713367746049916e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1741.5121603101315, + "GEN": 0.0, + "GEV": 23485.399017191674, + "GILD": 8965.689609050885, + "GIS": 7699.146408128855, + "GL": 0.29978878487148863, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23481.229168778635, + "GOOGL": 1760.3077972287194, + "GPC": 0.0, + "GPN": -1.0550795909325607e-13, + "GRMN": 2232.1091754512104, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0852949795092974, + "HBAN": 0.0, + "HCA": 5646.04360714239, + "HD": 8269.108054708951, + "HES": 0.0, + "HIG": 5845.044725860708, + "HII": 0.7358974224133379, + "HLT": -1.3699674503464414e-13, + "HOLX": 2878.7939328944167, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10830.44048852132, + "HUBB": 1.3071614783692325e-13, + "HUM": 1119.045140545267, + "HWM": 2091.962999887551, + "IBM": 0.0, + "ICE": 731.1299148678961, + "IDXX": -9.86083207049951, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4101.539125281937, + "INTC": 238.88618623679844, + "INTU": 1265.4007886725396, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04540335252542542, + "IRM": 0.0, + "ISRG": 6643.936396484418, + "IT": 7.616636409779305e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2549.4700578552192, + "JCI": 0.0, + "JKHY": 842.215595484234, + "JNJ": 13434.833902726568, + "JNPR": 0.0, + "JPM": 2557.672667323032, + "K": 483.29713367639295, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -19.144614080871428, + "KMB": 4802.990962921469, + "KMI": 0.0, + "KMX": 1.1597376494762963, + "KO": 198.8887681111711, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21869805007583584, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6618017115640262, + "LKQ": 5065.821346601446, + "LLY": 1.4966675353764713, + "LMT": 8123.424246844442, + "LNT": 0.0, + "LOW": -2.8222140029185974e-13, + "LRCX": 906.1807160102728, + "LULU": 1730.7524289379442, + "LUV": 27.576777911661946, + "LVS": 1813.9988056782136, + "LW": 28.642499411268474, + "LYB": 3605.6847033604654, + "LYV": 2854.489172115726, + "MA": 31421.533274963633, + "MAA": 0.0, + "MAR": -6.055279079707119e-13, + "MAS": 0.0, + "MCD": 10753.214773796057, + "MCHP": 2390.9490116785346, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3429390459178678, + "MET": -0.03627740451863124, + "META": 21433.106023727763, + "MGM": 4274.134094717028, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6842.028331087233, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5236.000136502352, + "MO": -22.16193467748136, + "MOH": 1757.6529892062113, + "MOS": 0.0, + "MPC": 14993.117378945168, + "MPWR": -9.566281169541148e-13, + "MRK": 5687.13260220859, + "MRNA": 7602.468366615956, + "MRO": 0.0, + "MS": 6271.554860641083, + "MSCI": 5460.294275727416, + "MSFT": 37192.65078318777, + "MSI": 0.0, + "MTB": -6.350725146217819, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3272.1865057008486, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16499.485641961415, + "NI": 0.0, + "NKE": -2.994509932697195e-14, + "NOC": -3.944788656182816e-13, + "NOW": 5049.076734411901, + "NRG": 0.0, + "NSC": -2.7678558825568038e-14, + "NTAP": 5977.946613780884, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 135887.36173127778, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8647.4485636013, + "O": 0.0, + "ODFL": 3905.794299691047, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.765099876117424, + "ORCL": 7202.79150560234, + "ORLY": -0.7311208386131335, + "OTIS": 1675.5393460514626, + "OXY": 0.0, + "PANW": 4666.8142062422185, + "PARA": 2157.724873426842, + "PAYC": 0.0, + "PAYX": 497.27445569242815, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11938.492999843651, + "PFE": 0.0, + "PFG": 173.35230491122067, + "PG": 1.0679558208311122, + "PGR": 8346.933535489548, + "PH": 0.0, + "PHM": -12.013534384815339, + "PKG": -5.027631756612602e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.88439688593362, + "POOL": 1294.7080015148092, + "PPG": -0.4203484073499591, + "PPL": 0.0, + "PRU": 769.7033431468092, + "PSA": 0.0, + "PSX": 2960.2361037639857, + "PTC": 2.6355489815361156e-14, + "PWR": -5.1527945156385595, + "PYPL": 0.0, + "QCOM": 4551.183637980403, + "QRVO": 0.0, + "RCL": 2461.458530948436, + "REG": 0.0, + "REGN": 1090.8954653144865, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": -26.334687303388257, + "ROK": 1.206494320978607, + "ROL": 0.0, + "ROP": 5674.571543553857, + "ROST": 1159.2561303222599, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6135.403732345704, + "SBUX": 8452.409172463127, + "SCHW": 127.00388345374817, + "SHW": 1.3940079833785688, + "SJM": 1.0269256696052225, + "SLB": 0.0, + "SMCI": 9141.941224435472, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.48277405788883, + "SOLV": -1.5309200437601868e-12, + "SPG": 0.0, + "SPGI": -5.749702053761864, + "SRE": 0.0, + "STE": 0.5003419062416546, + "STLD": -2.7735530051166074e-14, + "STT": 339.7892398443047, + "STX": -13.443328629974998, + "STZ": -2.0858185550347867, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.847370108193021, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4731.475203643178, + "TDY": -15.384144669048265, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 452.81648441976586, + "TMO": 0.0, + "TMUS": 8634.412769548839, + "TPR": 2770.52950256808, + "TRGP": 415.6574682701034, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.8472025438782076e-12, + "TSLA": 104014.3902377417, + "TSN": 5068.716189216806, + "TT": 0.0, + "TTWO": 740.8725790199039, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3970.088321751941, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3563.2123508273075, + "UNH": 20281.915431777183, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 144.84239450496574, + "V": 1875.9465568177884, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8691.34399066532, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3221.511109546586, + "VRTX": 2922.5683062894286, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.1347307320863283e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.858193290950729, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.6018200657754194, + "WMB": 0.0, + "WMT": 12205.486144377577, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3087.039720824271, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index f79099a79..567a6943e 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -66784,5 +66784,510 @@ "ZBH": 4.345466563659248e-09, "ZBRA": 2.5661285093673622e-09, "ZTS": 1.2160320278077554e-08 + }, + "2024-07-19 13:30:00+00:00": { + "A": 9.061892406921765e-10, + "AAL": 0.0005256379739850065, + "AAPL": 0.040052381250326174, + "ABBV": 0.004033853493443669, + "ABNB": 9.063114903255994e-10, + "ABT": 0.0027362372585250446, + "ACGL": 2.631353671652445e-09, + "ACN": 3.38366232663339e-09, + "ADBE": 0.009540923312991082, + "ADI": 4.831773675691439e-09, + "ADM": 2.408770910617617e-09, + "ADP": 4.061218659663384e-09, + "ADSK": 3.361988524988913e-09, + "AEE": 1.0517423827520634e-09, + "AEP": 1.0775552907723568e-09, + "AES": 4.923675062822545e-10, + "AFL": 0.0029842808791862227, + "AIG": 8.705419113764376e-10, + "AIZ": 3.352485458174681e-09, + "AJG": 2.2118808586642854e-09, + "AKAM": 5.539166105957855e-05, + "ALB": 4.190697731117478e-10, + "ALGN": 0.0010436897502522178, + "ALL": 2.8441877973255902e-09, + "ALLE": 9.61603821016465e-10, + "AMAT": 0.0017750287632606109, + "AMCR": 2.697605157057191e-10, + "AMD": 0.023706648093361413, + "AME": 1.0657220215012547e-09, + "AMGN": 0.005236854014313597, + "AMP": 7.768414075789266e-09, + "AMT": 0.0005350437567648937, + "AMZN": 0.03046317421293315, + "ANET": 0.00304471303596896, + "ANSS": 0.00015341547971152566, + "AON": 5.296252299607555e-09, + "AOS": 9.149279516641338e-10, + "APA": 5.913604725131605e-10, + "APD": 2.3012501578761277e-09, + "APH": 1.4120382073541974e-08, + "APTV": 2.0002501340544696e-09, + "ARE": 8.48934850014371e-10, + "ATO": 1.3095704291530774e-09, + "AVB": 1.1713595231243423e-09, + "AVGO": 0.018298028407994046, + "AVY": 1.3342301487626808e-09, + "AWK": 2.4681608266832118e-09, + "AXON": 0.004101318100530118, + "AXP": 2.1460013625029833e-09, + "AZO": 3.0180685110573176e-08, + "BA": 7.366014804648852e-09, + "BAC": 1.3739926593943226e-09, + "BALL": 2.829218136452421e-09, + "BAX": 1.9419839846855322e-09, + "BBWI": 1.4788897390548185e-09, + "BBY": 0.0004490319502726807, + "BDX": 2.667674357641585e-09, + "BEN": 0.0001603072106331895, + "BF-B": 2.0666561593127864e-09, + "BG": 0.0011484605031060805, + "BIIB": 0.0020709344717585215, + "BIO": 1.0703967248361756e-09, + "BK": 1.1962827484643222e-09, + "BKNG": 0.001907702753742403, + "BKR": 6.026803520878319e-10, + "BLDR": 0.0003187514340200682, + "BLK": 3.296592027331192e-08, + "BMY": 7.251935753799617e-05, + "BR": 1.9015712086077437e-09, + "BRK-B": 2.73336401318976e-09, + "BRO": 2.1157039424680685e-08, + "BSX": 1.9297549681767354e-09, + "BWA": 1.2907236024593496e-09, + "BX": 0.0011471588369405526, + "BXP": 8.892544017560091e-10, + "C": 1.621958477191652e-09, + "CAG": 2.653387614972738e-09, + "CAH": 2.1377555378168858e-09, + "CARR": 0.017122335190946428, + "CAT": 7.530399982112697e-10, + "CB": 0.0002548358605845649, + "CBOE": 7.76584341512796e-09, + "CBRE": 0.0039460670686011345, + "CCI": 0.00025752858293060345, + "CCL": 8.210827384543794e-10, + "CDNS": 3.5990913406901887e-09, + "CDW": 0.0003444542450722049, + "CE": 1.973306001976029e-09, + "CEG": 0.030640488786850533, + "CF": 0.008249992459254027, + "CFG": 1.4137087445924123e-09, + "CHD": 0.002110845363569431, + "CHRW": 2.8686976432509514e-09, + "CHTR": 0.005797314151154947, + "CI": 5.721637410504308e-09, + "CINF": 8.39267242017284e-09, + "CL": 8.20872907092249e-06, + "CLX": 1.2708995802251723e-05, + "CMCSA": 0.0054409905752246775, + "CME": 0.003948749041434083, + "CMG": 0.004649642739769954, + "CMI": 1.009981127721305e-09, + "CMS": 9.288878691458172e-10, + "CNC": 0.0007331956765835062, + "CNP": 8.79950318884236e-10, + "COF": 0.007823283768080601, + "COO": 2.1624351255305147e-09, + "COP": 1.5056860684565956e-09, + "COR": 0.0028711098703375483, + "COST": 2.2184749630801016e-09, + "CPAY": 6.1308197237413815e-09, + "CPB": 3.605872766625687e-09, + "CPRT": 0.0006066085974499287, + "CPT": 9.946714295594953e-10, + "CRL": 5.389296330466358e-10, + "CRM": 0.006324405334096926, + "CRWD": 0.0026530957104605856, + "CSCO": 0.005956287095929027, + "CSGP": 2.133021399087054e-09, + "CSX": 2.2613006083215067e-09, + "CTAS": 2.434845309835016e-09, + "CTLT": 1.0956434571299253e-09, + "CTRA": 6.290402185252158e-10, + "CTSH": 0.009456250194149373, + "CTVA": 9.436420866591077e-05, + "CVS": 1.923431439305258e-09, + "CVX": 2.3352945419171177e-09, + "CZR": 0.007438003071831926, + "D": 1.6827098439034614e-09, + "DAL": 0.0005501916791184314, + "DAY": 8.033296177516282e-10, + "DD": 1.4015226391137048e-09, + "DE": 2.3669145546358625e-09, + "DECK": 0.0008921363277235471, + "DFS": 0.0031871147455920313, + "DG": 1.264211189278956e-09, + "DGX": 2.9361459236334765e-09, + "DHI": 1.0181473770497114e-08, + "DHR": 0.0016992562524071491, + "DIS": 2.425504542129831e-09, + "DLR": 1.9251481339919474e-09, + "DLTR": 0.000903366637567644, + "DOC": 5.025494700018961e-10, + "DOV": 1.0954540078994793e-09, + "DOW": 1.4511413048792948e-09, + "DPZ": 0.0002959306689494279, + "DRI": 2.005474252822502e-06, + "DTE": 1.232724313032323e-09, + "DUK": 9.419274567129746e-09, + "DVA": 0.0028775748406747793, + "DVN": 6.042091806566562e-10, + "DXCM": 0.004121118435312197, + "EA": 0.003332587039171547, + "EBAY": 1.438250663204915e-09, + "ECL": 1.3537246895219791e-09, + "ED": 1.9055902316643993e-09, + "EFX": 1.149282599592857e-09, + "EG": 6.086622298717363e-09, + "EIX": 1.8512306920586526e-09, + "EL": 1.3132455097193426e-09, + "ELV": 4.037313618744866e-09, + "EMN": 1.0088229824540626e-09, + "EMR": 6.907879899155122e-10, + "ENPH": 0.0026972984055148915, + "EOG": 1.418190300056754e-09, + "EPAM": 0.005099385020840198, + "EQIX": 0.00050284863268921, + "EQR": 1.1474150162637082e-09, + "EQT": 4.306067896202627e-10, + "ES": 8.964300084587273e-10, + "ESS": 1.6248864194414289e-09, + "ETN": 6.240233396275988e-10, + "ETR": 1.7373036449886242e-09, + "ETSY": 2.7584990928517993e-09, + "EVRG": 6.26451918811052e-10, + "EW": 3.210835324378903e-09, + "EXC": 1.2238514926532692e-09, + "EXPD": 4.383551765406348e-09, + "EXPE": 0.0037554757667305583, + "EXR": 3.4344783051624824e-09, + "F": 7.921229983363679e-10, + "FANG": 0.012243326092264119, + "FAST": 0.0027547315087548836, + "FCX": 6.452875034070131e-10, + "FDS": 0.0018627331648650445, + "FDX": 0.006162860012899795, + "FE": 1.0513127225149036e-09, + "FFIV": 0.0028329486269976006, + "FI": 3.862216794007414e-09, + "FICO": 0.0013176949198410598, + "FIS": 1.4403416080830976e-09, + "FITB": 1.9882886706486623e-09, + "FMC": 1.4936908737474448e-09, + "FOX": 7.094176350254295e-10, + "FOXA": 9.827305916187032e-10, + "FRT": 9.381094332192454e-10, + "FSLR": 6.320591497130958e-10, + "FTNT": 0.005051771517112247, + "FTV": 6.984446799936855e-10, + "GD": 4.164344950339953e-09, + "GDDY": 4.540994725701126e-09, + "GE": 1.1495893818797964e-09, + "GEHC": 0.0014705421435523248, + "GEN": 8.324361819002046e-10, + "GEV": 0.016225245285541267, + "GILD": 0.007401132410479654, + "GIS": 0.00650119962304032, + "GL": 2.9800748083743053e-09, + "GLW": 1.0362404473369978e-09, + "GM": 1.009558581028245e-09, + "GNRC": 1.0481692695929512e-09, + "GOOG": 0.020269766966312962, + "GOOGL": 0.0017258874862003302, + "GPC": 2.46308803167329e-09, + "GPN": 3.950265886810275e-09, + "GRMN": 0.0018848044621511551, + "GS": 2.054475987849654e-09, + "GWW": 8.359880350445627e-10, + "HAL": 6.377707261940444e-10, + "HAS": 9.122322253766951e-07, + "HBAN": 6.116750765786667e-10, + "HCA": 0.004719501819749539, + "HD": 0.0071312874672205245, + "HES": 1.5268469459138637e-09, + "HIG": 0.004935558562611773, + "HII": 1.026176346878872e-08, + "HLT": 3.234167856408036e-09, + "HOLX": 0.0024308645005438737, + "HON": 1.5188869374290765e-09, + "HPE": 6.217452596789372e-10, + "HPQ": 7.685961887676955e-10, + "HRL": 2.289608316508374e-09, + "HSIC": 2.411145098989466e-09, + "HST": 7.912585222287772e-10, + "HSY": 0.009145272669664372, + "HUBB": 4.4039700135708386e-10, + "HUM": 0.0009385552823375957, + "HWM": 0.0017664693838622344, + "IBM": 1.0490977128174849e-09, + "ICE": 0.0006173680725501589, + "IDXX": 3.0691409828388953e-09, + "IEX": 1.1362041307995688e-09, + "IFF": 1.2504700960812998e-09, + "INCY": 0.003463357349938588, + "INTC": 0.0002017166924251438, + "INTU": 0.0011408462257463585, + "INVH": 7.774224375982592e-10, + "IP": 9.858658872378319e-10, + "IPG": 1.7348304286679929e-09, + "IQV": 1.0596730919824726e-09, + "IR": 1.8886488368155483e-08, + "IRM": 1.8049913236731504e-09, + "ISRG": 0.005610109594511551, + "IT": 4.378676224718974e-09, + "ITW": 1.4940423065475443e-09, + "IVZ": 7.713793123524236e-10, + "J": 1.7537267192898112e-09, + "JBHT": 2.036625547119078e-09, + "JBL": 0.0021527956286786338, + "JCI": 7.391844384843119e-10, + "JKHY": 0.000711215823056352, + "JNJ": 0.011344438654140924, + "JNPR": 1.084347500834475e-09, + "JPM": 0.002159704013824535, + "K": 0.0004080986425491182, + "KDP": 7.228828255679113e-10, + "KEY": 5.198326570779048e-10, + "KEYS": 1.4584520175143065e-09, + "KHC": 4.0448819516303874e-10, + "KIM": 7.103587031042278e-10, + "KKR": 3.236663166341174e-09, + "KLAC": 0.00028229605644861967, + "KMB": 0.0040556653259035584, + "KMI": 3.266866055599025e-10, + "KMX": 9.24188250302782e-09, + "KO": 0.00016794115104744206, + "KR": 4.240113989959224e-09, + "KVUE": -1.4707712450323884e-10, + "L": 2.0628470938841898e-09, + "LDOS": 8.888296372211494e-09, + "LEN": 5.011769822250098e-09, + "LH": 8.877707209904929e-10, + "LHX": 1.8098463962064496e-09, + "LIN": 8.738501155569697e-09, + "LKQ": 0.004277599745206155, + "LLY": 7.011309768920143e-09, + "LMT": 0.006859427258121898, + "LNT": 8.262915170828694e-10, + "LOW": 4.058929276394422e-09, + "LRCX": 0.0007142139811774994, + "LULU": 0.0014615645400749798, + "LUV": 2.3286739098105045e-05, + "LVS": 0.0015317476660965895, + "LW": 2.4179124276003107e-05, + "LYB": 0.0030446504421229293, + "LYV": 0.0024103464177531626, + "MA": 0.026112339855189497, + "MAA": 1.2041540714429045e-09, + "MAR": 3.271386897555605e-09, + "MAS": 1.354412694643703e-09, + "MCD": 0.009047039751932186, + "MCHP": 0.0020228261681744615, + "MCK": 8.994812918340998e-09, + "MCO": 1.1858812074843234e-09, + "MDLZ": 1.428357362690467e-09, + "MDT": 1.1322413566514941e-06, + "MET": 1.5891900480932697e-09, + "META": 0.018830297127764812, + "MGM": 0.0036071328458454253, + "MHK": 1.5226719856321146e-09, + "MKC": 1.75633397828979e-09, + "MKTX": 0.0056161893840522914, + "MLM": 9.641010986736388e-10, + "MMC": 1.2567112397307788e-09, + "MMM": 1.4430074436345664e-09, + "MNST": 0.004421306722928039, + "MO": 1.508432115719942e-09, + "MOH": 0.0014803454248512719, + "MOS": 5.113377030282976e-10, + "MPC": 0.012626905870023143, + "MPWR": 2.6753066953805847e-08, + "MRK": 0.004802240053130657, + "MRNA": 0.006419564470932685, + "MRO": 3.024100276230501e-10, + "MS": 0.005295728142093355, + "MSCI": 0.003949418302581635, + "MSFT": 0.032082619939678564, + "MSI": 2.4586004719479553e-09, + "MTB": 6.7178260210677725e-09, + "MTCH": 4.3152175158782265e-09, + "MTD": 2.2161841807718614e-09, + "MU": 0.003000115660160065, + "NCLH": 1.1282237028746141e-09, + "NDAQ": 1.8035369733581193e-09, + "NDSN": 1.0880709199640999e-09, + "NEE": 8.445156240386751e-10, + "NEM": 7.069371618703414e-10, + "NFLX": 0.014015187954494407, + "NI": 7.10796795844049e-10, + "NKE": 5.869570432457123e-09, + "NOC": 9.541370956151164e-09, + "NOW": 0.004263538903688984, + "NRG": 4.323664717160013e-10, + "NSC": 3.06993458162921e-09, + "NTAP": 0.005047773183973247, + "NTRS": 1.1424129273634716e-09, + "NUE": 2.31976017006583e-09, + "NVDA": 0.11577545495284068, + "NVR": 0.0013938070604918248, + "NWS": 4.898513105639181e-10, + "NWSA": 4.850138852267944e-10, + "NXPI": 0.007300144554549734, + "O": 2.315546390631369e-09, + "ODFL": 0.002898890182074136, + "OKE": 1.1907576752820576e-09, + "OMC": 1.4038041886620872e-09, + "ON": 2.8581583284281866e-09, + "ORCL": 0.006082076110304247, + "ORLY": 1.3574355331766398e-08, + "OTIS": 0.0014148354414209685, + "OXY": 8.395978642644015e-10, + "PANW": 0.00430503313803478, + "PARA": 0.0018219936294590928, + "PAYC": 5.5130440176924795e-09, + "PAYX": 0.00041352419529312533, + "PCAR": 2.3361251542234915e-09, + "PCG": 6.539706423912686e-10, + "PEG": 1.3940204748216837e-09, + "PEP": 0.010009244379697925, + "PFE": 1.6642781753937562e-09, + "PFG": 0.00014581662933524082, + "PG": 4.762068891061596e-09, + "PGR": 0.007048200255646139, + "PH": 9.043215929057971e-10, + "PHM": 4.259468922381652e-09, + "PKG": 3.935387961378214e-09, + "PLD": 1.5103320203250017e-09, + "PM": 2.7179650573258125e-09, + "PNC": 2.7995948625080852e-09, + "PNR": 6.250853110707312e-10, + "PNW": 9.98232233137058e-10, + "PODD": 7.611113507083594e-09, + "POOL": 0.0010710304986353912, + "PPG": 2.5718748765934154e-09, + "PPL": 1.0620284120669604e-09, + "PRU": 0.0005774094043071215, + "PSA": 1.2438618695817708e-09, + "PSX": 0.002335149130514839, + "PTC": 2.501655680114473e-09, + "PWR": 2.9053319628371426e-09, + "PYPL": 5.852446665702082e-10, + "QCOM": 0.003906803418609912, + "QRVO": 4.4924841837724226e-10, + "RCL": 0.001911669613964059, + "REG": 1.1345887947933436e-09, + "REGN": 0.0009212638720237298, + "RF": 8.702351828706674e-10, + "RJF": 2.10167020019007e-09, + "RL": 1.3056236312494103e-09, + "RMD": 7.337805195122707e-05, + "ROK": 2.168517273760406e-09, + "ROL": 1.0021306393543674e-09, + "ROP": 0.00472442754253295, + "ROST": 0.0009788796005631836, + "RSG": 2.3712270179726252e-09, + "RTX": 2.6793350545142663e-09, + "RVTY": 7.964948255605358e-10, + "SBAC": 0.0051807638870840726, + "SBUX": 0.007137256394469756, + "SCHW": 0.00010618243262542144, + "SHW": 2.6226495789888222e-08, + "SJM": 1.3475000018202533e-08, + "SLB": 6.719412166370274e-10, + "SMCI": 0.009086313292138208, + "SNA": 1.1903668177656268e-09, + "SNPS": 9.811522674570068e-10, + "SO": 8.843391677618073e-06, + "SOLV": -3.651410422488599e-10, + "SPG": 1.332992136244388e-09, + "SPGI": 2.0129563054622414e-09, + "SRE": 1.6116943618938487e-09, + "STE": 4.2537099650596715e-07, + "STLD": 3.984472511911746e-09, + "STT": 0.00028691852585578464, + "STX": 2.7233034088148714e-09, + "STZ": 2.5677959632487347e-08, + "SWK": 1.0264174305662492e-09, + "SWKS": 7.26178823126441e-10, + "SYF": 1.9770104354242373e-09, + "SYK": 8.743714277916152e-09, + "SYY": 2.4887907070038374e-09, + "T": 1.5054606047083922e-09, + "TAP": 1.4124128433754696e-09, + "TDG": 0.004184861044560313, + "TDY": 3.670190602636129e-09, + "TECH": 2.774386725349531e-09, + "TEL": 1.640699624226692e-09, + "TER": 1.0666404606900923e-09, + "TFC": 1.0541113744148706e-09, + "TFX": 2.270207243002698e-09, + "TGT": 2.7900946222627308e-09, + "TJX": 0.00038235848183645915, + "TMO": 2.5123004950879532e-09, + "TMUS": 0.007165526846916804, + "TPR": 0.0023394500105526255, + "TRGP": 0.0003509702017161915, + "TRMB": 2.1022834368977935e-09, + "TROW": 2.045466227672401e-09, + "TRV": 2.208359130959253e-09, + "TSCO": 4.262616946483699e-09, + "TSLA": 0.08811013110262048, + "TSN": 0.0042800456446689525, + "TT": 8.53429605834014e-10, + "TTWO": 0.0006255990511037626, + "TXN": 1.9656705961829057e-09, + "TXT": 8.469337762729126e-10, + "TYL": 1.199985944222471e-08, + "UAL": 0.0033523683487184023, + "UBER": 1.291106847631643e-09, + "UDR": 7.255065835025563e-10, + "UHS": 1.4182068668245553e-09, + "ULTA": 0.002983919863578278, + "UNH": 0.016349372241492903, + "UNP": 2.8486569179825337e-09, + "UPS": 8.233588559026629e-10, + "URI": 1.7702298205163183e-09, + "USB": 1.092272594435714e-09, + "USDOLLAR": 1.0477275742132308e-07, + "V": 0.001584014100267629, + "VICI": 8.682719995140248e-10, + "VLO": 4.102836423810345e-09, + "VLTO": 0.007339031566895799, + "VMC": 5.825950219575739e-10, + "VRSK": 2.6481850072955223e-09, + "VRSN": 0.002693723264508593, + "VRTX": 0.002181790645867472, + "VST": 6.411250690569524e-10, + "VTR": 1.6658510778388255e-09, + "VTRS": 6.829272540563835e-10, + "VZ": 2.079613169944308e-09, + "WAB": 8.259101367314142e-10, + "WAT": 2.9077176566864413e-09, + "WBA": 3.830207065916322e-10, + "WBD": 2.4078014338726286e-10, + "WDC": 1.2089541516859849e-09, + "WEC": 2.249852136110454e-09, + "WELL": 1.4027768155399227e-09, + "WFC": 2.8155696016155006e-09, + "WM": 3.454730740117431e-08, + "WMB": 3.405143338493432e-09, + "WMT": 0.010306374162467855, + "WRB": 2.140764665750623e-09, + "WST": 1.3184745332966738e-09, + "WTW": 1.8246201895092675e-09, + "WY": 6.031318638450124e-10, + "WYNN": 0.002557800518198338, + "XEL": 1.163910856404033e-09, + "XOM": 2.0304151589763566e-09, + "XYL": 1.6494643834608365e-09, + "YUM": 3.143044721898756e-09, + "ZBH": 1.078509862350218e-09, + "ZBRA": 7.153416709915194e-10, + "ZTS": 2.706014152868104e-09 } } \ No newline at end of file From 724fd1a7f3d5c8fd7c769da70ad74922c692cff1 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 20 Jul 2024 14:00:03 +0400 Subject: [PATCH 056/125] acting on deprecation of readthedocs custom build from july 2024 email --- docs/conf.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 799ae509b..cafa9c2c7 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -41,6 +41,17 @@ # -- General configuration --------------------------------------------------- +# Set canonical URL from the Read the Docs Domain; from ReadTheDocs email +# in July 2024 +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") + +# From same email also this is suggested, but we don't want the ReadTheDocs +# extension to continue being there; if you uncomment be careful because the +# dictionary is defined below. +# Tell Jinja2 templates the build is running on Read the Docs +# if os.environ.get("READTHEDOCS", "") == "True": +# html_context["READTHEDOCS"] = True + # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. From ebd3ae441960f6e4c6fba0f24184b985b26a39e3 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Sat, 20 Jul 2024 14:19:32 +0400 Subject: [PATCH 057/125] trying RTD addons enabled through new RTD dashboard --- docs/conf.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index cafa9c2c7..23354baa4 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,13 +45,6 @@ # in July 2024 html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") -# From same email also this is suggested, but we don't want the ReadTheDocs -# extension to continue being there; if you uncomment be careful because the -# dictionary is defined below. -# Tell Jinja2 templates the build is running on Read the Docs -# if os.environ.get("READTHEDOCS", "") == "True": -# html_context["READTHEDOCS"] = True - # Add any Sphinx extension module names here, as strings. They can be # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. @@ -137,6 +130,12 @@ "doc_path": "docs", } +# From July 2024 email, see +# https://docs.readthedocs.io/en/stable/addons.html#enabling-read-the-docs-addons +# Tell Jinja2 templates the build is running on Read the Docs +if os.environ.get("READTHEDOCS", "") == "True": + html_context["READTHEDOCS"] = True + # however this seems confusing to me # html_show_sourcelink = False From fa52284bb1e1c6ebcfcf9175f601b635b1580c8d Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 22 Jul 2024 11:31:18 +0400 Subject: [PATCH 058/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-22 --- .../ftse100_daily_initial_holdings.json | 167 ++++++++++++++---- .../ftse100_daily_target_weights.json | 103 +++++++++++ 2 files changed, 238 insertions(+), 32 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index bac874c0c..4332114f6 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -10898,32 +10898,32 @@ }, "2024-07-19 07:00:00+00:00": { "AAF.L": 22210.820599087623, - "AAL.L": 10110.56516908693, - "ABF.L": 10066.475548254324, - "ADM.L": 10475.350985316127, + "AAL.L": 10048.928804023915, + "ABF.L": 10002.561417789217, + "ADM.L": 10363.186615301276, "AHT.L": 16260.471246464904, "ANTO.L": 17593.06787804085, "AUTO.L": 10326.586048384574, "AV.L": 12420.03184744423, "AZN.L": 12363.809899347661, - "BA.L": 10206.427022959493, - "BARC.L": 10047.230862859398, - "BATS.L": 10404.155135112464, + "BA.L": 10336.238495429569, + "BARC.L": 10089.766478840656, + "BATS.L": 10672.433107975963, "BDEV.L": 10309.925458264697, "BEZ.L": 10250.68707006526, "BKG.L": 9850.144687607202, "BME.L": 10660.093122169486, - "BNZL.L": 9605.630771961683, - "BP.L": 1.38120430903135e-12, - "BRBY.L": 10129.372079750461, + "BNZL.L": 9744.667592449498, + "BP.L": 1.405301252716061e-12, + "BRBY.L": 10053.006655302861, "BT-A.L": 0.0, "CCH.L": 0.0, "CNA.L": 10487.534772328418, "CPG.L": 0.0, - "CRDA.L": 12346.985502905934, + "CRDA.L": 12259.311022106647, "CTEC.L": 43.68975592054098, "DARK.L": 25546.649635526846, - "DCC.L": 22405.225218852964, + "DCC.L": 22627.86069979911, "DGE.L": 10070.836721833944, "DPLM.L": 12698.691159098784, "EDV.L": 7083.823106688778, @@ -10934,26 +10934,26 @@ "FRAS.L": 10351.336033446867, "FRES.L": 9977.588245644873, "GBPOUND": 1969.5567083503074, - "GLEN.L": 10264.263475286027, - "GSK.L": 10807.74878069698, + "GLEN.L": 9899.351568064938, + "GSK.L": 10872.18716362263, "HIK.L": 11225.693608113075, - "HL.L": 10884.385805277527, + "HL.L": 11045.040946314826, "HLMA.L": 10446.551190615557, "HLN.L": 0.0, - "HSBA.L": 10260.572513425113, + "HSBA.L": 10069.372217134414, "HWDN.L": 10288.965259125594, - "IAG.L": 10294.904316644579, - "ICG.L": 10722.619192065926, + "IAG.L": 10351.799518030803, + "ICG.L": 10661.925121167442, "IHG.L": 16419.532967490213, "III.L": 9119.48260567636, - "IMB.L": 10420.54841748056, + "IMB.L": 10501.406213154509, "IMI.L": 10986.900779024187, "INF.L": 10144.942483943103, "ITRK.L": 9493.277107686925, - "JD.L": 10803.974004335816, + "JD.L": 10706.240821207997, "KGF.L": 10428.239444671626, "LAND.L": 0.0, - "LGEN.L": 10477.81536559534, + "LGEN.L": 10409.003091215347, "LLOY.L": 0.0, "LMP.L": 0.0, "LSEG.L": 28513.8978218671, @@ -10961,42 +10961,145 @@ "MNDI.L": 9860.247989033563, "MNG.L": 10404.768266296129, "MRO.L": 43027.04927460653, - "NG.L": 10712.255645651878, + "NG.L": 10648.560199842253, "NWG.L": 10445.303907474456, "NXT.L": 8987.011460922968, "PHNX.L": 0.0, - "PRU.L": 10057.581585969623, + "PRU.L": 10103.531260712378, "PSH.L": 53895.90503827974, - "PSN.L": 10900.07557777884, + "PSN.L": 10850.4330735209, "PSON.L": 1037.604551762283, "REL.L": 10463.405591615985, "RIO.L": 10590.329750971947, "RKT.L": 8942.861995981475, "RMV.L": 11977.14306198185, - "RR.L": 10201.872702546632, + "RR.L": 10285.357746829568, "RTO.L": 10303.492172457565, "SBRY.L": 0.0, "SDR.L": 10640.635089329118, - "SGE.L": 37445.69677885291, + "SGE.L": 37681.546613215825, "SGRO.L": 0.0, - "SHEL.L": 9.128804908774414e-13, + "SHEL.L": 9.06448357772791e-13, "SMDS.L": 10344.022383753438, "SMIN.L": 0.0, "SMT.L": 10262.720771957844, "SN.L": 3365.802754072005, "SPX.L": 9019.97097164419, - "SSE.L": 10933.20565398078, + "SSE.L": 11059.046881020295, "STAN.L": 10426.202950065528, "SVT.L": 10342.444746077786, - "TSCO.L": 10448.602425430117, - "TW.L": 10467.599547952008, - "ULVR.L": 8967.666513442578, + "TSCO.L": 10595.719790938572, + "TW.L": 10394.213543382704, + "ULVR.L": 9089.015180742215, "UTG.L": 10290.256226880243, "UU.L": 10568.3439144202, - "VOD.L": 10499.12567031521, - "VTY.L": 10510.939759036142, + "VOD.L": 10398.683795301442, + "VTY.L": 10655.80722891566, "WEIR.L": 9801.860228449585, "WPP.L": 10542.283538159734, "WTB.L": 11788.324584445112 + }, + "2024-07-22 07:00:00+00:00": { + "AAF.L": 22135.401567674242, + "AAL.L": 9901.44178762313, + "ABF.L": 10062.48091510026, + "ADM.L": 10279.063337790132, + "AHT.L": 15946.60914371203, + "ANTO.L": 18072.836475191554, + "AUTO.L": 10380.772899774449, + "AV.L": 12448.358845544662, + "AZN.L": 12521.428005680411, + "BA.L": 10311.898844341433, + "BARC.L": 10511.943082534483, + "BATS.L": 10781.421034451752, + "BDEV.L": 10403.708889470226, + "BEZ.L": 9961.076580353376, + "BKG.L": 9950.944367177472, + "BME.L": 10156.334071530979, + "BNZL.L": 9774.892988207708, + "BP.L": 1.4059152269681238e-12, + "BRBY.L": 9570.265641819926, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10379.106056846182, + "CPG.L": 0.0, + "CRDA.L": 12262.334280065257, + "CTEC.L": 43.72465402245525, + "DARK.L": 25731.324747950213, + "DCC.L": 21959.95425696066, + "DGE.L": 10143.769757839982, + "DPLM.L": 8576.945759258066, + "EDV.L": 7111.854063018245, + "ENT.L": 11190.24348410683, + "EXPN.L": 10705.805102534601, + "EZJ.L": 8487.747769752781, + "FCIT.L": 0.0, + "FRAS.L": 10445.27895831082, + "FRES.L": 10707.461794525647, + "GBPOUND": 4396.598311103675, + "GLEN.L": 10308.21320757078, + "GSK.L": 10965.264827848574, + "HIK.L": 11390.239605626135, + "HL.L": 10107.7779799818, + "HLMA.L": 10438.527725799415, + "HLN.L": 0.0, + "HSBA.L": 10188.68101530077, + "HWDN.L": 10467.612512675254, + "IAG.L": 9881.671160903366, + "ICG.L": 10570.88401481971, + "IHG.L": 16600.542027641393, + "III.L": 9203.782874068222, + "IMB.L": 10607.532069976573, + "IMI.L": 11029.204577403269, + "INF.L": 10219.715149572357, + "ITRK.L": 9481.080177784112, + "JD.L": 10584.150222231478, + "KGF.L": 10439.627665991402, + "LAND.L": 0.0, + "LGEN.L": 10422.765686090273, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28532.036433713038, + "MKS.L": 0.0, + "MNDI.L": 9882.222435363785, + "MNG.L": 10249.623065170825, + "MRO.L": 43406.14126416813, + "NG.L": 10787.326022029249, + "NWG.L": 10602.5179882037, + "NXT.L": 9049.631680138218, + "PHNX.L": 0.0, + "PRU.L": 10195.43411600022, + "PSH.L": 55072.671523831654, + "PSN.L": 10814.974141908091, + "PSON.L": 1045.2640341817876, + "REL.L": 10535.900318578682, + "RIO.L": 10497.52569292052, + "RKT.L": 9086.770120054736, + "RMV.L": 12171.686011486105, + "RR.L": 10621.682628595338, + "RTO.L": 11739.598382335496, + "SBRY.L": 0.0, + "SDR.L": 10215.978118633398, + "SGE.L": 37989.96562738275, + "SGRO.L": 0.0, + "SHEL.L": 2799.0000000000027, + "SMDS.L": 10461.08918626092, + "SMIN.L": 0.0, + "SMT.L": 10351.069290366568, + "SN.L": 3378.114789752195, + "SPX.L": 8650.050813818327, + "SSE.L": 11112.978835465803, + "STAN.L": 10524.319046865701, + "SVT.L": 10326.176645808693, + "TSCO.L": 10357.189623828584, + "TW.L": 10467.599547952008, + "ULVR.L": 9117.329869778798, + "UTG.L": 10446.084877152089, + "UU.L": 10521.923662965934, + "VOD.L": 10487.308713977825, + "VTY.L": 10663.855421686743, + "WEIR.L": 9735.939802702123, + "WPP.L": 10653.374704806005, + "WTB.L": 11751.815664534584 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index aabd40146..f98bcf3f8 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10607,5 +10607,108 @@ "WEIR.L": 0.009999997631511885, "WPP.L": 0.009999994518271155, "WTB.L": 0.009999981879015046 + }, + "2024-07-22 07:00:00+00:00": { + "AAF.L": 0.02126569217927444, + "AAL.L": 0.009999999069746367, + "ABF.L": 0.009999805429360872, + "ADM.L": 0.0100000227114112, + "AHT.L": 0.015343826832505875, + "ANTO.L": 0.01739763536113781, + "AUTO.L": 0.010000005656347318, + "AV.L": 0.01194067584478584, + "AZN.L": 0.010000020390690952, + "BA.L": 0.010000004902161788, + "BARC.L": 0.010000001146194972, + "BATS.L": 0.010000002706838169, + "BDEV.L": 0.010000002828263849, + "BEZ.L": 0.010000005347369507, + "BKG.L": 0.010000002544386457, + "BME.L": 0.009999992067467506, + "BNZL.L": 0.009999991488921289, + "BP.L": 2.0264906734436612e-07, + "BRBY.L": 0.009999981780519139, + "BT-A.L": 2.202676430005592e-08, + "CCH.L": 1.1236734895683713e-07, + "CNA.L": 0.009999971877656607, + "CPG.L": 1.143827302874535e-07, + "CRDA.L": 0.00999999868839631, + "CTEC.L": 4.196564757179561e-05, + "DARK.L": 0.02485897872818537, + "DCC.L": 0.020684658043175062, + "DGE.L": 0.009910875223559915, + "DPLM.L": 0.010000005043684188, + "EDV.L": 0.007160730551422131, + "ENT.L": 0.010726912262126373, + "EXPN.L": 0.010000001430961858, + "EZJ.L": 0.008142039072108856, + "FCIT.L": 2.532178744551437e-08, + "FRAS.L": 0.010000003576464186, + "FRES.L": 0.00999999966283692, + "GBPOUND": 1.2695382715661313e-07, + "GLEN.L": 0.009999573333429872, + "GSK.L": 0.009999994635155421, + "HIK.L": 0.010000006756162721, + "HL.L": 0.010000004152449582, + "HLMA.L": 0.010000003337551381, + "HLN.L": 1.108801086782874e-08, + "HSBA.L": 0.009999999176879295, + "HWDN.L": 0.010000000671886087, + "IAG.L": 0.009999711242071014, + "ICG.L": 0.010000009125373015, + "IHG.L": 0.015378570033660381, + "III.L": 0.010000003647755308, + "IMB.L": 0.010000010774388257, + "IMI.L": 0.009999994566557724, + "INF.L": 0.009999936208949702, + "ITRK.L": 0.009999996307354328, + "JD.L": 0.010116824451780942, + "KGF.L": 0.009999993414160356, + "LAND.L": 1.6372747762233477e-08, + "LGEN.L": 0.009999997357209009, + "LLOY.L": 8.268372028219585e-08, + "LMP.L": 4.580330091894594e-08, + "LSEG.L": 0.02717535263704229, + "MKS.L": 4.617547777342169e-08, + "MNDI.L": 0.009999999148115593, + "MNG.L": 0.009999999244025873, + "MRO.L": 0.041637378852475745, + "NG.L": 0.009999986620865218, + "NWG.L": 0.00999999500284178, + "NXT.L": 0.010000006398824776, + "PHNX.L": 2.735465276756872e-08, + "PRU.L": 0.009999997158708385, + "PSH.L": 0.05317279457461395, + "PSN.L": 0.010000001771647737, + "PSON.L": 0.001003462127154434, + "REL.L": 0.009999995388601439, + "RIO.L": 0.010000002765913904, + "RKT.L": 0.00999998979840028, + "RMV.L": 0.01167600373723193, + "RR.L": 0.009999998177616704, + "RTO.L": 0.01000000306677329, + "SBRY.L": 4.416516493485251e-08, + "SDR.L": 0.009999993210191595, + "SGE.L": 0.03643917624586143, + "SGRO.L": 4.9453034718885555e-08, + "SHEL.L": 0.0026851887125585927, + "SMDS.L": 0.009999996450032522, + "SMIN.L": 6.996694460718891e-08, + "SMT.L": 0.009999960758028757, + "SN.L": 0.003241340968367637, + "SPX.L": 0.009999979275916754, + "SSE.L": 0.009999998879889397, + "STAN.L": 0.009999996520268025, + "SVT.L": 0.01000000172243541, + "TSCO.L": 0.009999999425844255, + "TW.L": 0.009999998629560325, + "ULVR.L": 0.009999956534342741, + "UTG.L": 0.010000015102314389, + "UU.L": 0.009999991551549892, + "VOD.L": 0.010000026502835963, + "VTY.L": 0.010000000108604048, + "WEIR.L": 0.009999997852000706, + "WPP.L": 0.009999995804143721, + "WTB.L": 0.009999985221513063 } } \ No newline at end of file From b555be988b3a3c2014ee7784b492c5cd4de2a1ab Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 22 Jul 2024 18:00:37 +0400 Subject: [PATCH 059/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-22 --- .../dow30_daily_initial_holdings.json | 45 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 398ef0c45..6432a901f 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4653,9 +4653,9 @@ "WMT": 0.00039167405865980467 }, "2024-07-19 13:30:00+00:00": { - "AAPL": 216839.74788081957, - "AMGN": 21015.729217066782, - "AMZN": 217040.81050204154, + "AAPL": 216808.8903885424, + "AMGN": 21016.357802264996, + "AMZN": 216933.03100318112, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4672,17 +4672,50 @@ "JNJ": 0.0, "JPM": 0.0, "KO": 0.0, - "MCD": 1.223377189573543e-12, + "MCD": 1.2274784902863006e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 229347.97911792996, + "MSFT": 229337.3944302177, "NKE": 9.925039757093174e-13, "PG": 0.0, "TRV": 0.0, "UNH": 109200.56339793204, - "USDOLLAR": -251.27506638850173, + "USDOLLAR": -251.27504332087196, "V": 34779.160406857925, "VZ": 0.0, "WMT": 0.0003945556262149818 + }, + "2024-07-22 13:30:00+00:00": { + "AAPL": 219171.58544458178, + "AMGN": 20659.461845323352, + "AMZN": 225255.7627846715, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 77903.05169285937, + "CSCO": 44458.5254235781, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 110432.57238862214, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.217626104000781e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 233917.78471906687, + "NKE": 1.0037605859837433e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 105038.57201845692, + "USDOLLAR": 228.5231839778095, + "V": 34381.603898348316, + "VZ": 0.0, + "WMT": 0.000392671532482439 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 6671ce5b0..68c79a954 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4684,5 +4684,38 @@ "V": 0.032733263327390266, "VZ": 1.8017407145892705e-09, "WMT": 1.3497624568514433e-08 + }, + "2024-07-22 13:30:00+00:00": { + "AAPL": 0.2045565479112839, + "AMGN": 0.019281686556561227, + "AMZN": 0.21029212877099537, + "AXP": 7.833173968536244e-09, + "BA": 1.3776712460125541e-08, + "CAT": 6.83064070678888e-09, + "CRM": 0.07286381894967742, + "CSCO": 0.0414938784013375, + "CVX": 7.635850810091443e-09, + "DIS": 1.0017755454326522e-08, + "DOW": 1.1277502081172296e-08, + "GS": 7.922597797049609e-09, + "HD": 0.10306860123940652, + "HON": 4.727717998653725e-09, + "IBM": 3.4252178260336155e-09, + "INTC": 8.917849239227092e-09, + "JNJ": 1.0957214778422808e-08, + "JPM": 1.3266743556984183e-08, + "KO": 8.260072796109225e-09, + "MCD": 2.3493439328639478e-08, + "MMM": 4.627473738058412e-09, + "MRK": 9.400680305127238e-09, + "MSFT": 0.2183199316595496, + "NKE": 2.139811730220126e-08, + "PG": 6.3280012993225325e-09, + "TRV": 5.527680984085862e-09, + "UNH": 0.09803421396635444, + "USDOLLAR": 4.653943997052264e-09, + "V": 0.03208895453660131, + "VZ": 4.860865068363822e-09, + "WMT": 4.286898113707706e-08 } } \ No newline at end of file From 8e8ba1420c573e6d84cbc98c76742168ab90cafc Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 22 Jul 2024 18:01:46 +0400 Subject: [PATCH 060/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-22 --- .../ndx100_daily_initial_holdings.json | 164 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 238 insertions(+), 30 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 531db18a3..f636dd9d5 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14559,7 +14559,7 @@ "ZS": 19147.66676629003 }, "2024-07-19 13:30:00+00:00": { - "AAPL": 7162.687756019534, + "AAPL": 7161.668466040298, "ABNB": 0.0, "ADBE": 11365.08662103117, "ADI": 0.0, @@ -14567,29 +14567,29 @@ "ADSK": 82.95110192733736, "AEP": 0.0, "AMAT": -55.82016118606949, - "AMD": -1.8876268748392352e-11, - "AMGN": 35534.67039359221, - "AMZN": 18395.868394220983, + "AMD": -1.8865305243430413e-11, + "AMGN": 35535.73324359385, + "AMZN": 18386.733257506163, "ANSS": 11.26912729049751, "ARM": 68701.60450168044, - "ASML": 15.986837466474396, - "AVGO": -36.683892295081975, + "ASML": 15.990330889404403, + "AVGO": -36.68729248667617, "AZN": 0.0, "BIIB": 15189.483905477955, "BKNG": 11098.124342395033, "BKR": 0.0, "CCEP": 16481.39010948254, - "CDNS": -88.35365326781032, + "CDNS": -88.4386779181798, "CDW": 13301.820656684311, "CEG": 73759.1597393773, - "CHTR": 18418.88058861611, + "CHTR": 18527.80233879093, "CMCSA": 34524.157636679476, "COST": 0.0, "CPRT": -0.8156229673140668, "CRWD": 11016.867428053623, "CSCO": 57983.31511350266, "CSGP": 5790.821631360576, - "CSX": 2105.9999084472656, + "CSX": 2102.999954223633, "CTAS": 0.0, "CTSH": 27909.56915531384, "DASH": 0.0, @@ -14598,48 +14598,48 @@ "DXCM": 10908.653470482164, "EA": 13910.66311310675, "EXC": 0.0, - "FANG": 28867.459934604733, - "FAST": 21377.784903922875, - "FTNT": 22886.859216414778, - "GEHC": 7275.0028542906375, + "FANG": 28892.345581364352, + "FAST": 21374.695415124384, + "FTNT": 22890.797095866295, + "GEHC": 7277.698854200069, "GFS": 28941.886357755444, "GILD": 30264.67519588003, - "GOOG": -59.24110696517234, - "GOOGL": -2.325467700366234e-12, + "GOOG": -59.257529614184826, + "GOOGL": -2.3266644666370278e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 6508.522283621786, - "INTC": 2.197284464520838, + "INTC": 2.1976023806126137, "INTU": -99.5024069899115, - "ISRG": 8731.218729410302, + "ISRG": 8738.315273458722, "KDP": 0.0, "KHC": 0.0, "KLAC": 11639.718705645739, "LIN": 0.0, "LRCX": -10.142763313640847, - "LULU": 21615.49678930514, + "LULU": 21636.609998813194, "MAR": 0.0, "MCHP": 13033.801698143545, "MDB": 25564.578023074206, "MDLZ": 0.0, - "MELI": 21003.423050534104, - "META": -129.34576820475635, + "MELI": 20905.950699366105, + "META": -129.26159650467258, "MNST": 18174.035407682793, - "MRNA": 20266.43315867396, + "MRNA": 20188.02314829647, "MRVL": 0.0, - "MSFT": 42.391667995135, - "MU": 8.583794930375232, + "MSFT": 42.389711568184765, + "MU": 8.596466389703076, "NFLX": 16492.544400759733, - "NVDA": 17.843266602964274, + "NVDA": 17.84474965754954, "NXPI": 20201.549582494587, "ODFL": 9560.07406978163, "ON": -3.303562322873891, "ORLY": 25919.25128373592, - "PANW": -7.839332948224332, + "PANW": -7.839356010103171, "PAYX": 8448.975379419997, "PCAR": 0.0, "PDD": 27618.96610227478, - "PEP": 27241.26912057117, + "PEP": 27238.06922767685, "PYPL": 6163.110485014989, "QCOM": -7.22198533933662, "REGN": 15090.266335026623, @@ -14649,17 +14649,121 @@ "SNPS": 0.0, "TEAM": 11876.624378620725, "TMUS": 6993.581922114572, - "TSLA": 2186.825978304009, - "TTD": 38792.84698826116, + "TSLA": 2187.4350971539825, + "TTD": 38800.98426613649, "TTWO": 9805.627870201413, "TXN": 0.0, - "USDOLLAR": -347.42605912810404, + "USDOLLAR": -347.42593790239215, "VRSK": 0.0, "VRTX": 11692.009429059603, - "WBA": 362.0381180578671, + "WBA": 362.2943948475665, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, "ZS": 18558.386931239806 + }, + "2024-07-22 13:30:00+00:00": { + "AAPL": 7466.983418780428, + "ABNB": 0.0, + "ADBE": 11956.381031396302, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 83.81492653838362, + "AEP": 0.0, + "AMAT": -55.353066463321355, + "AMD": -1.8799522354807483e-11, + "AMGN": 34829.2434979405, + "AMZN": 19333.545125870336, + "ANSS": 11.286277364505821, + "ARM": 69654.0586053629, + "ASML": 16.202783468875296, + "AVGO": -36.322323599922285, + "AZN": 0.0, + "BIIB": 15100.409025696124, + "BKNG": 11204.960120401429, + "BKR": 0.0, + "CCEP": 16032.49817636077, + "CDNS": -89.59443460731552, + "CDW": 13312.219826636396, + "CEG": 75080.89598725678, + "CHTR": 18049.44499119897, + "CMCSA": 33959.50641002939, + "COST": 0.0, + "CPRT": -0.8201821093923594, + "CRWD": 9236.12224672426, + "CSCO": 56025.50593512147, + "CSGP": 5781.037530640192, + "CSX": 2087.40005493164, + "CTAS": 0.0, + "CTSH": 27058.533724092682, + "DASH": 0.0, + "DDOG": 15854.202719970115, + "DLTR": 27674.60295594123, + "DXCM": 11188.904859046073, + "EA": 13411.777525119373, + "EXC": 0.0, + "FANG": 28391.888200428664, + "FAST": 20927.878954286884, + "FTNT": 23752.274551610688, + "GEHC": 6858.85964908391, + "GFS": 28337.322030197894, + "GILD": 29061.844950780123, + "GOOG": -59.95007813710148, + "GOOGL": -2.349426445088908e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 6668.712525475297, + "INTC": 2.1155974888572984, + "INTU": -100.25476653632045, + "ISRG": 9457.185261880299, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 12473.537617716887, + "LIN": 0.0, + "LRCX": -9.957357963440069, + "LULU": 21247.52173687836, + "MAR": 0.0, + "MCHP": 13164.26458567464, + "MDB": 27932.625943727155, + "MDLZ": 0.0, + "MELI": 21622.60285468529, + "META": -132.09630513385696, + "MNST": 17738.097203670473, + "MRNA": 20485.253226989455, + "MRVL": 0.0, + "MSFT": 43.23633068887556, + "MU": 8.501432973977636, + "NFLX": 15958.553485132277, + "NVDA": 138.19474813167062, + "NXPI": 19972.75962774392, + "ODFL": 9650.922401631351, + "ON": -3.3172114801631727, + "ORLY": 26406.602511386023, + "PANW": -7.906187893622376, + "PAYX": 8353.272568488232, + "PCAR": 0.0, + "PDD": 28305.691314799788, + "PEP": 27089.307158932683, + "PYPL": 6172.384534025716, + "QCOM": -7.195989265193598, + "REGN": 15134.741437392096, + "ROP": 15316.395541091782, + "ROST": 8133.900759523784, + "SBUX": 33142.10425457833, + "SNPS": 0.0, + "TEAM": 12624.144909932254, + "TMUS": 7144.297898535469, + "TSLA": 2888.485432492889, + "TTD": 40488.00307639134, + "TTWO": 9812.79719604044, + "TXN": 0.0, + "USDOLLAR": -790.6303112530796, + "VRSK": 0.0, + "VRTX": 11841.396605361719, + "WBA": 348.19981294617935, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 20085.219443010566 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index c43352078..c8f55f380 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14454,5 +14454,109 @@ "WDAY": 3.5747756892337284e-08, "XEL": 1.7992984407840448e-07, "ZS": 0.018078547053764108 + }, + "2024-07-22 13:30:00+00:00": { + "AAPL": 0.006800166728451143, + "ABNB": 1.786209312334644e-08, + "ADBE": 0.01097304281859283, + "ADI": 3.2673941652221537e-07, + "ADP": 3.478860098519185e-07, + "ADSK": 4.4675470640848113e-08, + "AEP": 1.565320401674153e-08, + "AMAT": 6.254194398148591e-08, + "AMD": 8.03337225309198e-09, + "AMGN": 0.0317390860460604, + "AMZN": 0.017309864077036982, + "ANSS": 7.446466422890602e-08, + "ARM": 0.06286828234419081, + "ASML": 2.2759003087498143e-08, + "AVGO": 2.4722684201603656e-08, + "AZN": 7.213674478404341e-08, + "BIIB": 0.013683114710427637, + "BKNG": 0.009233738913504338, + "BKR": 1.5807293715096718e-07, + "CCEP": 0.014523987896144425, + "CDNS": 1.6924068400596035e-08, + "CDW": 0.012311364303104717, + "CEG": 0.06757691316451121, + "CHTR": 0.016602062414406756, + "CMCSA": 0.030863772640802322, + "COST": 1.904231330107823e-08, + "CPRT": 1.341964617310429e-07, + "CRWD": 0.008016948673889562, + "CSCO": 0.051496281289727525, + "CSGP": 0.005439603081758674, + "CSX": 0.0019014195335044508, + "CTAS": 3.1020656066092273e-08, + "CTSH": 0.024812947248099758, + "DASH": 1.478738194669246e-08, + "DDOG": 0.014284447275179395, + "DLTR": 0.025152575497543912, + "DXCM": 0.010206820024281875, + "EA": 0.012935735197520665, + "EXC": 5.243180429190564e-08, + "FANG": 0.026340272637733596, + "FAST": 0.019037831303282658, + "FTNT": 0.021609584689937112, + "GEHC": 0.005920147198235804, + "GFS": 0.02563710888752008, + "GILD": 0.026552331486665626, + "GOOG": 2.461952341597891e-07, + "GOOGL": 1.2720125344764793e-07, + "HON": 4.866811841897883e-08, + "IDXX": 4.8143504425161397e-08, + "ILMN": 0.00608770840549746, + "INTC": 6.867115335732799e-08, + "INTU": 1.8071644413864972e-07, + "ISRG": 0.008414522491577167, + "KDP": 3.873778662997002e-07, + "KHC": 3.920841045328028e-08, + "KLAC": 0.011406777024938282, + "LIN": 1.3093729632541914e-07, + "LRCX": 5.4285317919255686e-08, + "LULU": 0.02002894434492229, + "MAR": 1.1950228015010384e-07, + "MCHP": 0.012402219006320315, + "MDB": 0.024864837125483354, + "MDLZ": 2.81369862934177e-07, + "MELI": 0.01904726827644046, + "META": 1.7279230013389122e-08, + "MNST": 0.01616472128464864, + "MRNA": 0.018524131159988563, + "MRVL": 1.5532342344397862e-08, + "MSFT": 4.570812532742226e-08, + "MU": 1.8362110474360994e-08, + "NFLX": 0.015000393258422656, + "NVDA": 0.00018913318661549028, + "NXPI": 0.018508314733387207, + "ODFL": 0.008699970605633673, + "ON": 5.383128055315787e-05, + "ORLY": 0.02393951078356234, + "PANW": 4.0761929070434984e-08, + "PAYX": 0.008009760056397378, + "PCAR": 2.0323452137020683e-08, + "PDD": 0.025067003370316147, + "PEP": 0.024698867592549557, + "PYPL": 0.005608890041342301, + "QCOM": 6.867441391369964e-08, + "REGN": 0.01411517589548553, + "ROP": 0.014026055147673064, + "ROST": 0.007392585654535772, + "SBUX": 0.028592984160023108, + "SNPS": 8.478677488193473e-09, + "TEAM": 0.011467095329813501, + "TMUS": 0.006653598877593038, + "TSLA": 0.002745640441184753, + "TTD": 0.03622212579878836, + "TTWO": 0.008918418707522698, + "TXN": 5.324045023783181e-08, + "USDOLLAR": 4.8934923438848e-07, + "VRSK": 4.013095588012569e-07, + "VRTX": 0.010743294391833955, + "WBA": 0.00031638556546019063, + "WBD": 4.3104677588029245e-08, + "WDAY": 3.432387135770948e-08, + "XEL": 1.756975593957933e-07, + "ZS": 0.018255777546771167 } } \ No newline at end of file From 11c3e5511c46775d7e7307c407f13bf46fbcb9d8 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 22 Jul 2024 18:06:53 +0400 Subject: [PATCH 061/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-22 --- .../sp500_daily_initial_holdings.json | 655 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1085 insertions(+), 75 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index c0c270ee4..d634244c6 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -69813,8 +69813,8 @@ }, "2024-07-19 13:30:00+00:00": { "A": 0.0, - "AAL": 622.4946375320782, - "AAPL": 47570.711960653396, + "AAL": 623.080804097061, + "AAPL": 47563.94238592694, "ABBV": 4732.747151588209, "ABNB": 0.0, "ABT": 3240.432841548337, @@ -69830,7 +69830,7 @@ "AES": 0.0, "AFL": 3534.1883112718624, "AIG": 0.0, - "AIZ": 1.471102966606798, + "AIZ": 1.4752860333242979, "AJG": 0.0, "AKAM": 192.0204784965322, "ALB": 0.0, @@ -69839,15 +69839,15 @@ "ALLE": 0.0, "AMAT": 2102.1083555453192, "AMCR": 0.0, - "AMD": 26449.278812106568, + "AMD": 26433.916835470118, "AME": 0.0, - "AMGN": 6201.859416654904, - "AMP": 9.185289602129023, - "AMT": 633.616499618548, - "AMZN": 35538.22303713345, + "AMGN": 6202.044915668068, + "AMP": 9.212758231213234, + "AMT": 637.286155091561, + "AMZN": 35520.575241493214, "ANET": 3554.6100767528255, "ANSS": 309.1982117705312, - "AON": 17.25838349931137, + "AON": 17.359164905684636, "AOS": 0.0, "APA": 0.0, "APD": 0.0, @@ -69856,7 +69856,7 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 21669.66685254225, + "AVGO": 21671.675391289675, "AVY": 0.0, "AWK": 0.0, "AXON": 4803.566137901761, @@ -69878,11 +69878,11 @@ "BKNG": 3696.2299219396004, "BKR": 0.0, "BLDR": 357.1873750752709, - "BLK": 9.48615714647398e-13, + "BLK": 9.5395952547455e-13, "BMY": 85.88224866729381, "BR": 0.0, "BRK-B": 0.0, - "BRO": 0.308894895495891, + "BRO": 0.3103195967138236, "BSX": 0.0, "BWA": 0.0, "BX": 1358.551624131368, @@ -69892,24 +69892,24 @@ "CAH": 0.0, "CARR": 19886.142044403434, "CAT": 0.0, - "CB": 301.79843822981456, + "CB": 302.7680733139932, "CBOE": 0.0, "CBRE": 4673.200319967743, - "CCI": 304.9793505578111, + "CCI": 306.4020393331789, "CCL": 0.0, "CDNS": 0.0, "CDW": 407.2663069274756, - "CE": -2.777693357852493e-14, + "CE": -2.7676291690936383e-14, "CEG": 34589.234587860214, - "CF": 9770.18384355594, + "CF": 9832.250897773163, "CFG": 0.0, "CHD": 2499.801908965067, "CHRW": 0.0, - "CHTR": 7315.491216982253, - "CI": 3.9515780936419203e-13, + "CHTR": 7358.752049414964, + "CI": 3.988132680364133e-13, "CINF": 0.015681528972332038, - "CL": 9.727011314736375, - "CLX": 15.31556134704951, + "CL": 9.776633858878425, + "CLX": 15.467245755145823, "CMCSA": 6443.578239005279, "CME": 4676.337624066272, "CMG": 5506.414450221667, @@ -69946,7 +69946,7 @@ "DD": 0.0, "DE": 1.0830864932424613e-13, "DECK": 864.17658270568, - "DFS": 3774.3893087291885, + "DFS": 3799.219144128292, "DG": 0.0, "DGX": 0.0, "DHI": -7.833305633248506, @@ -69958,10 +69958,10 @@ "DOV": 0.0, "DOW": 0.0, "DPZ": 1231.8986216112244, - "DRI": 2.398974400847902, + "DRI": 2.4072022350646756, "DTE": 0.0, "DUK": 1.231003496032114, - "DVA": 3407.840706505161, + "DVA": 3428.8797610762604, "DVN": 0.0, "DXCM": 4880.498769845315, "EA": 3961.2545927477327, @@ -69977,7 +69977,7 @@ "EMR": 0.0, "ENPH": 2877.629164861808, "EOG": 0.0, - "EPAM": 6039.026762550674, + "EPAM": 6000.149673477149, "EQIX": 805.7140406653584, "EQR": 0.0, "EQT": 0.0, @@ -69991,12 +69991,12 @@ "EXC": 0.0, "EXPD": -1.107379899756238, "EXPE": 4447.501005069301, - "EXR": 5.942375031560975e-14, + "EXR": 5.957655367176714e-14, "F": 0.0, - "FANG": 14499.3603647123, - "FAST": 3262.3349103826026, + "FANG": 14511.85976580592, + "FAST": 3261.863442117399, "FCX": 0.0, - "FDS": 2566.588109866701, + "FDS": 2576.756179016038, "FDX": 7699.175319046102, "FE": 0.0, "FFIV": 3526.998866171256, @@ -70008,13 +70008,13 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.401332531632535e-14, - "FTNT": 5982.640532308, + "FSLR": -7.40129770126119e-14, + "FTNT": 5983.669896669236, "FTV": 0.0, - "GD": 3.8713367746049916e-13, + "GD": 3.885725368955382e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1741.5121603101315, + "GEHC": 1742.1575369127952, "GEN": 0.0, "GEV": 23485.399017191674, "GILD": 8965.689609050885, @@ -70023,8 +70023,8 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23481.229168778635, - "GOOGL": 1760.3077972287194, + "GOOG": 23487.738567484626, + "GOOGL": 1761.2137126269884, "GPC": 0.0, "GPN": -1.0550795909325607e-13, "GRMN": 2232.1091754512104, @@ -70037,7 +70037,7 @@ "HD": 8269.108054708951, "HES": 0.0, "HIG": 5845.044725860708, - "HII": 0.7358974224133379, + "HII": 0.7398907620329067, "HLT": -1.3699674503464414e-13, "HOLX": 2878.7939328944167, "HON": 0.0, @@ -70049,14 +70049,14 @@ "HSY": 10830.44048852132, "HUBB": 1.3071614783692325e-13, "HUM": 1119.045140545267, - "HWM": 2091.962999887551, + "HWM": 2093.2908056222504, "IBM": 0.0, - "ICE": 731.1299148678961, - "IDXX": -9.86083207049951, + "ICE": 735.1379320865727, + "IDXX": -9.860873201898373, "IEX": 0.0, "IFF": 0.0, "INCY": 4101.539125281937, - "INTC": 238.88618623679844, + "INTC": 238.9207497008987, "INTU": 1265.4007886725396, "INVH": 0.0, "IP": 0.0, @@ -70064,7 +70064,7 @@ "IQV": 0.0, "IR": 0.04540335252542542, "IRM": 0.0, - "ISRG": 6643.936396484418, + "ISRG": 6649.336443001835, "IT": 7.616636409779305e-13, "ITW": 0.0, "IVZ": 0.0, @@ -70090,7 +70090,7 @@ "KO": 198.8887681111711, "KR": 0.0, "KVUE": 0.0, - "L": -0.21869805007583584, + "L": -0.21839654714670922, "LDOS": 0.0, "LEN": 0.0, "LH": 0.0, @@ -70098,28 +70098,28 @@ "LIN": 1.6618017115640262, "LKQ": 5065.821346601446, "LLY": 1.4966675353764713, - "LMT": 8123.424246844442, + "LMT": 8183.838094003796, "LNT": 0.0, - "LOW": -2.8222140029185974e-13, + "LOW": -2.822272825310616e-13, "LRCX": 906.1807160102728, - "LULU": 1730.7524289379442, + "LULU": 1732.4429632335437, "LUV": 27.576777911661946, "LVS": 1813.9988056782136, - "LW": 28.642499411268474, + "LW": 28.943161192589965, "LYB": 3605.6847033604654, "LYV": 2854.489172115726, "MA": 31421.533274963633, "MAA": 0.0, "MAR": -6.055279079707119e-13, "MAS": 0.0, - "MCD": 10753.214773796057, + "MCD": 10789.26429947961, "MCHP": 2390.9490116785346, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.3429390459178678, - "MET": -0.03627740451863124, - "META": 21433.106023727763, + "MET": -0.036445822562528186, + "META": 21419.15843968901, "MGM": 4274.134094717028, "MHK": 0.0, "MKC": 0.0, @@ -70134,16 +70134,16 @@ "MPC": 14993.117378945168, "MPWR": -9.566281169541148e-13, "MRK": 5687.13260220859, - "MRNA": 7602.468366615956, + "MRNA": 7573.054723926405, "MRO": 0.0, "MS": 6271.554860641083, "MSCI": 5460.294275727416, - "MSFT": 37192.65078318777, + "MSFT": 37190.93429719454, "MSI": 0.0, "MTB": -6.350725146217819, "MTCH": 0.0, "MTD": 0.0, - "MU": 3272.1865057008486, + "MU": 3277.016930769996, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -70152,14 +70152,14 @@ "NFLX": 16499.485641961415, "NI": 0.0, "NKE": -2.994509932697195e-14, - "NOC": -3.944788656182816e-13, + "NOC": -3.9711704233547686e-13, "NOW": 5049.076734411901, "NRG": 0.0, - "NSC": -2.7678558825568038e-14, + "NSC": -2.7865981706365542e-14, "NTAP": 5977.946613780884, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 135887.36173127778, + "NVDA": 135898.65609678713, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, @@ -70173,35 +70173,35 @@ "ORLY": -0.7311208386131335, "OTIS": 1675.5393460514626, "OXY": 0.0, - "PANW": 4666.8142062422185, + "PANW": 4666.827935153147, "PARA": 2157.724873426842, "PAYC": 0.0, "PAYX": 497.27445569242815, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11938.492999843651, + "PEP": 11937.090645983044, "PFE": 0.0, "PFG": 173.35230491122067, - "PG": 1.0679558208311122, + "PG": 1.0743789008782851, "PGR": 8346.933535489548, "PH": 0.0, "PHM": -12.013534384815339, - "PKG": -5.027631756612602e-13, + "PKG": -5.050608182406624e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, "PNR": 0.0, "PNW": 0.0, "PODD": -62.88439688593362, - "POOL": 1294.7080015148092, - "PPG": -0.4203484073499591, + "POOL": 1290.3761042541241, + "PPG": -0.4069123013071496, "PPL": 0.0, "PRU": 769.7033431468092, "PSA": 0.0, "PSX": 2960.2361037639857, "PTC": 2.6355489815361156e-14, - "PWR": -5.1527945156385595, + "PWR": -5.19406193872666, "PYPL": 0.0, "QCOM": 4551.183637980403, "QRVO": 0.0, @@ -70219,25 +70219,25 @@ "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, - "SBAC": 6135.403732345704, + "SBAC": 6152.264082199697, "SBUX": 8452.409172463127, "SCHW": 127.00388345374817, "SHW": 1.3940079833785688, - "SJM": 1.0269256696052225, + "SJM": 1.0282897063734422, "SLB": 0.0, "SMCI": 9141.941224435472, "SNA": 0.0, "SNPS": 0.0, - "SO": 10.48277405788883, + "SO": 10.549814858048945, "SOLV": -1.5309200437601868e-12, "SPG": 0.0, - "SPGI": -5.749702053761864, + "SPGI": -5.757887302961289, "SRE": 0.0, - "STE": 0.5003419062416546, + "STE": 0.5049358801806811, "STLD": -2.7735530051166074e-14, "STT": 339.7892398443047, "STX": -13.443328629974998, - "STZ": -2.0858185550347867, + "STZ": -2.0959847296555294, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, @@ -70245,8 +70245,8 @@ "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4731.475203643178, - "TDY": -15.384144669048265, + "TDG": 4782.172741387322, + "TDY": -15.457766068666874, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, @@ -70262,8 +70262,8 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.8472025438782076e-12, - "TSLA": 104014.3902377417, - "TSN": 5068.716189216806, + "TSLA": 104043.36242226434, + "TSN": 5082.13657334314, "TT": 0.0, "TTWO": 740.8725790199039, "TXN": 0.0, @@ -70279,21 +70279,21 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 144.84239450496574, + "USDOLLAR": 144.8425305791562, "V": 1875.9465568177884, "VICI": 0.0, "VLO": 0.0, "VLTO": 8691.34399066532, "VMC": 0.0, "VRSK": 0.0, - "VRSN": 3221.511109546586, + "VRSN": 3222.775933751209, "VRTX": 2922.5683062894286, "VST": 0.0, "VTR": 0.0, "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.1347307320863283e-13, + "WAT": -2.1352141990885865e-13, "WBA": 0.0, "WBD": 0.0, "WDC": -2.858193290950729, @@ -70307,7 +70307,512 @@ "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 3087.039720824271, + "WYNN": 3088.1497385462258, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-07-22 13:30:00+00:00": { + "A": 0.0, + "AAL": 615.4608064520452, + "AAPL": 47855.00486940245, + "ABBV": 4723.2094180077065, + "ABNB": 0.0, + "ABT": 3301.305677802879, + "ACGL": 0.0, + "ACN": 2.613758892131278e-13, + "ADBE": 11554.058233641104, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.709899331280901, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3486.6516942593444, + "AIG": 0.0, + "AIZ": 1.444808864713604, + "AJG": 0.0, + "AKAM": 95.39095384439337, + "ALB": 0.0, + "ALGN": 1226.94560912728, + "ALL": 6.872989666107855e-14, + "ALLE": 0.0, + "AMAT": 2084.518228633163, + "AMCR": 0.0, + "AMD": 28039.26245161003, + "AME": 0.0, + "AMGN": 6195.074237154895, + "AMP": 9.071020507511195, + "AMT": 631.5711419566512, + "AMZN": 36832.50050689119, + "ANET": 3586.881850763616, + "ANSS": 309.6687692572297, + "AON": 17.082736608341833, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 25.83056830696227, + "APTV": 2.3793131817050436e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 21456.08337820986, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4843.657069121228, + "AXP": 0.0, + "AZO": 1.739249337140601e-12, + "BA": -1.0794727392836476e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 529.9178729481201, + "BDX": 0.0, + "BEN": 189.92665093226037, + "BF-B": 0.0, + "BG": 1368.8403924529703, + "BIIB": 2479.3970768270283, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3731.8115740474664, + "BKR": 0.0, + "BLDR": 358.57684942389153, + "BLK": 9.50561020189837e-13, + "BMY": 85.4793278409732, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.30747019427795863, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1375.3506154625268, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20211.628990640955, + "CAT": 0.0, + "CB": 292.98136542000555, + "CBOE": 0.0, + "CBRE": 4690.458416560484, + "CCI": 305.1245102237509, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 400.5169961695476, + "CE": -2.7062768656086995e-14, + "CEG": 37120.813721471866, + "CF": 9608.04086965346, + "CFG": 0.0, + "CHD": 2479.132192845209, + "CHRW": 0.0, + "CHTR": 6657.908323839423, + "CI": 3.8963407204197083e-13, + "CINF": 0.015126617209997013, + "CL": 9.687782142232843, + "CLX": 15.224551387972447, + "CMCSA": 6435.559971373542, + "CME": 4628.328632855052, + "CMG": 5460.970221120495, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 858.4011809738561, + "CNP": 0.0, + "COF": 9096.273010787274, + "COO": 0.0, + "COP": 0.0, + "COR": 3387.3762586551097, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 722.4023574298146, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7492.796849644505, + "CRWD": 3132.047732948909, + "CSCO": 6930.611901638012, + "CSGP": -7.516546635559554e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11084.27621002937, + "CTVA": 110.98282850007028, + "CVS": 0.0, + "CVX": -5.701299698388129e-13, + "CZR": 8929.91381008734, + "D": 0.0, + "DAL": 650.2613659750274, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0714711354115125e-13, + "DECK": 857.2117137496228, + "DFS": 3726.050451037316, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.868921511570772, + "DHR": 1967.2691736323916, + "DIS": -4.214893689052853, + "DLR": 3.1433074007660584e-14, + "DLTR": 1071.340156032178, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 412.8962860787718, + "DRI": 2.3988065799837024, + "DTE": 0.0, + "DUK": 1.2236801880500887, + "DVA": 3455.1787703805508, + "DVN": 0.0, + "DXCM": 4905.397031062714, + "EA": 3819.189990176152, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.707867531032151e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.0931346979522495e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3246.898221588351, + "EOG": 0.0, + "EPAM": 5801.042197802877, + "EQIX": 796.4120043719071, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1118673480039793, + "EXPE": 4462.878145344811, + "EXR": 5.846782379809031e-14, + "F": 0.0, + "FANG": 14260.493281542851, + "FAST": 3214.491130774607, + "FCX": 0.0, + "FDS": 2108.149260682612, + "FDX": 7401.717176268262, + "FE": 0.0, + "FFIV": 3319.2565131134006, + "FI": 2.5149220181739697e-13, + "FICO": 1523.7992583397843, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.800829502666003e-14, + "FTNT": 6070.151034291559, + "FTV": 0.0, + "GD": 3.807445969156926e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1738.9404215852226, + "GEN": 0.0, + "GEV": 19794.4952011651, + "GILD": 8671.400619981736, + "GIS": 7572.333959493239, + "GL": 0.3063125737882252, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 24309.676047350426, + "GOOGL": 2139.703842657404, + "GPC": 0.0, + "GPN": -1.0538318088565638e-13, + "GRMN": 2222.976199099582, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0728245039897335, + "HBAN": 0.0, + "HCA": 5628.106411570122, + "HD": 8225.554529343051, + "HES": 0.0, + "HIG": 5641.685451973586, + "HII": 0.7275803601703595, + "HLT": -1.3682174197360087e-13, + "HOLX": 2887.997238665641, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10662.959450039032, + "HUBB": 1.323619437724678e-13, + "HUM": 1110.3478985203033, + "HWM": 2085.3243764034723, + "IBM": 0.0, + "ICE": 730.7340585190682, + "IDXX": -9.847187836311987, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4140.3393310702495, + "INTC": 230.00527418532374, + "INTU": 1274.9687618723008, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04524161100782866, + "IRM": 0.0, + "ISRG": 6844.335012402589, + "IT": 7.609215479397636e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2495.2932215105457, + "JCI": 0.0, + "JKHY": 832.8742440883285, + "JNJ": 13285.472963414968, + "JNPR": 0.0, + "JPM": 2548.711242967467, + "K": 471.79200299928607, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -19.219202479734175, + "KMB": 4750.683722639021, + "KMI": 0.0, + "KMX": 1.1382453621538153, + "KO": 197.70707251561137, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21370957558242074, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6711672695726216, + "LKQ": 5033.448213198313, + "LLY": 1.4917342120011594, + "LMT": 8106.358229519135, + "LNT": 0.0, + "LOW": -2.822862308425721e-13, + "LRCX": 889.6161223387315, + "LULU": 1701.2886732822644, + "LUV": 27.164433830537234, + "LVS": 1816.2039735351864, + "LW": 28.110002772074612, + "LYB": 3561.260762512949, + "LYV": 2849.402916042657, + "MA": 30571.533423509038, + "MAA": 0.0, + "MAR": -6.020924654299183e-13, + "MAS": 0.0, + "MCD": 10702.664004275864, + "MCHP": 2364.9915562071797, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.309521976014768, + "MET": -0.03612342178260579, + "META": 22861.880885494164, + "MGM": 4283.569485431972, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6593.645875880462, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5198.080495631961, + "MO": -22.07258971095891, + "MOH": 1746.3423738680897, + "MOS": 0.0, + "MPC": 14944.239192802548, + "MPWR": -9.313565810286509e-13, + "MRK": 5716.634608512656, + "MRNA": 7638.765596193624, + "MRO": 0.0, + "MS": 6137.391269645189, + "MSCI": 4470.70022264817, + "MSFT": 38817.22199089501, + "MSI": 0.0, + "MTB": -6.2315617100637395, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3471.589709959843, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 15965.269984798948, + "NI": 0.0, + "NKE": -3.0284725485659925e-14, + "NOC": -3.9267523430847015e-13, + "NOW": 5117.691368328077, + "NRG": 0.0, + "NSC": -2.7536789061094547e-14, + "NTAP": 6027.585699104744, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 137102.15608152834, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8549.513038532, + "O": 0.0, + "ODFL": 3547.730640433296, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.7765242960136005, + "ORCL": 7275.157789338256, + "ORLY": -0.7448678652674977, + "OTIS": 1672.1533145763954, + "OXY": 0.0, + "PANW": 5041.40346951988, + "PARA": 2115.311207354749, + "PAYC": 0.0, + "PAYX": 491.6417533732511, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11871.895632179396, + "PFE": 0.0, + "PFG": 172.36020518061716, + "PG": 1.0741229960369065, + "PGR": 8155.4562225179125, + "PH": 0.0, + "PHM": -11.982681035024168, + "PKG": -4.992384265294898e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.689688386103256, + "POOL": 1291.781005279282, + "PPG": -0.4107420544033908, + "PPL": 0.0, + "PRU": 636.0035471573111, + "PSA": 0.0, + "PSX": 2809.615793216209, + "PTC": 2.635847386800413e-14, + "PWR": -5.098874434573355, + "PYPL": 0.0, + "QCOM": 4534.801313490345, + "QRVO": 0.0, + "RCL": 2313.0536331723174, + "REG": 0.0, + "REGN": 1094.110629739867, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 178.36236076853115, + "ROK": 1.1985711020393415, + "ROL": 0.0, + "ROP": 5655.449969538569, + "ROST": 1153.819677370718, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6083.369563788661, + "SBUX": 8876.95421454733, + "SCHW": 127.55105287567524, + "SHW": 1.3834499542643313, + "SJM": 1.003993305506135, + "SLB": 0.0, + "SMCI": 10965.478593473968, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.504691810023106, + "SOLV": -1.5264664624256081e-12, + "SPG": 0.0, + "SPGI": -5.752548971042019, + "SRE": 0.0, + "STE": 0.5000534198493019, + "STLD": -2.755731110672025e-14, + "STT": 339.3875563476949, + "STX": -13.44979465020587, + "STZ": -2.0584288942673434, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -7.0270938065589394, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4730.867461792801, + "TDY": -15.246153508458043, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 448.1869645033787, + "TMO": 0.0, + "TMUS": 8415.084986726719, + "TPR": 2757.212799705018, + "TRGP": 413.89426999451365, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.837597841001946e-12, + "TSLA": 102785.23019255044, + "TSN": 5002.45290260738, + "TT": 0.0, + "TTWO": 741.4142635499006, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4086.855489471299, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3529.9822566801276, + "UNH": 19010.259762392325, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 1204.1014692394679, + "V": 1854.5028314789774, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8703.659606215253, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3220.7881165087583, + "VRTX": 2462.9095545560876, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.1097892745642934e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.879634747744518, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5818418872785904, + "WMB": 0.0, + "WMT": 12147.202144811112, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3023.3858122495812, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 567a6943e..648435078 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -67289,5 +67289,510 @@ "ZBH": 1.078509862350218e-09, "ZBRA": 7.153416709915194e-10, "ZTS": 2.706014152868104e-09 + }, + "2024-07-22 13:30:00+00:00": { + "A": 2.6102584646135567e-09, + "AAL": 0.0005199550208015313, + "AAPL": 0.03997145735121098, + "ABBV": 0.00417711235812734, + "ABNB": 2.287889859342399e-09, + "ABT": 0.002789008583338273, + "ACGL": 8.061265841140464e-09, + "ACN": 1.022121178503588e-08, + "ADBE": 0.009492889595176579, + "ADI": 1.3602414297032646e-08, + "ADM": 7.374354739056152e-09, + "ADP": 1.2087368155797193e-08, + "ADSK": 9.153969785168252e-09, + "AEE": 3.1204572789951522e-09, + "AEP": 3.1342840143888155e-09, + "AES": 1.39552416643043e-09, + "AFL": 0.002945588328649854, + "AIG": 2.6480718953553595e-09, + "AIZ": 1.2238569755424117e-08, + "AJG": 6.589861144674414e-09, + "AKAM": 3.95119454733836e-05, + "ALB": 1.1872871553889852e-09, + "ALGN": 0.0010365335420816052, + "ALL": 9.371192207937182e-09, + "ALLE": 2.8205073882332596e-09, + "AMAT": 0.0017610300627472228, + "AMCR": 7.552073191600111e-10, + "AMD": 0.02383332526155966, + "AME": 3.2283331680221177e-09, + "AMGN": 0.005233644527242162, + "AMP": 4.991760840344059e-08, + "AMT": 0.000533756791783455, + "AMZN": 0.031116829187291712, + "ANET": 0.0030332614437113274, + "ANSS": 0.00018487049784549883, + "AON": 1.84854172694046e-08, + "AOS": 2.6921509732114117e-09, + "APA": 1.7927627828366136e-09, + "APD": 7.011057551698934e-09, + "APH": 4.8602139800979e-08, + "APTV": 5.952199900948439e-09, + "ARE": 2.505302178947123e-09, + "ATO": 3.795316350976557e-09, + "AVB": 3.583063710707456e-09, + "AVGO": 0.018126636796473413, + "AVY": 3.969769783381097e-09, + "AWK": 7.175048223158076e-09, + "AXON": 0.004145569029746352, + "AXP": 6.506501525096454e-09, + "AZO": 1.1351911450125752e-07, + "BA": 2.3445693473927208e-08, + "BAC": 4.274024364685831e-09, + "BALL": 8.68258497016746e-09, + "BAX": 5.710452560897998e-09, + "BBWI": 4.427433382109433e-09, + "BBY": 0.0004524071338022787, + "BDX": 8.317506890967208e-09, + "BEN": 0.0001604549697636833, + "BF-B": 6.2148960678011225e-09, + "BG": 0.001150693292524222, + "BIIB": 0.0020837335631094505, + "BIO": 3.1373001329965133e-09, + "BK": 3.694244205157097e-09, + "BKNG": 0.0017872414944078042, + "BKR": 1.8585150664421407e-09, + "BLDR": 0.0003522517292716633, + "BLK": 2.1128347906494597e-06, + "BMY": 7.221503193187792e-05, + "BR": 5.610031270628787e-09, + "BRK-B": 8.493107159508625e-09, + "BRO": 1.1389083557768881e-07, + "BSX": 5.558746916789807e-09, + "BWA": 3.9149167120469465e-09, + "BX": 0.0011619153283053615, + "BXP": 2.658167643244792e-09, + "C": 5.212446873725514e-09, + "CAG": 8.025470818381442e-09, + "CAH": 6.6300441419511915e-09, + "CARR": 0.017301931114596776, + "CAT": 2.2420252599594565e-09, + "CB": 0.00024755002387825986, + "CBOE": 2.655000365612208e-08, + "CBRE": 0.003962590040767731, + "CCI": 0.0002577848748838119, + "CCL": 2.370740559183528e-09, + "CDNS": 9.908284924730282e-09, + "CDW": 0.0003387973147681882, + "CE": 6.3338833309815526e-09, + "CEG": 0.031839106032760814, + "CF": 0.008117075290180955, + "CFG": 4.4051636087812464e-09, + "CHD": 0.002094424141173386, + "CHRW": 8.533757923282528e-09, + "CHTR": 0.005485031230942651, + "CI": 2.3351695520719905e-08, + "CINF": 1.971900563039111e-08, + "CL": 8.17605790808039e-06, + "CLX": 1.2820835130135786e-05, + "CMCSA": 0.005436895348124406, + "CME": 0.003992374609641375, + "CMG": 0.004613536596799794, + "CMI": 3.1121165363135704e-09, + "CMS": 2.7290476637684117e-09, + "CNC": 0.0007251986781733223, + "CNP": 2.5242942803179134e-09, + "COF": 0.0076847125423722025, + "COO": 6.225231174065461e-09, + "COP": 4.825739672849404e-09, + "COR": 0.0028617068456432983, + "COST": 6.110497177201952e-09, + "CPAY": 1.795717885177368e-08, + "CPB": 1.1344419137231469e-08, + "CPRT": 0.0006102979093360856, + "CPT": 2.9966751065256205e-09, + "CRL": 1.557939331060202e-09, + "CRM": 0.006330065247797798, + "CRWD": 0.002396896615029402, + "CSCO": 0.00585513320871213, + "CSGP": 6.1067377477032954e-09, + "CSX": 6.885728832293235e-09, + "CTAS": 6.8582368898226795e-09, + "CTLT": 3.1554887224411617e-09, + "CTRA": 1.8509752238097352e-09, + "CTSH": 0.00932112397848921, + "CTVA": 9.376570032273034e-05, + "CVS": 5.802412346849939e-09, + "CVX": 7.51824055774133e-09, + "CZR": 0.0075441720253953525, + "D": 4.840917524129914e-09, + "DAL": 0.0005493577160954926, + "DAY": 2.2797879924877254e-09, + "DD": 4.196780592861618e-09, + "DE": 7.358181165387214e-09, + "DECK": 0.0009416189100584361, + "DFS": 0.003147930057313455, + "DG": 3.593674252146504e-09, + "DGX": 9.218099642281685e-09, + "DHI": 3.9804412802131244e-08, + "DHR": 0.00160112176601294, + "DIS": 7.225638617384261e-09, + "DLR": 5.647084581838669e-09, + "DLTR": 0.0009098041883433094, + "DOC": 1.4594154719383129e-09, + "DOV": 3.293363325970973e-09, + "DOW": 4.5956805630769274e-09, + "DPZ": 9.526321028096836e-08, + "DRI": 2.0117775713378776e-06, + "DTE": 3.633842791687192e-09, + "DUK": 3.5256867657132425e-08, + "DVA": 0.0029189673322715915, + "DVN": 1.8639919309195713e-09, + "DXCM": 0.004144184039825605, + "EA": 0.0032264913124025753, + "EBAY": 3.7526009175842434e-09, + "ECL": 3.940411777918719e-09, + "ED": 5.503522233684276e-09, + "EFX": 3.38057839363823e-09, + "EG": 2.2884608985189213e-08, + "EIX": 5.411748240663159e-09, + "EL": 3.758860622002279e-09, + "ELV": 1.3945878348608796e-08, + "EMN": 3.073435773601529e-09, + "EMR": 2.0304352451838244e-09, + "ENPH": 0.0028352434200321643, + "EOG": 4.547651437462993e-09, + "EPAM": 0.004900842618057174, + "EQIX": 0.0005313607530791102, + "EQR": 3.4891552253805268e-09, + "EQT": 1.229337581469524e-09, + "ES": 2.603408014568108e-09, + "ESS": 4.877965998990357e-09, + "ETN": 1.7434893975313872e-09, + "ETR": 5.084423319534695e-09, + "ETSY": 7.67095761491399e-09, + "EVRG": 1.7911636514985382e-09, + "EW": 9.441905466188872e-09, + "EXC": 3.5491052823648503e-09, + "EXPD": 1.2493595287369843e-08, + "EXPE": 0.0037702908002427734, + "EXR": 1.120213416995508e-08, + "F": 2.2958496544336848e-09, + "FANG": 0.012047569636790358, + "FAST": 0.002715667780217446, + "FCX": 1.91632275178009e-09, + "FDS": 0.0016776249083982199, + "FDX": 0.0060852555786312995, + "FE": 3.067726963570321e-09, + "FFIV": 0.0027260924593883254, + "FI": 1.1168595494161254e-08, + "FICO": 0.0013440655118525564, + "FIS": 4.43243139335798e-09, + "FITB": 6.245142203822062e-09, + "FMC": 4.6367042645894415e-09, + "FOX": 2.092363348976525e-09, + "FOXA": 2.9334804746810415e-09, + "FRT": 2.789741948490213e-09, + "FSLR": 1.6929886878543703e-09, + "FTNT": 0.005128187252671119, + "FTV": 2.0432509894356077e-09, + "GD": 1.3561266486599173e-08, + "GDDY": 1.2559762895657802e-08, + "GE": 3.3545738717646364e-09, + "GEHC": 0.0014690914892865586, + "GEN": 2.371810546956451e-09, + "GEV": 0.016252868863916844, + "GILD": 0.007307774160539429, + "GIS": 0.006397269773022094, + "GL": 1.0670391135278909e-08, + "GLW": 3.0162136612112993e-09, + "GM": 2.9907619375031757e-09, + "GNRC": 2.7997935526535662e-09, + "GOOG": 0.02055854606098343, + "GOOGL": 0.0018078937916594991, + "GPC": 7.298746306710989e-09, + "GPN": 1.1973238931440186e-08, + "GRMN": 0.0018780260859747862, + "GS": 6.691971074878893e-09, + "GWW": 2.4636568666474387e-09, + "HAL": 1.941673113866769e-09, + "HAS": 8.938831799868157e-07, + "HBAN": 1.8816248497691366e-09, + "HCA": 0.00475080515650326, + "HD": 0.007187508794484048, + "HES": 4.971936289407824e-09, + "HIG": 0.004766207401847423, + "HII": 4.8314011953158055e-08, + "HLT": 9.279876497615453e-09, + "HOLX": 0.0024398313560148074, + "HON": 4.5452344256966145e-09, + "HPE": 1.7911569044396745e-09, + "HPQ": 2.219453809914284e-09, + "HRL": 6.786781878239086e-09, + "HSIC": 7.191677079467473e-09, + "HST": 2.356909663677291e-09, + "HSY": 0.009008286577065245, + "HUBB": 1.2321406413273577e-09, + "HUM": 0.0009380005622598047, + "HWM": 0.0017617478782331693, + "IBM": 3.0018260800503493e-09, + "ICE": 0.0006173458989626449, + "IDXX": 8.655092413228157e-09, + "IEX": 3.4280685664493998e-09, + "IFF": 3.613748126290489e-09, + "INCY": 0.003497835397635017, + "INTC": 0.00019431322406837594, + "INTU": 0.0010775758157021878, + "INVH": 2.214021826634653e-09, + "IP": 2.940806939991354e-09, + "IPG": 5.207932430740453e-09, + "IQV": 2.995081849864204e-09, + "IR": 2.4513991757314854e-08, + "IRM": 5.176483591719716e-09, + "ISRG": 0.005766475799053746, + "IT": 1.2965823248593253e-08, + "ITW": 4.505689269952954e-09, + "IVZ": 2.2971726097811856e-09, + "J": 5.373583732528231e-09, + "JBHT": 5.823337783922401e-09, + "JBL": 0.0021081198156845263, + "JCI": 2.2320723725746945e-09, + "JKHY": 0.0007051787611727977, + "JNJ": 0.011223838516526205, + "JNPR": 3.1395400275739202e-09, + "JPM": 0.0021532024805121933, + "K": 0.0003985810495131888, + "KDP": 2.1015328113235595e-09, + "KEY": 1.5548817680683682e-09, + "KEYS": 4.078212363234721e-09, + "KHC": 1.197305374287612e-09, + "KIM": 2.0979578329793426e-09, + "KKR": 9.093595280126505e-09, + "KLAC": 0.00014062918042663367, + "KMB": 0.004013468387762033, + "KMI": 9.795593193201398e-10, + "KMX": 4.61120135718379e-08, + "KO": 0.00016702384471979162, + "KR": 1.277087963366077e-08, + "KVUE": -4.5881965799793326e-10, + "L": 6.099178479247606e-09, + "LDOS": 2.8359055956527722e-08, + "LEN": 1.769303442945159e-08, + "LH": 2.658888219948473e-09, + "LHX": 5.641147098575571e-09, + "LIN": 3.363942503944628e-08, + "LKQ": 0.004252350380850631, + "LLY": 2.0219635315695325e-08, + "LMT": 0.006848440071511535, + "LNT": 2.382991368898195e-09, + "LOW": 1.2503447065398634e-08, + "LRCX": 0.0006885605110719601, + "LULU": 0.0014832513382503495, + "LUV": 2.2951234184239147e-05, + "LVS": 0.0015343629118479034, + "LW": 2.3737788165981255e-05, + "LYB": 0.003008617239008869, + "LYV": 0.0024072448193587126, + "MA": 0.025827379117336093, + "MAA": 3.7113661302078263e-09, + "MAR": 1.0094128701214695e-08, + "MAS": 4.06645075052098e-09, + "MCD": 0.009041747520022635, + "MCHP": 0.001998376003598651, + "MCK": 3.2407533111484764e-08, + "MCO": 3.586159291684837e-09, + "MDLZ": 4.1742590714994785e-09, + "MDT": 1.1028512348543214e-06, + "MET": 6.153662589717243e-09, + "META": 0.01931412321722334, + "MGM": 0.0036188082526948657, + "MHK": 4.550090152872401e-09, + "MKC": 5.143938218912407e-09, + "MKTX": 0.005513113895407692, + "MLM": 2.854383783580458e-09, + "MMC": 3.736907286237789e-09, + "MMM": 4.259788531250071e-09, + "MNST": 0.004391451318237728, + "MO": 4.518143135580306e-09, + "MOH": 0.0014753108151024064, + "MOS": 1.5731070344348924e-09, + "MPC": 0.012625099144834015, + "MPWR": 8.170382299570016e-08, + "MRK": 0.004829522981649446, + "MRNA": 0.006453382567747388, + "MRO": 9.363895875607665e-10, + "MS": 0.005184996199124422, + "MSCI": 0.00352974528251815, + "MSFT": 0.032793562026093986, + "MSI": 7.198528175114969e-09, + "MTB": 2.8608841533032984e-08, + "MTCH": 1.1808868603037852e-08, + "MTD": 6.788016633013475e-09, + "MU": 0.0030758943733240995, + "NCLH": 3.263818869761013e-09, + "NDAQ": 5.494118651166494e-09, + "NDSN": 3.3067549652720792e-09, + "NEE": 2.34431919908884e-09, + "NEM": 2.005148907390236e-09, + "NFLX": 0.013852323432550074, + "NI": 2.0468050606929356e-09, + "NKE": 1.7309412622904352e-08, + "NOC": 3.6459882485396815e-08, + "NOW": 0.00432340688341874, + "NRG": 1.213534414904868e-09, + "NSC": 9.842134707494478e-09, + "NTAP": 0.005086947829972886, + "NTRS": 3.387013229336337e-09, + "NUE": 7.35042978817339e-09, + "NVDA": 0.11586429028260574, + "NVR": 0.0015979558882597807, + "NWS": 1.3792164185715553e-09, + "NWSA": 1.3583711061116385e-09, + "NXPI": 0.007222756662796458, + "O": 7.1587316801874455e-09, + "ODFL": 0.002759586755257356, + "OKE": 3.566733283043227e-09, + "OMC": 4.172660351376048e-09, + "ON": 8.325810509994107e-09, + "ORCL": 0.006146203333211299, + "ORLY": 3.8284521008660155e-08, + "OTIS": 0.0014126744119016858, + "OXY": 2.59955136856972e-09, + "PANW": 0.004518059460603836, + "PARA": 0.001787057996807698, + "PAYC": 1.5020948935366347e-08, + "PAYX": 0.000412907530310556, + "PCAR": 7.080662171126786e-09, + "PCG": 1.85871272084499e-09, + "PEG": 3.984164289256658e-09, + "PEP": 0.010029247749493903, + "PFE": 4.857167801910553e-09, + "PFG": 0.00014559845905481506, + "PG": 1.4640066157123135e-08, + "PGR": 0.0068911793657746145, + "PH": 2.626073214139215e-09, + "PHM": 1.3902254707418951e-08, + "PKG": 1.2907521319748596e-08, + "PLD": 4.653656696037245e-09, + "PM": 8.595650967319481e-09, + "PNC": 9.165762672404669e-09, + "PNR": 1.7892465425371975e-09, + "PNW": 2.916107960293394e-09, + "PODD": 2.7359718433315517e-08, + "POOL": 0.0010818584750958088, + "PPG": 6.987620238000198e-09, + "PPL": 3.0590695263592783e-09, + "PRU": 0.0005372770081791129, + "PSA": 3.735989935113069e-09, + "PSX": 0.0023358429172260944, + "PTC": 6.907261084958149e-09, + "PWR": 9.266761682967833e-09, + "PYPL": 1.6273318057154747e-09, + "QCOM": 0.0038513476739247786, + "QRVO": 1.2508271417493034e-09, + "RCL": 0.001867377712315688, + "REG": 3.412803088364628e-09, + "REGN": 0.0009252381777982352, + "RF": 2.7022223828417336e-09, + "RJF": 6.543721814621898e-09, + "RL": 3.942660189207394e-09, + "RMD": 0.00023578420671835853, + "ROK": 7.006589385942485e-09, + "ROL": 2.920053358649032e-09, + "ROP": 0.004776603457677313, + "ROST": 0.0009747678020972666, + "RSG": 7.306901321816268e-09, + "RTX": 8.366731726693504e-09, + "RVTY": 2.2887043840019067e-09, + "SBAC": 0.005139367819631804, + "SBUX": 0.007499429363778579, + "SCHW": 0.00010743114187040141, + "SHW": 1.2945447287495074e-07, + "SJM": 1.3276511600920726e-07, + "SLB": 2.0299046041956665e-09, + "SMCI": 0.009566550028356737, + "SNA": 3.514525614063902e-09, + "SNPS": 2.646395386939443e-09, + "SO": 8.854570267524219e-06, + "SOLV": -1.0471159468977461e-09, + "SPG": 3.985419464723135e-09, + "SPGI": 6.038712480985389e-09, + "SRE": 4.7690974201479426e-09, + "STE": 4.359645696807019e-07, + "STLD": 1.3161021675234927e-08, + "STT": 0.00028672101289178983, + "STX": 8.198419740269172e-09, + "STZ": 1.8657051333401317e-07, + "SWK": 3.034694150741283e-09, + "SWKS": 2.0475992539823126e-09, + "SYF": 5.984838797992656e-09, + "SYK": 2.2751731591433497e-08, + "SYY": 7.614234673474472e-09, + "T": 4.406821183925681e-09, + "TAP": 4.171838929937352e-09, + "TDG": 0.004365034800078121, + "TDY": 1.2160886190425139e-08, + "TECH": 7.698183235189937e-09, + "TEL": 5.1428884955666835e-09, + "TER": 2.9655497443380698e-09, + "TFC": 3.1752942468789187e-09, + "TFX": 6.95886602094229e-09, + "TGT": 8.117029931674304e-09, + "TJX": 0.00037863470785705306, + "TMO": 7.341639200791528e-09, + "TMUS": 0.007063116892438593, + "TPR": 0.0023293535265438746, + "TRGP": 0.0003496536041821427, + "TRMB": 6.402008242227635e-09, + "TROW": 6.205873461437252e-09, + "TRV": 7.417333729588392e-09, + "TSCO": 1.3153614352583495e-08, + "TSLA": 0.08749330682645753, + "TSN": 0.0042261691930583645, + "TT": 2.4431070988917026e-09, + "TTWO": 0.0006263720931832494, + "TXN": 5.430141066928696e-09, + "TXT": 2.583642294459397e-09, + "TYL": 3.7143247531258297e-08, + "UAL": 0.0034526890566285154, + "UBER": 3.708167719334449e-09, + "UDR": 2.1289899701242014e-09, + "UHS": 4.366708593952319e-09, + "ULTA": 0.00298211646663094, + "UNH": 0.016060204255316214, + "UNP": 8.859036247179646e-09, + "UPS": 2.4302826782622358e-09, + "URI": 5.455154620547354e-09, + "USB": 3.275157751955891e-09, + "USDOLLAR": 2.888182730775325e-07, + "V": 0.0015667074671821357, + "VICI": 2.5012801116915944e-09, + "VLO": 1.460026338253211e-08, + "VLTO": 0.0073530514205824215, + "VMC": 1.6938231951431905e-09, + "VRSK": 7.691910783809779e-09, + "VRSN": 0.002663399691710964, + "VRTX": 0.0019961849426987227, + "VST": 1.631831509070676e-09, + "VTR": 5.03822850677192e-09, + "VTRS": 1.998466667355501e-09, + "VZ": 6.09446504935778e-09, + "WAB": 2.4456354334583648e-09, + "WAT": 8.606872308183885e-09, + "WBA": 1.0623641906643099e-09, + "WBD": 7.166993648176434e-10, + "WDC": 3.3649163404861124e-09, + "WEC": 6.545798959043622e-09, + "WELL": 4.1384562405833646e-09, + "WFC": 9.033894324156787e-09, + "WM": 3.2869699058575845e-07, + "WMB": 1.06832031826704e-08, + "WMT": 0.010262206168619677, + "WRB": 6.779410926544752e-09, + "WST": 3.852692464878176e-09, + "WTW": 5.510375443470851e-09, + "WY": 1.7430490668997478e-09, + "WYNN": 0.0025526095051519554, + "XEL": 3.3450198061309325e-09, + "XOM": 6.398093295843855e-09, + "XYL": 4.7121228335495015e-09, + "YUM": 1.0009425100871093e-08, + "ZBH": 3.2439944932534714e-09, + "ZBRA": 1.9834110548066032e-09, + "ZTS": 7.876373879340839e-09 } } \ No newline at end of file From cf5cb01a910f023c88bcd6937f3772d7ba1aaf28 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 23 Jul 2024 11:31:17 +0400 Subject: [PATCH 062/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-23 --- .../ftse100_daily_initial_holdings.json | 139 +++++++++++++++--- .../ftse100_daily_target_weights.json | 103 +++++++++++++ 2 files changed, 224 insertions(+), 18 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 4332114f6..63026e241 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11012,7 +11012,7 @@ "BA.L": 10311.898844341433, "BARC.L": 10511.943082534483, "BATS.L": 10781.421034451752, - "BDEV.L": 10403.708889470226, + "BDEV.L": 10419.815171963148, "BEZ.L": 9961.076580353376, "BKG.L": 9950.944367177472, "BME.L": 10156.334071530979, @@ -11030,16 +11030,16 @@ "DGE.L": 10143.769757839982, "DPLM.L": 8576.945759258066, "EDV.L": 7111.854063018245, - "ENT.L": 11190.24348410683, + "ENT.L": 10928.798257935676, "EXPN.L": 10705.805102534601, "EZJ.L": 8487.747769752781, "FCIT.L": 0.0, "FRAS.L": 10445.27895831082, "FRES.L": 10707.461794525647, - "GBPOUND": 4396.598311103675, - "GLEN.L": 10308.21320757078, + "GBPOUND": 7294.495496531542, + "GLEN.L": 9899.351568064938, "GSK.L": 10965.264827848574, - "HIK.L": 11390.239605626135, + "HIK.L": 11225.693608113075, "HL.L": 10107.7779799818, "HLMA.L": 10438.527725799415, "HLN.L": 0.0, @@ -11053,8 +11053,8 @@ "IMI.L": 11029.204577403269, "INF.L": 10219.715149572357, "ITRK.L": 9481.080177784112, - "JD.L": 10584.150222231478, - "KGF.L": 10439.627665991402, + "JD.L": 10706.240821207997, + "KGF.L": 10428.239444671626, "LAND.L": 0.0, "LGEN.L": 10422.765686090273, "LLOY.L": 0.0, @@ -11064,9 +11064,9 @@ "MNDI.L": 9882.222435363785, "MNG.L": 10249.623065170825, "MRO.L": 43406.14126416813, - "NG.L": 10787.326022029249, + "NG.L": 10648.560199842253, "NWG.L": 10602.5179882037, - "NXT.L": 9049.631680138218, + "NXT.L": 8987.011460922968, "PHNX.L": 0.0, "PRU.L": 10195.43411600022, "PSH.L": 55072.671523831654, @@ -11082,24 +11082,127 @@ "SDR.L": 10215.978118633398, "SGE.L": 37989.96562738275, "SGRO.L": 0.0, - "SHEL.L": 2799.0000000000027, + "SHEL.L": 9.06448357772791e-13, "SMDS.L": 10461.08918626092, "SMIN.L": 0.0, - "SMT.L": 10351.069290366568, + "SMT.L": 10262.720771957844, "SN.L": 3378.114789752195, "SPX.L": 8650.050813818327, - "SSE.L": 11112.978835465803, - "STAN.L": 10524.319046865701, + "SSE.L": 11059.046881020295, + "STAN.L": 10426.202950065528, "SVT.L": 10326.176645808693, - "TSCO.L": 10357.189623828584, - "TW.L": 10467.599547952008, + "TSCO.L": 10595.719790938572, + "TW.L": 10399.96920183214, "ULVR.L": 9117.329869778798, - "UTG.L": 10446.084877152089, + "UTG.L": 10523.088950915117, "UU.L": 10521.923662965934, "VOD.L": 10487.308713977825, - "VTY.L": 10663.855421686743, - "WEIR.L": 9735.939802702123, + "VTY.L": 10655.80722891566, + "WEIR.L": 9801.860228449585, "WPP.L": 10653.374704806005, "WTB.L": 11751.815664534584 + }, + "2024-07-23 07:00:00+00:00": { + "AAF.L": 21946.854708389954, + "AAL.L": 9762.75996623134, + "ABF.L": 9878.727790013068, + "ADM.L": 10507.397948177517, + "AHT.L": 16019.038859731942, + "ANTO.L": 17900.492416020905, + "AUTO.L": 10329.165774670008, + "AV.L": 12615.744723735976, + "AZN.L": 12464.112330650321, + "BA.L": 10421.42727423806, + "BARC.L": 10596.624812903974, + "BATS.L": 10840.106841015644, + "BDEV.L": 10419.815171963148, + "BEZ.L": 10598.333923000126, + "BKG.L": 9926.752444080605, + "BME.L": 10637.009333940914, + "BNZL.L": 9738.622513297854, + "BP.L": 1.4002362930141564e-12, + "BRBY.L": 10556.018789293095, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10438.949779512817, + "CPG.L": 0.0, + "CRDA.L": 12186.752831100353, + "CTEC.L": 43.61996504141527, + "DARK.L": 25634.589909659477, + "DCC.L": 21777.797954368376, + "DGE.L": 10125.536498838472, + "DPLM.L": 8625.06326702388, + "EDV.L": 6963.690436705366, + "ENT.L": 10928.798257935676, + "EXPN.L": 10720.883701270579, + "EZJ.L": 8487.747769752781, + "FCIT.L": 0.0, + "FRAS.L": 10210.42164615094, + "FRES.L": 10507.240964221512, + "GBPOUND": 6341.630263262417, + "GLEN.L": 9499.922987892198, + "GSK.L": 10879.346983947706, + "HIK.L": 11334.916572948776, + "HL.L": 10094.21656050955, + "HLMA.L": 10490.680247104328, + "HLN.L": 0.0, + "HSBA.L": 10168.79637120558, + "HWDN.L": 10523.439779409526, + "IAG.L": 10370.38188544722, + "ICG.L": 10783.31326296441, + "IHG.L": 16455.734779520448, + "III.L": 9273.029523104384, + "IMB.L": 10678.282641191276, + "IMI.L": 11137.985773235188, + "INF.L": 10214.890821690824, + "ITRK.L": 9550.196113900043, + "JD.L": 10561.9276837361, + "KGF.L": 10428.239444671626, + "LAND.L": 0.0, + "LGEN.L": 10684.252188735307, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28453.43578238049, + "MKS.L": 0.0, + "MNDI.L": 9872.80481550797, + "MNG.L": 10530.993548538305, + "MRO.L": 43627.28267679388, + "NG.L": 10780.869209600485, + "NWG.L": 10344.468554743064, + "NXT.L": 8750.194276378765, + "PHNX.L": 0.0, + "PRU.L": 10080.555985115705, + "PSH.L": 55308.02482094213, + "PSN.L": 10687.321988101961, + "PSON.L": 1046.7959306656894, + "REL.L": 10605.374431917933, + "RIO.L": 10403.654921558169, + "RKT.L": 9066.211816615702, + "RMV.L": 12158.998876746127, + "RR.L": 10542.968449444159, + "RTO.L": 9501.761599069976, + "SBRY.L": 0.0, + "SDR.L": 10537.853482628007, + "SGE.L": 38225.81546174566, + "SGRO.L": 0.0, + "SHEL.L": 9.069370091785987e-13, + "SMDS.L": 10559.425586174828, + "SMIN.L": 0.0, + "SMT.L": 10262.720771957844, + "SN.L": 3365.8027540720054, + "SPX.L": 8736.196603996956, + "SSE.L": 11059.046881020295, + "STAN.L": 10443.431772156899, + "SVT.L": 10175.696718319552, + "TSCO.L": 10848.236368622842, + "TW.L": 10399.96920183214, + "ULVR.L": 9072.835358435594, + "UTG.L": 10523.088950915117, + "UU.L": 10454.87218864311, + "VOD.L": 10298.941407509741, + "VTY.L": 10655.80722891566, + "WEIR.L": 9515.313911287254, + "WPP.L": 10693.253473692866, + "WTB.L": 11585.497251608826 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index f98bcf3f8..60ed703dd 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10710,5 +10710,108 @@ "WEIR.L": 0.009999997852000706, "WPP.L": 0.009999995804143721, "WTB.L": 0.009999985221513063 + }, + "2024-07-23 07:00:00+00:00": { + "AAF.L": 0.02109777974608023, + "AAL.L": 0.009999997903252855, + "ABF.L": 0.009990907461906251, + "ADM.L": 0.010000104725583594, + "AHT.L": 0.015412183470712599, + "ANTO.L": 0.01731267025498155, + "AUTO.L": 0.010000012748768132, + "AV.L": 0.013160202624651826, + "AZN.L": 0.010000048695778927, + "BA.L": 0.010000015995282555, + "BARC.L": 0.010000003109234445, + "BATS.L": 0.010000006661148968, + "BDEV.L": 0.010014653593086465, + "BEZ.L": 0.01000003402752704, + "BKG.L": 0.010000005873393095, + "BME.L": 0.009999992419470667, + "BNZL.L": 0.009999977103306306, + "BP.L": 6.605183692159913e-07, + "BRBY.L": 0.009999982493232362, + "BT-A.L": 5.884987102974634e-08, + "CCH.L": 3.01170538505033e-07, + "CNA.L": 0.009999987508952523, + "CPG.L": 3.668809254080678e-07, + "CRDA.L": 0.009999995966794207, + "CTEC.L": 4.195385183213221e-05, + "DARK.L": 0.024708296941774458, + "DCC.L": 0.020530734272487187, + "DGE.L": 0.009846307408309251, + "DPLM.L": 0.010000012695676932, + "EDV.L": 0.006830703970052569, + "ENT.L": 0.010503846059315902, + "EXPN.L": 0.010000003536589473, + "EZJ.L": 0.008158657173171716, + "FCIT.L": 6.552738889028154e-08, + "FRAS.L": 0.010000003845891394, + "FRES.L": 0.009999997903760624, + "GBPOUND": 6.919547155840797e-07, + "GLEN.L": 0.009278973344551952, + "GSK.L": 0.009999984968865254, + "HIK.L": 0.010000015931978903, + "HL.L": 0.010000010150573573, + "HLMA.L": 0.01000000899131588, + "HLN.L": 2.902834038195309e-08, + "HSBA.L": 0.009999997486757214, + "HWDN.L": 0.010000001858235187, + "IAG.L": 0.009999820855314168, + "ICG.L": 0.010000026350193307, + "IHG.L": 0.015036744560973755, + "III.L": 0.010000009415269922, + "IMB.L": 0.010000026962637753, + "IMI.L": 0.009999986588339794, + "INF.L": 0.009999843972657558, + "ITRK.L": 0.009999990850969516, + "JD.L": 0.010078608220175615, + "KGF.L": 0.010022750571727728, + "LAND.L": 4.371294844197758e-08, + "LGEN.L": 0.010000001994510859, + "LLOY.L": 2.0920801226483556e-07, + "LMP.L": 1.1079325958748839e-07, + "LSEG.L": 0.026973646629086922, + "MKS.L": 1.1694619860361758e-07, + "MNDI.L": 0.00999999767047926, + "MNG.L": 0.010000006306981814, + "MRO.L": 0.04193161532905328, + "NG.L": 0.009999962560935355, + "NWG.L": 0.009999977549272452, + "NXT.L": 0.010000014214486106, + "PHNX.L": 5.395672105560355e-09, + "PRU.L": 0.009999992299665342, + "PSH.L": 0.05343775666649663, + "PSN.L": 0.010000003392920773, + "PSON.L": 0.0010074600339261511, + "REL.L": 0.009999988097328145, + "RIO.L": 0.010000007028801227, + "RKT.L": 0.009999972937994036, + "RMV.L": 0.011686493318031305, + "RR.L": 0.009999994787175531, + "RTO.L": 0.009999992497156836, + "SBRY.L": 1.1465281750891766e-07, + "SDR.L": 0.009999992093421197, + "SGE.L": 0.03668951831470343, + "SGRO.L": 1.0325645845404206e-08, + "SHEL.L": 0.002028607715531497, + "SMDS.L": 0.009999991551292454, + "SMIN.L": 1.8122830356691367e-07, + "SMT.L": 0.00999988545028379, + "SN.L": 0.0032365356226787332, + "SPX.L": 0.009999947654996648, + "SSE.L": 0.010629017321909937, + "STAN.L": 0.00999999052074632, + "SVT.L": 0.010000002719716877, + "TSCO.L": 0.010000034006146389, + "TW.L": 0.009995580027282857, + "ULVR.L": 0.009999878180355195, + "UTG.L": 0.010113911274938813, + "UU.L": 0.009999975528474047, + "VOD.L": 0.009999997652299, + "VTY.L": 0.010241461508778468, + "WEIR.L": 0.009999993867710505, + "WPP.L": 0.009999989266426446, + "WTB.L": 0.009999959092455138 } } \ No newline at end of file From 243b5be55a0d1031ac79dc72f0f77a27ca4297d5 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 23 Jul 2024 18:00:31 +0400 Subject: [PATCH 063/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-23 --- .../dow30_daily_initial_holdings.json | 43 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 6432a901f..1f8685a44 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4686,14 +4686,14 @@ "WMT": 0.0003945556262149818 }, "2024-07-22 13:30:00+00:00": { - "AAPL": 219171.58544458178, - "AMGN": 20659.461845323352, + "AAPL": 218920.8407290814, + "AMGN": 20656.673389144267, "AMZN": 225255.7627846715, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 77903.05169285937, - "CSCO": 44458.5254235781, + "CSCO": 44524.38961854075, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -4708,14 +4708,47 @@ "MCD": 1.217626104000781e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 233917.78471906687, + "MSFT": 233938.97025431966, "NKE": 1.0037605859837433e-12, "PG": 0.0, "TRV": 0.0, "UNH": 105038.57201845692, - "USDOLLAR": 228.5231839778095, + "USDOLLAR": 228.52324990574994, "V": 34381.603898348316, "VZ": 0.0, "WMT": 0.000392671532482439 + }, + "2024-07-23 13:30:00+00:00": { + "AAPL": 216628.24349048638, + "AMGN": 20726.719635374193, + "AMZN": 224141.6681327218, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 80614.95682480541, + "CSCO": 43889.86922834428, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 110053.85986328397, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2241314468129058e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 235109.2165597412, + "NKE": 1.0244891542835404e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 104243.85511539852, + "USDOLLAR": -152.65117319529082, + "V": 34420.200092818115, + "VZ": 0.0, + "WMT": 0.00039051034624646124 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 68c79a954..6a54c0876 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4717,5 +4717,38 @@ "V": 0.03208895453660131, "VZ": 4.860865068363822e-09, "WMT": 4.286898113707706e-08 + }, + "2024-07-23 13:30:00+00:00": { + "AAPL": 0.20251762923426278, + "AMGN": 0.019332360524700967, + "AMZN": 0.20954190610416765, + "AXP": 4.0809214606492846e-09, + "BA": 6.917675509688717e-09, + "CAT": 3.540083432874845e-09, + "CRM": 0.07536396695836128, + "CSCO": 0.041030984890302186, + "CVX": 3.942680901689411e-09, + "DIS": 5.066154514330296e-09, + "DOW": 5.8084534585079865e-09, + "GS": 4.1271516368936994e-09, + "HD": 0.10288279957758606, + "HON": 2.4844875681293547e-09, + "IBM": 1.812864036267631e-09, + "INTC": 4.634676278109923e-09, + "JNJ": 5.611760213787095e-09, + "JPM": 6.769366376923181e-09, + "KO": 4.2892266892783304e-09, + "MCD": 1.1566323875336366e-08, + "MMM": 2.4322002574666492e-09, + "MRK": 4.841201055558761e-09, + "MSFT": 0.21979443884234065, + "NKE": 1.0836037947665645e-08, + "PG": 3.304517550037926e-09, + "TRV": 2.900292032763572e-09, + "UNH": 0.09735781134800886, + "USDOLLAR": 2.0462933633257248e-09, + "V": 0.03217798259926646, + "VZ": 2.521406003249595e-09, + "WMT": 2.0387229032553997e-08 } } \ No newline at end of file From 8a4700e3b8aa4709f9ac327820dec91e858a4340 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 23 Jul 2024 18:01:32 +0400 Subject: [PATCH 064/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-23 --- .../ndx100_daily_initial_holdings.json | 184 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 ++++++++++ 2 files changed, 248 insertions(+), 40 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index f636dd9d5..b25cc0c92 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14663,107 +14663,211 @@ "ZS": 18558.386931239806 }, "2024-07-22 13:30:00+00:00": { - "AAPL": 7466.983418780428, + "AAPL": 7458.44076655117, "ABNB": 0.0, "ADBE": 11956.381031396302, "ADI": 0.0, "ADP": 0.0, "ADSK": 83.81492653838362, "AEP": 0.0, - "AMAT": -55.353066463321355, - "AMD": -1.8799522354807483e-11, - "AMGN": 34829.2434979405, + "AMAT": -55.49422167712342, + "AMD": -1.8788556990994243e-11, + "AMGN": 34824.542512988824, "AMZN": 19333.545125870336, "ANSS": 11.286277364505821, - "ARM": 69654.0586053629, - "ASML": 16.202783468875296, + "ARM": 69641.43300577841, + "ASML": 16.216760359700597, "AVGO": -36.322323599922285, "AZN": 0.0, "BIIB": 15100.409025696124, "BKNG": 11204.960120401429, "BKR": 0.0, "CCEP": 16032.49817636077, - "CDNS": -89.59443460731552, + "CDNS": -89.31730441424955, "CDW": 13312.219826636396, - "CEG": 75080.89598725678, - "CHTR": 18049.44499119897, - "CMCSA": 33959.50641002939, + "CEG": 75030.16178915703, + "CHTR": 18048.87812776607, + "CMCSA": 33942.58127532839, "COST": 0.0, "CPRT": -0.8201821093923594, - "CRWD": 9236.12224672426, - "CSCO": 56025.50593512147, + "CRWD": 9236.44663766803, + "CSCO": 56108.50632280044, "CSGP": 5781.037530640192, "CSX": 2087.40005493164, "CTAS": 0.0, - "CTSH": 27058.533724092682, + "CTSH": 27105.739060436546, "DASH": 0.0, - "DDOG": 15854.202719970115, - "DLTR": 27674.60295594123, - "DXCM": 11188.904859046073, - "EA": 13411.777525119373, + "DDOG": 15805.2941120674, + "DLTR": 27713.419314986062, + "DXCM": 11234.736433859493, + "EA": 13412.254480919488, "EXC": 0.0, "FANG": 28391.888200428664, - "FAST": 20927.878954286884, - "FTNT": 23752.274551610688, + "FAST": 20917.139270441818, + "FTNT": 23768.38908252444, "GEHC": 6858.85964908391, - "GFS": 28337.322030197894, + "GFS": 28289.9239815526, "GILD": 29061.844950780123, - "GOOG": -59.95007813710148, - "GOOGL": -2.349426445088908e-12, + "GOOG": -59.908028936882694, + "GOOGL": -2.3489060601532495e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 6668.712525475297, "INTC": 2.1155974888572984, "INTU": -100.25476653632045, - "ISRG": 9457.185261880299, + "ISRG": 9451.461216976904, "KDP": 0.0, "KHC": 0.0, "KLAC": 12473.537617716887, "LIN": 0.0, "LRCX": -9.957357963440069, - "LULU": 21247.52173687836, + "LULU": 21249.029001426337, "MAR": 0.0, - "MCHP": 13164.26458567464, - "MDB": 27932.625943727155, + "MCHP": 13239.04907983472, + "MDB": 27877.53200695451, "MDLZ": 0.0, "MELI": 21622.60285468529, - "META": -132.09630513385696, - "MNST": 17738.097203670473, - "MRNA": 20485.253226989455, + "META": -132.11802338803292, + "MNST": 17773.069258313382, + "MRNA": 20562.45458630525, "MRVL": 0.0, - "MSFT": 43.23633068887556, - "MU": 8.501432973977636, - "NFLX": 15958.553485132277, + "MSFT": 43.240246529687376, + "MU": 8.498486136042136, + "NFLX": 15964.794608904323, "NVDA": 138.19474813167062, "NXPI": 19972.75962774392, "ODFL": 9650.922401631351, "ON": -3.3172114801631727, "ORLY": 26406.602511386023, - "PANW": -7.906187893622376, + "PANW": -7.898158756366486, "PAYX": 8353.272568488232, "PCAR": 0.0, "PDD": 28305.691314799788, - "PEP": 27089.307158932683, + "PEP": 27074.908861309752, "PYPL": 6172.384534025716, "QCOM": -7.195989265193598, "REGN": 15134.741437392096, "ROP": 15316.395541091782, "ROST": 8133.900759523784, - "SBUX": 33142.10425457833, + "SBUX": 33108.28932151446, "SNPS": 0.0, "TEAM": 12624.144909932254, "TMUS": 7144.297898535469, - "TSLA": 2888.485432492889, - "TTD": 40488.00307639134, + "TSLA": 2888.4617899309033, + "TTD": 40578.84551315279, "TTWO": 9812.79719604044, "TXN": 0.0, - "USDOLLAR": -790.6303112530796, + "USDOLLAR": -790.6301367089338, "VRSK": 0.0, "VRTX": 11841.396605361719, - "WBA": 348.19981294617935, + "WBA": 348.84048964585446, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, - "ZS": 20085.219443010566 + "ZS": 20102.053957247874 + }, + "2024-07-23 13:30:00+00:00": { + "AAPL": 7372.68888150637, + "ABNB": 0.0, + "ADBE": 11910.151387496671, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 83.63738522446714, + "AEP": 0.0, + "AMAT": -56.546465362466485, + "AMD": -1.885799624012246e-11, + "AMGN": 34942.631637687446, + "AMZN": 18869.753144943592, + "ANSS": 11.331294536963151, + "ARM": 68213.17369566923, + "ASML": 16.34045802955976, + "AVGO": -36.359729166453015, + "AZN": 0.0, + "BIIB": 15004.92478439639, + "BKNG": 11010.50784467012, + "BKR": 0.0, + "CCEP": 15854.919175099118, + "CDNS": -90.69349858564196, + "CDW": 13538.953486358945, + "CEG": 73458.09280679391, + "CHTR": 18133.60623939106, + "CMCSA": 33406.56960835719, + "COST": 0.0, + "CPRT": -0.8225403338935181, + "CRWD": 8458.339334778891, + "CSCO": 55987.65353417854, + "CSGP": 6057.6880296033605, + "CSX": 2056.7999267578125, + "CTAS": 0.0, + "CTSH": 27424.876973844363, + "DASH": 0.0, + "DDOG": 15980.889114822327, + "DLTR": 27576.262914674473, + "DXCM": 11124.142570233475, + "EA": 14386.355952434116, + "EXC": 0.0, + "FANG": 28862.513434202225, + "FAST": 20960.66807872604, + "FTNT": 23502.50546951261, + "GEHC": 6513.58510022329, + "GFS": 27486.313303517403, + "GILD": 28794.895929170914, + "GOOG": -60.39590092239679, + "GOOGL": -2.3678961409307613e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 6817.339941650646, + "INTC": 2.0941111140322475, + "INTU": -100.26567153795986, + "ISRG": 9351.126664215226, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 12561.33898671011, + "LIN": 0.0, + "LRCX": -10.187370921533788, + "LULU": 22296.71429762583, + "MAR": 0.0, + "MCHP": 13693.256514100856, + "MDB": 27541.38776081224, + "MDLZ": 0.0, + "MELI": 21821.17721700409, + "META": -133.0148687921643, + "MNST": 17654.16240478978, + "MRNA": 20326.49056305781, + "MRVL": 0.0, + "MSFT": 43.45654969068647, + "MU": 8.482278808422803, + "NFLX": 16819.281388913187, + "NVDA": 263.7650525560968, + "NXPI": 19142.456181864414, + "ODFL": 9468.249411076262, + "ON": 71.69775851997068, + "ORLY": 26447.1308652734, + "PANW": -7.923426648057416, + "PAYX": 8795.959222974554, + "PCAR": 0.0, + "PDD": 26920.791871366604, + "PEP": 27007.55676332669, + "PYPL": 6255.850582037459, + "QCOM": -7.324085179229335, + "REGN": 15014.548534143907, + "ROP": 15495.634896266914, + "ROST": 8167.716348076694, + "SBUX": 30957.245418860555, + "SNPS": 0.0, + "TEAM": 12038.788628542252, + "TMUS": 7172.072746097354, + "TSLA": 3251.2003418014574, + "TTD": 40877.37089677289, + "TTWO": 9805.627870201413, + "TXN": 0.0, + "USDOLLAR": -1535.1069923165658, + "VRSK": 0.0, + "VRTX": 11786.359186350197, + "WBA": 356.52842674707665, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 19808.50954033768 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index c8f55f380..a0aa8ab6c 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14558,5 +14558,109 @@ "WDAY": 3.432387135770948e-08, "XEL": 1.756975593957933e-07, "ZS": 0.018255777546771167 + }, + "2024-07-23 13:30:00+00:00": { + "AAPL": 0.006724863946671325, + "ABNB": 8.814564997075874e-09, + "ADBE": 0.011106724950143433, + "ADI": 1.538598836208846e-07, + "ADP": 1.4461333980734684e-07, + "ADSK": 2.151865709004632e-08, + "AEP": 7.427059706184205e-09, + "AMAT": 3.1258677282732764e-08, + "AMD": 3.8819211589765674e-09, + "AMGN": 0.03172647251905388, + "AMZN": 0.017286247353112044, + "ANSS": 3.943776038977382e-08, + "ARM": 0.06206750768488006, + "ASML": 1.1429358771991325e-08, + "AVGO": 1.2471594551102046e-08, + "AZN": 3.3414995456357205e-08, + "BIIB": 0.01361811129521188, + "BKNG": 0.009211678327782446, + "BKR": 6.417744762954889e-08, + "CCEP": 0.014411421931958058, + "CDNS": 8.408613055762302e-09, + "CDW": 0.01291497781389736, + "CEG": 0.06675552111526617, + "CHTR": 0.01661842834357538, + "CMCSA": 0.03056382478547176, + "COST": 9.175854614600617e-09, + "CPRT": 6.871584466655125e-08, + "CRWD": 0.006583091625016891, + "CSCO": 0.051223920710549375, + "CSGP": 0.005651137100569064, + "CSX": 0.0018817750745767036, + "CTAS": 1.463291835637283e-08, + "CTSH": 0.025084231427243524, + "DASH": 6.366246866865243e-09, + "DDOG": 0.014621670583187547, + "DLTR": 0.02521301449987507, + "DXCM": 0.010285093494354204, + "EA": 0.013162139068108442, + "EXC": 2.4168359587865516e-08, + "FANG": 0.02640726142144915, + "FAST": 0.019176809876561687, + "FTNT": 0.021813516195137207, + "GEHC": 0.005762821582843425, + "GFS": 0.024130346895385537, + "GILD": 0.02634487178722802, + "GOOG": 1.5536755800477184e-07, + "GOOGL": 6.941143616099254e-08, + "HON": 2.2870840471222228e-08, + "IDXX": 2.3915668009803543e-08, + "ILMN": 0.006328114689118659, + "INTC": 3.292146582001024e-08, + "INTU": 1.047453618342357e-07, + "ISRG": 0.008417030678155179, + "KDP": 1.61319492559976e-07, + "KHC": 1.726910472896426e-08, + "KLAC": 0.013509441008635282, + "LIN": 6.020064080169461e-08, + "LRCX": 2.6977524980221373e-08, + "LULU": 0.020396455669302004, + "MAR": 5.477526726928183e-08, + "MCHP": 0.01271610426018208, + "MDB": 0.024988101475255722, + "MDLZ": 1.0556354870173132e-07, + "MELI": 0.01932342871232226, + "META": 8.550637851874364e-09, + "MNST": 0.016152044504183942, + "MRNA": 0.018455962943845737, + "MRVL": 7.735526447057327e-09, + "MSFT": 2.2441132709138218e-08, + "MU": 8.819204251467585e-09, + "NFLX": 0.01525146744225784, + "NVDA": 0.0008837035046632274, + "NXPI": 0.017789196332065882, + "ODFL": 0.008617335788439767, + "ON": 0.00028439104029485523, + "ORLY": 0.023775460306565, + "PANW": 2.1652485182180323e-08, + "PAYX": 0.00804910474484359, + "PCAR": 8.914747971993312e-09, + "PDD": 0.024621182137838305, + "PEP": 0.024707999762022002, + "PYPL": 0.005723972385985757, + "QCOM": 4.108114519387993e-08, + "REGN": 0.014006303361810952, + "ROP": 0.014139461477062047, + "ROST": 0.007470225923136371, + "SBUX": 0.028021544444450822, + "SNPS": 4.1353358115324e-09, + "TEAM": 0.01099280975544497, + "TMUS": 0.006561050610812706, + "TSLA": 0.0036988696712515895, + "TTD": 0.036631787375413116, + "TTWO": 0.008922654442869856, + "TXN": 2.5037040628150618e-08, + "USDOLLAR": 2.308193873634505e-07, + "VRSK": 2.1926869602399397e-07, + "VRTX": 0.01058647713451899, + "WBA": 0.0003261654113018708, + "WBD": 1.9917234066286963e-08, + "WDAY": 1.6748054937852627e-08, + "XEL": 7.977220774964208e-08, + "ZS": 0.01830245759299683 } } \ No newline at end of file From a873e7eb0220a7d025d81f46611af132dd09914d Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 23 Jul 2024 18:06:30 +0400 Subject: [PATCH 065/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-23 --- .../sp500_daily_initial_holdings.json | 629 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1072 insertions(+), 62 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index d634244c6..0b229c404 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -70318,8 +70318,8 @@ }, "2024-07-22 13:30:00+00:00": { "A": 0.0, - "AAL": 615.4608064520452, - "AAPL": 47855.00486940245, + "AAL": 614.8746398870625, + "AAPL": 47800.256031605306, "ABBV": 4723.2094180077065, "ABNB": 0.0, "ABT": 3301.305677802879, @@ -70339,14 +70339,14 @@ "AJG": 0.0, "AKAM": 95.39095384439337, "ALB": 0.0, - "ALGN": 1226.94560912728, + "ALGN": 1228.8962082650532, "ALL": 6.872989666107855e-14, "ALLE": 0.0, - "AMAT": 2084.518228633163, + "AMAT": 2089.8339344293718, "AMCR": 0.0, - "AMD": 28039.26245161003, + "AMD": 28022.907742802327, "AME": 0.0, - "AMGN": 6195.074237154895, + "AMGN": 6194.238073407464, "AMP": 9.071020507511195, "AMT": 631.5711419566512, "AMZN": 36832.50050689119, @@ -70357,7 +70357,7 @@ "APA": 0.0, "APD": 0.0, "APH": 25.83056830696227, - "APTV": 2.3793131817050436e-14, + "APTV": 2.406260492628259e-14, "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, @@ -70383,7 +70383,7 @@ "BKNG": 3731.8115740474664, "BKR": 0.0, "BLDR": 358.57684942389153, - "BLK": 9.50561020189837e-13, + "BLK": 9.572550838461993e-13, "BMY": 85.4793278409732, "BR": 0.0, "BRK-B": 0.0, @@ -70405,19 +70405,19 @@ "CDNS": 0.0, "CDW": 400.5169961695476, "CE": -2.7062768656086995e-14, - "CEG": 37120.813721471866, - "CF": 9608.04086965346, + "CEG": 37095.73018068289, + "CF": 9653.577141061265, "CFG": 0.0, "CHD": 2479.132192845209, "CHRW": 0.0, - "CHTR": 6657.908323839423, + "CHTR": 6657.699224625004, "CI": 3.8963407204197083e-13, "CINF": 0.015126617209997013, "CL": 9.687782142232843, "CLX": 15.224551387972447, - "CMCSA": 6435.559971373542, + "CMCSA": 6432.352541969925, "CME": 4628.328632855052, - "CMG": 5460.970221120495, + "CMG": 5461.480939864401, "CMI": 0.0, "CMS": 0.0, "CNC": 858.4011809738561, @@ -70433,18 +70433,18 @@ "CPT": 0.0, "CRL": 0.0, "CRM": 7492.796849644505, - "CRWD": 3132.047732948909, - "CSCO": 6930.611901638012, + "CRWD": 3132.1577366813067, + "CSCO": 6940.879430062557, "CSGP": -7.516546635559554e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 11084.27621002937, + "CTSH": 11103.613436205702, "CTVA": 110.98282850007028, "CVS": 0.0, "CVX": -5.701299698388129e-13, - "CZR": 8929.91381008734, + "CZR": 8921.504133965802, "D": 0.0, "DAL": 650.2613659750274, "DAY": 0.0, @@ -70458,31 +70458,31 @@ "DHR": 1967.2691736323916, "DIS": -4.214893689052853, "DLR": 3.1433074007660584e-14, - "DLTR": 1071.340156032178, + "DLTR": 1072.8428162228913, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, "DPZ": 412.8962860787718, - "DRI": 2.3988065799837024, + "DRI": 2.399310298791357, "DTE": 0.0, "DUK": 1.2236801880500887, - "DVA": 3455.1787703805508, + "DVA": 3455.429481003596, "DVN": 0.0, - "DXCM": 4905.397031062714, - "EA": 3819.189990176152, + "DXCM": 4925.490335443339, + "EA": 3819.32580996694, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.707867531032151e-14, + "EG": 5.784748683991211e-14, "EIX": 0.0, "EL": 0.0, "ELV": -2.0931346979522495e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 3246.898221588351, + "ENPH": 3242.4418240814266, "EOG": 0.0, - "EPAM": 5801.042197802877, + "EPAM": 5822.424808657558, "EQIX": 796.4120043719071, "EQR": 0.0, "EQT": 0.0, @@ -70495,26 +70495,26 @@ "EW": 0.0, "EXC": 0.0, "EXPD": -1.1118673480039793, - "EXPE": 4462.878145344811, + "EXPE": 4458.744472931049, "EXR": 5.846782379809031e-14, "F": 0.0, "FANG": 14260.493281542851, - "FAST": 3214.491130774607, + "FAST": 3212.84153128377, "FCX": 0.0, "FDS": 2108.149260682612, "FDX": 7401.717176268262, "FE": 0.0, "FFIV": 3319.2565131134006, "FI": 2.5149220181739697e-13, - "FICO": 1523.7992583397843, + "FICO": 1530.5331246294838, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.800829502666003e-14, - "FTNT": 6070.151034291559, + "FSLR": -7.799376653994713e-14, + "FTNT": 6074.269277211019, "FTV": 0.0, "GD": 3.807445969156926e-13, "GDDY": 0.0, @@ -70528,15 +70528,15 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 24309.676047350426, - "GOOGL": 2139.703842657404, + "GOOG": 24292.62515322096, + "GOOGL": 2139.2299101157755, "GPC": 0.0, "GPN": -1.0538318088565638e-13, "GRMN": 2222.976199099582, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.0728245039897335, + "HAS": 1.0749932673531921, "HBAN": 0.0, "HCA": 5628.106411570122, "HD": 8225.554529343051, @@ -70556,11 +70556,11 @@ "HUM": 1110.3478985203033, "HWM": 2085.3243764034723, "IBM": 0.0, - "ICE": 730.7340585190682, + "ICE": 731.0804611374971, "IDXX": -9.847187836311987, "IEX": 0.0, "IFF": 0.0, - "INCY": 4140.3393310702495, + "INCY": 4135.958223726209, "INTC": 230.00527418532374, "INTU": 1274.9687618723008, "INVH": 0.0, @@ -70569,13 +70569,13 @@ "IQV": 0.0, "IR": 0.04524161100782866, "IRM": 0.0, - "ISRG": 6844.335012402589, + "ISRG": 6840.192418188772, "IT": 7.609215479397636e-13, "ITW": 0.0, "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, - "JBL": 2495.2932215105457, + "JBL": 2519.6728236991603, "JCI": 0.0, "JKHY": 832.8742440883285, "JNJ": 13285.472963414968, @@ -70607,7 +70607,7 @@ "LNT": 0.0, "LOW": -2.822862308425721e-13, "LRCX": 889.6161223387315, - "LULU": 1701.2886732822644, + "LULU": 1701.4093599267999, "LUV": 27.164433830537234, "LVS": 1816.2039735351864, "LW": 28.110002772074612, @@ -70618,13 +70618,13 @@ "MAR": -6.020924654299183e-13, "MAS": 0.0, "MCD": 10702.664004275864, - "MCHP": 2364.9915562071797, + "MCHP": 2378.4267690952793, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.309521976014768, "MET": -0.03612342178260579, - "META": 22861.880885494164, + "META": 22865.63965936379, "MGM": 4283.569485431972, "MHK": 0.0, "MKC": 0.0, @@ -70632,29 +70632,29 @@ "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5198.080495631961, + "MNST": 5208.328920423199, "MO": -22.07258971095891, "MOH": 1746.3423738680897, "MOS": 0.0, "MPC": 14944.239192802548, "MPWR": -9.313565810286509e-13, "MRK": 5716.634608512656, - "MRNA": 7638.765596193624, + "MRNA": 7667.553284634006, "MRO": 0.0, "MS": 6137.391269645189, "MSCI": 4470.70022264817, - "MSFT": 38817.22199089501, + "MSFT": 38820.73760056057, "MSI": 0.0, - "MTB": -6.2315617100637395, + "MTB": -6.278699090623977, "MTCH": 0.0, "MTD": 0.0, - "MU": 3471.589709959843, + "MU": 3470.386358444267, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 15965.269984798948, + "NFLX": 15971.513735281855, "NI": 0.0, "NKE": -3.0284725485659925e-14, "NOC": -3.9267523430847015e-13, @@ -70678,21 +70678,21 @@ "ORLY": -0.7448678652674977, "OTIS": 1672.1533145763954, "OXY": 0.0, - "PANW": 5041.40346951988, - "PARA": 2115.311207354749, + "PANW": 5036.283667035582, + "PARA": 2115.126096653429, "PAYC": 0.0, "PAYX": 491.6417533732511, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 11871.895632179396, + "PEP": 11865.585574647928, "PFE": 0.0, - "PFG": 172.36020518061716, + "PFG": 171.8338019386357, "PG": 1.0741229960369065, - "PGR": 8155.4562225179125, + "PGR": 7956.914031532484, "PH": 0.0, "PHM": -11.982681035024168, - "PKG": -4.992384265294898e-13, + "PKG": -5.00047812481826e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, @@ -70705,7 +70705,7 @@ "PRU": 636.0035471573111, "PSA": 0.0, "PSX": 2809.615793216209, - "PTC": 2.635847386800413e-14, + "PTC": 2.636145792064713e-14, "PWR": -5.098874434573355, "PYPL": 0.0, "QCOM": 4534.801313490345, @@ -70724,8 +70724,8 @@ "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, - "SBAC": 6083.369563788661, - "SBUX": 8876.95421454733, + "SBAC": 6101.392497551714, + "SBUX": 8867.897046352147, "SCHW": 127.55105287567524, "SHW": 1.3834499542643313, "SJM": 1.003993305506135, @@ -70740,8 +70740,8 @@ "SRE": 0.0, "STE": 0.5000534198493019, "STLD": -2.755731110672025e-14, - "STT": 339.3875563476949, - "STX": -13.44979465020587, + "STT": 340.47213549967586, + "STX": -13.466604921599508, "STZ": -2.0584288942673434, "SWK": 0.0, "SWKS": 0.0, @@ -70767,14 +70767,14 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.837597841001946e-12, - "TSLA": 102785.23019255044, + "TSLA": 102784.38888445566, "TSN": 5002.45290260738, "TT": 0.0, "TTWO": 741.4142635499006, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 4086.855489471299, + "UAL": 4085.9906916883683, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -70784,7 +70784,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 1204.1014692394679, + "USDOLLAR": 1204.101776600827, "V": 1854.5028314789774, "VICI": 0.0, "VLO": 0.0, @@ -70801,7 +70801,7 @@ "WAT": -2.1097892745642934e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.879634747744518, + "WDC": -2.881253011664164, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -70812,7 +70812,512 @@ "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 3023.3858122495812, + "WYNN": 3021.94607176765, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-07-23 13:30:00+00:00": { + "A": 0.0, + "AAL": 623.6669706620436, + "AAPL": 46801.8824548235, + "ABBV": 4896.529425331925, + "ABNB": 0.0, + "ABT": 3349.939615615873, + "ACGL": 0.0, + "ACN": 2.619370123602608e-13, + "ADBE": 10952.89419058638, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.676621772211588, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3536.4343358229808, + "AIG": 0.0, + "AIZ": 1.4462601460507887, + "AJG": 0.0, + "AKAM": -0.07956072067670081, + "ALB": 0.0, + "ALGN": 1218.9236269328076, + "ALL": 6.834218740045707e-14, + "ALLE": 0.0, + "AMAT": 2129.459944029313, + "AMCR": 0.0, + "AMD": 28281.275554333584, + "AME": 0.0, + "AMGN": 6215.2425748159385, + "AMP": 9.211659754298193, + "AMT": 630.3378873032274, + "AMZN": 36650.33028702477, + "ANET": 3657.0893219353884, + "ANSS": 310.9039340454125, + "AON": 17.24398615554376, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 26.275649960032613, + "APTV": 2.3654939735553386e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 21478.17934770599, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4960.6536166845435, + "AXP": 0.0, + "AZO": 1.729934710738513e-12, + "BA": -1.066021027479226e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 524.6981920454286, + "BDX": 0.0, + "BEN": 188.95845396462028, + "BF-B": 0.0, + "BG": 1367.501487243389, + "BIIB": 2463.7191340402633, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3667.049250453586, + "BKR": 0.0, + "BLDR": 356.20128326790694, + "BLK": 9.64910381128404e-13, + "BMY": 85.4994704240052, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.32138586060528196, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1395.4897080263506, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20715.017651095986, + "CAT": 0.0, + "CB": 296.00306214897614, + "CBOE": 0.0, + "CBRE": 4735.042716663591, + "CCI": 301.3500266347865, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 400.39555702448473, + "CE": -2.7043413424675993e-14, + "CEG": 37168.81687339294, + "CF": 9412.67718925413, + "CFG": 0.0, + "CHD": 2455.179796609883, + "CHRW": 0.0, + "CHTR": 6258.23782436369, + "CI": 3.8997057822588335e-13, + "CINF": 0.014945371025718596, + "CL": 9.689757043271667, + "CLX": 14.873994000578765, + "CMCSA": 6323.302389265392, + "CME": 4642.4761740731765, + "CMG": 5503.350916886747, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 852.932022383992, + "CNP": 0.0, + "COF": 9037.169187506228, + "COO": 0.0, + "COP": 0.0, + "COR": 3392.7977567225726, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 724.479441188991, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7728.951622958161, + "CRWD": 2690.310238630422, + "CSCO": 6856.538538399508, + "CSGP": -7.584483098744628e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 11067.376750082507, + "CTVA": 110.27528309178378, + "CVS": 0.0, + "CVX": -5.656978030986197e-13, + "CZR": 8683.628997607155, + "D": 0.0, + "DAL": 638.3192807917502, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0635862052162372e-13, + "DECK": 861.0204350904625, + "DFS": 3693.296543111325, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.9708112797910085, + "DHR": 2158.2328046949124, + "DIS": -4.019460017674011, + "DLR": 3.140271767711304e-14, + "DLTR": 1067.5332130627462, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.155827813470253, + "DRI": 2.3934332377486536, + "DTE": 0.0, + "DUK": 1.229859245528807, + "DVA": 3505.522686466686, + "DVN": 0.0, + "DXCM": 4877.004195189299, + "EA": 3854.061721461076, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.74593786499246e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.1083610799218516e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3159.3433271176486, + "EOG": 0.0, + "EPAM": 5846.86207820577, + "EQIX": 816.1294621714392, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1202926498194747, + "EXPE": 4459.40600180488, + "EXR": 5.874856336379976e-14, + "F": 0.0, + "FANG": 14188.972168325805, + "FAST": 3209.0705044119786, + "FCX": 0.0, + "FDS": 2111.413816324711, + "FDX": 6909.838552782449, + "FE": 0.0, + "FFIV": 3116.121225834376, + "FI": 2.532378043911057e-13, + "FICO": 1563.436683268397, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.70772528140403e-14, + "FTNT": 6006.319839988994, + "FTV": 0.0, + "GD": 3.8635484750676296e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1733.364099259382, + "GEN": 0.0, + "GEV": 19367.257011549456, + "GILD": 8548.866223930634, + "GIS": 7580.553235099219, + "GL": 0.30233714234739173, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 24490.456587123386, + "GOOGL": 2156.5248328391294, + "GPC": 0.0, + "GPN": -1.0508163950037631e-13, + "GRMN": 2254.028318695113, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.0735474480921345, + "HBAN": 0.0, + "HCA": 6034.219059982014, + "HD": 8560.596180476994, + "HES": 0.0, + "HIG": 5695.171653381036, + "HII": 0.7329231349234, + "HLT": -1.3724674668271992e-13, + "HOLX": 2897.200544436869, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10645.094397045004, + "HUBB": 1.329504901043382e-13, + "HUM": 1114.9574261767834, + "HWM": 2129.404933583212, + "IBM": 0.0, + "ICE": 741.8178097806109, + "IDXX": -9.90960125373078, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4072.7520606465528, + "INTC": 227.66930075043666, + "INTU": 1275.1074439212325, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.0460503221215131, + "IRM": 0.0, + "ISRG": 6767.578498359102, + "IT": 7.820294297444085e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2544.955221029505, + "JCI": 0.0, + "JKHY": 846.161886361, + "JNJ": 13160.145838080402, + "JNPR": 0.0, + "JPM": 2555.492921329585, + "K": 469.262494704415, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -19.354486658160173, + "KMB": 4630.178594758749, + "KMI": 0.0, + "KMX": 1.1340034108209545, + "KO": 198.25247226102476, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21428516638032657, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6712046188458785, + "LKQ": 5041.262359076446, + "LLY": 1.5007039578632624, + "LMT": 8342.55184680371, + "LNT": 0.0, + "LOW": -2.8421961673602883e-13, + "LRCX": 910.1660751091653, + "LULU": 1716.98659702965, + "LUV": 27.90866465789048, + "LVS": 1819.2912421836522, + "LW": 28.747550013068373, + "LYB": 3561.260762512949, + "LYV": 2851.497176217248, + "MA": 30752.733581634195, + "MAA": 0.0, + "MAR": -6.00016378796506e-13, + "MAS": 0.0, + "MCD": 10759.844528019596, + "MCHP": 2394.0794230486276, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3078757134721495, + "MET": -0.0361137994677708, + "META": 23020.856512561746, + "MGM": 4119.397286225499, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6630.653785069456, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5173.483728799708, + "MO": -22.106094286419015, + "MOH": 1743.093720732047, + "MOS": 0.0, + "MPC": 15016.65111580364, + "MPWR": -9.425559549082784e-13, + "MRK": 5673.062046992928, + "MRNA": 7624.997467491009, + "MRO": 0.0, + "MS": 6136.193123400485, + "MSCI": 4368.2809218502525, + "MSFT": 39014.93279899804, + "MSI": 0.0, + "MTB": -6.486103565089031, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3578.9080392561596, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16826.087512262187, + "NI": 0.0, + "NKE": -3.091013258914254e-14, + "NOC": -3.943263334470223e-13, + "NOW": 5176.406899329347, + "NRG": 0.0, + "NSC": -2.7252050594747373e-14, + "NTAP": 6063.987791190506, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 139870.40107814135, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8082.461019245657, + "O": 0.0, + "ODFL": 3286.729066966403, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.76399432337496, + "ORCL": 7356.374534319038, + "ORLY": -0.7460110743732461, + "OTIS": 1680.6181995182233, + "OXY": 0.0, + "PANW": 5387.915799923404, + "PARA": 2120.682420442929, + "PAYC": 0.0, + "PAYX": 488.885321984887, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11762.534494385813, + "PFE": 0.0, + "PFG": 172.31971856469974, + "PG": 1.0741229960369065, + "PGR": 8258.35679235781, + "PH": 0.0, + "PHM": -11.637991233344612, + "PKG": -5.0634015480797e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.277930343124666, + "POOL": 1294.0055510022303, + "PPG": -0.40988034412990193, + "PPL": 0.0, + "PRU": 637.8013203085737, + "PSA": 0.0, + "PSX": 2839.946904393207, + "PTC": 2.662399764909917e-14, + "PWR": -5.207104293104203, + "PYPL": 0.0, + "QCOM": 4615.525380441323, + "QRVO": 0.0, + "RCL": 2158.644371264406, + "REG": 0.0, + "REGN": 1085.421724573754, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 181.30351172432077, + "ROK": 1.211996593667772, + "ROL": 0.0, + "ROP": 5721.6325908378, + "ROST": 1158.6165260940732, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6065.055651374581, + "SBUX": 8725.249670364909, + "SCHW": 130.99618938558234, + "SHW": 1.4549529683681983, + "SJM": 0.9883925414749508, + "SLB": 0.0, + "SMCI": 10583.521908983092, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.538211226494484, + "SOLV": -1.5673838139369972e-12, + "SPG": 0.0, + "SPGI": -5.787306413573512, + "SRE": 0.0, + "STE": 0.5091303619292408, + "STLD": -2.7185844441320186e-14, + "STT": 335.973200656784, + "STX": -13.599796651115684, + "STZ": -2.0537239344496747, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -7.0416769254292095, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4793.033751160351, + "TDY": -15.42962767730323, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 451.8187396461152, + "TMO": 0.0, + "TMUS": 8238.592113483744, + "TPR": 2758.5444953908213, + "TRGP": 416.78229516191857, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.8688392959829073e-12, + "TSLA": 107433.71444316616, + "TSN": 4991.548740514986, + "TT": 0.0, + "TTWO": 740.8725790199039, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4143.076913898872, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3520.500659734198, + "UNH": 18866.429029792023, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 1630.8792933012949, + "V": 1856.5846643143557, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8701.020641618941, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3206.873671552659, + "VRTX": 2451.462240555963, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.1225708939030827e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.9269678099480516, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5940428808949956, + "WMB": 0.0, + "WMT": 12080.346353368734, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2995.6715631290253, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 648435078..641a07ec0 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -67794,5 +67794,510 @@ "ZBH": 3.2439944932534714e-09, "ZBRA": 1.9834110548066032e-09, "ZTS": 7.876373879340839e-09 + }, + "2024-07-23 13:30:00+00:00": { + "A": 1.2193398942160076e-09, + "AAL": 0.0005243586494904003, + "AAPL": 0.039349431449240496, + "ABBV": 0.004427025288092065, + "ABNB": 1.044766325906608e-09, + "ABT": 0.0028165171091065833, + "ACGL": 4.072880400747002e-09, + "ACN": 4.967099892363224e-09, + "ADBE": 0.009183590971130124, + "ADI": 5.825546840622418e-09, + "ADM": 3.6584804235651403e-09, + "ADP": 6.2125460333490635e-09, + "ADSK": 4.533648973694654e-09, + "AEE": 1.5379869820507319e-09, + "AEP": 1.5508234715977579e-09, + "AES": 6.552448019840622e-10, + "AFL": 0.002973312867925969, + "AIG": 1.2953098184936271e-09, + "AIZ": 6.539096615448006e-09, + "AJG": 3.246196696592577e-09, + "AKAM": 3.1340997439888037e-09, + "ALB": 5.377035906457884e-10, + "ALGN": 0.0010248244241323973, + "ALL": 4.81836947018254e-09, + "ALLE": 1.3552773500099653e-09, + "AMAT": 0.001790367226279459, + "AMCR": 3.6257701862131105e-10, + "AMD": 0.023777968014862965, + "AME": 1.5166121685267115e-09, + "AMGN": 0.005225563047579811, + "AMP": 3.089586013742581e-08, + "AMT": 0.0005301443363647644, + "AMZN": 0.03081435915643248, + "ANET": 0.0030758176573467758, + "ANSS": 0.00020913237004392614, + "AON": 1.039152449390671e-08, + "AOS": 1.2014924727398246e-09, + "APA": 8.650029540265508e-10, + "APD": 3.3193097899774236e-09, + "APH": 2.608081834242168e-08, + "APTV": 2.7532438164263005e-09, + "ARE": 1.2085200367838226e-09, + "ATO": 1.866362664120422e-09, + "AVB": 1.7479157948851583e-09, + "AVGO": 0.01805828679620255, + "AVY": 1.980089186561884e-09, + "AWK": 3.6555166360096035e-09, + "AXON": 0.0042450508941193855, + "AXP": 3.2498242803136705e-09, + "AZO": 2.9217385900048103e-07, + "BA": 1.2232910428518832e-08, + "BAC": 2.0289937412841455e-09, + "BALL": 4.516290977262191e-09, + "BAX": 2.8305408057820606e-09, + "BBWI": 2.1274021743697068e-09, + "BBY": 0.00045016923761539214, + "BDX": 4.276906033521764e-09, + "BEN": 0.00015887043353814815, + "BF-B": 3.023683318949024e-09, + "BG": 0.0011496573483471342, + "BIIB": 0.0020712961870421927, + "BIO": 1.5661097503372542e-09, + "BK": 1.7832646733218203e-09, + "BKNG": 0.0017561790395777723, + "BKR": 9.053852625503373e-10, + "BLDR": 0.0003696581035138188, + "BLK": 1.9861045362615318e-05, + "BMY": 7.188556094847721e-05, + "BR": 2.7701733930665527e-09, + "BRK-B": 4.391612926133383e-09, + "BRO": 2.0229084620587066e-07, + "BSX": 2.6800720460692233e-09, + "BWA": 1.786274434280454e-09, + "BX": 0.0011732782768525281, + "BXP": 1.2975152107437959e-09, + "C": 2.4916888980714567e-09, + "CAG": 4.063663882823388e-09, + "CAH": 3.2221530838771657e-09, + "CARR": 0.017689220064196154, + "CAT": 1.0616653329429351e-09, + "CB": 0.00024892927160137475, + "CBOE": 1.515796117611813e-08, + "CBRE": 0.0039810621151616325, + "CCI": 0.0002533703075628003, + "CCL": 1.1407144326720326e-09, + "CDNS": 4.967077576391587e-09, + "CDW": 0.0003473001166071239, + "CE": 3.105044772280484e-09, + "CEG": 0.03168182468943196, + "CF": 0.007913863538634288, + "CFG": 2.176747699448714e-09, + "CHD": 0.002064234510834524, + "CHRW": 4.223364086324469e-09, + "CHTR": 0.0052261465469586816, + "CI": 1.320000277059492e-08, + "CINF": 1.2683044436791253e-08, + "CL": 8.145444530463523e-06, + "CLX": 1.249859111508873e-05, + "CMCSA": 0.00531642027514561, + "CME": 0.004042763106660069, + "CMG": 0.004627030169280708, + "CMI": 1.4505596468182397e-09, + "CMS": 1.322583587015248e-09, + "CNC": 0.0007171186997780623, + "CNP": 1.2351168334855159e-09, + "COF": 0.007598146252164179, + "COO": 3.0429241530903916e-09, + "COP": 2.3912370900137355e-09, + "COR": 0.0028525481301747025, + "COST": 3.126467399519479e-09, + "CPAY": 9.02195302215899e-09, + "CPB": 5.771030783765476e-09, + "CPRT": 0.0006091169447592381, + "CPT": 1.446833492734863e-09, + "CRL": 7.497542496653337e-10, + "CRM": 0.006498241734862595, + "CRWD": 0.001712567124213011, + "CSCO": 0.005764750727791973, + "CSGP": 3.005595597027857e-09, + "CSX": 3.278449094117336e-09, + "CTAS": 3.3667506417299065e-09, + "CTLT": 1.5160078025863195e-09, + "CTRA": 8.632334319106073e-10, + "CTSH": 0.009292666111842797, + "CTVA": 9.27185142971148e-05, + "CVS": 2.7575586954230526e-09, + "CVX": 3.827722555913057e-09, + "CZR": 0.007300900881546004, + "D": 2.41363022713463e-09, + "DAL": 0.0005366787497907006, + "DAY": 1.002985363947704e-09, + "DD": 2.0464499162474105e-09, + "DE": 3.62202337958574e-09, + "DECK": 0.0009720956205872843, + "DFS": 0.0031054823065361204, + "DG": 1.7441791517077125e-09, + "DGX": 4.618516975985957e-09, + "DHI": 1.833687582761592e-08, + "DHR": 0.0018136041651902932, + "DIS": 3.3996706163059483e-09, + "DLR": 2.7651049695764537e-09, + "DLTR": 0.0009247135536996675, + "DOC": 6.928344446821306e-10, + "DOV": 1.5893872338821483e-09, + "DOW": 2.3274264017685702e-09, + "DPZ": 1.3474753733743307e-08, + "DRI": 2.0092455834158174e-06, + "DTE": 1.818423249372798e-09, + "DUK": 2.6990771284040425e-08, + "DVA": 0.0029473167943660627, + "DVN": 8.845632895981174e-10, + "DXCM": 0.004100423180462342, + "EA": 0.0032403564270588893, + "EBAY": 1.7940419035982625e-09, + "ECL": 1.917170171510413e-09, + "ED": 2.8409952945037428e-09, + "EFX": 1.6385159645963695e-09, + "EG": 1.2188161136362357e-08, + "EIX": 2.7166597466913598e-09, + "EL": 1.872337670636874e-09, + "ELV": 7.16391134269731e-09, + "EMN": 1.4650039214221074e-09, + "EMR": 9.714627519284414e-10, + "ENPH": 0.0027728152872769697, + "EOG": 2.246765150951138e-09, + "EPAM": 0.004915848270853924, + "EQIX": 0.000590437281131826, + "EQR": 1.6970975556999102e-09, + "EQT": 5.742873449273588e-10, + "ES": 1.2791268978269543e-09, + "ESS": 2.406859604941519e-09, + "ETN": 8.205760901360822e-10, + "ETR": 2.603155388282773e-09, + "ETSY": 3.3360378952363377e-09, + "EVRG": 8.599332548450202e-10, + "EW": 4.694916177090385e-09, + "EXC": 1.7474820968918433e-09, + "EXPD": 6.6259343726125676e-09, + "EXPE": 0.003749307730540454, + "EXR": 5.811597137179167e-09, + "F": 1.0681407997744533e-09, + "FANG": 0.011929652545005694, + "FAST": 0.002698078287673892, + "FCX": 9.055450308283879e-10, + "FDS": 0.0017167996654946388, + "FDX": 0.0057943721956479856, + "FE": 1.5049776467983302e-09, + "FFIV": 0.002546518533741588, + "FI": 5.62388277855863e-09, + "FICO": 0.0014067113117537235, + "FIS": 2.196013236922471e-09, + "FITB": 3.0187832268053978e-09, + "FMC": 2.2264765726636276e-09, + "FOX": 1.0145290934469291e-09, + "FOXA": 1.4313471058454748e-09, + "FRT": 1.338155570431327e-09, + "FSLR": 7.977756885991744e-10, + "FTNT": 0.00504991051455705, + "FTV": 9.74889381580096e-10, + "GD": 7.248592174795679e-09, + "GDDY": 6.30038815442915e-09, + "GE": 1.6646709241982811e-09, + "GEHC": 0.0014573535932240979, + "GEN": 1.0980313827957457e-09, + "GEV": 0.01602954179051817, + "GILD": 0.0071875484583871435, + "GIS": 0.006373477533778612, + "GL": 5.289042304294451e-09, + "GLW": 1.3185533164505885e-09, + "GM": 1.4308717732118061e-09, + "GNRC": 1.3360819208954218e-09, + "GOOG": 0.020673262638936544, + "GOOGL": 0.001815605341235163, + "GPC": 3.5270665181700227e-09, + "GPN": 5.929633120306851e-09, + "GRMN": 0.0018951196835886115, + "GS": 3.1851400538134383e-09, + "GWW": 1.1840936734575854e-09, + "HAL": 9.377443936713132e-10, + "HAS": 8.987219778210741e-07, + "HBAN": 8.982951662464822e-10, + "HCA": 0.005073358447819875, + "HD": 0.007580865897963137, + "HES": 2.469124383785468e-09, + "HIG": 0.004788307009606233, + "HII": 3.4555962063810145e-08, + "HLT": 4.788911622587506e-09, + "HOLX": 0.0024358649950468607, + "HON": 2.2181679241773165e-09, + "HPE": 8.306746527182682e-10, + "HPQ": 1.0221700898552188e-09, + "HRL": 3.2640780083390323e-09, + "HSIC": 3.454049400304707e-09, + "HST": 1.1266455562547608e-09, + "HSY": 0.008950042458244345, + "HUBB": 5.751084638778887e-10, + "HUM": 0.0009374263102468177, + "HWM": 0.001790379318346123, + "IBM": 1.4668916846822996e-09, + "ICE": 0.0006237011785526109, + "IDXX": 4.608281891587513e-09, + "IEX": 1.6060692076313607e-09, + "IFF": 1.7844840987384405e-09, + "INCY": 0.0034242285630930874, + "INTC": 0.00019141666033176548, + "INTU": 0.0011147306355880325, + "INVH": 1.093453686820816e-09, + "IP": 1.426178674195163e-09, + "IPG": 2.5180778206863935e-09, + "IQV": 1.4602077442571464e-09, + "IR": 2.593940349071679e-08, + "IRM": 2.576598899662477e-09, + "ISRG": 0.0056898962143788635, + "IT": 7.533099417449632e-09, + "ITW": 2.1573131144128368e-09, + "IVZ": 1.0857728243794079e-09, + "J": 2.572001544793946e-09, + "JBHT": 2.7435060588782546e-09, + "JBL": 0.002139727747208551, + "JCI": 1.0583078049228212e-09, + "JKHY": 0.000715968958823591, + "JNJ": 0.011064609942063227, + "JNPR": 1.3963609749011536e-09, + "JPM": 0.002148575255075341, + "K": 0.0003945413446488794, + "KDP": 1.0027240434887565e-09, + "KEY": 7.441690360105264e-10, + "KEYS": 1.9793227220741966e-09, + "KHC": 5.598978342429128e-10, + "KIM": 1.0001691047009903e-09, + "KKR": 4.750607284061086e-09, + "KLAC": 0.0001219724518997944, + "KMB": 0.0038928977416831092, + "KMI": 4.752081370321122e-10, + "KMX": 2.240301274500318e-08, + "KO": 0.00016668328712204312, + "KR": 6.5773100893002165e-09, + "KVUE": -2.2070667598875895e-10, + "L": 3.065175067158841e-09, + "LDOS": 1.9750012477060816e-08, + "LEN": 8.77239864534609e-09, + "LH": 1.3065462270603235e-09, + "LHX": 2.706973695293913e-09, + "LIN": 1.988509308041015e-08, + "LKQ": 0.004238518781895754, + "LLY": 1.4203755081157586e-08, + "LMT": 0.00701776667219595, + "LNT": 1.1511504980051814e-09, + "LOW": 6.273013291832218e-09, + "LRCX": 0.0006395939273161437, + "LULU": 0.0015279462331172467, + "LUV": 2.346596871701888e-05, + "LVS": 0.0015295970750056347, + "LW": 2.4167555369419023e-05, + "LYB": 0.0029941848624573317, + "LYV": 0.002397448631065351, + "MA": 0.02585585144433879, + "MAA": 1.8107379490320548e-09, + "MAR": 5.187030777152911e-09, + "MAS": 1.936381587440534e-09, + "MCD": 0.009046507193393854, + "MCHP": 0.00201291229061701, + "MCK": 2.044513631762757e-08, + "MCO": 1.720621137145064e-09, + "MDLZ": 2.0013064498697245e-09, + "MDT": 1.0988381386181359e-06, + "MET": 2.844758083468922e-09, + "META": 0.019355135323860344, + "MGM": 0.003463440532914351, + "MHK": 2.1507872474449033e-09, + "MKC": 2.5324421790404202e-09, + "MKTX": 0.005538102681786348, + "MLM": 1.351175868719395e-09, + "MMC": 1.792269014238876e-09, + "MMM": 2.0740593339748955e-09, + "MNST": 0.0043496939264635595, + "MO": 2.238911555280885e-09, + "MOH": 0.0014655295559310624, + "MOS": 7.256523671761028e-10, + "MPC": 0.012625468967719291, + "MPWR": 5.316457623675617e-08, + "MRK": 0.004769718405753384, + "MRNA": 0.006410836196964278, + "MRO": 4.395189738178859e-10, + "MS": 0.005159104973011308, + "MSCI": 0.0036378801707781456, + "MSFT": 0.03280244220064979, + "MSI": 3.382579409556387e-09, + "MTB": 1.8101961143073715e-08, + "MTCH": 5.365910114012557e-09, + "MTD": 3.3845713928074326e-09, + "MU": 0.00305481542005497, + "NCLH": 1.6140327895592011e-09, + "NDAQ": 2.6151330063984703e-09, + "NDSN": 1.563985157669548e-09, + "NEE": 1.1431220607877669e-09, + "NEM": 1.0170835614337459e-09, + "NFLX": 0.014146811946568446, + "NI": 9.905869709340603e-10, + "NKE": 9.479025290464381e-09, + "NOC": 2.3650137938853195e-08, + "NOW": 0.004352119772047543, + "NRG": 5.896959790468469e-10, + "NSC": 4.923125327645916e-09, + "NTAP": 0.005055325318112631, + "NTRS": 1.639914197744774e-09, + "NUE": 3.496268386479854e-09, + "NVDA": 0.11758474124370918, + "NVR": 0.001714469797433748, + "NWS": 6.694350929355146e-10, + "NWSA": 6.508591516146426e-10, + "NXPI": 0.006795437879746671, + "O": 3.5058880088729807e-09, + "ODFL": 0.0026192653023545446, + "OKE": 1.7808946546211014e-09, + "OMC": 2.0104921886247272e-09, + "ON": 3.644555031645367e-09, + "ORCL": 0.006184992875694873, + "ORLY": 2.46049468686543e-08, + "OTIS": 0.0014130111623698648, + "OXY": 1.2720366147641212e-09, + "PANW": 0.0048230214306092655, + "PARA": 0.0017829979364149034, + "PAYC": 7.0931145335470975e-09, + "PAYX": 0.00041098963224348, + "PCAR": 3.1931599940575007e-09, + "PCG": 9.074824717119182e-10, + "PEG": 2.0236887170304077e-09, + "PEP": 0.009889528438634073, + "PFE": 2.3431369886223285e-09, + "PFG": 0.0001448753553128718, + "PG": 9.030988191168037e-09, + "PGR": 0.0070057996618594544, + "PH": 1.261544510704966e-09, + "PHM": 6.261411178190468e-09, + "PKG": 6.712467608608702e-09, + "PLD": 2.3387718838786237e-09, + "PM": 4.5632183132528075e-09, + "PNC": 4.751574283967279e-09, + "PNR": 8.46135359566545e-10, + "PNW": 1.4433364606907287e-09, + "PODD": 1.666195199066594e-08, + "POOL": 0.001085825016619394, + "PPG": 3.398428177964381e-09, + "PPL": 1.498022646923604e-09, + "PRU": 0.0005362333736475029, + "PSA": 1.8036858342390728e-09, + "PSX": 0.0023876464385468713, + "PTC": 3.3473491479574878e-09, + "PWR": 4.466159684655331e-09, + "PYPL": 7.504352872881363e-10, + "QCOM": 0.00393932336372867, + "QRVO": 5.586401099858112e-10, + "RCL": 0.001793680074644246, + "REG": 1.641552932977115e-09, + "REGN": 0.000913317827946503, + "RF": 1.2859987218462727e-09, + "RJF": 3.123971191761993e-09, + "RL": 1.917951440365768e-09, + "RMD": 0.00029217846080585407, + "ROK": 3.4876442396553896e-09, + "ROL": 1.3980669130705124e-09, + "ROP": 0.004810488250048454, + "ROST": 0.000974126934389777, + "RSG": 3.6962392196372928e-09, + "RTX": 4.221578398968095e-09, + "RVTY": 1.0835287722317788e-09, + "SBAC": 0.00509929899952849, + "SBUX": 0.007335894009987961, + "SCHW": 0.00011004201457614221, + "SHW": 1.1942598176940287e-06, + "SJM": 3.521813125304953e-07, + "SLB": 9.918329453160263e-10, + "SMCI": 0.009422920022425299, + "SNA": 1.697246829470203e-09, + "SNPS": 1.2714872620356678e-09, + "SO": 8.855286747288636e-06, + "SOLV": -4.5738242836568766e-10, + "SPG": 1.963461299801737e-09, + "SPGI": 2.8786232425483785e-09, + "SRE": 2.3579905399810356e-09, + "STE": 4.6105367315072845e-07, + "STLD": 6.587334421997023e-09, + "STT": 0.00028247508524639796, + "STX": 3.9708770198260834e-09, + "STZ": 2.379790097326632e-06, + "SWK": 1.4496401874580595e-09, + "SWKS": 8.542576994136248e-10, + "SYF": 2.9974885200316e-09, + "SYK": 1.4446936330543837e-08, + "SYY": 3.906074216663622e-09, + "T": 2.1116640642000514e-09, + "TAP": 2.060263382098578e-09, + "TDG": 0.004534037143919954, + "TDY": 6.027685262529367e-09, + "TECH": 3.9252188580799555e-09, + "TEL": 2.471983068460202e-09, + "TER": 1.3072519258471012e-09, + "TFC": 1.5358469727320694e-09, + "TFX": 3.41627356796546e-09, + "TGT": 4.16139591126613e-09, + "TJX": 0.000379874246747421, + "TMO": 3.754122588534373e-09, + "TMUS": 0.0069266079502301355, + "TPR": 0.0023192927858288145, + "TRGP": 0.0003504146519213872, + "TRMB": 2.973029506049918e-09, + "TROW": 2.972608005150582e-09, + "TRV": 3.6941155125505148e-09, + "TSCO": 6.799676672920023e-09, + "TSLA": 0.0887543211643075, + "TSN": 0.004196723432186963, + "TT": 1.1560514237736398e-09, + "TTWO": 0.0006229054867433989, + "TXN": 2.472231035559161e-09, + "TXT": 1.2282503503174745e-09, + "TYL": 2.24082282563154e-08, + "UAL": 0.0034833871145468678, + "UBER": 1.6910624066950252e-09, + "UDR": 1.0198872327918021e-09, + "UHS": 2.1425425449985868e-09, + "ULTA": 0.0029599053117668945, + "UNH": 0.015865085929817623, + "UNP": 4.504867371653983e-09, + "UPS": 1.0775960268059773e-09, + "URI": 2.6098565862138693e-09, + "USB": 1.573250017983636e-09, + "USDOLLAR": 1.515579832636442e-07, + "V": 0.0015609525873476297, + "VICI": 1.2095541196010177e-09, + "VLO": 7.29159629916912e-09, + "VLTO": 0.007315547491930713, + "VMC": 7.836046272574333e-10, + "VRSK": 3.869109338600866e-09, + "VRSN": 0.0026424836316406887, + "VRTX": 0.0019591976700860654, + "VST": 8.234016487254499e-10, + "VTR": 2.5850696024514175e-09, + "VTRS": 9.430361204842363e-10, + "VZ": 2.899077535957043e-09, + "WAB": 1.1589511119200756e-09, + "WAT": 4.289944129588303e-09, + "WBA": 5.187020521216482e-10, + "WBD": 3.264002048922129e-10, + "WDC": 1.5751744521797063e-09, + "WEC": 3.3334017258310723e-09, + "WELL": 2.048847966822194e-09, + "WFC": 4.5809273029578976e-09, + "WM": 1.312615929528094e-06, + "WMB": 5.22508050077009e-09, + "WMT": 0.01015674801105076, + "WRB": 3.4337257156891162e-09, + "WST": 1.8745886578013767e-09, + "WTW": 2.7715578170095486e-09, + "WY": 8.41833100040625e-10, + "WYNN": 0.0025186244440469807, + "XEL": 1.62368917622659e-09, + "XOM": 3.273430950471607e-09, + "XYL": 2.2974769006422144e-09, + "YUM": 5.117489068414728e-09, + "ZBH": 1.5752862486062554e-09, + "ZBRA": 9.335865760019666e-10, + "ZTS": 3.8877885898795795e-09 } } \ No newline at end of file From 87f9e14cb120fec29dd33e066b3775555cb4d9e7 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 24 Jul 2024 11:31:16 +0400 Subject: [PATCH 066/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-24 --- .../ftse100_daily_initial_holdings.json | 139 +++++++++++++++--- .../ftse100_daily_target_weights.json | 103 +++++++++++++ 2 files changed, 224 insertions(+), 18 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 63026e241..24cd0667d 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11115,7 +11115,7 @@ "BA.L": 10421.42727423806, "BARC.L": 10596.624812903974, "BATS.L": 10840.106841015644, - "BDEV.L": 10419.815171963148, + "BDEV.L": 10359.28288500443, "BEZ.L": 10598.333923000126, "BKG.L": 9926.752444080605, "BME.L": 10637.009333940914, @@ -11133,16 +11133,16 @@ "DGE.L": 10125.536498838472, "DPLM.L": 8625.06326702388, "EDV.L": 6963.690436705366, - "ENT.L": 10928.798257935676, + "ENT.L": 10922.174339572743, "EXPN.L": 10720.883701270579, "EZJ.L": 8487.747769752781, "FCIT.L": 0.0, "FRAS.L": 10210.42164615094, "FRES.L": 10507.240964221512, - "GBPOUND": 6341.630263262417, - "GLEN.L": 9499.922987892198, + "GBPOUND": 3543.2967919880716, + "GLEN.L": 10264.550873991813, "GSK.L": 10879.346983947706, - "HIK.L": 11334.916572948776, + "HIK.L": 11219.687351500923, "HL.L": 10094.21656050955, "HLMA.L": 10490.680247104328, "HLN.L": 0.0, @@ -11156,8 +11156,8 @@ "IMI.L": 11137.985773235188, "INF.L": 10214.890821690824, "ITRK.L": 9550.196113900043, - "JD.L": 10561.9276837361, - "KGF.L": 10428.239444671626, + "JD.L": 10525.520980713725, + "KGF.L": 10462.367996858105, "LAND.L": 0.0, "LGEN.L": 10684.252188735307, "LLOY.L": 0.0, @@ -11167,9 +11167,9 @@ "MNDI.L": 9872.80481550797, "MNG.L": 10530.993548538305, "MRO.L": 43627.28267679388, - "NG.L": 10780.869209600485, + "NG.L": 10612.63071676589, "NWG.L": 10344.468554743064, - "NXT.L": 8750.194276378765, + "NXT.L": 8746.287939648239, "PHNX.L": 0.0, "PRU.L": 10080.555985115705, "PSH.L": 55308.02482094213, @@ -11185,24 +11185,127 @@ "SDR.L": 10537.853482628007, "SGE.L": 38225.81546174566, "SGRO.L": 0.0, - "SHEL.L": 9.069370091785987e-13, + "SHEL.L": 2784.000000000001, "SMDS.L": 10559.425586174828, "SMIN.L": 0.0, - "SMT.L": 10262.720771957844, + "SMT.L": 10333.743061037138, "SN.L": 3365.8027540720054, "SPX.L": 8736.196603996956, - "SSE.L": 11059.046881020295, - "STAN.L": 10443.431772156899, + "SSE.L": 10978.541551878336, + "STAN.L": 10397.614514087776, "SVT.L": 10175.696718319552, - "TSCO.L": 10848.236368622842, - "TW.L": 10399.96920183214, + "TSCO.L": 10259.493393405737, + "TW.L": 10310.48632258376, "ULVR.L": 9072.835358435594, - "UTG.L": 10523.088950915117, + "UTG.L": 10450.20660868715, "UU.L": 10454.87218864311, "VOD.L": 10298.941407509741, - "VTY.L": 10655.80722891566, - "WEIR.L": 9515.313911287254, + "VTY.L": 10583.42816094567, + "WEIR.L": 9832.49104166349, "WPP.L": 10693.253473692866, "WTB.L": 11585.497251608826 + }, + "2024-07-24 07:00:00+00:00": { + "AAF.L": 21494.341958408015, + "AAL.L": 9619.675547335053, + "ABF.L": 9786.85122746948, + "ADM.L": 10363.18661530128, + "AHT.L": 15910.394285702101, + "ANTO.L": 17732.80630439542, + "AUTO.L": 10321.42502088923, + "AV.L": 13456.786343689471, + "AZN.L": 12482.535226195696, + "BA.L": 10295.67241028267, + "BARC.L": 10259.906209992414, + "BATS.L": 10705.967854583898, + "BDEV.L": 10263.267471885545, + "BEZ.L": 10647.061895059893, + "BKG.L": 9878.368597886883, + "BME.L": 10101.124600959556, + "BNZL.L": 9744.6675924495, + "BP.L": 1.3815112024780634e-12, + "BRBY.L": 10286.70237200145, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10506.273254122729, + "CPG.L": 0.0, + "CRDA.L": 12147.450477638598, + "CTEC.L": 43.236109881521124, + "DARK.L": 25678.560046725797, + "DCC.L": 21271.808224945322, + "DGE.L": 10026.26653316359, + "DPLM.L": 8548.877213061338, + "EDV.L": 6927.650635710337, + "ENT.L": 10759.898446361241, + "EXPN.L": 10567.081994163731, + "EZJ.L": 9126.312213201945, + "FCIT.L": 0.0, + "FRAS.L": 10110.607288482986, + "FRES.L": 10202.557092019557, + "GBPOUND": 2949.7459482143495, + "GLEN.L": 9615.779031636992, + "GSK.L": 10707.511296145965, + "HIK.L": 11063.524679584954, + "HL.L": 9827.50864422202, + "HLMA.L": 10350.269612821867, + "HLN.L": 0.0, + "HSBA.L": 10165.736979745892, + "HWDN.L": 10383.87161257385, + "IAG.L": 10370.38188544722, + "ICG.L": 10874.354369312137, + "IHG.L": 16532.160827139836, + "III.L": 9173.675635356833, + "IMB.L": 10612.585682206194, + "IMI.L": 11011.074378097946, + "INF.L": 10214.890821690824, + "ITRK.L": 9395.701668464455, + "JD.L": 10696.302416961535, + "KGF.L": 10401.694372274838, + "LAND.L": 0.0, + "LGEN.L": 10231.46570575854, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28417.158558688556, + "MKS.L": 0.0, + "MNDI.L": 9784.907030187078, + "MNG.L": 10159.538336060677, + "MRO.L": 44369.67015209869, + "NG.L": 10617.121473839263, + "NWG.L": 10262.273508573884, + "NXT.L": 8738.263822272414, + "PHNX.L": 0.0, + "PRU.L": 9735.921592462177, + "PSH.L": 55308.02482094213, + "PSN.L": 10552.578047973266, + "PSON.L": 1043.732137697887, + "REL.L": 10532.879704955232, + "RIO.L": 10394.054501759749, + "RKT.L": 9333.469761323198, + "RMV.L": 11981.371246458779, + "RR.L": 10872.137761444124, + "RTO.L": 10304.834909027575, + "SBRY.L": 0.0, + "SDR.L": 10364.747227714486, + "SGE.L": 38189.53087184367, + "SGRO.L": 0.0, + "SHEL.L": 2947.0600585937486, + "SMDS.L": 10334.657182456649, + "SMIN.L": 0.0, + "SMT.L": 10272.190266006535, + "SN.L": 3387.348816512337, + "SPX.L": 8624.713816706977, + "SSE.L": 10999.413303878102, + "STAN.L": 10294.695970077908, + "SVT.L": 10102.490267108626, + "TSCO.L": 10146.371681812358, + "TW.L": 10405.480052233434, + "ULVR.L": 8921.149524311062, + "UTG.L": 10259.591252090924, + "UU.L": 10325.927045714607, + "VOD.L": 9314.502843740402, + "VTY.L": 10615.596635598999, + "WEIR.L": 9669.126704522661, + "WPP.L": 10593.556116829715, + "WTB.L": 11553.044878355024 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 60ed703dd..7ac69edd8 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10813,5 +10813,108 @@ "WEIR.L": 0.009999993867710505, "WPP.L": 0.009999989266426446, "WTB.L": 0.009999959092455138 + }, + "2024-07-24 07:00:00+00:00": { + "AAF.L": 0.020796239121236168, + "AAL.L": 0.009999997385234063, + "ABF.L": 0.009537782154602133, + "ADM.L": 0.010000054836022591, + "AHT.L": 0.015369489898967017, + "ANTO.L": 0.01716291708147703, + "AUTO.L": 0.01000000931137289, + "AV.L": 0.013019587078154642, + "AZN.L": 0.010000032977948601, + "BA.L": 0.010000008475116926, + "BARC.L": 0.009999996484312552, + "BATS.L": 0.01000000366080613, + "BDEV.L": 0.010000004436346605, + "BEZ.L": 0.010000025703162047, + "BKG.L": 0.010000003557768962, + "BME.L": 0.009999981954321046, + "BNZL.L": 0.00999998095577518, + "BP.L": 2.1930418652358505e-07, + "BRBY.L": 0.009999973333050196, + "BT-A.L": 3.695507416894869e-08, + "CCH.L": 1.4511671856248416e-07, + "CNA.L": 0.00999999107398256, + "CPG.L": 1.8482018592304038e-07, + "CRDA.L": 0.00999999620805991, + "CTEC.L": 4.176137123791152e-05, + "DARK.L": 0.02487445227513779, + "DCC.L": 0.020285515012952147, + "DGE.L": 0.00969466214802427, + "DPLM.L": 0.01000000847121612, + "EDV.L": 0.0067365028323026176, + "ENT.L": 0.010011184176846277, + "EXPN.L": 0.010000001064878862, + "EZJ.L": 0.008830041232910977, + "FCIT.L": 4.303028708061178e-08, + "FRAS.L": 0.010000002169729426, + "FRES.L": 0.009999993891259884, + "GBPOUND": 2.2959364948593394e-07, + "GLEN.L": 0.009303651857289664, + "GSK.L": 0.009999986849042018, + "HIK.L": 0.010000009409330228, + "HL.L": 0.010000004964286206, + "HLMA.L": 0.010000004706594484, + "HLN.L": 1.77239770540069e-08, + "HSBA.L": 0.009999996773842145, + "HWDN.L": 0.010000000546591416, + "IAG.L": 0.009999977802482327, + "ICG.L": 0.010000019516350106, + "IHG.L": 0.01468498613242377, + "III.L": 0.010000006090529676, + "IMB.L": 0.010000017879816563, + "IMI.L": 0.009999988188746447, + "INF.L": 0.009999782196830597, + "ITRK.L": 0.009999990845637907, + "JD.L": 0.010226475213324565, + "KGF.L": 0.00999998688002167, + "LAND.L": 2.831691659994971e-08, + "LGEN.L": 0.009999993395669888, + "LLOY.L": 1.2109339037244793e-07, + "LMP.L": 6.79948552518365e-08, + "LSEG.L": 0.026740472655981617, + "MKS.L": 7.499042771810613e-08, + "MNDI.L": 0.009999997039878765, + "MNG.L": 0.0099999967837743, + "MRO.L": 0.04292832306885738, + "NG.L": 0.00999996670661104, + "NWG.L": 0.009999980388289339, + "NXT.L": 0.010000009669433253, + "PHNX.L": 4.508521600738528e-08, + "PRU.L": 0.009999992435306141, + "PSH.L": 0.05363005708913679, + "PSN.L": 0.010000001751670474, + "PSON.L": 0.0010090658803416528, + "REL.L": 0.009999989747934729, + "RIO.L": 0.010000004474442391, + "RKT.L": 0.009999980447961647, + "RMV.L": 0.011592125421459026, + "RR.L": 0.00999999591298014, + "RTO.L": 0.009999996506681257, + "SBRY.L": 7.254117341932748e-08, + "SDR.L": 0.009999992297276853, + "SGE.L": 0.036693247041756645, + "SGRO.L": 8.024712731861138e-08, + "SHEL.L": 0.003553761380493429, + "SMDS.L": 0.009999987005770192, + "SMIN.L": 1.0394607381408776e-07, + "SMT.L": 0.00999989445370005, + "SN.L": 0.00327691269892651, + "SPX.L": 0.00999995153855519, + "SSE.L": 0.009999996174182086, + "STAN.L": 0.00999998766235561, + "SVT.L": 0.010000001263756617, + "TSCO.L": 0.009999983890224225, + "TW.L": 0.009999996892375617, + "ULVR.L": 0.009999854030492184, + "UTG.L": 0.010000015294309052, + "UU.L": 0.009999969752873834, + "VOD.L": 0.009999993906656759, + "VTY.L": 0.009999999429936785, + "WEIR.L": 0.009999994876905496, + "WPP.L": 0.009999990687667012, + "WTB.L": 0.009999963398763422 } } \ No newline at end of file From 22e2a62cc1ff48722dd63c281d498aad870e8ef3 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 24 Jul 2024 18:00:35 +0400 Subject: [PATCH 067/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-24 --- .../dow30_daily_initial_holdings.json | 45 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 1f8685a44..b75238e4e 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4719,19 +4719,19 @@ "WMT": 0.000392671532482439 }, "2024-07-23 13:30:00+00:00": { - "AAPL": 216628.24349048638, + "AAPL": 216599.28367300564, "AMGN": 20726.719635374193, - "AMZN": 224141.6681327218, + "AMZN": 224159.93137032483, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 80614.95682480541, - "CSCO": 43889.86922834428, + "CSCO": 43894.564837085214, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, "GS": 0.0, - "HD": 110053.85986328397, + "HD": 110714.3322884551, "HON": 0.0, "IBM": 0.0, "INTC": 0.0, @@ -4741,14 +4741,47 @@ "MCD": 1.2241314468129058e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 235109.2165597412, + "MSFT": 235056.26080152334, "NKE": 1.0244891542835404e-12, "PG": 0.0, "TRV": 0.0, "UNH": 104243.85511539852, - "USDOLLAR": -152.65117319529082, + "USDOLLAR": -152.65117267535254, "V": 34420.200092818115, "VZ": 0.0, "WMT": 0.00039051034624646124 + }, + "2024-07-24 13:30:00+00:00": { + "AAPL": 216466.10277052587, + "AMGN": 20657.912492805935, + "AMZN": 223454.44092454188, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 79684.99234154979, + "CSCO": 43641.05569057504, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 108027.16717134483, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1611524778546524e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 233107.61171380145, + "NKE": 1.005545133499686e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 104469.58814598953, + "USDOLLAR": 169.74491111560977, + "V": 32945.76656855684, + "VZ": 0.0, + "WMT": 0.0003907873964715165 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 6a54c0876..458b011c4 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4750,5 +4750,38 @@ "V": 0.03217798259926646, "VZ": 2.521406003249595e-09, "WMT": 2.0387229032553997e-08 + }, + "2024-07-24 13:30:00+00:00": { + "AAPL": 0.2037090024335122, + "AMGN": 0.01944035753055236, + "AMZN": 0.2104080190371383, + "AXP": 7.94476627202285e-09, + "BA": 1.4062084225289476e-08, + "CAT": 6.861519275821462e-09, + "CRM": 0.07502566175779565, + "CSCO": 0.04106911348135689, + "CVX": 7.647509905159598e-09, + "DIS": 9.921327807047634e-09, + "DOW": 1.1427397649154751e-08, + "GS": 8.069788008027557e-09, + "HD": 0.10166090008473357, + "HON": 4.783207422128912e-09, + "IBM": 3.4629453004462102e-09, + "INTC": 8.871619044835124e-09, + "JNJ": 1.1025332588173823e-08, + "JPM": 1.341848639655483e-08, + "KO": 8.337596222047217e-09, + "MCD": 2.307163848668735e-08, + "MMM": 4.671964157788067e-09, + "MRK": 9.469703270734775e-09, + "MSFT": 0.21936995662471595, + "NKE": 2.1684220248507368e-08, + "PG": 6.376232713433249e-09, + "TRV": 5.632630853757338e-09, + "UNH": 0.09831271948573721, + "USDOLLAR": 5.055267904752105e-09, + "V": 0.03100402900406713, + "VZ": 4.870069316513726e-09, + "WMT": 4.3895083764763615e-08 } } \ No newline at end of file From 3d2060f4230c19823db724336e1754fb2bb64e92 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 24 Jul 2024 18:01:47 +0400 Subject: [PATCH 068/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-24 --- .../ndx100_daily_initial_holdings.json | 170 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 241 insertions(+), 33 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index b25cc0c92..e39d7a465 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14767,36 +14767,36 @@ "ZS": 20102.053957247874 }, "2024-07-23 13:30:00+00:00": { - "AAPL": 7372.68888150637, + "AAPL": 7371.7032679921285, "ABNB": 0.0, "ADBE": 11910.151387496671, "ADI": 0.0, "ADP": 0.0, "ADSK": 83.63738522446714, "AEP": 0.0, - "AMAT": -56.546465362466485, - "AMD": -1.885799624012246e-11, + "AMAT": -56.57726143962943, + "AMD": -1.8876268748392352e-11, "AMGN": 34942.631637687446, - "AMZN": 18869.753144943592, - "ANSS": 11.331294536963151, + "AMZN": 18871.290667119043, + "ANSS": 11.346300988013859, "ARM": 68213.17369566923, - "ASML": 16.34045802955976, - "AVGO": -36.359729166453015, + "ASML": 16.342379625444956, + "AVGO": -36.36086025765476, "AZN": 0.0, "BIIB": 15004.92478439639, "BKNG": 11010.50784467012, "BKR": 0.0, "CCEP": 15854.919175099118, - "CDNS": -90.69349858564196, + "CDNS": -90.02271973437172, "CDW": 13538.953486358945, "CEG": 73458.09280679391, "CHTR": 18133.60623939106, - "CMCSA": 33406.56960835719, + "CMCSA": 33389.624473198426, "COST": 0.0, - "CPRT": -0.8225403338935181, - "CRWD": 8458.339334778891, - "CSCO": 55987.65353417854, - "CSGP": 6057.6880296033605, + "CPRT": -0.8256846132376836, + "CRWD": 8449.23090692559, + "CSCO": 55993.64343845353, + "CSGP": 6178.355701464895, "CSX": 2056.7999267578125, "CTAS": 0.0, "CTSH": 27424.876973844363, @@ -14809,59 +14809,59 @@ "FANG": 28862.513434202225, "FAST": 20960.66807872604, "FTNT": 23502.50546951261, - "GEHC": 6513.58510022329, + "GEHC": 6518.4205271619385, "GFS": 27486.313303517403, - "GILD": 28794.895929170914, - "GOOG": -60.39590092239679, + "GILD": 28830.958205284976, + "GOOG": -60.397540179486846, "GOOGL": -2.3678961409307613e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 6817.339941650646, - "INTC": 2.0941111140322475, + "INTC": 2.0952552239643576, "INTU": -100.26567153795986, - "ISRG": 9351.126664215226, + "ISRG": 9385.430381818838, "KDP": 0.0, "KHC": 0.0, "KLAC": 12561.33898671011, "LIN": 0.0, "LRCX": -10.187370921533788, - "LULU": 22296.71429762583, + "LULU": 22361.006683574684, "MAR": 0.0, "MCHP": 13693.256514100856, "MDB": 27541.38776081224, "MDLZ": 0.0, "MELI": 21821.17721700409, - "META": -133.0148687921643, + "META": -133.0031934697171, "MNST": 17654.16240478978, "MRNA": 20326.49056305781, "MRVL": 0.0, - "MSFT": 43.45654969068647, - "MU": 8.482278808422803, - "NFLX": 16819.281388913187, + "MSFT": 43.446761582112615, + "MU": 8.481541958425959, + "NFLX": 16812.010569609924, "NVDA": 263.7650525560968, "NXPI": 19142.456181864414, "ODFL": 9468.249411076262, "ON": 71.69775851997068, "ORLY": 26447.1308652734, - "PANW": -7.923426648057416, + "PANW": -7.910910533999163, "PAYX": 8795.959222974554, "PCAR": 0.0, - "PDD": 26920.791871366604, + "PDD": 26922.823893350942, "PEP": 27007.55676332669, - "PYPL": 6255.850582037459, - "QCOM": -7.324085179229335, - "REGN": 15014.548534143907, + "PYPL": 6256.881250307967, + "QCOM": -7.316550226911935, + "REGN": 15169.224373984884, "ROP": 15495.634896266914, "ROST": 8167.716348076694, - "SBUX": 30957.245418860555, + "SBUX": 30985.36268550776, "SNPS": 0.0, - "TEAM": 12038.788628542252, - "TMUS": 7172.072746097354, - "TSLA": 3251.2003418014574, + "TEAM": 12059.33941601049, + "TMUS": 7172.274226520542, + "TSLA": 3253.1246259710006, "TTD": 40877.37089677289, "TTWO": 9805.627870201413, "TXN": 0.0, - "USDOLLAR": -1535.1069923165658, + "USDOLLAR": -1535.1068649389008, "VRSK": 0.0, "VRTX": 11786.359186350197, "WBA": 356.52842674707665, @@ -14869,5 +14869,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 19808.50954033768 + }, + "2024-07-24 13:30:00+00:00": { + "AAPL": 7359.547033763535, + "ABNB": 0.0, + "ADBE": 11638.55647503257, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 83.51105153935771, + "AEP": 0.0, + "AMAT": -55.78679615842091, + "AMD": -1.8604606925289156e-11, + "AMGN": 34493.381485270605, + "AMZN": 18796.460416948157, + "ANSS": 11.41311311433681, + "ARM": 69512.74230092103, + "ASML": 16.03173797498817, + "AVGO": -36.350659682872134, + "AZN": 0.0, + "BIIB": 14635.610257417391, + "BKNG": 10934.417823731776, + "BKR": 0.0, + "CCEP": 15689.055423061287, + "CDNS": -88.19304153988277, + "CDW": 14155.410441459828, + "CEG": 72547.04491420538, + "CHTR": 18442.50952587852, + "CMCSA": 32911.60916193256, + "COST": 0.0, + "CPRT": -0.8214398451188817, + "CRWD": 7130.407048053269, + "CSCO": 55670.25714197783, + "CSGP": 6064.166370486568, + "CSX": 2018.3999633789058, + "CTAS": 0.0, + "CTSH": 27011.17728920995, + "DASH": 0.0, + "DDOG": 15990.071985975332, + "DLTR": 27690.129499559152, + "DXCM": 11291.140842217359, + "EA": 14396.48483457006, + "EXC": 0.0, + "FANG": 28225.487989479767, + "FAST": 20902.169576943583, + "FTNT": 23644.030590030536, + "GEHC": 6285.091995920592, + "GFS": 25283.05061441412, + "GILD": 28714.75549969873, + "GOOG": -57.6050080768313, + "GOOGL": -2.254931725340279e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 6721.283072164059, + "INTC": 2.0660132484931197, + "INTU": -98.17368910925418, + "ISRG": 9307.950832979885, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 15011.1503241265, + "LIN": 0.0, + "LRCX": -10.041921513023425, + "LULU": 21997.99277860194, + "MAR": 0.0, + "MCHP": 13566.810996241617, + "MDB": 27057.43413396626, + "MDLZ": 0.0, + "MELI": 21726.038670750906, + "META": -128.20808302282083, + "MNST": 17552.741578587636, + "MRNA": 19868.017135832277, + "MRVL": 0.0, + "MSFT": 43.08658188712061, + "MU": 8.225910090604659, + "NFLX": 16513.418876095624, + "NVDA": 970.785333632053, + "NXPI": 19390.596885275252, + "ODFL": 9628.943122776416, + "ON": 289.2407464049716, + "ORLY": 26458.961494014522, + "PANW": -7.88753155432221, + "PAYX": 8912.395555870815, + "PCAR": 0.0, + "PDD": 26817.099806016377, + "PEP": 26764.507332565106, + "PYPL": 6140.4405000810475, + "QCOM": -7.120638592259635, + "REGN": 14862.4050967013, + "ROP": 14650.418447379632, + "ROST": 8092.193920988383, + "SBUX": 30370.59274140225, + "SNPS": 0.0, + "TEAM": 12230.836034800259, + "TMUS": 7149.66159186887, + "TSLA": 3567.5811062587622, + "TTD": 38798.38910843113, + "TTWO": 9892.9625707884, + "TXN": 0.0, + "USDOLLAR": -2063.566261701578, + "VRSK": 0.0, + "VRTX": 11637.924516441, + "WBA": 360.0520569478503, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 20148.663794034284 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index a0aa8ab6c..a115b5ff1 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14662,5 +14662,109 @@ "WDAY": 1.6748054937852627e-08, "XEL": 7.977220774964208e-08, "ZS": 0.01830245759299683 + }, + "2024-07-24 13:30:00+00:00": { + "AAPL": 0.0066974835289075815, + "ABNB": 8.878796578278073e-09, + "ADBE": 0.011265362804661382, + "ADI": 1.725504501231192e-07, + "ADP": 1.5963771233998767e-07, + "ADSK": 2.274488705424028e-08, + "AEP": 7.779733579731544e-09, + "AMAT": 3.402303248163619e-08, + "AMD": 4.025763373557224e-09, + "AMGN": 0.031630369159759496, + "AMZN": 0.0173568033994845, + "ANSS": 4.258756292958034e-08, + "ARM": 0.06271653217701091, + "ASML": 1.2089355128171213e-08, + "AVGO": 1.2703361839514382e-08, + "AZN": 3.5258491542543864e-08, + "BIIB": 0.013499232484430058, + "BKNG": 0.009203800757706479, + "BKR": 6.867086907427576e-08, + "CCEP": 0.014123897581696968, + "CDNS": 8.75021807444855e-09, + "CDW": 0.013093630537503098, + "CEG": 0.06599844777679781, + "CHTR": 0.016977840002463915, + "CMCSA": 0.03031935122038989, + "COST": 9.609145895890653e-09, + "CPRT": 7.601213524341182e-08, + "CRWD": 0.006235225004251035, + "CSCO": 0.05128545984260683, + "CSGP": 0.00596150517091071, + "CSX": 0.0018593971621627661, + "CTAS": 1.5680092056777123e-08, + "CTSH": 0.024884035282655047, + "DASH": 6.666580673548098e-09, + "DDOG": 0.01473008407211211, + "DLTR": 0.025417316855223474, + "DXCM": 0.010401020766787386, + "EA": 0.01301094052980445, + "EXC": 2.573227990475318e-08, + "FANG": 0.026284132117198624, + "FAST": 0.019255352047612168, + "FTNT": 0.02214648685346767, + "GEHC": 0.005560544777563952, + "GFS": 0.022451329302790302, + "GILD": 0.026411064358011004, + "GOOG": 1.8620559571527875e-07, + "GOOGL": 7.701321956235308e-08, + "HON": 2.430398428315559e-08, + "IDXX": 2.6144638068868057e-08, + "ILMN": 0.006415798479369967, + "INTC": 3.5664425717445324e-08, + "INTU": 1.2957479437997839e-07, + "ISRG": 0.008447330343983829, + "KDP": 1.6349799788593681e-07, + "KHC": 1.7645435797600915e-08, + "KLAC": 0.014251701515280258, + "LIN": 6.220646555254398e-08, + "LRCX": 2.8337111400525303e-08, + "LULU": 0.020467900080073907, + "MAR": 5.665026084845316e-08, + "MCHP": 0.012923400795801033, + "MDB": 0.024826552895576007, + "MDLZ": 9.870736869587421e-08, + "MELI": 0.019522392031347372, + "META": 8.936759251796712e-09, + "MNST": 0.016169987443204033, + "MRNA": 0.018332670399223826, + "MRVL": 8.268504176798942e-09, + "MSFT": 2.3532931683988413e-08, + "MU": 9.019950015253357e-09, + "NFLX": 0.015263549148777988, + "NVDA": 0.0009400646136292728, + "NXPI": 0.017935472857981877, + "ODFL": 0.00866179652562016, + "ON": 0.0005687086020195805, + "ORLY": 0.02366914161818311, + "PANW": 2.1681559406806906e-08, + "PAYX": 0.008210255331209986, + "PCAR": 9.24835404685414e-09, + "PDD": 0.024646830053246617, + "PEP": 0.0246552247624531, + "PYPL": 0.005823443153701212, + "QCOM": 4.7247178552688134e-08, + "REGN": 0.013978768030911684, + "ROP": 0.014175029802352442, + "ROST": 0.007481315332850617, + "SBUX": 0.027964977562147303, + "SNPS": 4.253915217065706e-09, + "TEAM": 0.01127984867064501, + "TMUS": 0.0064341740017738605, + "TSLA": 0.0039328869791116616, + "TTD": 0.03607081659161325, + "TTWO": 0.00880153542034299, + "TXN": 2.5271068200162204e-08, + "USDOLLAR": 2.3949290995761013e-07, + "VRSK": 2.19524602190015e-07, + "VRTX": 0.01047573665814284, + "WBA": 0.00033167149449790954, + "WBD": 2.158258514459108e-08, + "WDAY": 1.7622782821589035e-08, + "XEL": 8.503941332568562e-08, + "ZS": 0.0185620031566778 } } \ No newline at end of file From d572a9964df19ca74951c8cae653603c48737a90 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 24 Jul 2024 18:07:07 +0400 Subject: [PATCH 069/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-24 --- .../sp500_daily_initial_holdings.json | 617 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1066 insertions(+), 56 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 0b229c404..66d32db40 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -70823,8 +70823,8 @@ }, "2024-07-23 13:30:00+00:00": { "A": 0.0, - "AAL": 623.6669706620436, - "AAPL": 46801.8824548235, + "AAL": 623.080804097061, + "AAPL": 46795.62577309166, "ABBV": 4896.529425331925, "ABNB": 0.0, "ABT": 3349.939615615873, @@ -70840,23 +70840,23 @@ "AES": 0.0, "AFL": 3536.4343358229808, "AIG": 0.0, - "AIZ": 1.4462601460507887, + "AIZ": 1.4485650533284244, "AJG": 0.0, - "AKAM": -0.07956072067670081, + "AKAM": -0.0796104038506277, "ALB": 0.0, - "ALGN": 1218.9236269328076, + "ALGN": 1218.9480336054703, "ALL": 6.834218740045707e-14, "ALLE": 0.0, - "AMAT": 2129.459944029313, + "AMAT": 2130.619680757884, "AMCR": 0.0, - "AMD": 28281.275554333584, + "AMD": 28308.67877548548, "AME": 0.0, "AMGN": 6215.2425748159385, "AMP": 9.211659754298193, "AMT": 630.3378873032274, - "AMZN": 36650.33028702477, + "AMZN": 36653.31658446709, "ANET": 3657.0893219353884, - "ANSS": 310.9039340454125, + "ANSS": 311.31567558584334, "AON": 17.24398615554376, "AOS": 0.0, "APA": 0.0, @@ -70866,7 +70866,7 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 21478.17934770599, + "AVGO": 21478.847498438863, "AVY": 0.0, "AWK": 0.0, "AXON": 4960.6536166845435, @@ -70888,7 +70888,7 @@ "BKNG": 3667.049250453586, "BKR": 0.0, "BLDR": 356.20128326790694, - "BLK": 9.64910381128404e-13, + "BLK": 9.632740560088903e-13, "BMY": 85.4994704240052, "BR": 0.0, "BRK-B": 0.0, @@ -70904,23 +70904,23 @@ "CAT": 0.0, "CB": 296.00306214897614, "CBOE": 0.0, - "CBRE": 4735.042716663591, + "CBRE": 4715.387469173985, "CCI": 301.3500266347865, "CCL": 0.0, "CDNS": 0.0, "CDW": 400.39555702448473, - "CE": -2.7043413424675993e-14, + "CE": -2.7103410507578928e-14, "CEG": 37168.81687339294, "CF": 9412.67718925413, "CFG": 0.0, - "CHD": 2455.179796609883, + "CHD": 2455.301501038263, "CHRW": 0.0, "CHTR": 6258.23782436369, "CI": 3.8997057822588335e-13, "CINF": 0.014945371025718596, "CL": 9.689757043271667, "CLX": 14.873994000578765, - "CMCSA": 6323.302389265392, + "CMCSA": 6320.094959861774, "CME": 4642.4761740731765, "CMG": 5503.350916886747, "CMI": 0.0, @@ -70934,13 +70934,13 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 724.479441188991, + "CPRT": 727.2488685937485, "CPT": 0.0, "CRL": 0.0, "CRM": 7728.951622958161, - "CRWD": 2690.310238630422, - "CSCO": 6856.538538399508, - "CSGP": -7.584483098744628e-14, + "CRWD": 2687.4131573309282, + "CSCO": 6857.27209315507, + "CSGP": -7.735564156951352e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, @@ -70948,14 +70948,14 @@ "CTSH": 11067.376750082507, "CTVA": 110.27528309178378, "CVS": 0.0, - "CVX": -5.656978030986197e-13, + "CVX": -5.633916292274151e-13, "CZR": 8683.628997607155, "D": 0.0, - "DAL": 638.3192807917502, + "DAL": 638.464891586721, "DAY": 0.0, "DD": 0.0, "DE": 1.0635862052162372e-13, - "DECK": 861.0204350904625, + "DECK": 864.0401938457514, "DFS": 3693.296543111325, "DG": 0.0, "DGX": 0.0, @@ -70971,7 +70971,7 @@ "DRI": 2.3934332377486536, "DTE": 0.0, "DUK": 1.229859245528807, - "DVA": 3505.522686466686, + "DVA": 3534.8271658008957, "DVN": 0.0, "DXCM": 4877.004195189299, "EA": 3854.061721461076, @@ -70985,7 +70985,7 @@ "ELV": -2.1083610799218516e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 3159.3433271176486, + "ENPH": 3159.9576386106537, "EOG": 0.0, "EPAM": 5846.86207820577, "EQIX": 816.1294621714392, @@ -71011,7 +71011,7 @@ "FE": 0.0, "FFIV": 3116.121225834376, "FI": 2.532378043911057e-13, - "FICO": 1563.436683268397, + "FICO": 1566.6072329297085, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, @@ -71024,16 +71024,16 @@ "GD": 3.8635484750676296e-13, "GDDY": 0.0, "GE": 0.0, - "GEHC": 1733.364099259382, + "GEHC": 1734.6508799386977, "GEN": 0.0, "GEV": 19367.257011549456, - "GILD": 8548.866223930634, + "GILD": 8559.5726899303, "GIS": 7580.553235099219, - "GL": 0.30233714234739173, + "GL": 0.30155563464855906, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 24490.456587123386, + "GOOG": 24491.121303668482, "GOOGL": 2156.5248328391294, "GPC": 0.0, "GPN": -1.0508163950037631e-13, @@ -71041,13 +71041,13 @@ "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.0735474480921345, + "HAS": 1.0733666775946624, "HBAN": 0.0, "HCA": 6034.219059982014, - "HD": 8560.596180476994, + "HD": 8611.97136829189, "HES": 0.0, "HIG": 5695.171653381036, - "HII": 0.7329231349234, + "HII": 0.7359249893492984, "HLT": -1.3724674668271992e-13, "HOLX": 2897.200544436869, "HON": 0.0, @@ -71066,7 +71066,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 4072.7520606465528, - "INTC": 227.66930075043666, + "INTC": 227.79368703848016, "INTU": 1275.1074439212325, "INVH": 0.0, "IP": 0.0, @@ -71074,7 +71074,7 @@ "IQV": 0.0, "IR": 0.0460503221215131, "IRM": 0.0, - "ISRG": 6767.578498359102, + "ISRG": 6792.404715563109, "IT": 7.820294297444085e-13, "ITW": 0.0, "IVZ": 0.0, @@ -71112,7 +71112,7 @@ "LNT": 0.0, "LOW": -2.8421961673602883e-13, "LRCX": 910.1660751091653, - "LULU": 1716.98659702965, + "LULU": 1721.9375132719142, "LUV": 27.90866465789048, "LVS": 1819.2912421836522, "LW": 28.747550013068373, @@ -71120,7 +71120,7 @@ "LYV": 2851.497176217248, "MA": 30752.733581634195, "MAA": 0.0, - "MAR": -6.00016378796506e-13, + "MAR": -5.997445076150299e-13, "MAS": 0.0, "MCD": 10759.844528019596, "MCHP": 2394.0794230486276, @@ -71129,7 +71129,7 @@ "MDLZ": 0.0, "MDT": 1.3078757134721495, "MET": -0.0361137994677708, - "META": 23020.856512561746, + "META": 23018.835866860743, "MGM": 4119.397286225499, "MHK": 0.0, "MKC": 0.0, @@ -71138,7 +71138,7 @@ "MMC": 0.0, "MMM": 0.0, "MNST": 5173.483728799708, - "MO": -22.106094286419015, + "MO": -22.108328379213283, "MOH": 1743.093720732047, "MOS": 0.0, "MPC": 15016.65111580364, @@ -71148,18 +71148,18 @@ "MRO": 0.0, "MS": 6136.193123400485, "MSCI": 4368.2809218502525, - "MSFT": 39014.93279899804, + "MSFT": 39006.14511564635, "MSI": 0.0, "MTB": -6.486103565089031, "MTCH": 0.0, "MTD": 0.0, - "MU": 3578.9080392561596, + "MU": 3578.5971418620757, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16826.087512262187, + "NFLX": 16818.813750734946, "NI": 0.0, "NKE": -3.091013258914254e-14, "NOC": -3.943263334470223e-13, @@ -71183,7 +71183,7 @@ "ORLY": -0.7460110743732461, "OTIS": 1680.6181995182233, "OXY": 0.0, - "PANW": 5387.915799923404, + "PANW": 5379.404864985344, "PARA": 2120.682420442929, "PAYC": 0.0, "PAYX": 488.885321984887, @@ -71193,10 +71193,10 @@ "PEP": 11762.534494385813, "PFE": 0.0, "PFG": 172.31971856469974, - "PG": 1.0741229960369065, - "PGR": 8258.35679235781, + "PG": 1.075274372624913, + "PGR": 8258.738383676582, "PH": 0.0, - "PHM": -11.637991233344612, + "PHM": -11.63847305257818, "PKG": -5.0634015480797e-13, "PLD": 0.0, "PM": 0.0, @@ -71213,11 +71213,11 @@ "PTC": 2.662399764909917e-14, "PWR": -5.207104293104203, "PYPL": 0.0, - "QCOM": 4615.525380441323, + "QCOM": 4610.776969846645, "QRVO": 0.0, "RCL": 2158.644371264406, "REG": 0.0, - "REGN": 1085.421724573754, + "REGN": 1096.603447184214, "RF": 0.0, "RJF": 0.0, "RL": 0.0, @@ -71230,12 +71230,12 @@ "RTX": 0.0, "RVTY": 0.0, "SBAC": 6065.055651374581, - "SBUX": 8725.249670364909, + "SBUX": 8733.174476600918, "SCHW": 130.99618938558234, "SHW": 1.4549529683681983, "SJM": 0.9883925414749508, "SLB": 0.0, - "SMCI": 10583.521908983092, + "SMCI": 10586.635918600872, "SNA": 0.0, "SNPS": 0.0, "SO": 10.538211226494484, @@ -71263,23 +71263,23 @@ "TFC": 0.0, "TFX": 0.0, "TGT": 0.0, - "TJX": 451.8187396461152, + "TJX": 452.2178314658246, "TMO": 0.0, - "TMUS": 8238.592113483744, + "TMUS": 8238.823554949031, "TPR": 2758.5444953908213, "TRGP": 416.78229516191857, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, "TSCO": -2.8688392959829073e-12, - "TSLA": 107433.71444316616, + "TSLA": 107497.3011109332, "TSN": 4991.548740514986, "TT": 0.0, "TTWO": 740.8725790199039, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 4143.076913898872, + "UAL": 4150.861413743467, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -71289,7 +71289,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 1630.8792933012949, + "USDOLLAR": 1630.8793255765142, "V": 1856.5846643143557, "VICI": 0.0, "VLO": 0.0, @@ -71303,10 +71303,10 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.1225708939030827e-13, + "WAT": -2.1560793951389075e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.9269678099480516, + "WDC": -2.927372453091034, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -71325,5 +71325,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-24 13:30:00+00:00": { + "A": 0.0, + "AAL": 613.1161960920343, + "AAPL": 46718.45791010384, + "ABBV": 5239.538960467265, + "ABNB": 0.0, + "ABT": 3356.7032367856605, + "ACGL": 0.0, + "ACN": 2.6031685821087284e-13, + "ADBE": 10703.128235298542, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.652942344725483, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3542.797453311598, + "AIG": 0.0, + "AIZ": 1.478700927880828, + "AJG": 0.0, + "AKAM": -0.0795690022585213, + "ALB": 0.0, + "ALGN": 1219.4844595299464, + "ALL": 6.838526620719278e-14, + "ALLE": 0.0, + "AMAT": 2100.851875773265, + "AMCR": 0.0, + "AMD": 27901.268423985475, + "AME": 0.0, + "AMGN": 6194.609638709069, + "AMP": 9.281759749370767, + "AMT": 632.4133534523835, + "AMZN": 36507.9753410943, + "ANET": 3642.342511430351, + "ANSS": 313.14884238315716, + "AON": 17.276812521131085, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 24.868877106875118, + "APTV": 2.3520203180937298e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 21472.821882196564, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4963.305747895784, + "AXP": 0.0, + "AZO": 1.7175485848437798e-12, + "BA": -1.1048286497608835e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 527.6046016756218, + "BDX": 0.0, + "BEN": 187.90958802289808, + "BF-B": 0.0, + "BG": 1339.2629195872698, + "BIIB": 2439.875776025336, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3641.707471655978, + "BKR": 0.0, + "BLDR": 525.15628924453, + "BLK": 9.658716147542458e-13, + "BMY": 87.1312963123198, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3248647898261825, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1399.910447881501, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20945.463726177677, + "CAT": 0.0, + "CB": 302.01263192743755, + "CBOE": 0.0, + "CBRE": 4741.754666024052, + "CCI": 303.46953940091703, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 398.26143679698936, + "CE": -2.6865356517830825e-14, + "CEG": 37463.25320919154, + "CF": 9408.689492102187, + "CFG": 0.0, + "CHD": 2433.659262641627, + "CHRW": 0.0, + "CHTR": 6364.845975331845, + "CI": 3.9185054357770344e-13, + "CINF": 0.015139031150567838, + "CL": 9.420240294980758, + "CLX": 14.905454191014005, + "CMCSA": 6222.270504192595, + "CME": 4844.097673216922, + "CMG": 5314.425496324412, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 848.5046366728434, + "CNP": 0.0, + "COF": 8938.249550604023, + "COO": 0.0, + "COP": 0.0, + "COR": 3393.701531227694, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 723.5101495206914, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7639.791363060332, + "CRWD": 2157.3230770785644, + "CSCO": 6817.66852942968, + "CSGP": -7.592594257110077e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10900.427221900265, + "CTVA": 110.55829817046536, + "CVS": 0.0, + "CVX": -5.574099718483929e-13, + "CZR": 8731.684682552795, + "D": 0.0, + "DAL": 633.2220140808072, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0468272679032561e-13, + "DECK": 855.5654752393517, + "DFS": 3648.127314430209, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.924825638275004, + "DHR": 2093.325990487961, + "DIS": -3.9981885325536908, + "DLR": 3.1315702989407785e-14, + "DLTR": 1071.941220108463, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.23416063643598, + "DRI": 2.3541416334613228, + "DTE": 0.0, + "DUK": 1.2386700704350588, + "DVA": 3553.111078784293, + "DVN": 0.0, + "DXCM": 4901.028646112203, + "EA": 3856.77521868375, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.726384177658769e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.1120004756340408e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3472.13708743333, + "EOG": 0.0, + "EPAM": 5744.115122458464, + "EQIX": 811.7770539140301, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1304579854399988, + "EXPE": 4353.2530721960775, + "EXR": 5.909681728676671e-14, + "F": 0.0, + "FANG": 13875.806915885545, + "FAST": 3200.1144054977026, + "FCX": 0.0, + "FDS": 2032.9165517272377, + "FDX": 6951.435960964361, + "FE": 0.0, + "FFIV": 3099.3534571065406, + "FI": 2.562325140798178e-13, + "FICO": 1553.5033856737825, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.750957160500181e-14, + "FTNT": 5953.813617346311, + "FTV": 0.0, + "GD": 3.7753686330496344e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1737.2246049266132, + "GEN": 0.0, + "GEV": 19072.006937789327, + "GILD": 8525.073472174516, + "GIS": 7545.328152145225, + "GL": 0.3047495843137925, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23534.093288539676, + "GOOGL": 2053.644236331093, + "GPC": 0.0, + "GPN": -1.03438770065165e-13, + "GRMN": 2251.940923446137, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.060534730023898, + "HBAN": 0.0, + "HCA": 5994.1652932343695, + "HD": 8817.717946864159, + "HES": 0.0, + "HIG": 5705.7576101942595, + "HII": 0.7344653705175218, + "HLT": -1.3791551587359753e-13, + "HOLX": 2881.0029172660797, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10622.763932655074, + "HUBB": 1.3137164409690244e-13, + "HUM": 1116.1460598702795, + "HWM": 2176.1406970429307, + "IBM": 0.0, + "ICE": 733.554506691262, + "IDXX": -9.741023266322674, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4130.952130602595, + "INTC": 224.6145338104172, + "INTU": 1248.5031004158373, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04593016976885522, + "IRM": 0.0, + "ISRG": 6736.331373000909, + "IT": 7.633291984980147e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2521.0271886351675, + "JCI": 0.0, + "JKHY": 834.5727201203715, + "JNJ": 13112.933519981214, + "JNPR": 0.0, + "JPM": 2537.6909232355906, + "K": 462.57156941002137, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -19.44223719055716, + "KMB": 4461.670143534297, + "KMI": 0.0, + "KMX": 1.1311755151839153, + "KO": 197.22226246768156, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21516226010735914, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6705702505491913, + "LKQ": 5049.076504954579, + "LLY": 1.5050163255582714, + "LMT": 8618.33874927824, + "LNT": 0.0, + "LOW": -2.7879671385852804e-13, + "LRCX": 897.1712486430945, + "LULU": 1693.9831698178223, + "LUV": 27.325348500329607, + "LVS": 1812.2346040952264, + "LW": 21.414316859407705, + "LYB": 3538.4979640175584, + "LYV": 2850.0014065252485, + "MA": 29788.38687212813, + "MAA": 0.0, + "MAR": -5.962349218168108e-13, + "MAS": 0.0, + "MCD": 10206.273327565541, + "MCHP": 2340.599505455162, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3100158045406745, + "MET": -0.036224472608943924, + "META": 22188.94706899736, + "MGM": 4087.317677641399, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6611.851317160821, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5143.762749571838, + "MO": -21.97431007737286, + "MOH": 1730.880701745025, + "MOS": 0.0, + "MPC": 14849.196817402486, + "MPWR": -9.345884762772209e-13, + "MRK": 5672.154436793826, + "MRNA": 7497.9559703111945, + "MRO": 0.0, + "MS": 6160.750094868974, + "MSCI": 4336.670032452851, + "MSFT": 38682.77874864993, + "MSI": 0.0, + "MTB": -6.492137287898536, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3470.7389863476337, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16520.10122852113, + "NI": 0.0, + "NKE": -3.0338567539622895e-14, + "NOC": -3.9881302481849825e-13, + "NOW": 5118.979604914091, + "NRG": 0.0, + "NSC": -2.694328204974404e-14, + "NTAP": 6090.934269795894, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 135723.73077665767, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8077.1919258855305, + "O": 0.0, + "ODFL": 3145.370941310009, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.694525853987085, + "ORCL": 7377.199055553499, + "ORLY": -0.7463447884574934, + "OTIS": 1527.1499233543468, + "OXY": 0.0, + "PANW": 5697.50720106005, + "PARA": 2163.2813738486902, + "PAYC": 0.0, + "PAYX": 495.3569315792159, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11656.679776085044, + "PFE": 0.0, + "PFG": 171.85403752308898, + "PG": 1.0638251197502409, + "PGR": 8267.9018185666, + "PH": 0.0, + "PHM": -12.082954605745941, + "PKG": -5.091861129446671e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.73437534325223, + "POOL": 1312.6602689126648, + "PPG": -0.4053165667922194, + "PPL": 0.0, + "PRU": 638.0067856956489, + "PSA": 0.0, + "PSX": 2799.0302826291927, + "PTC": 2.6057148283688963e-14, + "PWR": -5.082717479239243, + "PYPL": 0.0, + "QCOM": 4487.316482982594, + "QRVO": 0.0, + "RCL": 2175.965757635532, + "REG": 0.0, + "REGN": 1074.423072707799, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 390.1858912267306, + "ROK": 1.1889311095412982, + "ROL": 0.0, + "ROP": 5409.543540428467, + "ROST": 1147.9034297540102, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6065.346186460592, + "SBUX": 8646.001608004826, + "SCHW": 132.35397416058052, + "SHW": 1.477099170860756, + "SJM": 0.9830217280011516, + "SLB": 0.0, + "SMCI": 11152.920376709279, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.578178197839097, + "SOLV": -1.580466149380082e-12, + "SPG": 0.0, + "SPGI": -5.870819486641554, + "SRE": 0.0, + "STE": 0.5152112311042599, + "STLD": -2.7256702812705986e-14, + "STT": 336.33473725627294, + "STX": -14.095063808885065, + "STZ": -2.066830644856188, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -7.027299405655841, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4887.9731340412245, + "TDY": -16.150422667846026, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 451.22008669217377, + "TMO": 0.0, + "TMUS": 8212.848320159657, + "TPR": 2729.913673133482, + "TRGP": 413.59029908346315, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.8438250022315915e-12, + "TSLA": 93740.53203281957, + "TSN": 4968.063148285698, + "TT": 0.0, + "TTWO": 747.4712268289283, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4181.134285389358, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3426.1380057913816, + "UNH": 18907.28300815469, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 1138.211576442208, + "V": 1777.0554732488563, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8825.056675700627, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3167.2982128336375, + "VRTX": 2420.5890945132737, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.0784225342569137e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.949623196170788, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.5585816440030114, + "WMB": 0.0, + "WMT": 12088.916837372846, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 3003.9497276471157, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 641a07ec0..46b2804cc 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -68299,5 +68299,510 @@ "ZBH": 1.5752862486062554e-09, "ZBRA": 9.335865760019666e-10, "ZTS": 3.8877885898795795e-09 + }, + "2024-07-24 13:30:00+00:00": { + "A": 3.6266968128936155e-09, + "AAL": 0.0005261762712003059, + "AAPL": 0.039727103700842675, + "ABBV": 0.004496626187629592, + "ABNB": 3.4371917767397535e-09, + "ABT": 0.002880701699268341, + "ACGL": 1.051513429626409e-08, + "ACN": 1.3334800959941245e-08, + "ADBE": 0.00909867819165672, + "ADI": 1.723994227611992e-08, + "ADM": 9.467162299231106e-09, + "ADP": 1.504409733996968e-08, + "ADSK": 1.3399346546951737e-08, + "AEE": 4.301542629338578e-09, + "AEP": 4.289588012507913e-09, + "AES": 2.0622028179228067e-09, + "AFL": 0.003040385692205175, + "AIG": 3.78681236025373e-09, + "AIZ": 1.4898265846890236e-08, + "AJG": 8.667501223198108e-09, + "AKAM": 9.563187215141943e-09, + "ALB": 1.7227688184012633e-09, + "ALGN": 0.0010463531311599205, + "ALL": 1.115677869326936e-08, + "ALLE": 4.211506459647085e-09, + "AMAT": 0.0018029008736073385, + "AMCR": 1.1368346783798798e-09, + "AMD": 0.023944896772255878, + "AME": 4.543884204885197e-09, + "AMGN": 0.005183216790217301, + "AMP": 3.631545642704196e-08, + "AMT": 0.0005427451568068477, + "AMZN": 0.03133085151239797, + "ANET": 0.0031262016991813247, + "ANSS": 0.0001687199426988864, + "AON": 2.0947370330650085e-08, + "AOS": 3.5645250500753557e-09, + "APA": 2.697578756076978e-09, + "APD": 8.862753129869813e-09, + "APH": 4.56013184244939e-08, + "APTV": 8.160638379351674e-09, + "ARE": 3.4239409675725066e-09, + "ATO": 5.183687055097247e-09, + "AVB": 4.8014834113948436e-09, + "AVGO": 0.018427968060045524, + "AVY": 5.520030146701521e-09, + "AWK": 9.321763590973319e-09, + "AXON": 0.004273148000296524, + "AXP": 8.650189391621172e-09, + "AZO": 5.766125990136031e-08, + "BA": 2.8879536574344056e-08, + "BAC": 5.814800569751886e-09, + "BALL": 1.2171519383587567e-08, + "BAX": 7.755274008975525e-09, + "BBWI": 5.995383585071641e-09, + "BBY": 0.00045285324420011767, + "BDX": 1.056453935502508e-08, + "BEN": 0.00016126466868750743, + "BF-B": 8.27385701744233e-09, + "BG": 0.0010419856335942411, + "BIIB": 0.0020092031042567445, + "BIO": 4.559164157876242e-09, + "BK": 5.047310075003453e-09, + "BKNG": 0.0016181033023305292, + "BKR": 2.672725756662207e-09, + "BLDR": 0.0004552381112789375, + "BLK": 1.549471866579337e-07, + "BMY": 7.477553828992494e-05, + "BR": 7.618261006374722e-09, + "BRK-B": 1.0819399543383978e-08, + "BRO": 7.318722043350401e-08, + "BSX": 7.421341032377859e-09, + "BWA": 5.326172067615276e-09, + "BX": 0.0012013590903003008, + "BXP": 3.7162513407556213e-09, + "C": 6.9553748238890435e-09, + "CAG": 1.046000350231024e-08, + "CAH": 8.664068323941544e-09, + "CARR": 0.017981374336078944, + "CAT": 3.108804866831768e-09, + "CB": 0.00025915585773252987, + "CBOE": 2.924205762406547e-08, + "CBRE": 0.004069332742122751, + "CCI": 0.0002604393248352166, + "CCL": 3.636054646549522e-09, + "CDNS": 1.3977945441921807e-08, + "CDW": 0.00034183089245227533, + "CE": 8.268725050079072e-09, + "CEG": 0.03217799966416467, + "CF": 0.008074516290860024, + "CFG": 6.515182276316239e-09, + "CHD": 0.0020885559800037532, + "CHRW": 1.1265256776335613e-08, + "CHTR": 0.005233780278485392, + "CI": 2.342922846000937e-08, + "CINF": 2.0961801390946233e-08, + "CL": 8.053896103773813e-06, + "CLX": 2.215236308857119e-06, + "CMCSA": 0.005339939634444003, + "CME": 0.004157238867756937, + "CMG": 0.004560822090398409, + "CMI": 4.222554475022254e-09, + "CMS": 3.766668206060561e-09, + "CNC": 0.0007281859137333657, + "CNP": 3.560204080412718e-09, + "COF": 0.007670718410606083, + "COO": 8.280287194943107e-09, + "COP": 6.754508916387486e-09, + "COR": 0.002901080613358593, + "COST": 8.2696635280357e-09, + "CPAY": 2.079170597741478e-08, + "CPB": 1.4084132211553216e-08, + "CPRT": 0.0006209094372203656, + "CPT": 4.0689431509754345e-09, + "CRL": 2.2652632641118744e-09, + "CRM": 0.006556429878170965, + "CRWD": 0.0018464584568955427, + "CSCO": 0.005850914935167234, + "CSGP": 8.874838750086026e-09, + "CSX": 9.051338062738546e-09, + "CTAS": 9.1255793945723e-09, + "CTLT": 4.6356688475382464e-09, + "CTRA": 2.596605418055004e-09, + "CTSH": 0.009197043712606504, + "CTVA": 9.488647141622153e-05, + "CVS": 7.543378174942502e-09, + "CVX": 9.885762727715934e-09, + "CZR": 0.00749350782221639, + "D": 6.528232945924163e-09, + "DAL": 0.0005434315670290849, + "DAY": 3.4902131273821688e-09, + "DD": 5.764060325630989e-09, + "DE": 9.578937717826602e-09, + "DECK": 0.0008914856088532103, + "DFS": 0.003130824842344213, + "DG": 4.875318561853298e-09, + "DGX": 1.1400650638485243e-08, + "DHI": 3.8627536884906204e-08, + "DHR": 0.001607162282826333, + "DIS": 9.720391287834553e-09, + "DLR": 7.355801797451494e-09, + "DLTR": 0.0009199804434905787, + "DOC": 2.0936809525625886e-09, + "DOV": 4.568401478606376e-09, + "DOW": 6.512065314903988e-09, + "DPZ": 2.7718821200863855e-08, + "DRI": 1.950080703271473e-06, + "DTE": 4.970968421254139e-09, + "DUK": 2.919892451767497e-08, + "DVA": 0.003044156319157868, + "DVN": 2.747890487559434e-09, + "DXCM": 0.004206048957611275, + "EA": 0.0033073553926582316, + "EBAY": 5.353160628168631e-09, + "ECL": 5.53121250852758e-09, + "ED": 7.310493042958304e-09, + "EFX": 4.710415344272354e-09, + "EG": 2.2401214577344614e-08, + "EIX": 7.312516507913615e-09, + "EL": 5.472086276315387e-09, + "ELV": 1.571790709905004e-08, + "EMN": 4.275380586343873e-09, + "EMR": 2.89059090565806e-09, + "ENPH": 0.0030244234009356255, + "EOG": 6.338739355875041e-09, + "EPAM": 0.0049295804742271266, + "EQIX": 0.0004839419087532534, + "EQR": 4.771804366974036e-09, + "EQT": 1.768970023598168e-09, + "ES": 3.652585373075396e-09, + "ESS": 6.536657800336378e-09, + "ETN": 2.5105958602059367e-09, + "ETR": 6.887344781015952e-09, + "ETSY": 1.112168219367336e-08, + "EVRG": 2.5198117037786023e-09, + "EW": 1.278377347124293e-08, + "EXC": 4.922021334325601e-09, + "EXPD": 1.586226269510513e-08, + "EXPE": 0.003735763842726953, + "EXR": 1.342028978706405e-08, + "F": 3.2580017798019434e-09, + "FANG": 0.011908185152564631, + "FAST": 0.002746325932797035, + "FCX": 2.855408578104617e-09, + "FDS": 0.0015089677038449547, + "FDX": 0.005706821153623754, + "FE": 4.3121387630751666e-09, + "FFIV": 0.002548895671132783, + "FI": 1.5093189705546935e-08, + "FICO": 0.0013652547378279563, + "FIS": 6.331747257314398e-09, + "FITB": 8.519927583524208e-09, + "FMC": 6.32778049412008e-09, + "FOX": 3.046476571892267e-09, + "FOXA": 4.2079098202011226e-09, + "FRT": 3.826636113797575e-09, + "FSLR": 2.4968639294739887e-09, + "FTNT": 0.005109547009901509, + "FTV": 2.5962573942771777e-09, + "GD": 1.545464587948956e-08, + "GDDY": 1.8651981841115176e-08, + "GE": 4.810907282365812e-09, + "GEHC": 0.0014908717131446648, + "GEN": 3.391061347830532e-09, + "GEV": 0.016035910956636975, + "GILD": 0.007173904806308499, + "GIS": 0.0064753863924770765, + "GL": 1.3207894202072767e-08, + "GLW": 4.173154980207585e-09, + "GM": 4.009382060867063e-09, + "GNRC": 4.0992566690266355e-09, + "GOOG": 0.020197202996902495, + "GOOGL": 0.0017625190258561418, + "GPC": 9.401538204363797e-09, + "GPN": 1.583111715252172e-08, + "GRMN": 0.0019326069826271885, + "GS": 8.64449473530303e-09, + "GWW": 3.461762425155945e-09, + "HAL": 2.8584484468202335e-09, + "HAS": 8.810068448416462e-07, + "HBAN": 2.7331320489717536e-09, + "HCA": 0.005100883158773818, + "HD": 0.007567373522817027, + "HES": 6.925558031108135e-09, + "HIG": 0.004896625315420978, + "HII": 3.9855545755676024e-08, + "HLT": 1.3354408419091184e-08, + "HOLX": 0.0024724448026852085, + "HON": 6.089652614186858e-09, + "HPE": 2.539023177324557e-09, + "HPQ": 3.182810206821947e-09, + "HRL": 8.925423915831198e-09, + "HSIC": 9.236004909125034e-09, + "HST": 3.3877762321403712e-09, + "HSY": 0.009116379465160765, + "HUBB": 1.7501280943244835e-09, + "HUM": 0.0009165586309736024, + "HWM": 0.0018675891919578856, + "IBM": 4.195873076263143e-09, + "ICE": 0.0006295270620275944, + "IDXX": 1.2055478844811098e-08, + "IEX": 4.750427252804258e-09, + "IFF": 5.104480005358936e-09, + "INCY": 0.003545143342639472, + "INTC": 0.00019276313417856443, + "INTU": 0.0010715061538045675, + "INVH": 3.264641656284413e-09, + "IP": 4.046223890028708e-09, + "IPG": 7.463209507121935e-09, + "IQV": 4.210503275032674e-09, + "IR": 2.428847189834848e-08, + "IRM": 7.116396892980271e-09, + "ISRG": 0.005677028588546282, + "IT": 1.6757771490951956e-08, + "ITW": 6.010162835593952e-09, + "IVZ": 3.417967183839122e-09, + "J": 7.238304734786037e-09, + "JBHT": 7.796139616976773e-09, + "JBL": 0.002163554454688422, + "JCI": 3.0522237628386728e-09, + "JKHY": 0.0007162798366426832, + "JNJ": 0.011253453640982073, + "JNPR": 4.4530783668951735e-09, + "JPM": 0.0021776758263862355, + "K": 0.00039697680896347883, + "KDP": 3.030751916559352e-09, + "KEY": 2.2903307361091453e-09, + "KEYS": 5.859970485598272e-09, + "KHC": 1.700271176327205e-09, + "KIM": 2.954677591397249e-09, + "KKR": 1.3214752387211606e-08, + "KLAC": 0.00015826978795216207, + "KMB": 0.003828944325460351, + "KMI": 1.444667108712899e-09, + "KMX": 3.4081124746192456e-08, + "KO": 0.00016924680725422726, + "KR": 1.5415664290769747e-08, + "KVUE": -7.680758219252656e-10, + "L": 7.764985496267117e-09, + "LDOS": 3.736813436847377e-08, + "LEN": 2.15358197324338e-08, + "LH": 3.7089345487240736e-09, + "LHX": 7.507662353129771e-09, + "LIN": 3.250390562593531e-08, + "LKQ": 0.004333075755600527, + "LLY": 2.2937046180091854e-08, + "LMT": 0.007311556773952464, + "LNT": 3.312761119967522e-09, + "LOW": 1.5855481264227544e-08, + "LRCX": 0.0006395326686416034, + "LULU": 0.0014550708503233462, + "LUV": 2.345382200428446e-05, + "LVS": 0.0015552477643113007, + "LW": 7.930443918451166e-08, + "LYB": 0.003036696635386728, + "LYV": 0.0024458715727818294, + "MA": 0.025515704333952, + "MAA": 4.994934773534432e-09, + "MAR": 1.2998223159776386e-08, + "MAS": 5.4945935618143684e-09, + "MCD": 0.008730618514496689, + "MCHP": 0.0020087531884282624, + "MCK": 2.9200822881214972e-08, + "MCO": 5.0360921476089815e-09, + "MDLZ": 5.7049146183226715e-09, + "MDT": 1.1104606827049647e-06, + "MET": 7.248797598541862e-09, + "META": 0.019042466566384083, + "MGM": 0.0035076572659881733, + "MHK": 6.091076019007257e-09, + "MKC": 6.97196807282365e-09, + "MKTX": 0.0055501582654601915, + "MLM": 3.946729668943112e-09, + "MMC": 5.068458539031194e-09, + "MMM": 5.796917283390599e-09, + "MNST": 0.004414369653177551, + "MO": 6.1221929919033895e-09, + "MOH": 0.0014775609168860028, + "MOS": 2.2121699012978917e-09, + "MPC": 0.012636146401105787, + "MPWR": 1.1246988518829448e-07, + "MRK": 0.004867776525406036, + "MRNA": 0.006434708219535536, + "MRO": 1.3814009447514252e-09, + "MS": 0.005287128065153587, + "MSCI": 0.003546393559834368, + "MSFT": 0.03309359257872747, + "MSI": 9.253777845762393e-09, + "MTB": 2.8474452510398224e-08, + "MTCH": 1.600255134822931e-08, + "MTD": 9.302695865934836e-09, + "MU": 0.003014662785232484, + "NCLH": 5.242012293421883e-09, + "NDAQ": 7.488415738103859e-09, + "NDSN": 4.672459922695978e-09, + "NEE": 3.324601461732657e-09, + "NEM": 2.9490883330841148e-09, + "NFLX": 0.014177457442419694, + "NI": 2.9160261660224516e-09, + "NKE": 2.277723566012736e-08, + "NOC": 3.2926970488044156e-08, + "NOW": 0.004393041258266831, + "NRG": 1.7687635692117397e-09, + "NSC": 1.2278950778788716e-08, + "NTAP": 0.005122291875166926, + "NTRS": 4.652409742610099e-09, + "NUE": 9.441477917449347e-09, + "NVDA": 0.1164777976792764, + "NVR": 0.0013611663230554411, + "NWS": 2.100360757101326e-09, + "NWSA": 2.019202494157621e-09, + "NXPI": 0.006931466883339402, + "O": 9.604625215314609e-09, + "ODFL": 0.002442365149605011, + "OKE": 5.225611735031407e-09, + "OMC": 5.733867678280992e-09, + "ON": 1.14194815209412e-08, + "ORCL": 0.006331075971571283, + "ORLY": 3.5069353236034404e-08, + "OTIS": 0.0013105374502492956, + "OXY": 3.812030642900306e-09, + "PANW": 0.005034454436297724, + "PARA": 0.0018565223097885867, + "PAYC": 2.542186639880083e-08, + "PAYX": 0.00033306148515608013, + "PCAR": 8.485094115027286e-09, + "PCG": 2.7618388598123896e-09, + "PEG": 5.527315494945125e-09, + "PEP": 0.009630693072735463, + "PFE": 6.580967871743573e-09, + "PFG": 0.0001465702285207868, + "PG": 1.750418575340487e-08, + "PGR": 0.007095507668246806, + "PH": 3.714765035841187e-09, + "PHM": 1.738058094140544e-08, + "PKG": 1.549520611982508e-08, + "PLD": 6.329043109546129e-09, + "PM": 1.136560220259735e-08, + "PNC": 1.1738980797495412e-08, + "PNR": 2.689858839205651e-09, + "PNW": 4.0205279677541614e-09, + "PODD": 3.041317422969108e-08, + "POOL": 0.0010912496672254007, + "PPG": 9.017078862302092e-09, + "PPL": 4.32779086504762e-09, + "PRU": 0.000510534296853713, + "PSA": 5.033175486926773e-09, + "PSX": 0.0021276706548764134, + "PTC": 9.813183299827065e-09, + "PWR": 1.1427673611741931e-08, + "PYPL": 2.5616568330726746e-09, + "QCOM": 0.0038527924202819133, + "QRVO": 1.8999729617728784e-09, + "RCL": 0.0017369976145683802, + "REG": 4.616054702382951e-09, + "REGN": 0.0009092295767537738, + "RF": 3.8452151006995365e-09, + "RJF": 8.711908609608793e-09, + "RL": 5.473821092323235e-09, + "RMD": 0.0003584524656962165, + "ROK": 9.50572831843473e-09, + "ROL": 4.171597818877878e-09, + "ROP": 0.004555238093309222, + "ROST": 0.0009851077928887356, + "RSG": 9.012037169447753e-09, + "RTX": 1.1125167242638147e-08, + "RVTY": 3.2999015714245857e-09, + "SBAC": 0.005205206892778035, + "SBUX": 0.00741996828124863, + "SCHW": 3.604872766713543e-07, + "SHW": 1.0256298237502707e-07, + "SJM": 5.36939487560133e-08, + "SLB": 2.9412912343893655e-09, + "SMCI": 0.009611951852577452, + "SNA": 4.827611810845736e-09, + "SNPS": 3.96732199231633e-09, + "SO": 8.842187244985689e-06, + "SOLV": -1.4674904724111652e-09, + "SPG": 5.438249190429095e-09, + "SPGI": 8.1171374383749e-09, + "SRE": 6.445463050968604e-09, + "STE": 4.1191901890191055e-07, + "STLD": 1.618287300605993e-08, + "STT": 0.0002886337856463467, + "STX": 1.180716825264896e-08, + "STZ": 7.631226089365662e-08, + "SWK": 4.243093223267742e-09, + "SWKS": 3.0607914850107546e-09, + "SYF": 8.3938078736324e-09, + "SYK": 2.625655811762517e-08, + "SYY": 1.0283919327282713e-08, + "T": 6.2968341696469525e-09, + "TAP": 5.7549550746682305e-09, + "TDG": 0.004404237687735833, + "TDY": 1.5855050533832696e-08, + "TECH": 1.086256058534557e-08, + "TEL": 7.082106142193284e-09, + "TER": 4.318325586578807e-09, + "TFC": 4.489155107284833e-09, + "TFX": 9.318308225136024e-09, + "TGT": 1.058610017468367e-08, + "TJX": 0.00038722081673508985, + "TMO": 1.0037003218450178e-08, + "TMUS": 0.006606735654754829, + "TPR": 0.0023428085782524694, + "TRGP": 0.0003549081560622616, + "TRMB": 9.207420412225519e-09, + "TROW": 8.327337631160644e-09, + "TRV": 9.514939393286265e-09, + "TSCO": 1.7014553022538e-08, + "TSLA": 0.08695388782648197, + "TSN": 0.004263564549345125, + "TT": 3.396225901826802e-09, + "TTWO": 0.0006414829816740135, + "TXN": 7.676080785265359e-09, + "TXT": 3.5713426692841685e-09, + "TYL": 4.439857845428685e-08, + "UAL": 0.0035882567974292417, + "UBER": 6.103788757489863e-09, + "UDR": 2.9934780359570615e-09, + "UHS": 5.9233727122772976e-09, + "ULTA": 0.0029124388576623013, + "UNH": 0.01598369963455111, + "UNP": 1.1381876885993893e-08, + "UPS": 3.1300459410193786e-09, + "URI": 7.594295817005722e-09, + "USB": 4.563178209391291e-09, + "USDOLLAR": 3.5376737957354236e-07, + "V": 0.0015244432941628615, + "VICI": 3.6537730045628184e-09, + "VLO": 1.7397474901019878e-08, + "VLTO": 0.007584132975112097, + "VMC": 2.4007808896142787e-09, + "VRSK": 1.042354380054087e-08, + "VRSN": 0.0025574168287714437, + "VRTX": 0.001864894879472194, + "VST": 2.507200965319793e-09, + "VTR": 7.027727772316808e-09, + "VTRS": 2.884255902335736e-09, + "VZ": 8.027157024516604e-09, + "WAB": 3.4063005087649305e-09, + "WAT": 1.0947604303508903e-08, + "WBA": 1.6106022160574435e-09, + "WBD": 1.0606470904310539e-09, + "WDC": 5.104980114401989e-09, + "WEC": 8.724954735021286e-09, + "WELL": 5.7771037179555824e-09, + "WFC": 1.1748841522188235e-08, + "WM": 6.96935578197629e-08, + "WMB": 1.4053366189914317e-08, + "WMT": 0.01037467541570868, + "WRB": 9.045377339214272e-09, + "WST": 5.472649346823058e-09, + "WTW": 7.4225140264666374e-09, + "WY": 2.534760698422176e-09, + "WYNN": 0.0025607764790026165, + "XEL": 4.601990747824077e-09, + "XOM": 8.626837569767045e-09, + "XYL": 6.53007803376528e-09, + "YUM": 1.3142707371571634e-08, + "ZBH": 4.523110431782522e-09, + "ZBRA": 2.897989147649159e-09, + "ZTS": 1.0472977052719641e-08 } } \ No newline at end of file From 9ba5b14ee5cbf4a6a9d19272eec2abfdad04ec7a Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 11:31:18 +0400 Subject: [PATCH 070/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-25 --- .../ftse100_daily_initial_holdings.json | 111 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 ++++++++++++++++ 2 files changed, 210 insertions(+), 4 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 24cd0667d..284a2e433 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11251,7 +11251,7 @@ "HLN.L": 0.0, "HSBA.L": 10165.736979745892, "HWDN.L": 10383.87161257385, - "IAG.L": 10370.38188544722, + "IAG.L": 10389.248752206964, "ICG.L": 10874.354369312137, "IHG.L": 16532.160827139836, "III.L": 9173.675635356833, @@ -11288,13 +11288,13 @@ "SDR.L": 10364.747227714486, "SGE.L": 38189.53087184367, "SGRO.L": 0.0, - "SHEL.L": 2947.0600585937486, + "SHEL.L": 2737.5000000000005, "SMDS.L": 10334.657182456649, "SMIN.L": 0.0, "SMT.L": 10272.190266006535, "SN.L": 3387.348816512337, "SPX.L": 8624.713816706977, - "SSE.L": 10999.413303878102, + "SSE.L": 10999.413322899614, "STAN.L": 10294.695970077908, "SVT.L": 10102.490267108626, "TSCO.L": 10146.371681812358, @@ -11302,10 +11302,113 @@ "ULVR.L": 8921.149524311062, "UTG.L": 10259.591252090924, "UU.L": 10325.927045714607, - "VOD.L": 9314.502843740402, + "VOD.L": 10345.508618710204, "VTY.L": 10615.596635598999, "WEIR.L": 9669.126704522661, "WPP.L": 10593.556116829715, "WTB.L": 11553.044878355024 + }, + "2024-07-25 07:00:00+00:00": { + "AAF.L": 20890.99258409767, + "AAL.L": 9681.311912398072, + "ABF.L": 9750.899529082863, + "ADM.L": 10471.34511495846, + "AHT.L": 15560.317324939315, + "ANTO.L": 17756.096042121175, + "AUTO.L": 10300.782485832351, + "AV.L": 13337.454486113074, + "AZN.L": 12545.991866407574, + "BA.L": 10105.011810092255, + "BARC.L": 9971.115612103087, + "BATS.L": 10798.188407755719, + "BDEV.L": 10440.688198640166, + "BEZ.L": 10525.241964910463, + "BKG.L": 9906.592508166552, + "BME.L": 10445.41417342831, + "BNZL.L": 9720.487275842921, + "BP.L": 1.3775206508776095e-12, + "BRBY.L": 10187.172702430484, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10557.7150643815, + "CPG.L": 0.0, + "CRDA.L": 12114.194640094054, + "CTEC.L": 42.8871501611898, + "DARK.L": 25731.324747950213, + "DCC.L": 21170.610279060715, + "DGE.L": 10133.640169505812, + "DPLM.L": 8432.593235960587, + "EDV.L": 6983.712548369267, + "ENT.L": 9842.487162525797, + "EXPN.L": 10389.154529079351, + "EZJ.L": 8658.296093642912, + "FCIT.L": 0.0, + "FRAS.L": 9993.17863240305, + "FRES.L": 10211.262345511048, + "GBPOUND": 2653.9464335157845, + "GLEN.L": 9486.273860863012, + "GSK.L": 10861.44743313502, + "HIK.L": 11117.580989094322, + "HL.L": 9832.029117379436, + "HLMA.L": 10125.612597969915, + "HLN.L": 0.0, + "HSBA.L": 10058.664813823096, + "HWDN.L": 10322.461619166157, + "IAG.L": 10109.393267364954, + "ICG.L": 10550.652657853549, + "IHG.L": 16129.918471248351, + "III.L": 8950.88206889264, + "IMB.L": 10481.191764236024, + "IMI.L": 10733.077988749701, + "INF.L": 10410.264323467543, + "ITRK.L": 9647.771553122519, + "JD.L": 10675.075665020147, + "KGF.L": 10416.863646360505, + "LAND.L": 0.0, + "LGEN.L": 10141.716006585219, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28314.373091561392, + "MKS.L": 0.0, + "MNDI.L": 9690.730831628973, + "MNG.L": 10311.491349183536, + "MRO.L": 43469.32727944188, + "NG.L": 10715.927723623718, + "NWG.L": 9936.535004196892, + "NXT.L": 8706.167352769127, + "PHNX.L": 0.0, + "PRU.L": 10321.762994298797, + "PSH.L": 53215.995513294205, + "PSN.L": 10662.500735972988, + "PSON.L": 1046.285298504389, + "REL.L": 10560.065227566247, + "RIO.L": 10398.321355003496, + "RKT.L": 9232.734074471906, + "RMV.L": 11943.308551584234, + "RR.L": 9913.574638158458, + "RTO.L": 10324.451244138541, + "SBRY.L": 0.0, + "SDR.L": 10132.13531075144, + "SGE.L": 37500.1236637059, + "SGRO.L": 0.0, + "SHEL.L": 2746.9999999999995, + "SMDS.L": 10428.310624462636, + "SMIN.L": 0.0, + "SMT.L": 9962.059459198406, + "SN.L": 3421.2069146328604, + "SPX.L": 8574.03982248426, + "SSE.L": 10971.457095292195, + "STAN.L": 10091.717900145914, + "SVT.L": 10082.155141772253, + "TSCO.L": 10556.813211346664, + "TW.L": 10371.838020345614, + "ULVR.L": 9303.397826304896, + "UTG.L": 10242.772250038322, + "UU.L": 10367.18949145173, + "VOD.L": 10265.745853823359, + "VTY.L": 10856.86019549898, + "WEIR.L": 9572.129129345294, + "WPP.L": 10414.101222192814, + "WTB.L": 11471.913945220502 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 7ac69edd8..13a2062e8 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -10916,5 +10916,108 @@ "WEIR.L": 0.009999994876905496, "WPP.L": 0.009999990687667012, "WTB.L": 0.009999963398763422 + }, + "2024-07-25 07:00:00+00:00": { + "AAF.L": 0.020372388036090105, + "AAL.L": 0.009999999634567632, + "ABF.L": 0.00999988631372454, + "ADM.L": 0.010000032111656256, + "AHT.L": 0.015335965281719792, + "ANTO.L": 0.017525244695632554, + "AUTO.L": 0.010000003928947128, + "AV.L": 0.01300622190679246, + "AZN.L": 0.010000011330192257, + "BA.L": 0.010000002354127326, + "BARC.L": 0.009999999227661035, + "BATS.L": 0.010000001594593742, + "BDEV.L": 0.010000002179402782, + "BEZ.L": 0.010000007941361879, + "BKG.L": 0.010000001351418989, + "BME.L": 0.009999998615909295, + "BNZL.L": 0.009999996456304791, + "BP.L": 1.3938323736295498e-07, + "BRBY.L": 0.009999994422817045, + "BT-A.L": 1.0387615063150563e-08, + "CCH.L": 9.788720126663747e-08, + "CNA.L": 0.009999998558120445, + "CPG.L": 1.3883239845454993e-07, + "CRDA.L": 0.009999999565631136, + "CTEC.L": 4.181715638091984e-05, + "DARK.L": 0.02514739603376201, + "DCC.L": 0.020505881117595416, + "DGE.L": 0.009999916605014224, + "DPLM.L": 0.010000002561819333, + "EDV.L": 0.007046168420342195, + "ENT.L": 0.01000001106442981, + "EXPN.L": 0.010000000475757997, + "EZJ.L": 0.008445345963755579, + "FCIT.L": 1.2202296635950956e-08, + "FRAS.L": 0.010000000655689177, + "FRES.L": 0.009999998832878356, + "GBPOUND": 5.997635802584833e-08, + "GLEN.L": 0.009296359863149284, + "GSK.L": 0.009999997937786446, + "HIK.L": 0.010000003050247952, + "HL.L": 0.010000001657401553, + "HLMA.L": 0.010000000877595124, + "HLN.L": 7.4287749288044374e-09, + "HSBA.L": 0.009999999730774279, + "HWDN.L": 0.010000000414541273, + "IAG.L": 0.009999923239100414, + "ICG.L": 0.010000005095983202, + "IHG.L": 0.015263082951838777, + "III.L": 0.010000001716147244, + "IMB.L": 0.010000005445991536, + "IMI.L": 0.009999997384291944, + "INF.L": 0.009999990692777221, + "ITRK.L": 0.009999999004697262, + "JD.L": 0.010409961804788837, + "KGF.L": 0.009999997573119352, + "LAND.L": 7.454938791657235e-09, + "LGEN.L": 0.009999998755201673, + "LLOY.L": 3.124411541160553e-08, + "LMP.L": 1.8548218658272775e-08, + "LSEG.L": 0.0274621838401514, + "MKS.L": 2.3047201379253694e-08, + "MNDI.L": 0.009999999547561901, + "MNG.L": 0.010000000830103937, + "MRO.L": 0.0423904326937855, + "NG.L": 0.00999999448780356, + "NWG.L": 0.00999999530591248, + "NXT.L": 0.010000002934500166, + "PHNX.L": 1.2959135611652047e-08, + "PRU.L": 0.00999999926519644, + "PSH.L": 0.05195031259414325, + "PSN.L": 0.010000000937629655, + "PSON.L": 0.0010571597127180547, + "REL.L": 0.009999998296296641, + "RIO.L": 0.010000001502424222, + "RKT.L": 0.00999999602092141, + "RMV.L": 0.0116470180533161, + "RR.L": 0.009999998135220666, + "RTO.L": 0.01000000056263221, + "SBRY.L": 2.2344082324020702e-08, + "SDR.L": 0.009999996709968905, + "SGE.L": 0.036568974465983, + "SGRO.L": 2.3643773172606687e-08, + "SHEL.L": 0.003057364392846003, + "SMDS.L": 0.009999998660848233, + "SMIN.L": 3.8750427625359826e-08, + "SMT.L": 0.00999997836301241, + "SN.L": 0.0034703433424099527, + "SPX.L": 0.00999999150872114, + "SSE.L": 0.009999999731530457, + "STAN.L": 0.009999997235394886, + "SVT.L": 0.010000000751605773, + "TSCO.L": 0.010000002577452318, + "TW.L": 0.009999999461595814, + "ULVR.L": 0.00999998692032723, + "UTG.L": 0.010000004990168301, + "UU.L": 0.009999996388661307, + "VOD.L": 0.010000012974933387, + "VTY.L": 0.010000000576687661, + "WEIR.L": 0.009999999098866544, + "WPP.L": 0.00999999806944111, + "WTB.L": 0.009999993379923643 } } \ No newline at end of file From 7b7bd375201dfa902991e716520c8599479d320b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 12:22:05 +0400 Subject: [PATCH 071/125] marked test that waits redesign, merging this in main --- cvxportfolio/tests/test_forecast.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index 8426fffce..415c84978 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -129,6 +129,7 @@ def test_regression_xty_returns(self): xty.finalize_estimator_recursive() + @unittest.expectedFailure # code for this being redesigned def test_regression_mean_return(self): # pylint: disable=too-many-locals """Test historical mean return with regression.""" From 104ad5abadfc45d998cefd92b405a7d97e1f70a7 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 12:27:40 +0400 Subject: [PATCH 072/125] warnings thrown on old pandas --- cvxportfolio/forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index abbc60c21..1cf9dc8ea 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -509,7 +509,7 @@ def values_in_time( # pylint: disable=arguments-differ """ result = super().values_in_time(t=t, **kwargs) - mindenom = np.min(result) + mindenom = np.min(result, axis=None) if mindenom == 0: raise ForecastError( f'{self.__class__.__name__} can not compute the forecast at' From 030237afd1a54de081f2e94e5c6cb74fde78ffbf Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 12:32:06 +0400 Subject: [PATCH 073/125] warnings thrown on old pandas --- cvxportfolio/forecast.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 1cf9dc8ea..e217dbf21 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -101,6 +101,7 @@ """ import logging +import warnings import numpy as np import pandas as pd @@ -508,8 +509,10 @@ def values_in_time( # pylint: disable=arguments-differ :rtype: pd.Series or np.array """ result = super().values_in_time(t=t, **kwargs) - - mindenom = np.min(result, axis=None) + with warnings.catch_warnings(): # op below warns on old pandas + warnings.filterwarnings( # pragma: no cover + "ignore", category=FutureWarning) + mindenom = np.min(result, axis=None) if mindenom == 0: raise ForecastError( f'{self.__class__.__name__} can not compute the forecast at' From bfb3c0af7fabd77ef4d0212c70541978fcdefa1b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 12:39:59 +0400 Subject: [PATCH 074/125] debugging for old pandas --- cvxportfolio/forecast.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index e217dbf21..aebe2bfed 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -509,10 +509,9 @@ def values_in_time( # pylint: disable=arguments-differ :rtype: pd.Series or np.array """ result = super().values_in_time(t=t, **kwargs) - with warnings.catch_warnings(): # op below warns on old pandas - warnings.filterwarnings( # pragma: no cover - "ignore", category=FutureWarning) - mindenom = np.min(result, axis=None) + + mindenom = np.min(result.values, axis=None) + if mindenom == 0: raise ForecastError( f'{self.__class__.__name__} can not compute the forecast at' From 78cd6edd981a74cc75056e20a1325b9b5758f67c Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 14:53:23 +0400 Subject: [PATCH 075/125] tests fail b/c coverage due to duplicate code for lin reg; need to remove; some renaming; going back to single-branch model once this is merged for 1.4 --- .github/workflows/test.yml | 2 -- README.rst | 18 +++++++++--------- cvxportfolio/forecast.py | 14 +++++++------- docs/conf.py | 2 +- strategies_runner.sh | 2 +- 5 files changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b942a11c2..443e1dd79 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,12 +4,10 @@ on: push: branches: - - main - master pull_request: branches: - - main - master jobs: diff --git a/README.rst b/README.rst index 599b94413..0c18ed18b 100644 --- a/README.rst +++ b/README.rst @@ -36,8 +36,8 @@ The documentation of the library is at Since end of 2023 we're running daily `example strategies `_ - using the `development (main) branch - `_.; each day we commit + using the `development (master) branch + `_.; each day we commit target weights and initial holdings to the repository. All the code that runs them, including the `cron script `_, @@ -68,8 +68,8 @@ Advanced: install development version ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ You can also install the development version. It is tested daily by the -example strategies. We host it in the `main branch -`_. It is named after +example strategies. We host it in the `master branch +`_. It is named after the current stable version; each time we make a release we update to the new version and merge to the master branch, which is shown on the homepage of the repository. If this sounds complicated, avoid installing the development @@ -77,7 +77,7 @@ version. .. code:: bash - pip install --upgrade --force-reinstall git+https://github.com/cvxgrp/cvxportfolio@main + pip install --upgrade --force-reinstall git+https://github.com/cvxgrp/cvxportfolio@master .. Test @@ -215,10 +215,10 @@ and then clone your fork) git clone https://github.com/cvxgrp/cvxportfolio.git cd cvxportfolio -We develop in the ``main`` branch. So you should `check out -`_ that one. The default branch shown on -the homepage of the repository is the ``master`` branch. It hosts the last -release. +.. We develop in the ``main`` branch. So you should `check out +.. `_ that one. The default branch shown on +.. the homepage of the repository is the ``master`` branch. It hosts the last +.. release. Then, you should have a look at our `Makefile `_ diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index aebe2bfed..f4844bce1 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -806,7 +806,7 @@ def values_in_time( # pylint: disable=arguments-differ """ return self._numerator.current_value / self._denominator.current_value -class MatrixCount(VectorCount): # pylint: disable=abstract-method +class JointCount(VectorCount): # pylint: disable=abstract-method """Intermediate class: joint count for the denominator of covariances. We inherit from :class:`VectorCount` which implements a check for @@ -827,11 +827,11 @@ def _single_compute(self, last_row): return np.outer(nonnull, nonnull) -class CovarianceDenominator(MatrixCount, OnPastReturns): +class JointCountPastReturns(JointCount, OnPastReturns): """Compute denominator of (Kelly) covariance of past returns.""" -class MatrixSum(SumForecaster): # pylint: disable=abstract-method - """Intermediate class: joint sum for the denominator of covariances.""" +class JointSum(SumForecaster): # pylint: disable=abstract-method + """Intermediate class: joint sum for the numerator of covariances.""" def _batch_compute(self, df, emw_weights): """Compute for a batch at once.""" @@ -846,7 +846,7 @@ def _single_compute(self, last_row): filled = last_row.fillna(0.) return np.outer(filled, filled) -class CovarianceNumerator(MatrixSum, OnPastReturns): +class JointSumPastReturns(JointSum, OnPastReturns): """Compute numerator of (Kelly) covariance of past returns.""" class JointMean(SumForecaster): # pylint: disable=abstract-method @@ -892,9 +892,9 @@ def __init__(self, half_life=np.inf, rolling=np.inf, kelly=True): self.half_life = half_life self.rolling = rolling self.kelly = kelly - self._denominator = CovarianceDenominator( + self._denominator = JointCountPastReturns( half_life=half_life, rolling=rolling) - self._numerator = CovarianceNumerator( + self._numerator = JointSumPastReturns( half_life=half_life, rolling=rolling) if not self.kelly: self._correction = JointMeanReturns( diff --git a/docs/conf.py b/docs/conf.py index 23354baa4..42f2812c3 100755 --- a/docs/conf.py +++ b/docs/conf.py @@ -126,7 +126,7 @@ "github_url": "https://github.com", "github_user": "cvxgrp", "github_repo": "cvxportfolio", - "github_version": "main", # don't know if can point to tag of the page? + "github_version": "master", # don't know if can point to tag of the page? "doc_path": "docs", } diff --git a/strategies_runner.sh b/strategies_runner.sh index f8551f799..ee19175cb 100755 --- a/strategies_runner.sh +++ b/strategies_runner.sh @@ -20,7 +20,7 @@ # # # We run this in a cron job, from the root of repository in the development -# environment (main branch): +# environment (master branch): # - at 8:30 London time with arguments ftse100_daily # - at 10:00 New York time with arguments dow30_daily ndx100_daily sp500_daily # From 204dcb35eceb3baaf2ad10293e80a90cb697d998 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 18:00:37 +0400 Subject: [PATCH 076/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-25 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index b75238e4e..6f3470fa9 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4754,12 +4754,12 @@ "2024-07-24 13:30:00+00:00": { "AAPL": 216466.10277052587, "AMGN": 20657.912492805935, - "AMZN": 223454.44092454188, + "AMZN": 223247.28137384454, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 79684.99234154979, - "CSCO": 43641.05569057504, + "CSCO": 43697.39225036621, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -4774,14 +4774,47 @@ "MCD": 1.1611524778546524e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 233107.61171380145, + "MSFT": 233229.40834171983, "NKE": 1.005545133499686e-12, "PG": 0.0, "TRV": 0.0, "UNH": 104469.58814598953, - "USDOLLAR": 169.74491111560977, + "USDOLLAR": 169.74491327214787, "V": 32945.76656855684, "VZ": 0.0, "WMT": 0.0003907873964715165 + }, + "2024-07-25 13:30:00+00:00": { + "AAPL": 211508.63775188228, + "AMGN": 20827.762390759006, + "AMZN": 223247.49802744272, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 80033.73022126498, + "CSCO": 44429.32496252851, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 105399.70477270341, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1982516336654025e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 227073.6771649023, + "NKE": 9.819336815257397e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 104842.6938179395, + "USDOLLAR": -150.16261327834513, + "V": 32858.27728032969, + "VZ": 0.0, + "WMT": 0.0003912307275656606 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 458b011c4..99dde3017 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4783,5 +4783,38 @@ "V": 0.03100402900406713, "VZ": 4.870069316513726e-09, "WMT": 4.3895083764763615e-08 + }, + "2024-07-25 13:30:00+00:00": { + "AAPL": 0.20142319915413617, + "AMGN": 0.019834509093240655, + "AMZN": 0.21260226496276824, + "AXP": 2.4329648808408333e-09, + "BA": 4.2398058458699165e-09, + "CAT": 2.1054072185250837e-09, + "CRM": 0.07621751229503491, + "CSCO": 0.04231077060725465, + "CVX": 2.3698292887072782e-09, + "DIS": 3.0500897909831354e-09, + "DOW": 2.7855966073858077e-09, + "GS": 2.479110757229021e-09, + "HD": 0.10037389393999788, + "HON": 1.4597625843215297e-09, + "IBM": 1.0797778600853317e-09, + "INTC": 2.707690211797663e-09, + "JNJ": 3.4419747709732795e-09, + "JPM": 4.073576557825755e-09, + "KO": 2.606040558501428e-09, + "MCD": 7.215999350722695e-09, + "MMM": 1.4439502707073884e-09, + "MRK": 2.9412799385784154e-09, + "MSFT": 0.2162460455223517, + "NKE": 6.4437184434790284e-09, + "PG": 1.9849624738216292e-09, + "TRV": 1.739797133265593e-09, + "UNH": 0.09970041344861238, + "USDOLLAR": 1.5031313529208657e-09, + "V": 0.0312913179011716, + "VZ": 1.5200874225787481e-09, + "WMT": 1.3450878570979058e-08 } } \ No newline at end of file From d389f809726205e2d34dfa7783ca9af44230f23a Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 18:01:37 +0400 Subject: [PATCH 077/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-25 --- .../ndx100_daily_initial_holdings.json | 166 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 239 insertions(+), 31 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index e39d7a465..2726c8b2a 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14881,52 +14881,52 @@ "AMAT": -55.78679615842091, "AMD": -1.8604606925289156e-11, "AMGN": 34493.381485270605, - "AMZN": 18796.460416948157, + "AMZN": 18779.03464425568, "ANSS": 11.41311311433681, "ARM": 69512.74230092103, - "ASML": 16.03173797498817, - "AVGO": -36.350659682872134, + "ASML": 16.04152190520272, + "AVGO": -36.3495285916704, "AZN": 0.0, "BIIB": 14635.610257417391, "BKNG": 10934.417823731776, "BKR": 0.0, - "CCEP": 15689.055423061287, + "CCEP": 15684.753648208252, "CDNS": -88.19304153988277, "CDW": 14155.410441459828, "CEG": 72547.04491420538, - "CHTR": 18442.50952587852, - "CMCSA": 32911.60916193256, + "CHTR": 18490.34251484212, + "CMCSA": 32843.75185523523, "COST": 0.0, "CPRT": -0.8214398451188817, - "CRWD": 7130.407048053269, - "CSCO": 55670.25714197783, - "CSGP": 6064.166370486568, + "CRWD": 7130.010549528247, + "CSCO": 55742.12228640298, + "CSGP": 6103.039505123399, "CSX": 2018.3999633789058, "CTAS": 0.0, "CTSH": 27011.17728920995, "DASH": 0.0, - "DDOG": 15990.071985975332, + "DDOG": 15987.448737442139, "DLTR": 27690.129499559152, - "DXCM": 11291.140842217359, + "DXCM": 11267.995439156879, "EA": 14396.48483457006, "EXC": 0.0, "FANG": 28225.487989479767, - "FAST": 20902.169576943583, + "FAST": 20831.357826432253, "FTNT": 23644.030590030536, "GEHC": 6285.091995920592, "GFS": 25283.05061441412, "GILD": 28714.75549969873, - "GOOG": -57.6050080768313, - "GOOGL": -2.254931725340279e-12, + "GOOG": -57.62143573886242, + "GOOGL": -2.2579883418139945e-12, "HON": 0.0, "IDXX": 0.0, - "ILMN": 6721.283072164059, - "INTC": 2.0660132484931197, - "INTU": -98.17368910925418, - "ISRG": 9307.950832979885, + "ILMN": 6692.090564729186, + "INTC": 2.067920260045919, + "INTU": -98.1067093912512, + "ISRG": 9306.724296491591, "KDP": 0.0, "KHC": 0.0, - "KLAC": 15011.1503241265, + "KLAC": 15005.127809548034, "LIN": 0.0, "LRCX": -10.041921513023425, "LULU": 21997.99277860194, @@ -14935,25 +14935,25 @@ "MDB": 27057.43413396626, "MDLZ": 0.0, "MELI": 21726.038670750906, - "META": -128.20808302282083, - "MNST": 17552.741578587636, + "META": -128.2433824363232, + "MNST": 17577.222283657342, "MRNA": 19868.017135832277, "MRVL": 0.0, - "MSFT": 43.08658188712061, - "MU": 8.225910090604659, - "NFLX": 16513.418876095624, - "NVDA": 970.785333632053, - "NXPI": 19390.596885275252, + "MSFT": 43.10909423814938, + "MU": 8.21191275092399, + "NFLX": 16506.667853813167, + "NVDA": 971.0297718989443, + "NXPI": 19401.756701239, "ODFL": 9628.943122776416, - "ON": 289.2407464049716, + "ON": 289.1814092678, "ORLY": 26458.961494014522, "PANW": -7.88753155432221, "PAYX": 8912.395555870815, "PCAR": 0.0, "PDD": 26817.099806016377, "PEP": 26764.507332565106, - "PYPL": 6140.4405000810475, - "QCOM": -7.120638592259635, + "PYPL": 6136.318613168553, + "QCOM": -7.133448068687206, "REGN": 14862.4050967013, "ROP": 14650.418447379632, "ROST": 8092.193920988383, @@ -14961,11 +14961,11 @@ "SNPS": 0.0, "TEAM": 12230.836034800259, "TMUS": 7149.66159186887, - "TSLA": 3567.5811062587622, + "TSLA": 3567.8977294460237, "TTD": 38798.38910843113, "TTWO": 9892.9625707884, "TXN": 0.0, - "USDOLLAR": -2063.566261701578, + "USDOLLAR": -2063.565834916162, "VRSK": 0.0, "VRTX": 11637.924516441, "WBA": 360.0520569478503, @@ -14973,5 +14973,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 20148.663794034284 + }, + "2024-07-25 13:30:00+00:00": { + "AAPL": 7191.000104216686, + "ABNB": 0.0, + "ADBE": 12032.038077707482, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 82.00191911195971, + "AEP": 0.0, + "AMAT": -53.16388988043709, + "AMD": -1.7560594246271953e-11, + "AMGN": 34776.986971902894, + "AMZN": 18748.282636634543, + "ANSS": 11.180163666714257, + "ARM": 61620.52761502003, + "ASML": 15.252514848017137, + "AVGO": -34.28892601072121, + "AZN": 0.0, + "BIIB": 14838.065663795296, + "BKNG": 10669.511824909412, + "BKR": 0.0, + "CCEP": 15433.669638494706, + "CDNS": -83.96683492731586, + "CDW": 14220.77994979015, + "CEG": 67197.98640345856, + "CHTR": 18313.414801353134, + "CMCSA": 32768.148872286336, + "COST": 0.0, + "CPRT": -0.8074478650080927, + "CRWD": 6564.267500324743, + "CSCO": 56641.491657149716, + "CSGP": 6530.570420449289, + "CSX": 1999.199981689453, + "CTAS": 0.0, + "CTSH": 26652.39660640715, + "DASH": 0.0, + "DDOG": 15515.183932836244, + "DLTR": 26858.75074673545, + "DXCM": 11187.487886774616, + "EA": 14139.0557543617, + "EXC": 0.0, + "FANG": 28420.302932923896, + "FAST": 20849.595435676478, + "FTNT": 23757.742449004138, + "GEHC": 5998.081969367612, + "GFS": 23789.13698401645, + "GILD": 29878.19256086421, + "GOOG": -57.240336037022594, + "GOOGL": -2.2436807331139043e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7025.192408809382, + "INTC": 1.9943066798708784, + "INTU": -98.11449596173301, + "ISRG": 9265.224814973459, + "KDP": 0.0, + "KHC": 0.0, + "KLAC": 15212.586567227292, + "LIN": 0.0, + "LRCX": -9.628828392661507, + "LULU": 20719.84914992295, + "MAR": 0.0, + "MCHP": 13221.849783149919, + "MDB": 26544.004939329538, + "MDLZ": 0.0, + "MELI": 21184.497831593286, + "META": -125.715496972201, + "MNST": 17377.011379583102, + "MRNA": 19531.383704944652, + "MRVL": 0.0, + "MSFT": 41.97129606212634, + "MU": 7.863456893264031, + "NFLX": 16643.24135153662, + "NVDA": 921.4068143952971, + "NXPI": 18627.23482075777, + "ODFL": 9312.673359460698, + "ON": 540.5683869405561, + "ORLY": 25398.93760172266, + "PANW": -7.722224006776533, + "PAYX": 8919.582861970415, + "PCAR": 0.0, + "PDD": 26786.603964633156, + "PEP": 27281.191533079887, + "PYPL": 6167.56638372221, + "QCOM": -6.7608390140239525, + "REGN": 15070.000243648596, + "ROP": 15060.875437054583, + "ROST": 8008.781103905593, + "SBUX": 29841.681617877526, + "SNPS": 0.0, + "TEAM": 12118.86695350727, + "TMUS": 7019.463748577713, + "TSLA": 4081.768137108579, + "TTD": 36362.80626130415, + "TTWO": 9697.412818922974, + "TXN": 0.0, + "USDOLLAR": -727.5343050382279, + "VRSK": 0.0, + "VRTX": 11275.919362271006, + "WBA": 355.88775004740154, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 19342.50519166049 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index a115b5ff1..36fb0d8d0 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14766,5 +14766,109 @@ "WDAY": 1.7622782821589035e-08, "XEL": 8.503941332568562e-08, "ZS": 0.0185620031566778 + }, + "2024-07-25 13:30:00+00:00": { + "AAPL": 0.005969273545626576, + "ABNB": 9.396545089425464e-09, + "ADBE": 0.011667183528137658, + "ADI": 1.0542332269023526e-07, + "ADP": 1.4412977410012928e-07, + "ADSK": 3.078710916676927e-08, + "AEP": 9.79062503344354e-09, + "AMAT": 3.770080386985723e-08, + "AMD": 4.718893405030933e-09, + "AMGN": 0.03036277082395773, + "AMZN": 0.018311785474792112, + "ANSS": 6.220533887064452e-08, + "ARM": 0.058609562553832324, + "ASML": 1.4844494806810836e-08, + "AVGO": 1.647243269143863e-08, + "AZN": 2.9240341512620914e-08, + "BIIB": 0.013685417331660347, + "BKNG": 0.009084679717870458, + "BKR": 5.3304028762777754e-08, + "CCEP": 0.014499078244966695, + "CDNS": 1.0461209050613971e-08, + "CDW": 0.016257381987998837, + "CEG": 0.06213079951293011, + "CHTR": 0.01671595754062529, + "CMCSA": 0.02933594604382114, + "COST": 1.2111252145351364e-08, + "CPRT": 1.2956454291755163e-07, + "CRWD": 0.005737978544786837, + "CSCO": 0.051691888832744934, + "CSGP": 0.0070979803951544684, + "CSX": 0.0010269507075894293, + "CTAS": 1.8464028212902868e-08, + "CTSH": 0.024760881462450594, + "DASH": 7.548649332185018e-09, + "DDOG": 0.014078845220260547, + "DLTR": 0.02404939876321131, + "DXCM": 0.010895968131245241, + "EA": 0.013172851881803426, + "EXC": 3.4022643931233556e-08, + "FANG": 0.026648906698699324, + "FAST": 0.019407226477574344, + "FTNT": 0.022666445777769908, + "GEHC": 0.0057375984098180935, + "GFS": 0.020561208366339134, + "GILD": 0.02681569873415625, + "GOOG": 0.0009874756408959986, + "GOOGL": 1.7733574714981228e-07, + "HON": 1.696770770019746e-08, + "IDXX": 4.6981071150967e-08, + "ILMN": 0.007310264801515903, + "INTC": 3.974341957142735e-08, + "INTU": 0.0007130010210851562, + "ISRG": 0.009401429241516107, + "KDP": 0.0017118779912176558, + "KHC": 1.836752007779241e-08, + "KLAC": 0.01811884324651046, + "LIN": 6.99178900141459e-08, + "LRCX": 3.419437086802342e-08, + "LULU": 0.018641308363002426, + "MAR": 5.5714351286207226e-08, + "MCHP": 0.01239735104392036, + "MDB": 0.02486724228402429, + "MDLZ": 1.0226803932936068e-07, + "MELI": 0.02008199354076176, + "META": 1.2220382068902844e-08, + "MNST": 0.01611651698902504, + "MRNA": 0.018084174997542998, + "MRVL": 1.0681679294121095e-08, + "MSFT": 2.8480094761126678e-08, + "MU": 1.1808261483373582e-08, + "NFLX": 0.016290824922266495, + "NVDA": 0.0026991757678738793, + "NXPI": 0.017941632273210176, + "ODFL": 0.008822657646473615, + "ON": 0.0004716208800397205, + "ORLY": 0.022899213247916217, + "PANW": 3.235176268174043e-08, + "PAYX": 0.008378125424436694, + "PCAR": 1.38249227974927e-08, + "PDD": 0.0246741722559016, + "PEP": 0.02562720102621353, + "PYPL": 0.003899003570546077, + "QCOM": 6.294699928200245e-08, + "REGN": 0.014041748606605065, + "ROP": 0.013615217536853694, + "ROST": 0.007548468235120958, + "SBUX": 0.026208769843658657, + "SNPS": 5.280201037447766e-09, + "TEAM": 0.012180227233130742, + "TMUS": 0.007665133613681146, + "TSLA": 0.005388895444210145, + "TTD": 0.034329296198565624, + "TTWO": 0.009254372150606321, + "TXN": 2.4332317018330982e-08, + "USDOLLAR": 2.7158629927620265e-07, + "VRSK": 2.8388618983335556e-07, + "VRTX": 0.010302684771041164, + "WBA": 0.00033408148632798766, + "WBD": 1.6950383080316216e-08, + "WDAY": 2.1161430126991413e-08, + "XEL": 1.8591347694675518e-07, + "ZS": 0.018014060893926827 } } \ No newline at end of file From 42b55545d01cdb4821dd411c53132bcf821ca8a5 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 18:06:24 +0400 Subject: [PATCH 078/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-25 --- .../sp500_daily_initial_holdings.json | 593 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1054 insertions(+), 44 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 66d32db40..50f7d0ba4 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -71328,7 +71328,7 @@ }, "2024-07-24 13:30:00+00:00": { "A": 0.0, - "AAL": 613.1161960920343, + "AAL": 612.5300295270514, "AAPL": 46718.45791010384, "ABBV": 5239.538960467265, "ABNB": 0.0, @@ -71359,7 +71359,7 @@ "AMGN": 6194.609638709069, "AMP": 9.281759749370767, "AMT": 632.4133534523835, - "AMZN": 36507.9753410943, + "AMZN": 36474.12962410054, "ANET": 3642.342511430351, "ANSS": 313.14884238315716, "AON": 17.276812521131085, @@ -71371,10 +71371,10 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 21472.821882196564, + "AVGO": 21472.1537314637, "AVY": 0.0, "AWK": 0.0, - "AXON": 4963.305747895784, + "AXON": 4960.965436096385, "AXP": 0.0, "AZO": 1.7175485848437798e-12, "BA": -1.1048286497608835e-12, @@ -71420,12 +71420,12 @@ "CFG": 0.0, "CHD": 2433.659262641627, "CHRW": 0.0, - "CHTR": 6364.845975331845, + "CHTR": 6381.354011120892, "CI": 3.9185054357770344e-13, "CINF": 0.015139031150567838, "CL": 9.420240294980758, "CLX": 14.905454191014005, - "CMCSA": 6222.270504192595, + "CMCSA": 6209.441398332736, "CME": 4844.097673216922, "CMG": 5314.425496324412, "CMI": 0.0, @@ -71443,9 +71443,9 @@ "CPT": 0.0, "CRL": 0.0, "CRM": 7639.791363060332, - "CRWD": 2157.3230770785644, - "CSCO": 6817.66852942968, - "CSGP": -7.592594257110077e-14, + "CRWD": 2157.2031154252827, + "CSCO": 6826.469507881435, + "CSGP": -7.641265075284842e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, @@ -71473,12 +71473,12 @@ "DOV": 0.0, "DOW": 0.0, "DPZ": 10.23416063643598, - "DRI": 2.3541416334613228, + "DRI": 2.351790860287252, "DTE": 0.0, "DUK": 1.2386700704350588, - "DVA": 3553.111078784293, + "DVA": 3574.9015008628694, "DVN": 0.0, - "DXCM": 4901.028646112203, + "DXCM": 4890.982160552384, "EA": 3856.77521868375, "EBAY": 0.0, "ECL": 0.0, @@ -71490,7 +71490,7 @@ "ELV": -2.1120004756340408e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 3472.13708743333, + "ENPH": 3464.526991691786, "EOG": 0.0, "EPAM": 5744.115122458464, "EQIX": 811.7770539140301, @@ -71509,10 +71509,10 @@ "EXR": 5.909681728676671e-14, "F": 0.0, "FANG": 13875.806915885545, - "FAST": 3200.1144054977026, + "FAST": 3189.2731527724463, "FCX": 0.0, "FDS": 2032.9165517272377, - "FDX": 6951.435960964361, + "FDX": 6951.667284925634, "FE": 0.0, "FFIV": 3099.3534571065406, "FI": 2.562325140798178e-13, @@ -71523,7 +71523,7 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.750957160500181e-14, + "FSLR": -7.747844591861158e-14, "FTNT": 5953.813617346311, "FTV": 0.0, "GD": 3.7753686330496344e-13, @@ -71538,8 +71538,8 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23534.093288539676, - "GOOGL": 2053.644236331093, + "GOOG": 23540.804686448646, + "GOOGL": 2056.428002568172, "GPC": 0.0, "GPN": -1.03438770065165e-13, "GRMN": 2251.940923446137, @@ -71552,8 +71552,8 @@ "HD": 8817.717946864159, "HES": 0.0, "HIG": 5705.7576101942595, - "HII": 0.7344653705175218, - "HLT": -1.3791551587359753e-13, + "HII": 0.7363932070329418, + "HLT": -1.3706549691840781e-13, "HOLX": 2881.0029172660797, "HON": 0.0, "HPE": 0.0, @@ -71571,15 +71571,15 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 4130.952130602595, - "INTC": 224.6145338104172, - "INTU": 1248.5031004158373, + "INTC": 224.82186186662182, + "INTU": 1247.651300036831, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, "IQV": 0.0, "IR": 0.04593016976885522, "IRM": 0.0, - "ISRG": 6736.331373000909, + "ISRG": 6735.44370649144, "IT": 7.633291984980147e-13, "ITW": 0.0, "IVZ": 0.0, @@ -71598,7 +71598,7 @@ "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": -19.44223719055716, + "KLAC": -19.434436911805044, "KMB": 4461.670143534297, "KMI": 0.0, "KMX": 1.1311755151839153, @@ -71610,12 +71610,12 @@ "LEN": 0.0, "LH": 0.0, "LHX": 0.0, - "LIN": 1.6705702505491913, + "LIN": 1.6733687131697939, "LKQ": 5049.076504954579, "LLY": 1.5050163255582714, "LMT": 8618.33874927824, "LNT": 0.0, - "LOW": -2.7879671385852804e-13, + "LOW": -2.8014860504737287e-13, "LRCX": 897.1712486430945, "LULU": 1693.9831698178223, "LUV": 27.325348500329607, @@ -71634,7 +71634,7 @@ "MDLZ": 0.0, "MDT": 1.3100158045406745, "MET": -0.036224472608943924, - "META": 22188.94706899736, + "META": 22195.05633137227, "MGM": 4087.317677641399, "MHK": 0.0, "MKC": 0.0, @@ -71642,7 +71642,7 @@ "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5143.762749571838, + "MNST": 5150.936725116172, "MO": -21.97431007737286, "MOH": 1730.880701745025, "MOS": 0.0, @@ -71652,38 +71652,38 @@ "MRNA": 7497.9559703111945, "MRO": 0.0, "MS": 6160.750094868974, - "MSCI": 4336.670032452851, - "MSFT": 38682.77874864993, + "MSCI": 4327.615496319788, + "MSFT": 38702.990152196384, "MSI": 0.0, "MTB": -6.492137287898536, "MTCH": 0.0, "MTD": 0.0, - "MU": 3470.7389863476337, + "MU": 3464.8331215861976, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16520.10122852113, + "NFLX": 16513.347474356775, "NI": 0.0, "NKE": -3.0338567539622895e-14, "NOC": -3.9881302481849825e-13, "NOW": 5118.979604914091, "NRG": 0.0, "NSC": -2.694328204974404e-14, - "NTAP": 6090.934269795894, + "NTAP": 6081.4793776775505, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 135723.73077665767, + "NVDA": 135757.905245902, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 8077.1919258855305, + "NXPI": 8081.840569551842, "O": 0.0, "ODFL": 3145.370941310009, "OKE": 0.0, "OMC": 0.0, - "ON": -2.694525853987085, + "ON": -2.693973077615852, "ORCL": 7377.199055553499, "ORLY": -0.7463447884574934, "OTIS": 1527.1499233543468, @@ -71715,10 +71715,10 @@ "PRU": 638.0067856956489, "PSA": 0.0, "PSX": 2799.0302826291927, - "PTC": 2.6057148283688963e-14, + "PTC": 2.635996703240826e-14, "PWR": -5.082717479239243, "PYPL": 0.0, - "QCOM": 4487.316482982594, + "QCOM": 4495.38881722159, "QRVO": 0.0, "RCL": 2175.965757635532, "REG": 0.0, @@ -71740,7 +71740,7 @@ "SHW": 1.477099170860756, "SJM": 0.9830217280011516, "SLB": 0.0, - "SMCI": 11152.920376709279, + "SMCI": 11167.518440029577, "SNA": 0.0, "SNPS": 0.0, "SO": 10.578178197839097, @@ -71760,7 +71760,7 @@ "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4887.9731340412245, + "TDG": 4841.64290062384, "TDY": -16.150422667846026, "TECH": 0.0, "TEL": 0.0, @@ -71777,7 +71777,7 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.8438250022315915e-12, - "TSLA": 93740.53203281957, + "TSLA": 93748.85151460394, "TSN": 4968.063148285698, "TT": 0.0, "TTWO": 747.4712268289283, @@ -71788,13 +71788,13 @@ "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, - "ULTA": 3426.1380057913816, + "ULTA": 3426.860279328608, "UNH": 18907.28300815469, "UNP": 0.0, "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 1138.211576442208, + "USDOLLAR": 1138.2120235701088, "V": 1777.0554732488563, "VICI": 0.0, "VLO": 0.0, @@ -71808,7 +71808,7 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.0784225342569137e-13, + "WAT": -2.074899107708845e-13, "WBA": 0.0, "WBD": 0.0, "WDC": -2.949623196170788, @@ -71830,5 +71830,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-25 13:30:00+00:00": { + "A": 0.0, + "AAL": 583.222372076954, + "AAPL": 45210.78078952886, + "ABBV": 5354.494297594257, + "ABNB": 0.0, + "ABT": 3446.88509810927, + "ACGL": 0.0, + "ACN": 2.5732152424287006e-13, + "ADBE": 10571.062082337821, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.370077233567308, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3545.791962331688, + "AIG": 0.0, + "AIZ": 1.450272565739143, + "AJG": 0.0, + "AKAM": -0.0790142562994735, + "ALB": 0.0, + "ALGN": 1112.3949000690473, + "ALL": 6.770775949734737e-14, + "ALLE": 0.0, + "AMAT": 2002.076933429708, + "AMCR": 0.0, + "AMD": 26335.566008864418, + "AME": 0.0, + "AMGN": 6245.541881517254, + "AMP": 9.322852711181417, + "AMT": 633.2856275382906, + "AMZN": 36414.40063731166, + "ANET": 3494.34056009964, + "ANSS": 306.75726025074465, + "AON": 17.261838721216535, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 24.960277397433675, + "APTV": 2.3160904823362836e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20254.928168661467, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4874.07636191176, + "AXP": 0.0, + "AZO": 1.7240505790693338e-12, + "BA": -1.071794571101287e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 518.588780979417, + "BDX": 0.0, + "BEN": 184.92432814589566, + "BF-B": 0.0, + "BG": 1253.8109275585118, + "BIIB": 2473.626745958173, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3553.4805380643143, + "BKR": 0.0, + "BLDR": 505.1910686724278, + "BLK": 9.439928115791613e-13, + "BMY": 90.23377668439049, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3244671899706644, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1352.853874923329, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20035.871107244726, + "CAT": 0.0, + "CB": 293.1955935262546, + "CBOE": 0.0, + "CBRE": 4989.125350069073, + "CCI": 308.492533457103, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 400.1006031297504, + "CE": -2.626731707747149e-14, + "CEG": 35157.24129681033, + "CF": 9492.43518895327, + "CFG": 0.0, + "CHD": 2443.3861551347873, + "CHRW": 0.0, + "CHTR": 6002.523045370574, + "CI": 3.9918458642604945e-13, + "CINF": 0.014990061969471962, + "CL": 9.585109131131741, + "CLX": 14.921184286231618, + "CMCSA": 6180.575145454794, + "CME": 4775.390586637145, + "CMG": 5158.178673651148, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 861.0056131706456, + "CNP": 0.0, + "COF": 9093.783929119387, + "COO": 0.0, + "COP": 0.0, + "COR": 3406.8033891437926, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 711.1862530330766, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7673.226575427553, + "CRWD": 2064.2035751911876, + "CSCO": 6948.213299003185, + "CSGP": -7.701088832911646e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10610.04038626904, + "CTVA": 108.39524554159019, + "CVS": 0.0, + "CVX": -5.598602575312566e-13, + "CZR": 8229.504653872054, + "D": 0.0, + "DAL": 622.4450374790374, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0439446451287176e-13, + "DECK": 827.9885871445225, + "DFS": 3724.4656365319406, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.767032431274315, + "DHR": 1855.923077517861, + "DIS": -3.9919843212182533, + "DLR": 3.0688375878564187e-14, + "DLTR": 1043.7902648611662, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.278783428124195, + "DRI": 2.3447385407650434, + "DTE": 0.0, + "DUK": 1.2472520801609368, + "DVA": 3601.9518776746386, + "DVN": 0.0, + "DXCM": 4856.037080514186, + "EA": 3864.1024479459466, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.5976564141451676e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.1422441361260348e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3794.2456816645317, + "EOG": 0.0, + "EPAM": 5682.74440642616, + "EQIX": 807.0197446088135, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1380590349748207, + "EXPE": 4187.2448990711455, + "EXR": 5.795610064949965e-14, + "F": 0.0, + "FANG": 13776.50994442749, + "FAST": 3181.7310990288624, + "FCX": 0.0, + "FDS": 1606.1314757980188, + "FDX": 6595.140763874831, + "FE": 0.0, + "FFIV": 2893.6113494113697, + "FI": 2.5879484899511063e-13, + "FICO": 1504.5073727793697, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.5783753091645e-14, + "FTNT": 5881.745937204831, + "FTV": 0.0, + "GD": 3.7578120261010014e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1724.5708252352529, + "GEN": 0.0, + "GEV": 18587.285412677906, + "GILD": 8743.176660327808, + "GIS": 7692.101570704826, + "GL": 0.2999586598159424, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23385.109266297488, + "GOOGL": 2043.3975689579538, + "GPC": 0.0, + "GPN": -1.0295006533498706e-13, + "GRMN": 2255.985513038717, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1700582106190724, + "HBAN": 0.0, + "HCA": 5989.637282026533, + "HD": 8603.251318201543, + "HES": 0.0, + "HIG": 5704.643075229424, + "HII": 0.7306372644226418, + "HLT": -1.3384667086196073e-13, + "HOLX": 2885.420324284204, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10657.935223329185, + "HUBB": 1.2584922684618836e-13, + "HUM": 1137.1643947639398, + "HWM": 2124.359514905004, + "IBM": 0.0, + "ICE": 732.3174839143792, + "IDXX": -9.872277356824982, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4192.906889764555, + "INTC": 216.81867989032406, + "INTU": 1247.7503240979245, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04440979245204444, + "IRM": 0.0, + "ISRG": 6705.4097855640375, + "IT": 7.574090614558438e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2506.8058401368503, + "JCI": 0.0, + "JKHY": 843.1646474554661, + "JNJ": 13432.258804449893, + "JNPR": 0.0, + "JPM": 2526.7916389077245, + "K": 468.85451752825225, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": -18.709027353119684, + "KMB": 4667.919197854369, + "KMI": 0.0, + "KMX": 1.1238229218012343, + "KO": 200.1007701139802, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2135725211922491, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6603465702135758, + "LKQ": 4521.061254040195, + "LLY": 1.4610301750691765, + "LMT": 8788.998922531273, + "LNT": 0.0, + "LOW": -2.746164749690823e-13, + "LRCX": 860.264440506791, + "LULU": 1575.4640942685235, + "LUV": 26.088316256955462, + "LVS": 1747.4016259903908, + "LW": 19.966795789161633, + "LYB": 3445.9787354957357, + "LYV": 2790.1651406715164, + "MA": 29784.26882953186, + "MAA": 0.0, + "MAR": -5.808124831555805e-13, + "MAS": 0.0, + "MCD": 10532.366697426873, + "MCHP": 2208.073317183843, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3108388102197843, + "MET": -0.03608973817382639, + "META": 21757.555703974922, + "MGM": 4009.949273395634, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6297.430970987068, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5106.86818575198, + "MO": -22.215540975749427, + "MOH": 1913.1735829014547, + "MOS": 0.0, + "MPC": 15017.251466495234, + "MPWR": -8.841575269313143e-13, + "MRK": 5720.265741876951, + "MRNA": 7370.914473131386, + "MRO": 0.0, + "MS": 6114.032444421407, + "MSCI": 4251.526464468988, + "MSFT": 37681.48431033073, + "MSI": 0.0, + "MTB": -6.466494253661878, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3317.8099573550508, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16649.97623817931, + "NI": 0.0, + "NKE": -2.9626180192147996e-14, + "NOC": -4.136101241985557e-13, + "NOW": 5351.740740436292, + "NRG": 0.0, + "NSC": -2.680631903429682e-14, + "NTAP": 5810.774583811916, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 128820.2098654326, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7759.211930709101, + "O": 0.0, + "ODFL": 2716.3428874414167, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.503994579442767, + "ORCL": 7296.50264556198, + "ORLY": -0.746082064460259, + "OTIS": 1549.073944354345, + "OXY": 0.0, + "PANW": 5905.098367504897, + "PARA": 2148.4643926551253, + "PAYC": 0.0, + "PAYX": 371.65640840592715, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 11373.239953359023, + "PFE": 0.0, + "PFG": 170.13307057689488, + "PG": 1.0766176290444045, + "PGR": 8246.521053072065, + "PH": 0.0, + "PHM": -11.876622691092141, + "PKG": -5.081417118450169e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -61.483135672568736, + "POOL": 1365.9315765793006, + "PPG": -0.3999868193561074, + "PPL": 0.0, + "PRU": 635.7980817702364, + "PSA": 0.0, + "PSX": 2534.3099247825658, + "PTC": 2.5936320327548172e-14, + "PWR": -4.934582946923052, + "PYPL": 0.0, + "QCOM": 4260.576344851976, + "QRVO": 0.0, + "RCL": 1934.3265761889254, + "REG": 0.0, + "REGN": 1089.4304025585946, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 383.6312928140239, + "ROK": 1.1592627638549975, + "ROL": 0.0, + "ROP": 5361.293630853193, + "ROST": 1136.071056512628, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6017.963240669828, + "SBUX": 8495.42942578158, + "SCHW": 1.7095531116131282, + "SHW": 1.4249954825162794, + "SJM": 1.0000717973587832, + "SLB": 0.0, + "SMCI": 10218.498201017659, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.696787633680918, + "SOLV": -1.6005073184765585e-12, + "SPG": 0.0, + "SPGI": -5.670815583293055, + "SRE": 0.0, + "STE": 0.5142569469703828, + "STLD": -2.6853026009557102e-14, + "STT": 333.7638954557017, + "STX": -14.070494115899152, + "STZ": -2.083634146033882, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.973073897500713, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4748.564292561736, + "TDY": -16.027463508561613, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 445.512985368942, + "TMO": 0.0, + "TMUS": 7733.296047973109, + "TPR": 2652.6771013216994, + "TRGP": 400.12313064904527, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.7033964449162263e-12, + "TSLA": 97532.8712008998, + "TSN": 4994.065282516122, + "TT": 0.0, + "TTWO": 755.891945406144, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3970.9531195348695, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3359.135767879424, + "UNH": 18412.809018898097, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -456.67129626922133, + "V": 1772.3364050744617, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 8711.5765000042, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2998.3443824681176, + "VRTX": 1954.0428972851257, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.1093747537939309e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.7712135343466184, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.447560190494004, + "WMB": 0.0, + "WMT": 12102.631181225592, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2904.250102044427, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 46b2804cc..19dea7cef 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -68804,5 +68804,510 @@ "ZBH": 4.523110431782522e-09, "ZBRA": 2.897989147649159e-09, "ZTS": 1.0472977052719641e-08 + }, + "2024-07-25 13:30:00+00:00": { + "A": 9.873619293851086e-10, + "AAL": 0.0005104643972842548, + "AAPL": 0.039536824761080086, + "ABBV": 0.004686522696405176, + "ABNB": 7.996568000899257e-10, + "ABT": 0.003016874527027479, + "ACGL": 2.6044734194896826e-09, + "ACN": 3.3240578721193224e-09, + "ADBE": 0.009146387050560176, + "ADI": 4.550528093495361e-09, + "ADM": 2.2450795420141607e-09, + "ADP": 3.6792829847986838e-09, + "ADSK": 3.3127113602546352e-09, + "AEE": 1.09995919448754e-09, + "AEP": 1.0723024609324949e-09, + "AES": 5.15487072180442e-10, + "AFL": 0.003103433744478691, + "AIG": 9.297590862141439e-10, + "AIZ": 3.089350035630581e-09, + "AJG": 2.180438379837083e-09, + "AKAM": 2.371006029090629e-09, + "ALB": 4.691174671753385e-10, + "ALGN": 0.0009636594330320966, + "ALL": 2.4899221261025725e-09, + "ALLE": 1.0280446119318906e-09, + "AMAT": 0.0017523121753958244, + "AMCR": 2.7355755632142454e-10, + "AMD": 0.023732583227045967, + "AME": 1.1091590255925662e-09, + "AMGN": 0.005061246129719815, + "AMP": 9.08092851690006e-09, + "AMT": 0.0005542830157782956, + "AMZN": 0.031570266153275676, + "ANET": 0.0030585649692166663, + "ANSS": 0.0001807346560232199, + "AON": 4.824839818368866e-09, + "AOS": 9.086166628407476e-10, + "APA": 6.405388281328001e-10, + "APD": 2.174618561920725e-09, + "APH": 2.83078284201235e-08, + "APTV": 2.06336439606352e-09, + "ARE": 7.896673282984564e-10, + "ATO": 1.3187761384020467e-09, + "AVB": 1.1625852099754416e-09, + "AVGO": 0.017728143836306692, + "AVY": 1.3264309930622783e-09, + "AWK": 2.431412685526592e-09, + "AXON": 0.00427735836618653, + "AXP": 2.037579093585719e-09, + "AZO": 1.5323953239648785e-08, + "BA": 6.661480479548871e-09, + "BAC": 1.369684149891147e-09, + "BALL": 2.7869202394045255e-09, + "BAX": 1.786625684036396e-09, + "BBWI": 1.4598856055615398e-09, + "BBY": 0.0004539068163505032, + "BDX": 2.42789985403884e-09, + "BEN": 0.00016185484020228075, + "BF-B": 2.0245455812103304e-09, + "BG": 0.0010035780742774316, + "BIIB": 0.0020203582269132285, + "BIO": 1.1467211750272077e-09, + "BK": 1.2290239315974447e-09, + "BKNG": 0.001646268973551848, + "BKR": 6.209686249056194e-10, + "BLDR": 0.0004431724024660354, + "BLK": 2.623724175690703e-08, + "BMY": 7.897647302981264e-05, + "BR": 1.868785141413024e-09, + "BRK-B": 2.545377101893773e-09, + "BRO": 1.6871575222635477e-08, + "BSX": 1.9155616500541175e-09, + "BWA": 1.301648512886796e-09, + "BX": 0.0011840590179173418, + "BXP": 8.905825556977609e-10, + "C": 1.6100604062179378e-09, + "CAG": 2.5085196992318237e-09, + "CAH": 2.1226174275625864e-09, + "CARR": 0.017536393978702627, + "CAT": 7.707334565548988e-10, + "CB": 0.0002494595974038463, + "CBOE": 7.052860722566125e-09, + "CBRE": 0.00436671495490565, + "CCI": 0.0002700084380321194, + "CCL": 8.864031455718569e-10, + "CDNS": 3.3866125635018666e-09, + "CDW": 0.0003503601483937322, + "CE": 2.0118585724234532e-09, + "CEG": 0.030826372315208624, + "CF": 0.008308232697642899, + "CFG": 1.6327209204392346e-09, + "CHD": 0.0021385659530155456, + "CHRW": 2.721105478941567e-09, + "CHTR": 0.004951459803130795, + "CI": 5.503193739124565e-09, + "CINF": 7.81126683460241e-09, + "CL": 8.372284299559293e-06, + "CLX": 3.131452138069946e-08, + "CMCSA": 0.0054095352401347715, + "CME": 0.004179651538386031, + "CMG": 0.00451468340507561, + "CMI": 1.0596753282798974e-09, + "CMS": 9.57644346933667e-10, + "CNC": 0.0007535934496641482, + "CNP": 8.891622546537578e-10, + "COF": 0.007959231612025448, + "COO": 2.130839550221424e-09, + "COP": 1.568794852238414e-09, + "COR": 0.0029114358278993194, + "COST": 1.995934679917545e-09, + "CPAY": 5.115450544586448e-09, + "CPB": 3.222492823523575e-09, + "CPRT": 0.0006224631437680993, + "CPT": 1.0189590711598164e-09, + "CRL": 5.939194169679815e-10, + "CRM": 0.006715963997128062, + "CRWD": 0.0017996554950898455, + "CSCO": 0.00608141079245512, + "CSGP": 2.3443232302022607e-09, + "CSX": 2.138956826701902e-09, + "CTAS": 2.313680091081072e-09, + "CTLT": 1.1885784887820058e-09, + "CTRA": 6.227182902817205e-10, + "CTSH": 0.009135626228990433, + "CTVA": 9.48732602162274e-05, + "CVS": 1.8057763400458541e-09, + "CVX": 2.3596405349411845e-09, + "CZR": 0.007202855589896922, + "D": 1.6805609219072051e-09, + "DAL": 0.0005447940556713715, + "DAY": 8.078742054887281e-10, + "DD": 1.4071169830933809e-09, + "DE": 2.338890337366251e-09, + "DECK": 0.0008836313702962806, + "DFS": 0.003259832514205367, + "DG": 1.1211225259113052e-09, + "DGX": 2.9131300641819043e-09, + "DHI": 8.503326322018631e-09, + "DHR": 0.00152188716088602, + "DIS": 2.4538823829632613e-09, + "DLR": 1.8146888280984816e-09, + "DLTR": 0.000913579239707687, + "DOC": 5.162837318033036e-10, + "DOV": 1.1889818530724635e-09, + "DOW": 1.2578556770924447e-09, + "DPZ": 7.949009292120243e-09, + "DRI": 2.043086270789066e-06, + "DTE": 1.2549033457987527e-09, + "DUK": 6.8001979255317865e-09, + "DVA": 0.0031364413425710425, + "DVN": 6.622524141810772e-10, + "DXCM": 0.00425023430878544, + "EA": 0.003334228238097136, + "EBAY": 1.3643039135677385e-09, + "ECL": 1.3597432975611325e-09, + "ED": 1.8588978010303438e-09, + "EFX": 1.1925222405471378e-09, + "EG": 4.680359376361302e-09, + "EIX": 1.8668366764098536e-09, + "EL": 1.306489877266031e-09, + "ELV": 3.943057696929676e-09, + "EMN": 1.043952284725127e-09, + "EMR": 7.107400484606447e-10, + "ENPH": 0.0034188237099066665, + "EOG": 1.5091473658987682e-09, + "EPAM": 0.0049738096984357485, + "EQIX": 0.00048182962860217544, + "EQR": 1.1424628969881222e-09, + "EQT": 4.371640265940137e-10, + "ES": 9.361668006573277e-10, + "ESS": 1.5856692209920098e-09, + "ETN": 6.180093181609343e-10, + "ETR": 1.741446915977771e-09, + "ETSY": 2.5646755292803347e-09, + "EVRG": 6.449751456058627e-10, + "EW": 1.542639814560048e-09, + "EXC": 1.2407426925255334e-09, + "EXPD": 4.483419854906978e-09, + "EXPE": 0.0036646962103848444, + "EXR": 3.135258251351445e-09, + "F": 5.916668703858086e-10, + "FANG": 0.012057856277920396, + "FAST": 0.002784801976769725, + "FCX": 7.01179655317132e-10, + "FDS": 0.001198611434951393, + "FDX": 0.005531457915503724, + "FE": 1.0877685112024547e-09, + "FFIV": 0.0024916754995471416, + "FI": 4.073801608413105e-09, + "FICO": 0.001335042585133638, + "FIS": 1.5930458170049614e-09, + "FITB": 2.096238953889852e-09, + "FMC": 1.4764068406025978e-09, + "FOX": 7.400220634539761e-10, + "FOXA": 1.0360405785848139e-09, + "FRT": 9.34331829993577e-10, + "FSLR": 6.329467865533359e-10, + "FTNT": 0.005147984992701163, + "FTV": 6.568639538383175e-10, + "GD": 3.6252686970227373e-09, + "GDDY": 4.449623074603743e-09, + "GE": 1.1191444387150068e-09, + "GEHC": 0.0015094229677843976, + "GEN": 8.285842764166731e-10, + "GEV": 0.015934559490561374, + "GILD": 0.007271736436624272, + "GIS": 0.00673249541842296, + "GL": 2.623583203336857e-09, + "GLW": 1.086135271584629e-09, + "GM": 1.0514363506254167e-09, + "GNRC": 1.0560692602458905e-09, + "GOOG": 0.020467824219534914, + "GOOGL": 0.0017885020696936714, + "GPC": 2.2572213649781926e-09, + "GPN": 4.023242624508549e-09, + "GRMN": 0.0019745452037268057, + "GS": 2.0904965604018048e-09, + "GWW": 8.636655747530974e-10, + "HAL": 6.782987955266871e-10, + "HAS": 1.0224602088709708e-06, + "HBAN": 6.523364585743657e-10, + "HCA": 0.00520829231683311, + "HD": 0.0075299743858911125, + "HES": 1.5986158555824123e-09, + "HIG": 0.004992688410974684, + "HII": 7.607824376018725e-09, + "HLT": 3.3461089148873574e-09, + "HOLX": 0.0025254465042035506, + "HON": 1.3177251761871674e-09, + "HPE": 6.191973680432478e-10, + "HPQ": 8.317168500094254e-10, + "HRL": 2.1779051594107127e-09, + "HSIC": 2.246957186143627e-09, + "HST": 7.758360494147808e-10, + "HSY": 0.009323344074899455, + "HUBB": 4.3701520033676557e-10, + "HUM": 0.0009317571444695451, + "HWM": 0.0018593474656828338, + "IBM": 1.0629022162332394e-09, + "ICE": 0.000640955802957861, + "IDXX": 3.3708781329260104e-09, + "IEX": 1.1628737140648341e-09, + "IFF": 1.2576650895516736e-09, + "INCY": 0.003669807803049317, + "INTC": 0.00018976992139870053, + "INTU": 0.0010960551817563709, + "INVH": 6.68903708045394e-10, + "IP": 9.52865399694742e-10, + "IPG": 1.7697926567943083e-09, + "IQV": 1.0948282943443479e-09, + "IR": 1.7758443530119572e-08, + "IRM": 1.7322946719898567e-09, + "ISRG": 0.005745800600440604, + "IT": 4.453539554592088e-09, + "ITW": 1.4744381035517447e-09, + "IVZ": 8.256445587503953e-10, + "J": 1.6207179784862587e-09, + "JBHT": 1.9990948978702154e-09, + "JBL": 0.0021940858839450627, + "JCI": 7.39128118979344e-10, + "JKHY": 0.0007379937261630589, + "JNJ": 0.011756514575964086, + "JNPR": 1.1401627382366047e-09, + "JPM": 0.0021641403076740596, + "K": 0.0004103630707396604, + "KDP": 8.363239923074937e-10, + "KEY": 5.606913692863397e-10, + "KEYS": 1.464898814608951e-09, + "KHC": 4.112309033470462e-10, + "KIM": 7.100406114693831e-10, + "KKR": 3.6621120080868156e-09, + "KLAC": 0.00035056557133430257, + "KMB": 0.004085568169888354, + "KMI": 3.313930389719378e-10, + "KMX": 9.33856680833793e-09, + "KO": 0.0001751347421586676, + "KR": 3.5050478909236658e-09, + "KVUE": -1.6643400012401053e-10, + "L": 1.927303989816949e-09, + "LDOS": 7.340362749685575e-09, + "LEN": 4.972296985291657e-09, + "LH": 9.457589034755936e-10, + "LHX": 1.730257384409997e-09, + "LIN": 7.2756503770197574e-09, + "LKQ": 0.00395702940574101, + "LLY": 4.508811900722773e-09, + "LMT": 0.007377960177418339, + "LNT": 8.481346339457751e-10, + "LOW": 3.7233115479192964e-09, + "LRCX": 0.0007451863584179304, + "LULU": 0.0013789220472085082, + "LUV": 2.2834212631352696e-05, + "LVS": 0.0015294070024245592, + "LW": 7.985041766123531e-09, + "LYB": 0.0030160691519203102, + "LYV": 0.002442087244791887, + "MA": 0.02571177330022903, + "MAA": 1.2327252903065993e-09, + "MAR": 3.101145628901921e-09, + "MAS": 1.3863172399285015e-09, + "MCD": 0.009025401422432949, + "MCHP": 0.0019326306626877357, + "MCK": 6.466042174126956e-09, + "MCO": 1.2000191015552316e-09, + "MDLZ": 1.3955797221287173e-09, + "MDT": 1.143851397242798e-06, + "MET": 1.5443521396655324e-09, + "META": 0.019043261743501662, + "MGM": 0.003509685918587011, + "MHK": 1.58134754464788e-09, + "MKC": 1.6907127472994128e-09, + "MKTX": 0.0053439621408035804, + "MLM": 9.372310005747354e-10, + "MMC": 1.2147002237588192e-09, + "MMM": 1.363260748732335e-09, + "MNST": 0.004469776117222689, + "MO": 1.4536664253987533e-09, + "MOH": 0.0016744966851741398, + "MOS": 5.305723280364686e-10, + "MPC": 0.01302759415596036, + "MPWR": 6.178068748699566e-08, + "MRK": 0.005005883177177489, + "MRNA": 0.0064513637978109795, + "MRO": 3.2849058477308496e-10, + "MS": 0.005351281794465094, + "MSCI": 0.00347159847938805, + "MSFT": 0.03286715302508221, + "MSI": 2.3207904616215447e-09, + "MTB": 6.58972262217011e-09, + "MTCH": 3.6917255015382555e-09, + "MTD": 2.5433786544110725e-09, + "MU": 0.003106147375478673, + "NCLH": 1.229420246009219e-09, + "NDAQ": 1.961424712968798e-09, + "NDSN": 1.1732869519631705e-09, + "NEE": 8.899376874581772e-10, + "NEM": 6.843579892825395e-10, + "NFLX": 0.01442736477605104, + "NI": 7.386125530020113e-10, + "NKE": 5.229204554234168e-09, + "NOC": 8.464265017140038e-09, + "NOW": 0.004756844162911687, + "NRG": 4.530061248718347e-10, + "NSC": 3.0026977068700146e-09, + "NTAP": 0.005055904060011446, + "NTRS": 1.1848575309760553e-09, + "NUE": 2.237125659383328e-09, + "NVDA": 0.1160967564507845, + "NVR": 0.0013041292576050332, + "NWS": 5.050179211398032e-10, + "NWSA": 4.952132321021003e-10, + "NXPI": 0.00679121603718911, + "O": 2.293820492368528e-09, + "ODFL": 0.0022653860636670142, + "OKE": 1.2796256293609188e-09, + "OMC": 1.398754071851309e-09, + "ON": 2.7272977154927678e-09, + "ORCL": 0.006386244248394979, + "ORLY": 9.17624646560752e-09, + "OTIS": 0.0013558195026836964, + "OXY": 9.019051314292153e-10, + "PANW": 0.005210740763119138, + "PARA": 0.0018804386324904018, + "PAYC": 5.280719430622978e-09, + "PAYX": 0.00027631822493991333, + "PCAR": 2.3244549049692223e-09, + "PCG": 6.844746640187872e-10, + "PEG": 1.4159531573725012e-09, + "PEP": 0.009242400282633092, + "PFE": 1.5750363595449755e-09, + "PFG": 0.00012880536723347728, + "PG": 3.8239801387656245e-09, + "PGR": 0.007217746995996616, + "PH": 9.360073799417248e-10, + "PHM": 4.063106463694094e-09, + "PKG": 3.763233987654141e-09, + "PLD": 1.520516710033164e-09, + "PM": 2.8032786610414358e-09, + "PNC": 2.7826052125634874e-09, + "PNR": 6.605213709247279e-10, + "PNW": 1.0245001470235963e-09, + "PODD": 5.881870816928448e-09, + "POOL": 0.0011949004335509948, + "PPG": 2.2472549246093615e-09, + "PPL": 1.085048543234011e-09, + "PRU": 0.0004317584308322229, + "PSA": 1.1965767173252605e-09, + "PSX": 0.001893093950470735, + "PTC": 2.4794278867819914e-09, + "PWR": 2.871602816656347e-09, + "PYPL": 5.961891954816892e-10, + "QCOM": 0.003769267247152924, + "QRVO": 4.806913018017243e-10, + "RCL": 0.001635179633920284, + "REG": 1.1043700747330827e-09, + "REGN": 0.000928748465349924, + "RF": 9.105414149039938e-10, + "RJF": 2.183160582574989e-09, + "RL": 1.3393808420032937e-09, + "RMD": 0.0003427835795848472, + "ROK": 2.2791937337306194e-09, + "ROL": 1.0339193701170837e-09, + "ROP": 0.004506255060455313, + "ROST": 0.000994339042763858, + "RSG": 2.3029186563922203e-09, + "RTX": 3.008890351181673e-09, + "RVTY": 8.648641598888587e-10, + "SBAC": 0.0052670574306001305, + "SBUX": 0.007435602814413231, + "SCHW": 1.761451896248522e-08, + "SHW": 1.320484747625152e-08, + "SJM": 7.88391536743903e-09, + "SLB": 6.853426604198661e-10, + "SMCI": 0.009365815572527763, + "SNA": 1.184547608632326e-09, + "SNPS": 1.0197319818105618e-09, + "SO": 9.311481481679052e-06, + "SOLV": -3.4679224314027787e-10, + "SPG": 1.3072893105179755e-09, + "SPGI": 1.8972534098377633e-09, + "SRE": 1.6576931760195513e-09, + "STE": 4.339478592281476e-07, + "STLD": 4.069996832355069e-09, + "STT": 0.0002921232930036027, + "STX": 3.1640377231917702e-09, + "STZ": 1.908398376465283e-08, + "SWK": 1.0530360291858444e-09, + "SWKS": 8.243653274867117e-10, + "SYF": 2.122774734106918e-09, + "SYK": 6.552137329978187e-09, + "SYY": 2.4392524635812425e-09, + "T": 1.5280552256508928e-09, + "TAP": 1.3889961367757267e-09, + "TDG": 0.004405435378260814, + "TDY": 4.028378821857126e-09, + "TECH": 2.9747638742641192e-09, + "TEL": 1.8979024368869963e-09, + "TER": 9.545601379680588e-10, + "TFC": 1.0969189207070234e-09, + "TFX": 2.2395934497308826e-09, + "TGT": 2.3739246730003623e-09, + "TJX": 0.0003899287938436065, + "TMO": 2.725214756956083e-09, + "TMUS": 0.006519910820120665, + "TPR": 0.0023217504934005965, + "TRGP": 0.00035018927761944804, + "TRMB": 2.250597875703449e-09, + "TROW": 2.032624603260681e-09, + "TRV": 2.2387342564316e-09, + "TSCO": 3.580487493074973e-09, + "TSLA": 0.08725451943540642, + "TSN": 0.004371038486991714, + "TT": 8.421910639781243e-10, + "TTWO": 0.0006615957056818416, + "TXN": 1.9411553671351817e-09, + "TXT": 8.723064119367026e-10, + "TYL": 9.72244653411778e-09, + "UAL": 0.003475570823191429, + "UBER": 1.6259497626088107e-09, + "UDR": 7.333195718106398e-10, + "UHS": 1.5643366629156098e-09, + "ULTA": 0.0028708138388658807, + "UNH": 0.01569063729123317, + "UNP": 2.7442735460741433e-09, + "UPS": 7.976422992102431e-10, + "URI": 1.9067092495692003e-09, + "USB": 1.0850925252012367e-09, + "USDOLLAR": 8.002629843880836e-08, + "V": 0.001371872664305981, + "VICI": 9.226817191335593e-10, + "VLO": 3.895393316503257e-09, + "VLTO": 0.007624792331263753, + "VMC": 5.991205165625392e-10, + "VRSK": 2.6262193096555228e-09, + "VRSN": 0.0025217865975578637, + "VRTX": 0.001673910277641269, + "VST": 6.108426876364878e-10, + "VTR": 1.7453065009395988e-09, + "VTRS": 6.933105778684689e-10, + "VZ": 1.941538448145141e-09, + "WAB": 8.050341846373514e-10, + "WAT": 2.9661088084072882e-09, + "WBA": 3.818958949416493e-10, + "WBD": 2.1779789027643732e-10, + "WDC": 1.2393795189011719e-09, + "WEC": 2.1970910503633315e-09, + "WELL": 1.4945215905099684e-09, + "WFC": 2.762871836441986e-09, + "WM": 7.242554036252697e-09, + "WMB": 2.9535735761739493e-09, + "WMT": 0.010592799834084697, + "WRB": 2.1687616806617547e-09, + "WST": 1.1155814643964355e-09, + "WTW": 1.8592255123794492e-09, + "WY": 6.309325198148236e-10, + "WYNN": 0.002517261664975918, + "XEL": 1.1683022071611082e-09, + "XOM": 2.11040090364284e-09, + "XYL": 1.6016741683649717e-09, + "YUM": 3.089453174081611e-09, + "ZBH": 1.0890039425633364e-09, + "ZBRA": 7.558980834967271e-10, + "ZTS": 2.677890465846978e-09 } } \ No newline at end of file From 0c2711e736dd87ea09a6433523e9e119112e67df Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 25 Jul 2024 19:41:20 +0400 Subject: [PATCH 079/125] working on rest of regression --- README.rst | 6 +- cvxportfolio/forecast.py | 16 ++++++ cvxportfolio/tests/test_forecast.py | 86 +++++++++++++++++++++-------- pyproject.toml | 4 +- 4 files changed, 83 insertions(+), 29 deletions(-) diff --git a/README.rst b/README.rst index 0c18ed18b..df78be800 100644 --- a/README.rst +++ b/README.rst @@ -70,9 +70,9 @@ Advanced: install development version You can also install the development version. It is tested daily by the example strategies. We host it in the `master branch `_. It is named after -the current stable version; each time we make a release we update to the new -version and merge to the master branch, which is shown on the homepage of -the repository. If this sounds complicated, avoid installing the development +the current stable version; each time we make a new release we `tag it with git +`_. +If this sounds complicated, avoid installing the development version. .. code:: bash diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index f4844bce1..05fbfd315 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -1018,6 +1018,22 @@ def __init__(self, regressor, **kwargs): # We can reproduce this design pattern for other base forecasters + +class OnPastRegressors(SumForecaster): + """Select history of regressors.""" + + def __init__(self, regressors, **kwargs): + self.regressors = regressors + super().__init__(**kwargs) + + def _dataframe_selector( # pylint: disable=arguments-differ + self, **kwargs): + """History of past regressors, on index of given asset.""" + +class XtXMatrix(SumForecaster): + ... + + class RegressionXtYReturns(HistoricalMeanReturn): """Class for the XtY matrix of returns regression forecaster.""" diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index 415c84978..2d27e6ef1 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -99,35 +99,73 @@ def test_nested_cached_eval(self): self.assertEqual(len(cache), 1) self.assertEqual(len(list(cache.values())[0]), 5) - def test_regression_xty_returns(self): + @staticmethod + def _simple_aligner(regressor, index): + """Align regressor on DatetimeIndex.""" + return regressor.reindex(index, method='ffill').dropna() + + @staticmethod + def _simple_kelly_cov(past_returns): + """Same logic as cov, used to test XtX regression matrix.""" + filled = past_returns.fillna(0.) + nonnull = (~past_returns.isnull()) * 1. + num = filled.T @ filled + den = nonnull.T @ nonnull + return pd.DataFrame( + num/den, index=past_returns.columns, columns=past_returns.columns) + + def _xtx_matrix(self, stock_returns, at_time, regressors): + """What the code should give.""" + past_returns = stock_returns.loc[ + stock_returns.index < at_time].dropna() + aligned_regressors = [ + self._simple_aligner(r, past_returns.index) + for r in regressors] + aligned_regressors = pd.DataFrame(aligned_regressors).T + aligned_regressors['intercept'] = 1. + return self._simple_kelly_cov(aligned_regressors) + + def test_regression_XtX_matrices(self): """Test one of the components of returns regression.""" md = copy.deepcopy(self.market_data) - xty = RegressionXtYReturns( - regressor=UserProvidedRegressor(self.aligned_regressor)) - t_fore = md.returns.index[-3] - - # check that estimate is correct - my_estimate = xty.estimate(md, t=t_fore) - pd_estimate = md.returns.iloc[:, :-1].multiply( - self.aligned_regressor, axis=0).loc[md.returns.index < t_fore].mean() - self.assertTrue(np.allclose(my_estimate, pd_estimate)) + regressors = [self.aligned_regressor, self.unaligned_regressor] - # iteratively - xty.initialize_estimator_recursive( - universe=md.returns.columns, trading_calendar=md.returns.index) + self._xtx_matrix(md.returns['AAPL'], md.returns.index[-30], regressors) - for tidx in [-30, -29, -25, -24, -23]: - t = md.returns.index[tidx] - past_returns = md.returns.loc[md.returns.index < t] - - my_result = \ - xty.values_in_time_recursive(past_returns=past_returns, t=t) - pd_result = md.returns.iloc[:, :-1].multiply( - self.aligned_regressor, axis=0).loc[md.returns.index < t].mean() - # breakpoint() - self.assertTrue(np.allclose(my_result, pd_result)) + # TODO, finish this - xty.finalize_estimator_recursive() + def test_regression_xty_returns(self): + """Test one of the components of returns regression.""" + md = copy.deepcopy(self.market_data) + for regressor in [self.aligned_regressor, self.unaligned_regressor]: + xty = RegressionXtYReturns( + regressor=UserProvidedRegressor(regressor)) + t_fore = md.returns.index[-3] + + # check that estimate is correct + my_estimate = xty.estimate(md, t=t_fore) + pd_estimate = md.returns.iloc[:, :-1].multiply( + self._simple_aligner(regressor, md.returns.index), + axis=0).loc[md.returns.index < t_fore].mean() + self.assertTrue(np.allclose(my_estimate, pd_estimate)) + + # iteratively + xty.initialize_estimator_recursive( + universe=md.returns.columns, trading_calendar=md.returns.index) + + for tidx in [-30, -29, -25, -24, -23]: + t = md.returns.index[tidx] + past_returns = md.returns.loc[md.returns.index < t] + + my_result = \ + xty.values_in_time_recursive( + past_returns=past_returns, t=t) + pd_result = md.returns.iloc[:, :-1].multiply( + self._simple_aligner(regressor, md.returns.index), + axis=0).loc[md.returns.index < t].mean() + self.assertTrue(np.allclose(my_result, pd_result)) + + xty.finalize_estimator_recursive() @unittest.expectedFailure # code for this being redesigned def test_regression_mean_return(self): # pylint: disable=too-many-locals diff --git a/pyproject.toml b/pyproject.toml index 7ef2bc922..d2afdc262 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,12 +72,12 @@ omit = ["*/site-packages/*", "*/dist-packages/*"] [tool.diff_cover] # this will be superflous once we push coverage to 100 -compare_branch = "origin/main" +compare_branch = "origin/master" fail_under = 99 [tool.diff_quality] # this will be superflous once we push pylint score to 10 -compare_branch = "origin/main" +compare_branch = "origin/master" fail_under = 99 [tool.autopep8] From a9e42201a5ed34e72e367202a8e6ef3c9cab5eab Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 26 Jul 2024 11:31:11 +0400 Subject: [PATCH 080/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-26 --- .../ftse100_daily_initial_holdings.json | 113 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 ++++++++++++++++ 2 files changed, 211 insertions(+), 5 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 284a2e433..d21a083f4 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11317,10 +11317,10 @@ "ANTO.L": 17756.096042121175, "AUTO.L": 10300.782485832351, "AV.L": 13337.454486113074, - "AZN.L": 12545.991866407574, + "AZN.L": 12588.978622680135, "BA.L": 10105.011810092255, "BARC.L": 9971.115612103087, - "BATS.L": 10798.188407755719, + "BATS.L": 10705.967854583898, "BDEV.L": 10440.688198640166, "BEZ.L": 10525.241964910463, "BKG.L": 9906.592508166552, @@ -11330,7 +11330,7 @@ "BRBY.L": 10187.172702430484, "BT-A.L": 0.0, "CCH.L": 0.0, - "CNA.L": 10557.7150643815, + "CNA.L": 9819.6713846088, "CPG.L": 0.0, "CRDA.L": 12114.194640094054, "CTEC.L": 42.8871501611898, @@ -11386,12 +11386,12 @@ "RKT.L": 9232.734074471906, "RMV.L": 11943.308551584234, "RR.L": 9913.574638158458, - "RTO.L": 10324.451244138541, + "RTO.L": 9773.028827436356, "SBRY.L": 0.0, "SDR.L": 10132.13531075144, "SGE.L": 37500.1236637059, "SGRO.L": 0.0, - "SHEL.L": 2746.9999999999995, + "SHEL.L": 2737.5000000000005, "SMDS.L": 10428.310624462636, "SMIN.L": 0.0, "SMT.L": 9962.059459198406, @@ -11410,5 +11410,108 @@ "WEIR.L": 9572.129129345294, "WPP.L": 10414.101222192814, "WTB.L": 11471.913945220502 + }, + "2024-07-26 07:00:00+00:00": { + "AAF.L": 20080.24051377591, + "AAL.L": 10046.72750527167, + "ABF.L": 9926.663387861909, + "ADM.L": 10483.36272603148, + "AHT.L": 16055.253717741864, + "ANTO.L": 18175.311321184898, + "AUTO.L": 10187.246180632781, + "AV.L": 13523.390190869644, + "AZN.L": 12400.655690438429, + "BA.L": 10092.841984548182, + "BARC.L": 10573.73793425839, + "BATS.L": 11364.087256764664, + "BDEV.L": 10603.497551923185, + "BEZ.L": 10573.969936970232, + "BKG.L": 9979.168277457145, + "BME.L": 10546.982700741757, + "BNZL.L": 9738.622513297854, + "BP.L": 1.4039199511678967e-12, + "BRBY.L": 10564.800477383884, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 9830.959101090531, + "CPG.L": 0.0, + "CRDA.L": 12180.706315183153, + "CTEC.L": 42.468396899381354, + "DARK.L": 25801.675893766627, + "DCC.L": 21190.84986823763, + "DGE.L": 10289.635829852064, + "DPLM.L": 8440.612820588236, + "EDV.L": 6739.442786069653, + "ENT.L": 10587.68768627339, + "EXPN.L": 10545.97195593339, + "EZJ.L": 9007.325094934386, + "FCIT.L": 0.0, + "FRAS.L": 10087.121557266997, + "FRES.L": 10011.041515206909, + "GBPOUND": 784.6655719829921, + "GLEN.L": 9705.093130491465, + "GSK.L": 10918.725995735607, + "HIK.L": 11189.656068440161, + "HL.L": 9954.081892629658, + "HLMA.L": 10117.589133153773, + "HLN.L": 0.0, + "HSBA.L": 10084.668240837675, + "HWDN.L": 10154.979818963351, + "IAG.L": 10525.698931871695, + "ICG.L": 10378.686123641168, + "IHG.L": 15844.326398565408, + "III.L": 9056.25740438246, + "IMB.L": 10855.159069228053, + "IMI.L": 10878.119583192265, + "INF.L": 10333.079493897527, + "ITRK.L": 9826.659858363726, + "JD.L": 10652.8544414551, + "KGF.L": 10201.23612589767, + "LAND.L": 0.0, + "LGEN.L": 10195.565689142033, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28332.51170340739, + "MKS.L": 0.0, + "MNDI.L": 9681.31321177316, + "MNG.L": 10454.423068222583, + "MRO.L": 44053.759357394665, + "NG.L": 10816.979009295903, + "NWG.L": 11429.463669016086, + "NXT.L": 8694.131176705381, + "PHNX.L": 0.0, + "PRU.L": 10432.353499592007, + "PSH.L": 50600.95887873423, + "PSN.L": 10846.887180359618, + "PSON.L": 1061.0936311820983, + "REL.L": 10789.63186294813, + "RIO.L": 10754.603600856093, + "RKT.L": 8969.587790452222, + "RMV.L": 12307.021471767386, + "RR.L": 10256.734011902689, + "RTO.L": 10627.186231360098, + "SBRY.L": 0.0, + "SDR.L": 10207.86903932744, + "SGE.L": 38389.096116304616, + "SGRO.L": 0.0, + "SHEL.L": 2790.4999999999995, + "SMDS.L": 10531.329267765408, + "SMIN.L": 0.0, + "SMT.L": 10028.347362491397, + "SN.L": 3456.6040172134067, + "SPX.L": 8731.12920457468, + "SSE.L": 10934.885571641218, + "STAN.L": 10303.272151891306, + "SVT.L": 10098.423242041345, + "TSCO.L": 10215.50188304804, + "TW.L": 10386.712591359921, + "ULVR.L": 9402.499237932921, + "UTG.L": 10377.32426645918, + "UU.L": 10387.820714320293, + "VOD.L": 10646.83424375151, + "VTY.L": 10736.22841554899, + "WEIR.L": 9572.129129345294, + "WPP.L": 10436.88884175904, + "WTB.L": 11577.384158295377 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 13a2062e8..3ad87cb6a 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11019,5 +11019,108 @@ "WEIR.L": 0.009999999098866544, "WPP.L": 0.00999999806944111, "WTB.L": 0.009999993379923643 + }, + "2024-07-26 07:00:00+00:00": { + "AAF.L": 0.01948314418699283, + "AAL.L": 0.009999999158253767, + "ABF.L": 0.009999833873745605, + "ADM.L": 0.0100000979428279, + "AHT.L": 0.01576764210696978, + "ANTO.L": 0.01783250771629703, + "AUTO.L": 0.010000007146161479, + "AV.L": 0.013636838768094638, + "AZN.L": 0.010000036000548225, + "BA.L": 0.010000007430057377, + "BARC.L": 0.010000002074909262, + "BATS.L": 0.010000007360697638, + "BDEV.L": 0.010000007237621521, + "BEZ.L": 0.010000027391500892, + "BKG.L": 0.010000004485804126, + "BME.L": 0.009999996468443562, + "BNZL.L": 0.009999988950112134, + "BP.L": 6.005267884342955e-07, + "BRBY.L": 0.009999991380758334, + "BT-A.L": 3.2824326102367506e-08, + "CCH.L": 6.052431816975048e-07, + "CNA.L": 0.00999989192528377, + "CPG.L": 5.276922126787544e-07, + "CRDA.L": 0.009999998860034104, + "CTEC.L": 4.115502906322455e-05, + "DARK.L": 0.025134664364341853, + "DCC.L": 0.020512114634718265, + "DGE.L": 0.009999869415504507, + "DPLM.L": 0.010000008992142827, + "EDV.L": 0.006549584717399119, + "ENT.L": 0.01027071345587808, + "EXPN.L": 0.010000002169217863, + "EZJ.L": 0.008792647636652523, + "FCIT.L": 3.970282798416299e-08, + "FRAS.L": 0.010000002547369291, + "FRES.L": 0.009999994753311432, + "GBPOUND": 1.9169546905048462e-07, + "GLEN.L": 0.009602603169101576, + "GSK.L": 0.009999994120868123, + "HIK.L": 0.010000010392292874, + "HL.L": 0.010000005802880777, + "HLMA.L": 0.0100000028953355, + "HLN.L": 2.692803652893089e-08, + "HSBA.L": 0.00999999916909031, + "HWDN.L": 0.009999999504923023, + "IAG.L": 0.009999987556246087, + "ICG.L": 0.010000013824921074, + "IHG.L": 0.015005651359721964, + "III.L": 0.010000005791262355, + "IMB.L": 0.0100000226579497, + "IMI.L": 0.009999992131877865, + "INF.L": 0.009999967629927905, + "ITRK.L": 0.009999997896117751, + "JD.L": 0.010335956369174514, + "KGF.L": 0.009999978546825723, + "LAND.L": 2.4242680792448385e-08, + "LGEN.L": 0.009999996160011033, + "LLOY.L": 1.2460794491136032e-07, + "LMP.L": 5.925435153549865e-08, + "LSEG.L": 0.027400997658925074, + "MKS.L": 7.057722625217944e-08, + "MNDI.L": 0.009999998214186748, + "MNG.L": 0.010000003516401347, + "MRO.L": 0.042756985459878785, + "NG.L": 0.00999998381449278, + "NWG.L": 0.009999994666008576, + "NXT.L": 0.010000009644936709, + "PHNX.L": 4.3927722095585516e-08, + "PRU.L": 0.009999997694975171, + "PSH.L": 0.04907659592958392, + "PSN.L": 0.01000000342730715, + "PSON.L": 0.0011148129896318391, + "REL.L": 0.00999999561952815, + "RIO.L": 0.010000005101026135, + "RKT.L": 0.009999986162147742, + "RMV.L": 0.011993770403026948, + "RR.L": 0.009999994446399405, + "RTO.L": 0.010000002487656708, + "SBRY.L": 6.693144367456712e-08, + "SDR.L": 0.009999989703822414, + "SGE.L": 0.03724703266906619, + "SGRO.L": 8.186350721260303e-08, + "SHEL.L": 0.003810637058556357, + "SMDS.L": 0.009999995842810801, + "SMIN.L": 1.2438652365079445e-07, + "SMT.L": 0.009999945390713574, + "SN.L": 0.0036316935669938074, + "SPX.L": 0.00999997655663499, + "SSE.L": 0.009999999352415178, + "STAN.L": 0.009999992224935913, + "SVT.L": 0.010000002514490612, + "TSCO.L": 0.009999995463969829, + "TW.L": 0.009999998242337457, + "ULVR.L": 0.00999996186265914, + "UTG.L": 0.010000027628383945, + "UU.L": 0.009999988674127724, + "VOD.L": 0.01000005972669324, + "VTY.L": 0.010000001480921946, + "WEIR.L": 0.00999999688981543, + "WPP.L": 0.009999993742933498, + "WTB.L": 0.009999980608121121 } } \ No newline at end of file From ec88cce2bd9a4088ad51a9b5e86086cf64414605 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 26 Jul 2024 13:16:58 +0400 Subject: [PATCH 081/125] gh tests should pass; not removing those classes b/c need to reuse some of their code --- cvxportfolio/forecast.py | 4 ++-- cvxportfolio/tests/test_forecast.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cvxportfolio/forecast.py b/cvxportfolio/forecast.py index 05fbfd315..68e977ae9 100644 --- a/cvxportfolio/forecast.py +++ b/cvxportfolio/forecast.py @@ -1073,7 +1073,7 @@ def __init__(self, regressor, **kwargs): # **kwargs).iloc[-1] * self.regressor.current_value -class RegressionMeanReturn(BaseForecast): +class RegressionMeanReturn(BaseForecast): # pragma: no cover """Test class.""" def __init__(self, regressors, **kwargs): @@ -1199,7 +1199,7 @@ def solve_for_single_X(self, asset, X_last, quad_reg): # return df.multiply(regr_on_df, axis=0).dropna(how='all') -class RegressorsXtXMatrix(HistoricalCovariance): +class RegressorsXtXMatrix(HistoricalCovariance): # pragma: no cover """XtX matrix used for linear regression. The user doesn't interact with this class directly, it is managed by the diff --git a/cvxportfolio/tests/test_forecast.py b/cvxportfolio/tests/test_forecast.py index 2d27e6ef1..a08d304b0 100644 --- a/cvxportfolio/tests/test_forecast.py +++ b/cvxportfolio/tests/test_forecast.py @@ -168,7 +168,8 @@ def test_regression_xty_returns(self): xty.finalize_estimator_recursive() @unittest.expectedFailure # code for this being redesigned - def test_regression_mean_return(self): # pylint: disable=too-many-locals + def test_regression_mean_return(self): # pragma: no cover + # pylint: disable=too-many-locals """Test historical mean return with regression.""" # will be refactored From 0ced952629fa520004dc0142d831ed8caddb1005 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 26 Jul 2024 18:00:35 +0400 Subject: [PATCH 082/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-26 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 6f3470fa9..45aa177e4 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4785,9 +4785,9 @@ "WMT": 0.0003907873964715165 }, "2024-07-25 13:30:00+00:00": { - "AAPL": 211508.63775188228, + "AAPL": 211566.6173844024, "AMGN": 20827.762390759006, - "AMZN": 223247.49802744272, + "AMZN": 223259.71593452973, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4807,14 +4807,47 @@ "MCD": 1.1982516336654025e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 227073.6771649023, + "MSFT": 227060.42610547633, "NKE": 9.819336815257397e-13, "PG": 0.0, "TRV": 0.0, "UNH": 104842.6938179395, - "USDOLLAR": -150.16261327834513, + "USDOLLAR": -150.16261188875893, "V": 32858.27728032969, "VZ": 0.0, "WMT": 0.0003912307275656606 + }, + "2024-07-26 13:30:00+00:00": { + "AAPL": 211489.32103809758, + "AMGN": 20739.118239036135, + "AMZN": 220269.25280100168, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 81111.36358772714, + "CSCO": 44391.81083480192, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 106329.70103315436, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1921705335766953e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 221442.17082683617, + "NKE": 9.883856602317731e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 104469.58814598953, + "USDOLLAR": -150.19355816462107, + "V": 32884.00873103749, + "VZ": 0.0, + "WMT": 0.0003891803952424087 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 99dde3017..1bf0d8a25 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4816,5 +4816,38 @@ "V": 0.0312913179011716, "VZ": 1.5200874225787481e-09, "WMT": 1.3450878570979058e-08 + }, + "2024-07-26 13:30:00+00:00": { + "AAPL": 0.20277488206407068, + "AMGN": 0.019884493776510682, + "AMZN": 0.21119309867158773, + "AXP": 2.9344419800775103e-09, + "BA": 5.139224907570463e-09, + "CAT": 2.55442579031162e-09, + "CRM": 0.0777691969480636, + "CSCO": 0.042562627545472874, + "CVX": 2.8548326238494155e-09, + "DIS": 3.6610814162747674e-09, + "DOW": 3.876565105729408e-09, + "GS": 3.0143342967560685e-09, + "HD": 0.10194835697720421, + "HON": 1.7553881080880021e-09, + "IBM": 1.3070647489062645e-09, + "INTC": 3.301718706906741e-09, + "JNJ": 4.179699005454719e-09, + "JPM": 4.937214417140259e-09, + "KO": 3.1365556964036987e-09, + "MCD": 8.66533050413954e-09, + "MMM": 1.7754060813447249e-09, + "MRK": 3.5552734318932936e-09, + "MSFT": 0.21239406479370906, + "NKE": 7.813410985579713e-09, + "PG": 2.3831232825165896e-09, + "TRV": 2.0956572270316488e-09, + "UNH": 0.0999444110103626, + "USDOLLAR": 1.6316533466953064e-09, + "V": 0.03152877957047321, + "VZ": 1.829409541763915e-09, + "WMT": 1.624073413053133e-08 } } \ No newline at end of file From 1638a48db67a94d5d5b89f8c6b311163a84fbf0a Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 26 Jul 2024 18:01:45 +0400 Subject: [PATCH 083/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-26 --- .../ndx100_daily_initial_holdings.json | 154 +++++++++++++++--- .../ndx100_daily_target_weights.json | 104 ++++++++++++ 2 files changed, 233 insertions(+), 25 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 2726c8b2a..79bcaa42e 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -14975,19 +14975,19 @@ "ZS": 20148.663794034284 }, "2024-07-25 13:30:00+00:00": { - "AAPL": 7191.000104216686, + "AAPL": 7192.971331245171, "ABNB": 0.0, - "ADBE": 12032.038077707482, + "ADBE": 12025.540543086607, "ADI": 0.0, "ADP": 0.0, "ADSK": 82.00191911195971, "AEP": 0.0, "AMAT": -53.16388988043709, - "AMD": -1.7560594246271953e-11, + "AMD": -1.7550850147762197e-11, "AMGN": 34776.986971902894, - "AMZN": 18748.282636634543, + "AMZN": 18749.308694159576, "ANSS": 11.180163666714257, - "ARM": 61620.52761502003, + "ARM": 61714.106078973426, "ASML": 15.252514848017137, "AVGO": -34.28892601072121, "AZN": 0.0, @@ -14995,23 +14995,23 @@ "BKNG": 10669.511824909412, "BKR": 0.0, "CCEP": 15433.669638494706, - "CDNS": -83.96683492731586, + "CDNS": -84.08335339245431, "CDW": 14220.77994979015, "CEG": 67197.98640345856, "CHTR": 18313.414801353134, "CMCSA": 32768.148872286336, "COST": 0.0, - "CPRT": -0.8074478650080927, - "CRWD": 6564.267500324743, + "CPRT": -0.8096488425573665, + "CRWD": 6565.030468077922, "CSCO": 56641.491657149716, - "CSGP": 6530.570420449289, + "CSGP": 6523.692108557777, "CSX": 1999.199981689453, "CTAS": 0.0, "CTSH": 26652.39660640715, "DASH": 0.0, "DDOG": 15515.183932836244, "DLTR": 26858.75074673545, - "DXCM": 11187.487886774616, + "DXCM": 11264.976540303513, "EA": 14139.0557543617, "EXC": 0.0, "FANG": 28420.302932923896, @@ -15020,12 +15020,12 @@ "GEHC": 5998.081969367612, "GFS": 23789.13698401645, "GILD": 29878.19256086421, - "GOOG": -57.240336037022594, - "GOOGL": -2.2436807331139043e-12, + "GOOG": -57.24690810443877, + "GOOGL": -2.2439409255817337e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 7025.192408809382, - "INTC": 1.9943066798708784, + "INTC": 1.9941796104337381, "INTU": -98.11449596173301, "ISRG": 9265.224814973459, "KDP": 0.0, @@ -15033,43 +15033,43 @@ "KLAC": 15212.586567227292, "LIN": 0.0, "LRCX": -9.628828392661507, - "LULU": 20719.84914992295, + "LULU": 20723.02601436586, "MAR": 0.0, "MCHP": 13221.849783149919, "MDB": 26544.004939329538, "MDLZ": 0.0, "MELI": 21184.497831593286, - "META": -125.715496972201, + "META": -125.78609579920563, "MNST": 17377.011379583102, "MRNA": 19531.383704944652, "MRVL": 0.0, - "MSFT": 41.97129606212634, - "MU": 7.863456893264031, + "MSFT": 41.96884679479933, + "MU": 7.867877431193219, "NFLX": 16643.24135153662, - "NVDA": 921.4068143952971, + "NVDA": 921.0808759839758, "NXPI": 18627.23482075777, "ODFL": 9312.673359460698, - "ON": 540.5683869405561, + "ON": 539.7329833709647, "ORLY": 25398.93760172266, - "PANW": -7.722224006776533, + "PANW": -7.711833188990395, "PAYX": 8919.582861970415, "PCAR": 0.0, "PDD": 26786.603964633156, "PEP": 27281.191533079887, "PYPL": 6167.56638372221, - "QCOM": -6.7608390140239525, + "QCOM": -6.767243752237736, "REGN": 15070.000243648596, "ROP": 15060.875437054583, "ROST": 8008.781103905593, - "SBUX": 29841.681617877526, + "SBUX": 29849.633822682077, "SNPS": 0.0, "TEAM": 12118.86695350727, "TMUS": 7019.463748577713, - "TSLA": 4081.768137108579, - "TTD": 36362.80626130415, + "TSLA": 4081.8623679320126, + "TTD": 36254.282851148884, "TTWO": 9697.412818922974, "TXN": 0.0, - "USDOLLAR": -727.5343050382279, + "USDOLLAR": -727.5341429626761, "VRSK": 0.0, "VRTX": 11275.919362271006, "WBA": 355.88775004740154, @@ -15077,5 +15077,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 19342.50519166049 + }, + "2024-07-26 13:30:00+00:00": { + "AAPL": 6314.943338346032, + "ABNB": 0.0, + "ADBE": 12528.406947547064, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 83.24132190600484, + "AEP": 0.0, + "AMAT": -53.04070165570212, + "AMD": -1.7094018852501728e-11, + "AMGN": 32287.05413711915, + "AMZN": 19220.01019298134, + "ANSS": 11.139075015882714, + "ARM": 63693.138099859105, + "ASML": 15.60316557506463, + "AVGO": -34.79670986242059, + "AZN": 0.0, + "BIIB": 13558.588063477097, + "BKNG": 10423.036630131612, + "BKR": 0.0, + "CCEP": 15381.138425833899, + "CDNS": -82.83627713422047, + "CDW": 17190.951871712903, + "CEG": 66077.89797686784, + "CHTR": 19833.577605486254, + "CMCSA": 31250.85496759236, + "COST": 0.0, + "CPRT": -0.799272762702119, + "CRWD": 6084.765998142343, + "CSCO": 54984.446061770344, + "CSGP": 7861.830558732144, + "CSX": 1112.7600402832027, + "CTAS": 0.0, + "CTSH": 26480.688924698028, + "DASH": 0.0, + "DDOG": 15444.007259912305, + "DLTR": 25279.116157947406, + "DXCM": 11264.976540303513, + "EA": 13920.975801480003, + "EXC": 0.0, + "FANG": 28580.741618168417, + "FAST": 21047.80128179186, + "FTNT": 24324.104588144728, + "GEHC": 6103.437465065344, + "GFS": 22036.424475676682, + "GILD": 29021.278669867002, + "GOOG": 957.1734779999227, + "GOOGL": -2.172689470886423e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7989.167198442542, + "INTC": 1.99545091105245, + "INTU": 534.0602320973287, + "ISRG": 9850.279365994884, + "KDP": 1792.8000411987305, + "KHC": 0.0, + "KLAC": 19591.60901126337, + "LIN": 0.0, + "LRCX": -9.569898040011864, + "LULU": 19101.162102460283, + "MAR": 0.0, + "MCHP": 13552.239483623667, + "MDB": 27827.042280953905, + "MDLZ": 0.0, + "MELI": 21119.040537134802, + "META": -126.03996984401431, + "MNST": 17270.766203399067, + "MRNA": 19953.598552103886, + "MRVL": 0.0, + "MSFT": 40.93039329108843, + "MU": 8.110985659327543, + "NFLX": 17358.933529581238, + "NVDA": 2920.972038364938, + "NXPI": 19266.241894371295, + "ODFL": 9543.755973324687, + "ON": 481.17925383618905, + "ORLY": 25356.95421798889, + "PANW": -7.627998935294288, + "PAYX": 8944.738707497178, + "PCAR": 0.0, + "PDD": 25719.46200601722, + "PEP": 27505.729625209813, + "PYPL": 4092.181195487507, + "QCOM": -6.743885227589812, + "REGN": 15024.82245974924, + "ROP": 14775.189149681006, + "ROST": 8003.144742486102, + "SBUX": 27444.627505883847, + "SNPS": 0.0, + "TEAM": 13632.438097188518, + "TMUS": 7970.975781579574, + "TSLA": 5934.036322203166, + "TTD": 37588.92349961985, + "TTWO": 9666.729941462727, + "TXN": 0.0, + "USDOLLAR": 102.18861225131998, + "VRSK": 0.0, + "VRTX": 10763.149538964766, + "WBA": 372.2246392993586, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 19441.31452499617 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 36fb0d8d0..4dddb7c77 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14870,5 +14870,109 @@ "WDAY": 2.1161430126991413e-08, "XEL": 1.8591347694675518e-07, "ZS": 0.018014060893926827 + }, + "2024-07-26 13:30:00+00:00": { + "AAPL": 0.005981579318778981, + "ABNB": 1.0629005429992542e-08, + "ADBE": 0.011770512837886106, + "ADI": 1.2183418654587445e-07, + "ADP": 1.8844119459833171e-07, + "ADSK": 3.3395188768866506e-08, + "AEP": 1.115515940132769e-08, + "AMAT": 4.321127988448346e-08, + "AMD": 5.387886036681397e-09, + "AMGN": 0.03034389998890233, + "AMZN": 0.018450160924436337, + "ANSS": 6.876543916991457e-08, + "ARM": 0.05921957543745793, + "ASML": 1.6458924863142923e-08, + "AVGO": 1.8035219294181785e-08, + "AZN": 3.292618281267475e-08, + "BIIB": 0.013798842073976098, + "BKNG": 0.009164508151893694, + "BKR": 7.057548155611362e-08, + "CCEP": 0.014340392523793254, + "CDNS": 1.1983959514219296e-08, + "CDW": 0.016506074548984728, + "CEG": 0.06159699666826532, + "CHTR": 0.01665107476055959, + "CMCSA": 0.02913551650102328, + "COST": 1.3989938376174224e-08, + "CPRT": 1.7097777552643584e-07, + "CRWD": 0.005437535364463372, + "CSCO": 0.05126627144086661, + "CSGP": 0.007328595987086067, + "CSX": 0.0010230810893630796, + "CTAS": 2.1121364494668113e-08, + "CTSH": 0.024688365873372718, + "DASH": 8.536299767926572e-09, + "DDOG": 0.014050407696024694, + "DLTR": 0.0238760519442314, + "DXCM": 0.011055417411873842, + "EA": 0.01308886675251911, + "EXC": 4.033012209271115e-08, + "FANG": 0.026650995531995226, + "FAST": 0.01949315040863856, + "FTNT": 0.02274843168451311, + "GEHC": 0.005796948883722456, + "GFS": 0.020235128413438695, + "GILD": 0.026796045281036837, + "GOOG": 0.0011171023662853803, + "GOOGL": 1.9407396976135553e-07, + "HON": 1.9816269954319798e-08, + "IDXX": 5.296353412895436e-08, + "ILMN": 0.0074466466455250045, + "INTC": 4.65651856392487e-08, + "INTU": 0.0006992947162382346, + "ISRG": 0.009459328384266094, + "KDP": 0.0016724930308401177, + "KHC": 2.125731384370466e-08, + "KLAC": 0.018435531515293806, + "LIN": 8.229061836058802e-08, + "LRCX": 3.917882079799505e-08, + "LULU": 0.018674938089479644, + "MAR": 6.348230242336261e-08, + "MCHP": 0.012438086716181098, + "MDB": 0.024913356111453615, + "MDLZ": 1.2644409222636122e-07, + "MELI": 0.020097160036459605, + "META": 1.3513886082546465e-08, + "MNST": 0.016094389320866882, + "MRNA": 0.018151662229736354, + "MRVL": 1.201558618975445e-08, + "MSFT": 3.330455075813848e-08, + "MU": 1.3063485774626376e-08, + "NFLX": 0.016279087682469936, + "NVDA": 0.0026862167510304743, + "NXPI": 0.01796699286775105, + "ODFL": 0.008869421178672163, + "ON": 0.0003825356537841617, + "ORLY": 0.022791877173490505, + "PANW": 3.422774006176042e-08, + "PAYX": 0.00836881097864265, + "PCAR": 1.575153904186308e-08, + "PDD": 0.024458161753195817, + "PEP": 0.025648839181619, + "PYPL": 0.003655703900041864, + "QCOM": 7.569912025550342e-08, + "REGN": 0.0140313951381389, + "ROP": 0.01353358359201593, + "ROST": 0.00763823691934542, + "SBUX": 0.02592129398202418, + "SNPS": 5.9486024637796e-09, + "TEAM": 0.012662480969764982, + "TMUS": 0.007749213521638547, + "TSLA": 0.005357050607304226, + "TTD": 0.03450549189843815, + "TTWO": 0.00930972453132514, + "TXN": 2.8097223472660493e-08, + "USDOLLAR": 3.0957957555059735e-07, + "VRSK": 3.4498786676370016e-07, + "VRTX": 0.010241448912072333, + "WBA": 0.00034550430392936426, + "WBD": 1.9343663934844383e-08, + "WDAY": 2.335157723215897e-08, + "XEL": 2.6088414257001975e-07, + "ZS": 0.017899788246300584 } } \ No newline at end of file From eaaa52a55209cfbe46281ee19ab504d589ba0ce4 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 26 Jul 2024 18:06:31 +0400 Subject: [PATCH 084/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-26 --- .../sp500_daily_initial_holdings.json | 605 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1060 insertions(+), 50 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 50f7d0ba4..a2ec8ed4c 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -71833,14 +71833,14 @@ }, "2024-07-25 13:30:00+00:00": { "A": 0.0, - "AAL": 583.222372076954, - "AAPL": 45210.78078952886, + "AAL": 581.4639282819257, + "AAPL": 45223.17415787535, "ABBV": 5354.494297594257, "ABNB": 0.0, "ABT": 3446.88509810927, "ACGL": 0.0, "ACN": 2.5732152424287006e-13, - "ADBE": 10571.062082337821, + "ADBE": 10565.353503174772, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, @@ -71850,7 +71850,7 @@ "AES": 0.0, "AFL": 3545.791962331688, "AIG": 0.0, - "AIZ": 1.450272565739143, + "AIZ": 1.4558215902792555, "AJG": 0.0, "AKAM": -0.0790142562994735, "ALB": 0.0, @@ -71859,12 +71859,12 @@ "ALLE": 0.0, "AMAT": 2002.076933429708, "AMCR": 0.0, - "AMD": 26335.566008864418, + "AMD": 26320.952816058878, "AME": 0.0, "AMGN": 6245.541881517254, - "AMP": 9.322852711181417, + "AMP": 9.273409178829837, "AMT": 633.2856275382906, - "AMZN": 36414.40063731166, + "AMZN": 36416.3935275682, "ANET": 3494.34056009964, "ANSS": 306.75726025074465, "AON": 17.261838721216535, @@ -71882,7 +71882,7 @@ "AXON": 4874.07636191176, "AXP": 0.0, "AZO": 1.7240505790693338e-12, - "BA": -1.071794571101287e-12, + "BA": -1.0681042077538716e-12, "BAC": 0.0, "BALL": 0.0, "BAX": 0.0, @@ -71912,7 +71912,7 @@ "CAH": 0.0, "CARR": 20035.871107244726, "CAT": 0.0, - "CB": 293.1955935262546, + "CB": 291.26754057001386, "CBOE": 0.0, "CBRE": 4989.125350069073, "CCI": 308.492533457103, @@ -71929,13 +71929,13 @@ "CI": 3.9918458642604945e-13, "CINF": 0.014990061969471962, "CL": 9.585109131131741, - "CLX": 14.921184286231618, + "CLX": 14.959385701124148, "CMCSA": 6180.575145454794, "CME": 4775.390586637145, "CMG": 5158.178673651148, "CMI": 0.0, "CMS": 0.0, - "CNC": 861.0056131706456, + "CNC": 868.167578176726, "CNP": 0.0, "COF": 9093.783929119387, "COO": 0.0, @@ -71944,13 +71944,13 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 711.1862530330766, + "CPRT": 713.1248363696765, "CPT": 0.0, "CRL": 0.0, "CRM": 7673.226575427553, - "CRWD": 2064.2035751911876, + "CRWD": 2064.4434984977543, "CSCO": 6948.213299003185, - "CSGP": -7.701088832911646e-14, + "CSGP": -7.692977674546194e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, @@ -71959,12 +71959,12 @@ "CTVA": 108.39524554159019, "CVS": 0.0, "CVX": -5.598602575312566e-13, - "CZR": 8229.504653872054, + "CZR": 8236.712685808818, "D": 0.0, "DAL": 622.4450374790374, "DAY": 0.0, "DD": 0.0, - "DE": 1.0439446451287176e-13, + "DE": 1.0404967616156349e-13, "DECK": 827.9885871445225, "DFS": 3724.4656365319406, "DG": 0.0, @@ -71981,9 +71981,9 @@ "DRI": 2.3447385407650434, "DTE": 0.0, "DUK": 1.2472520801609368, - "DVA": 3601.9518776746386, + "DVA": 3603.9556517548635, "DVN": 0.0, - "DXCM": 4856.037080514186, + "DXCM": 4889.671778371627, "EA": 3864.1024479459466, "EBAY": 0.0, "ECL": 0.0, @@ -71992,10 +71992,10 @@ "EG": 5.5976564141451676e-14, "EIX": 0.0, "EL": 0.0, - "ELV": -2.1422441361260348e-13, + "ELV": -2.1626995085115408e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 3794.2456816645317, + "ENPH": 3796.2081426783666, "EOG": 0.0, "EPAM": 5682.74440642616, "EQIX": 807.0197446088135, @@ -72028,36 +72028,36 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.5783753091645e-14, + "FSLR": -7.566616364706242e-14, "FTNT": 5881.745937204831, "FTV": 0.0, - "GD": 3.7578120261010014e-13, + "GD": 3.7834207993535123e-13, "GDDY": 0.0, "GE": 0.0, "GEHC": 1724.5708252352529, "GEN": 0.0, "GEV": 18587.285412677906, "GILD": 8743.176660327808, - "GIS": 7692.101570704826, - "GL": 0.2999586598159424, + "GIS": 7706.191245552883, + "GL": 0.3194281223380661, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23385.109266297488, - "GOOGL": 2043.3975689579538, + "GOOG": 23387.7942350673, + "GOOGL": 2043.6345352287683, "GPC": 0.0, "GPN": -1.0295006533498706e-13, "GRMN": 2255.985513038717, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.1700582106190724, + "HAS": 1.1648169692922832, "HBAN": 0.0, "HCA": 5989.637282026533, "HD": 8603.251318201543, "HES": 0.0, "HIG": 5704.643075229424, - "HII": 0.7306372644226418, + "HII": 0.737935442627063, "HLT": -1.3384667086196073e-13, "HOLX": 2885.420324284204, "HON": 0.0, @@ -72076,7 +72076,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 4192.906889764555, - "INTC": 216.81867989032406, + "INTC": 216.80486505036328, "INTU": 1247.7503240979245, "INVH": 0.0, "IP": 0.0, @@ -72090,7 +72090,7 @@ "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, - "JBL": 2506.8058401368503, + "JBL": 2523.9617034043213, "JCI": 0.0, "JKHY": 843.1646474554661, "JNJ": 13432.258804449893, @@ -72110,19 +72110,19 @@ "KO": 200.1007701139802, "KR": 0.0, "KVUE": 0.0, - "L": -0.2135725211922491, + "L": -0.21450444503997565, "LDOS": 0.0, "LEN": 0.0, "LH": 0.0, "LHX": 0.0, "LIN": 1.6603465702135758, - "LKQ": 4521.061254040195, + "LKQ": 4522.177378091781, "LLY": 1.4610301750691765, "LMT": 8788.998922531273, "LNT": 0.0, "LOW": -2.746164749690823e-13, "LRCX": 860.264440506791, - "LULU": 1575.4640942685235, + "LULU": 1575.7056518120146, "LUV": 26.088316256955462, "LVS": 1747.4016259903908, "LW": 19.966795789161633, @@ -72139,7 +72139,7 @@ "MDLZ": 0.0, "MDT": 1.3108388102197843, "MET": -0.03608973817382639, - "META": 21757.555703974922, + "META": 21769.774228724724, "MGM": 4009.949273395634, "MHK": 0.0, "MKC": 0.0, @@ -72158,12 +72158,12 @@ "MRO": 0.0, "MS": 6114.032444421407, "MSCI": 4251.526464468988, - "MSFT": 37681.48431033073, + "MSFT": 37679.28537827445, "MSI": 0.0, "MTB": -6.466494253661878, "MTCH": 0.0, "MTD": 0.0, - "MU": 3317.8099573550508, + "MU": 3319.675104574321, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -72179,7 +72179,7 @@ "NTAP": 5810.774583811916, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 128820.2098654326, + "NVDA": 128774.64100931644, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, @@ -72188,12 +72188,12 @@ "ODFL": 2716.3428874414167, "OKE": 0.0, "OMC": 0.0, - "ON": -2.503994579442767, + "ON": -2.500124863676103, "ORCL": 7296.50264556198, "ORLY": -0.746082064460259, "OTIS": 1549.073944354345, "OXY": 0.0, - "PANW": 5905.098367504897, + "PANW": 5897.1526253078155, "PARA": 2148.4643926551253, "PAYC": 0.0, "PAYX": 371.65640840592715, @@ -72223,7 +72223,7 @@ "PTC": 2.5936320327548172e-14, "PWR": -4.934582946923052, "PYPL": 0.0, - "QCOM": 4260.576344851976, + "QCOM": 4264.6125119714725, "QRVO": 0.0, "RCL": 1934.3265761889254, "REG": 0.0, @@ -72240,9 +72240,9 @@ "RTX": 0.0, "RVTY": 0.0, "SBAC": 6017.963240669828, - "SBUX": 8495.42942578158, + "SBUX": 8497.693285960826, "SCHW": 1.7095531116131282, - "SHW": 1.4249954825162794, + "SHW": 1.439502114189869, "SJM": 1.0000717973587832, "SLB": 0.0, "SMCI": 10218.498201017659, @@ -72253,8 +72253,8 @@ "SPG": 0.0, "SPGI": -5.670815583293055, "SRE": 0.0, - "STE": 0.5142569469703828, - "STLD": -2.6853026009557102e-14, + "STE": 0.512925351487334, + "STLD": -2.684229093516652e-14, "STT": 333.7638954557017, "STX": -14.070494115899152, "STZ": -2.083634146033882, @@ -72281,15 +72281,15 @@ "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, - "TSCO": -2.7033964449162263e-12, - "TSLA": 97532.8712008998, + "TSCO": -2.7072487621099644e-12, + "TSLA": 97535.1228238378, "TSN": 4994.065282516122, "TT": 0.0, "TTWO": 755.891945406144, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3970.9531195348695, + "UAL": 3974.4129705657024, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -72299,7 +72299,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -456.67129626922133, + "USDOLLAR": -456.67102815676867, "V": 1772.3364050744617, "VICI": 0.0, "VLO": 0.0, @@ -72313,10 +72313,10 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.1093747537939309e-13, + "WAT": -2.1077856169443833e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.7712135343466184, + "WDC": -2.7704045567129385, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -72335,5 +72335,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-26 13:30:00+00:00": { + "A": 0.0, + "AAL": 627.1838582521001, + "AAPL": 45206.65176802989, + "ABBV": 5549.615607644331, + "ABNB": 0.0, + "ABT": 3428.848774989841, + "ACGL": 0.0, + "ACN": 2.5758234460449044e-13, + "ADBE": 10536.814211260487, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.60238541457419, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3522.95933080467, + "AIG": 0.0, + "AIZ": 1.458382728630427, + "AJG": 0.0, + "AKAM": -0.08014031138121003, + "ALB": 0.0, + "ALGN": 1104.0071898375663, + "ALL": 6.477449850853783e-14, + "ALLE": 0.0, + "AMAT": 1997.4378390412671, + "AMCR": 0.0, + "AMD": 26477.76445407418, + "AME": 0.0, + "AMGN": 5884.4004993744775, + "AMP": 9.714445648354932, + "AMT": 634.0977764438481, + "AMZN": 35567.692358259315, + "ANET": 3402.8679403340475, + "ANSS": 305.6298848086472, + "AON": 17.67993814662414, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 25.115260564725794, + "APTV": 2.357893395894026e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20554.882895682116, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4899.347540015809, + "AXP": 0.0, + "AZO": 1.783462639294365e-12, + "BA": -1.1062571862974787e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 522.5628577548831, + "BDX": 0.0, + "BEN": 193.63803929878213, + "BF-B": 0.0, + "BG": 1149.4131745190648, + "BIIB": 2084.6386243707393, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3471.3919831115236, + "BKR": 0.0, + "BLDR": 533.2266592676124, + "BLK": 9.57243629779888e-13, + "BMY": 97.24457139609756, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3246991169001819, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1398.927994624214, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20427.027599935333, + "CAT": 0.0, + "CB": 296.42023233210534, + "CBOE": 0.0, + "CBRE": 5273.41010970419, + "CCI": 307.79570946634004, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 399.4586197356737, + "CE": -2.6696977226691173e-14, + "CEG": 35125.406053718616, + "CF": 9771.585145404999, + "CFG": 0.0, + "CHD": 2432.9297781715227, + "CHRW": 0.0, + "CHTR": 6377.972015194302, + "CI": 3.958889010986362e-13, + "CINF": 0.014459979035401548, + "CL": 9.773672260524245, + "CLX": 15.062755143190191, + "CMCSA": 6185.385983682915, + "CME": 4812.647131876636, + "CMG": 5232.728027691084, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 904.3683412462028, + "CNP": 0.0, + "COF": 9287.268733964751, + "COO": 0.0, + "COP": 0.0, + "COR": 3424.423200414885, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 703.9857629096811, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7776.544576016108, + "CRWD": 2076.9073192142505, + "CSCO": 6942.346539573681, + "CSGP": -7.972832364862723e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10511.874507972057, + "CTVA": 111.751010081754, + "CVS": 0.0, + "CVX": -5.683642839907335e-13, + "CZR": 8254.733682236676, + "D": 0.0, + "DAL": 640.3581652539534, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0888235361272879e-13, + "DECK": 934.9549691832082, + "DFS": 3780.2005639526205, + "DG": 0.0, + "DGX": 0.0, + "DHI": -8.005074699944313, + "DHR": 1901.520326191438, + "DIS": -3.9534292895444536, + "DLR": 2.8909604834768226e-14, + "DLTR": 1030.3659145093734, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.306915332903536, + "DRI": 2.401157353157772, + "DTE": 0.0, + "DUK": 1.2335208995198195, + "DVA": 3591.4323503890887, + "DVN": 0.0, + "DXCM": 4889.671778371627, + "EA": 3843.206490316206, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.5372178263985916e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.1502339813971606e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 4055.5314518496702, + "EOG": 0.0, + "EPAM": 5812.705748253426, + "EQIX": 778.6885328737221, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1396159404228388, + "EXPE": 4189.559745530876, + "EXR": 5.775709840780425e-14, + "F": 0.0, + "FANG": 13854.281287961674, + "FAST": 3243.4801356485605, + "FCX": 0.0, + "FDS": 1216.1903983812017, + "FDX": 6329.782035371978, + "FE": 0.0, + "FFIV": 2931.665149366714, + "FI": 2.5141214870573655e-13, + "FICO": 1510.5229397303476, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.65411764577822e-14, + "FTNT": 5936.311281307239, + "FTV": 0.0, + "GD": 3.841239446371604e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1731.648282600773, + "GEN": 0.0, + "GEV": 18525.816284236633, + "GILD": 8436.71245965733, + "GIS": 7702.668826840863, + "GL": 0.30685620990300355, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 22652.270490535117, + "GOOGL": 1978.7433735049472, + "GPC": 0.0, + "GPN": -1.0336598476064938e-13, + "GRMN": 2277.2522581680864, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.128670660440922, + "HBAN": 0.0, + "HCA": 6199.65940938989, + "HD": 8679.162266632578, + "HES": 0.0, + "HIG": 5701.300320476002, + "HII": 0.7560843198167181, + "HLT": -1.3441543557882745e-13, + "HOLX": 2865.1732201050677, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10737.767442783164, + "HUBB": 1.2850294991628133e-13, + "HUM": 1120.204755120678, + "HWM": 2198.977578035736, + "IBM": 0.0, + "ICE": 740.9766433525559, + "IDXX": -9.874766122851304, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4291.158569426597, + "INTC": 216.94307936046664, + "INTU": 1253.158319463746, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04532941153126652, + "IRM": 0.0, + "ISRG": 6493.5446494655835, + "IT": 7.635105699417658e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2533.668387300341, + "JCI": 0.0, + "JKHY": 839.5680674809587, + "JNJ": 13712.956304952319, + "JNPR": 0.0, + "JPM": 2533.9367930556255, + "K": 467.7121689843306, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 770.1093227115726, + "KMB": 4690.430906121599, + "KMI": 0.0, + "KMX": 1.1680801249969754, + "KO": 200.19166621871315, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2160119387740443, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6571376071963564, + "LKQ": 4348.0330689916445, + "LLY": 1.4004327757963106, + "LMT": 8391.119835819656, + "LNT": 0.0, + "LOW": -2.798642919578052e-13, + "LRCX": 854.9994503352297, + "LULU": 1509.4122015867345, + "LUV": 28.240551404119007, + "LVS": 1751.812129947859, + "LW": 19.20246429209541, + "LYB": 3548.778127280702, + "LYV": 2778.1978418493227, + "MA": 29238.05143145289, + "MAA": 0.0, + "MAR": -5.822954237295864e-13, + "MAS": 0.0, + "MCD": 10226.015179444334, + "MCHP": 2263.2490069589726, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.294212663750685, + "MET": -0.036344771736190024, + "META": 21813.71215845299, + "MGM": 3909.936291357359, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6175.1759763463515, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5134.539010878787, + "MO": -22.246811458415255, + "MOH": 1953.4224380600858, + "MOS": 0.0, + "MPC": 15232.767147771294, + "MPWR": -9.114378159583343e-13, + "MRK": 5774.958519468355, + "MRNA": 7622.181389564527, + "MRO": 0.0, + "MS": 6280.539129640744, + "MSCI": 3741.9932156654872, + "MSFT": 36746.97036591055, + "MSI": 0.0, + "MTB": -6.553227148974218, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3642.4491870637376, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16721.927500854206, + "NI": 0.0, + "NKE": -2.982084454406618e-14, + "NOC": -4.2853286408161874e-13, + "NOW": 5599.3499095936595, + "NRG": 0.0, + "NSC": -2.9074620599971996e-14, + "NTAP": 5872.320660542805, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 136266.63922904103, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7815.307771166666, + "O": 0.0, + "ODFL": 2584.265622417746, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.5493242100600546, + "ORCL": 7229.863224326231, + "ORLY": -0.7769916164120174, + "OTIS": 1589.7054179078925, + "OXY": 0.0, + "PANW": 5833.045508730072, + "PARA": 2148.4643926551253, + "PAYC": 0.0, + "PAYX": 372.7045887237257, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 10612.422534489298, + "PFE": 0.0, + "PFG": 163.4111647027993, + "PG": 1.069773589724459, + "PGR": 8135.798399500847, + "PH": 0.0, + "PHM": -12.368348275214728, + "PKG": -5.103349342343681e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.74714582844508, + "POOL": 1422.7152559086142, + "PPG": -0.40285914635277675, + "PPL": 0.0, + "PRU": 512.1008310062738, + "PSA": 0.0, + "PSX": 2190.3096328844217, + "PTC": 2.609742502779098e-14, + "PWR": -4.951129004608214, + "PYPL": 0.0, + "QCOM": 4249.892330443832, + "QRVO": 0.0, + "RCL": 1829.6244232503043, + "REG": 0.0, + "REGN": 1086.1644403486123, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 387.7325746743185, + "ROK": 1.2104999916162587, + "ROL": 0.0, + "ROP": 5455.6140707067225, + "ROST": 1135.2715207293857, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6234.530755172521, + "SBUX": 8359.57449407118, + "SCHW": 1.76663560630764, + "SHW": 1.4773137133025318, + "SJM": 0.9889892913008347, + "SLB": 0.0, + "SMCI": 11090.223020733369, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.565285055309992, + "SOLV": -1.6160949062384573e-12, + "SPG": 0.0, + "SPGI": -5.773546072040108, + "SRE": 0.0, + "STE": 0.5066891148316112, + "STLD": -2.7522954937008706e-14, + "STT": 342.2797265576624, + "STX": -13.579107162214004, + "STZ": -2.099681520426707, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.716531356074876, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4712.259250033909, + "TDY": -16.188967829344467, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 446.03183213844306, + "TMO": 0.0, + "TMUS": 7269.1959652291, + "TPR": 2640.0263732990306, + "TRGP": 401.21752797918646, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.738490217090926e-12, + "TSLA": 101722.01880599507, + "TSN": 5062.844791159483, + "TT": 0.0, + "TTWO": 741.759006041734, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4105.019212458832, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3288.070224623562, + "UNH": 17787.28300815469, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -1086.0689756521192, + "V": 1518.1343325907567, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 9148.782865478988, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2833.6327671829413, + "VRTX": 1950.6411801434454, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.171831816946867e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.742894687383553, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.427510700631486, + "WMB": 0.0, + "WMT": 12039.2046296823, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2930.52461068305, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 19dea7cef..52a7fed80 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -69309,5 +69309,510 @@ "ZBH": 1.0890039425633364e-09, "ZBRA": 7.558980834967271e-10, "ZTS": 2.677890465846978e-09 + }, + "2024-07-26 13:30:00+00:00": { + "A": 3.0303035591841562e-09, + "AAL": 0.0005446823683717814, + "AAPL": 0.03925995698062409, + "ABBV": 0.00482026790776132, + "ABNB": 2.272843811942542e-09, + "ABT": 0.002977799818323384, + "ACGL": 9.361795110571648e-09, + "ACN": 1.1174241368230976e-08, + "ADBE": 0.009149119591790893, + "ADI": 1.2468509670802265e-08, + "ADM": 7.927209664563228e-09, + "ADP": 1.3558699157927696e-08, + "ADSK": 1.0947649466697072e-08, + "AEE": 3.8039825511706276e-09, + "AEP": 3.711606628283313e-09, + "AES": 1.6460168635816275e-09, + "AFL": 0.003059517417665731, + "AIG": 2.957969735011371e-09, + "AIZ": 1.1506568098230748e-08, + "AJG": 7.713816059639684e-09, + "AKAM": 7.480950680261454e-09, + "ALB": 1.2890550719277838e-09, + "ALGN": 0.000934029647368651, + "ALL": 9.55779429919025e-09, + "ALLE": 3.2600118518611096e-09, + "AMAT": 0.0017346475940259727, + "AMCR": 9.072200841115211e-10, + "AMD": 0.02336678288057813, + "AME": 3.4619144473082148e-09, + "AMGN": 0.005108635019198867, + "AMP": 2.800107579105272e-08, + "AMT": 0.0005506970540527133, + "AMZN": 0.030888988576092517, + "ANET": 0.002955284508976171, + "ANSS": 0.00019605643834372613, + "AON": 1.8438729933735974e-08, + "AOS": 2.840384737089748e-09, + "APA": 2.0085278067347644e-09, + "APD": 7.276971871876426e-09, + "APH": 6.229214726507961e-08, + "APTV": 6.2036348566082135e-09, + "ARE": 2.5574507210939497e-09, + "ATO": 4.454779355212813e-09, + "AVB": 3.888567582816292e-09, + "AVGO": 0.01785103391474933, + "AVY": 4.127566176001505e-09, + "AWK": 8.405566367883032e-09, + "AXON": 0.00426226250729805, + "AXP": 6.902071948043445e-09, + "AZO": 7.779778616811994e-08, + "BA": 1.8864419036602792e-08, + "BAC": 4.480361965411677e-09, + "BALL": 9.323555623040842e-09, + "BAX": 6.176624748750936e-09, + "BBWI": 4.64672304474733e-09, + "BBY": 0.00045389397945397216, + "BDX": 9.15483048961666e-09, + "BEN": 0.00016816678619455025, + "BF-B": 7.0488111250693026e-09, + "BG": 0.0009555595964557104, + "BIIB": 0.001810398732415817, + "BIO": 3.6233693382815753e-09, + "BK": 4.103937295097684e-09, + "BKNG": 0.0017651166149131351, + "BKR": 2.0545436723900807e-09, + "BLDR": 0.0004631131477604588, + "BLK": 9.444873264095937e-08, + "BMY": 8.445206329740883e-05, + "BR": 6.291211721776566e-09, + "BRK-B": 8.992932439759816e-09, + "BRO": 6.384690481065108e-08, + "BSX": 6.685146778628284e-09, + "BWA": 4.093829365010251e-09, + "BX": 0.0012132763641883328, + "BXP": 2.8618006492639184e-09, + "C": 5.372185630062804e-09, + "CAG": 9.026371218577936e-09, + "CAH": 7.309430366260244e-09, + "CARR": 0.017740014362751508, + "CAT": 2.3793213233261587e-09, + "CB": 0.000257370795319812, + "CBOE": 2.637327661493485e-08, + "CBRE": 0.0045796563524827735, + "CCI": 0.00026731392945416715, + "CCL": 2.761556696444299e-09, + "CDNS": 1.1130752512111197e-08, + "CDW": 0.0003476084529938052, + "CE": 6.256276640658664e-09, + "CEG": 0.030565800295830666, + "CF": 0.008486185255493457, + "CFG": 4.989139822940997e-09, + "CHD": 0.002112889737174485, + "CHRW": 9.563527518006912e-09, + "CHTR": 0.005251776817505111, + "CI": 2.2377380675472215e-08, + "CINF": 1.917380138035811e-08, + "CL": 8.47519758086293e-06, + "CLX": 1.2393880516716175e-05, + "CMCSA": 0.005371735544888621, + "CME": 0.0041796058787750435, + "CMG": 0.004544388691971124, + "CMI": 3.324836663450729e-09, + "CMS": 3.2551871177871543e-09, + "CNC": 0.00078540614160143, + "CNP": 3.027228484817522e-09, + "COF": 0.008065418699842833, + "COO": 7.319693114891396e-09, + "COP": 5.192036774377276e-09, + "COR": 0.0029734722418530285, + "COST": 7.475142752068902e-09, + "CPAY": 1.7355312415846884e-08, + "CPB": 1.2300956796944479e-08, + "CPRT": 0.0006113774712620898, + "CPT": 3.3420346668276468e-09, + "CRL": 1.83872371464618e-09, + "CRM": 0.006753534819801458, + "CRWD": 0.0015761294969758597, + "CSCO": 0.006029132567282312, + "CSGP": 7.646348039788181e-09, + "CSX": 7.117923845579057e-09, + "CTAS": 7.824226458985739e-09, + "CTLT": 3.734989156016101e-09, + "CTRA": 1.9901526214330125e-09, + "CTSH": 0.009109186470664573, + "CTVA": 9.705326775545772e-05, + "CVS": 6.191259961934827e-09, + "CVX": 8.042904849925461e-09, + "CZR": 0.007168868322063005, + "D": 5.893017207352745e-09, + "DAL": 0.0005561230652505464, + "DAY": 2.448594470570381e-09, + "DD": 4.532107654413887e-09, + "DE": 7.167253031501607e-09, + "DECK": 0.0008365761267742204, + "DFS": 0.0032829434987093013, + "DG": 3.729023269702202e-09, + "DGX": 1.0531251021234475e-08, + "DHI": 2.176568374860568e-08, + "DHR": 0.001573954780596324, + "DIS": 8.250474563733576e-09, + "DLR": 6.16947255844019e-09, + "DLTR": 0.0008948725956136934, + "DOC": 1.66096900231676e-09, + "DOV": 3.715867239527466e-09, + "DOW": 4.155503696894811e-09, + "DPZ": 3.268131828753456e-08, + "DRI": 2.0644465101730997e-06, + "DTE": 4.3484681928455675e-09, + "DUK": 3.5890200199503546e-08, + "DVA": 0.0031172808890061847, + "DVN": 2.0353747306337113e-09, + "DXCM": 0.004246460498555461, + "EA": 0.0033375888169515683, + "EBAY": 4.733303088840709e-09, + "ECL": 4.53249955081115e-09, + "ED": 6.691591801668564e-09, + "EFX": 3.776146579395692e-09, + "EG": 1.9765679534723055e-08, + "EIX": 6.4683454806608834e-09, + "EL": 4.212537877950145e-09, + "ELV": 1.524164889295502e-08, + "EMN": 3.206529990832092e-09, + "EMR": 2.2139089424253706e-09, + "ENPH": 0.0035220854532173017, + "EOG": 4.925072159297436e-09, + "EPAM": 0.005048076073052685, + "EQIX": 0.0005611538690008627, + "EQR": 3.803722839655317e-09, + "EQT": 1.3493209152253506e-09, + "ES": 3.2342722451604133e-09, + "ESS": 5.265367351888546e-09, + "ETN": 1.8924876752243244e-09, + "ETR": 6.268788942205681e-09, + "ETSY": 7.722850511896837e-09, + "EVRG": 2.1696274591471713e-09, + "EW": 5.008271652562824e-09, + "EXC": 4.327610746648508e-09, + "EXPD": 1.5504869048579755e-08, + "EXPE": 0.003637357568799309, + "EXR": 1.083405358374019e-08, + "F": 1.7856898866563724e-09, + "FANG": 0.012031816170649289, + "FAST": 0.0028168156381927593, + "FCX": 2.0954106727085386e-09, + "FDS": 0.0009832908257162891, + "FDX": 0.005416118815151045, + "FE": 3.7083103257229216e-09, + "FFIV": 0.002454529652549898, + "FI": 1.50776216219372e-08, + "FICO": 0.001329997448089066, + "FIS": 5.321877022455831e-09, + "FITB": 6.745690902126883e-09, + "FMC": 4.518679579702236e-09, + "FOX": 2.4162539791393667e-09, + "FOXA": 3.3616772486990094e-09, + "FRT": 3.0445139419047505e-09, + "FSLR": 1.835184998278206e-09, + "FTNT": 0.0051554224169252085, + "FTV": 2.0226734785849316e-09, + "GD": 1.3284078533937775e-08, + "GDDY": 1.4844894408114138e-08, + "GE": 3.5685060910760175e-09, + "GEHC": 0.0015038490917114679, + "GEN": 2.7305328758370433e-09, + "GEV": 0.016075741782755417, + "GILD": 0.0072498842854611875, + "GIS": 0.006689431242557169, + "GL": 1.2868529622567833e-08, + "GLW": 3.3166075205473656e-09, + "GM": 3.1751606984363973e-09, + "GNRC": 3.0917112021658366e-09, + "GOOG": 0.01993649183494021, + "GOOGL": 0.0018190115595542284, + "GPC": 7.2734825589766426e-09, + "GPN": 1.342138258616896e-08, + "GRMN": 0.001977691584414292, + "GS": 6.615595425508742e-09, + "GWW": 2.7817744291131773e-09, + "HAL": 2.1788057693082597e-09, + "HAS": 9.73555872336646e-07, + "HBAN": 2.0729897013351495e-09, + "HCA": 0.005339867638118251, + "HD": 0.007537523907957315, + "HES": 5.120644416116172e-09, + "HIG": 0.0049512968341306985, + "HII": 3.268636791535326e-08, + "HLT": 1.061785627975362e-08, + "HOLX": 0.002488258903993875, + "HON": 4.471986809174159e-09, + "HPE": 1.871184955015427e-09, + "HPQ": 2.6181446367993684e-09, + "HRL": 7.753613904921242e-09, + "HSIC": 7.523337902993771e-09, + "HST": 2.510715591822877e-09, + "HSY": 0.009325249153362658, + "HUBB": 1.3168792415599717e-09, + "HUM": 0.0009727244802208631, + "HWM": 0.0019097364006194903, + "IBM": 3.650360124363425e-09, + "ICE": 0.0006435030044325143, + "IDXX": 1.1655473366595836e-08, + "IEX": 3.6191255436762554e-09, + "IFF": 4.229433488123136e-09, + "INCY": 0.003726409035634758, + "INTC": 0.00018840506978126196, + "INTU": 0.001179675430932705, + "INVH": 2.1819612599655814e-09, + "IP": 3.1372885361795598e-09, + "IPG": 5.642136609698048e-09, + "IQV": 3.4270332051922608e-09, + "IR": 2.21474283916059e-08, + "IRM": 5.674569486295743e-09, + "ISRG": 0.005637662971601765, + "IT": 1.569227825157337e-08, + "ITW": 4.8167782424189276e-09, + "IVZ": 2.6858608856757964e-09, + "J": 5.119065251259679e-09, + "JBHT": 6.1631430524878446e-09, + "JBL": 0.00220040227862703, + "JCI": 2.3544537063235917e-09, + "JKHY": 0.0007292100856323596, + "JNJ": 0.01190907434414824, + "JNPR": 3.550561903950358e-09, + "JPM": 0.0022005085182320618, + "K": 0.00040618717612399025, + "KDP": 2.7724015033402535e-09, + "KEY": 1.7892780228892463e-09, + "KEYS": 4.530438967125178e-09, + "KHC": 1.3973173301364866e-09, + "KIM": 2.283103519015347e-09, + "KKR": 1.0629343011483519e-08, + "KLAC": 0.0007138827572048223, + "KMB": 0.004073416038598272, + "KMI": 1.0753751909305095e-09, + "KMX": 2.3772550589357524e-08, + "KO": 0.0001738533648025555, + "KR": 1.3055077143195833e-08, + "KVUE": -5.191980491548991e-10, + "L": 6.331792071938978e-09, + "LDOS": 2.7780268290631117e-08, + "LEN": 1.496491137663189e-08, + "LH": 3.144831099627118e-09, + "LHX": 5.756301437640401e-09, + "LIN": 2.727417537086211e-08, + "LKQ": 0.0037760500354227697, + "LLY": 2.26295368819775e-08, + "LMT": 0.00728356163978351, + "LNT": 2.859014750051293e-09, + "LOW": 1.2196460436793189e-08, + "LRCX": 0.0006230798824502985, + "LULU": 0.0013108784609829997, + "LUV": 2.4527233971268162e-05, + "LVS": 0.0015213635786927343, + "LW": 2.8296457363242847e-08, + "LYB": 0.0030816733377408575, + "LYV": 0.002412746048011983, + "MA": 0.025391588726338236, + "MAA": 4.089838238509735e-09, + "MAR": 1.0603507723050457e-08, + "MAS": 4.330953384564173e-09, + "MCD": 0.008880799656477412, + "MCHP": 0.001965551850196103, + "MCK": 2.8325039727836442e-08, + "MCO": 3.912760508766294e-09, + "MDLZ": 4.805897949257381e-09, + "MDT": 1.1170046398971257e-06, + "MET": 5.974017330810795e-09, + "META": 0.018944261343180967, + "MGM": 0.0033955798890319376, + "MHK": 4.331213664767512e-09, + "MKC": 5.918032975584502e-09, + "MKTX": 0.005260557392117846, + "MLM": 2.902100056152763e-09, + "MMC": 4.174651181546872e-09, + "MMM": 4.283912225777048e-09, + "MNST": 0.004459123228748187, + "MO": 5.091314528411978e-09, + "MOH": 0.0016964667433747211, + "MOS": 1.5894059494225152e-09, + "MPC": 0.013067394981505267, + "MPWR": 5.2124468587542135e-08, + "MRK": 0.005015275599779965, + "MRNA": 0.006562435825371065, + "MRO": 1.035595511036903e-09, + "MS": 0.005454329974329173, + "MSCI": 0.0031664242262535655, + "MSFT": 0.03191326086975569, + "MSI": 8.193729330116086e-09, + "MTB": 1.972867669980448e-08, + "MTCH": 1.1829401778695391e-08, + "MTD": 8.116931127539085e-09, + "MU": 0.0031634271874689903, + "NCLH": 3.6160209294530085e-09, + "NDAQ": 6.445452524253118e-09, + "NDSN": 3.6262318565473736e-09, + "NEE": 2.994852245873208e-09, + "NEM": 2.2591346441491452e-09, + "NFLX": 0.014375043142083458, + "NI": 2.4543759263604527e-09, + "NKE": 1.8480804400373977e-08, + "NOC": 3.3665357361935016e-08, + "NOW": 0.004904657522270405, + "NRG": 1.4566509379311547e-09, + "NSC": 9.401820049631632e-09, + "NTAP": 0.0050340570069891954, + "NTRS": 3.8161310787323134e-09, + "NUE": 7.035858935038011e-09, + "NVDA": 0.11833606355027702, + "NVR": 0.001296710669513198, + "NWS": 1.572529746296891e-09, + "NWSA": 1.5514920404198678e-09, + "NXPI": 0.0067443170676624075, + "O": 7.818662142115024e-09, + "ODFL": 0.0021379203678274605, + "OKE": 4.167079018709996e-09, + "OMC": 4.434601791157395e-09, + "ON": 6.958090622180333e-09, + "ORCL": 0.006278816771419004, + "ORLY": 3.4431972000637794e-08, + "OTIS": 0.0013805788043852968, + "OXY": 2.873921492666433e-09, + "PANW": 0.005086400017184271, + "PARA": 0.0018658456890039974, + "PAYC": 1.5786983334154556e-08, + "PAYX": 0.00031918291803085955, + "PCAR": 7.887456230766686e-09, + "PCG": 2.303499039401807e-09, + "PEG": 4.973765467216515e-09, + "PEP": 0.009216073733734884, + "PFE": 5.45936173466548e-09, + "PFG": 0.00013981287314911102, + "PG": 1.6869760672428005e-08, + "PGR": 0.007065632892618572, + "PH": 2.8899855348607044e-09, + "PHM": 1.1533732041656852e-08, + "PKG": 1.2465021119213757e-08, + "PLD": 5.079932432596248e-09, + "PM": 1.0226215694596875e-08, + "PNC": 9.159003858196964e-09, + "PNR": 2.0006132611014624e-09, + "PNW": 3.5486704683712215e-09, + "PODD": 1.851528842205819e-08, + "POOL": 0.0012261354104802396, + "PPG": 6.959516465103881e-09, + "PPL": 3.645512954746817e-09, + "PRU": 0.0003864276539673424, + "PSA": 3.950056157795e-09, + "PSX": 0.001695812540387058, + "PTC": 8.190540894644551e-09, + "PWR": 8.35867056632453e-09, + "PYPL": 1.817837167888084e-09, + "QCOM": 0.0037515940654155506, + "QRVO": 1.3703404455078782e-09, + "RCL": 0.001559546628767747, + "REG": 3.6451051260308227e-09, + "REGN": 0.0009417454744473364, + "RF": 2.853178242076491e-09, + "RJF": 6.878946922875767e-09, + "RL": 4.339429149214996e-09, + "RMD": 0.00034775471224398724, + "ROK": 6.7891463914332965e-09, + "ROL": 3.3555036980639356e-09, + "ROP": 0.004572964004641216, + "ROST": 0.0009859313361825764, + "RSG": 8.67880736765414e-09, + "RTX": 9.911408541833058e-09, + "RVTY": 2.6612004805556796e-09, + "SBAC": 0.00538212945326308, + "SBUX": 0.007259915992510546, + "SCHW": 4.361802279440302e-08, + "SHW": 5.3058248567785796e-08, + "SJM": 4.0815068630000786e-08, + "SLB": 2.177700627941557e-09, + "SMCI": 0.009632073642182477, + "SNA": 3.820678233583267e-09, + "SNPS": 3.282321070295617e-09, + "SO": 9.153318848529241e-06, + "SOLV": -1.0690136182437279e-09, + "SPG": 4.197626515873015e-09, + "SPGI": 6.295975567337329e-09, + "SRE": 5.748730191775645e-09, + "STE": 4.2855444151736865e-07, + "STLD": 1.2424869054447114e-08, + "STT": 0.0002972457771161012, + "STX": 9.940114630533164e-09, + "STZ": 8.872465902788398e-08, + "SWK": 3.171188522508301e-09, + "SWKS": 2.1847202500173823e-09, + "SYF": 6.472791763642713e-09, + "SYK": 3.0787022998075356e-08, + "SYY": 8.757523752341304e-09, + "T": 5.196832727201609e-09, + "TAP": 4.796973152497976e-09, + "TDG": 0.004368682542924045, + "TDY": 1.2957611052744948e-08, + "TECH": 9.396654271221014e-09, + "TEL": 6.094022188179811e-09, + "TER": 2.7418000562876796e-09, + "TFC": 3.460743855862184e-09, + "TFX": 7.309379063193742e-09, + "TGT": 8.643242298020664e-09, + "TJX": 0.00038735286614195616, + "TMO": 8.74188161046988e-09, + "TMUS": 0.006312786529000118, + "TPR": 0.002292747907307887, + "TRGP": 0.0003482560385256169, + "TRMB": 6.9128995285894785e-09, + "TROW": 6.588273102949808e-09, + "TRV": 7.982395122298761e-09, + "TSCO": 1.1316363442021904e-08, + "TSLA": 0.0879702863923266, + "TSN": 0.004396844516215508, + "TT": 2.7112213883941635e-09, + "TTWO": 0.0006441979678063221, + "TXN": 5.82349010163927e-09, + "TXT": 2.71232057798474e-09, + "TYL": 3.110840228078612e-08, + "UAL": 0.0035650336464292964, + "UBER": 4.4721256675622585e-09, + "UDR": 2.393708607754234e-09, + "UHS": 4.919988962257444e-09, + "ULTA": 0.002819163613141732, + "UNH": 0.015447480678374344, + "UNP": 9.187095678851568e-09, + "UPS": 2.6741496643535484e-09, + "URI": 5.2370939101299195e-09, + "USB": 3.488628348477111e-09, + "USDOLLAR": 3.1031519573691737e-07, + "V": 0.001318331194162089, + "VICI": 3.036976159055734e-09, + "VLO": 1.2525418473665543e-08, + "VLTO": 0.008596054669864293, + "VMC": 1.8100009936146182e-09, + "VRSK": 9.235601517958066e-09, + "VRSN": 0.0024584803812344896, + "VRTX": 0.0016846999752123636, + "VST": 1.889046368782125e-09, + "VTR": 6.094981747291328e-09, + "VTRS": 2.3019211271017892e-09, + "VZ": 6.86388880444548e-09, + "WAB": 2.5043719815728002e-09, + "WAT": 9.08912019901008e-09, + "WBA": 1.2828368872610874e-09, + "WBD": 6.98557412557322e-10, + "WDC": 3.808335289543947e-09, + "WEC": 7.808617366928561e-09, + "WELL": 5.012780449173225e-09, + "WFC": 9.439947425910377e-09, + "WM": 3.569155610426976e-08, + "WMB": 9.741220094925176e-09, + "WMT": 0.010455515432982279, + "WRB": 7.4860582545244e-09, + "WST": 3.6384541519700027e-09, + "WTW": 6.414175821343972e-09, + "WY": 2.0256528810822665e-09, + "WYNN": 0.0024964006936044883, + "XEL": 4.057232992225533e-09, + "XOM": 7.203927442080276e-09, + "XYL": 5.007769332114419e-09, + "YUM": 1.0774135663322818e-08, + "ZBH": 3.581257368319614e-09, + "ZBRA": 2.2422427180389914e-09, + "ZTS": 8.920827193509692e-09 } } \ No newline at end of file From d91a70d5e11c348e0028bc4dc4fe2672bf332105 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 29 Jul 2024 11:31:08 +0400 Subject: [PATCH 085/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-29 --- .../ftse100_daily_initial_holdings.json | 103 ++++++++++++++++++ .../ftse100_daily_target_weights.json | 103 ++++++++++++++++++ 2 files changed, 206 insertions(+) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index d21a083f4..742d6a97e 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11513,5 +11513,108 @@ "WEIR.L": 9572.129129345294, "WPP.L": 10436.88884175904, "WTB.L": 11577.384158295377 + }, + "2024-07-29 07:00:00+00:00": { + "AAF.L": 20966.41017701268, + "AAL.L": 10566.234010802807, + "ABF.L": 10074.464814562461, + "ADM.L": 10687.662114272827, + "AHT.L": 16562.261729881102, + "ANTO.L": 18450.13022634889, + "AUTO.L": 10308.523239613121, + "AV.L": 14269.455240773666, + "AZN.L": 12419.078585983807, + "BA.L": 10437.653708296817, + "BARC.L": 10403.182779878787, + "BATS.L": 11489.842556544427, + "BDEV.L": 10393.5929520784, + "BEZ.L": 10923.187070065258, + "BKG.L": 10271.48734821095, + "BME.L": 10337.421404582756, + "BNZL.L": 9865.569175482355, + "BP.L": 1.4183474092981887e-12, + "BRBY.L": 10974.629264263274, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10645.975481005295, + "CPG.L": 0.0, + "CRDA.L": 12419.543693912248, + "CTEC.L": 43.968924761746614, + "DARK.L": 25986.351006189976, + "DCC.L": 21757.558365191464, + "DGE.L": 10380.802124859607, + "DPLM.L": 8797.484336518088, + "EDV.L": 6907.628524046434, + "ENT.L": 10696.975264585526, + "EXPN.L": 10898.81116635494, + "EZJ.L": 9239.349612436261, + "FCIT.L": 0.0, + "FRAS.L": 10439.407525506827, + "FRES.L": 10678.094050121748, + "GBPOUND": 3813.6029827358175, + "GLEN.L": 9727.421655205078, + "GSK.L": 11122.780875000168, + "HIK.L": 11501.981412272087, + "HL.L": 10026.409463148317, + "HLMA.L": 10334.222683189579, + "HLN.L": 0.0, + "HSBA.L": 10216.214604842793, + "HWDN.L": 10568.101592796937, + "IAG.L": 10530.74881349201, + "ICG.L": 10854.123012345979, + "IHG.L": 16154.053012601844, + "III.L": 9194.750702454798, + "IMB.L": 10845.051844768806, + "IMI.L": 11482.45956003628, + "INF.L": 10598.401333421963, + "ITRK.L": 10204.764685350841, + "JD.L": 11075.05768919096, + "KGF.L": 10433.838287398748, + "LAND.L": 0.0, + "LGEN.L": 10375.065087488676, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28773.88459165933, + "MKS.L": 0.0, + "MNDI.L": 9762.932583856853, + "MNG.L": 10469.829501967697, + "MRO.L": 45301.60603239235, + "NG.L": 10027.453635595984, + "NWG.L": 10390.160390876268, + "NXT.L": 8894.734111100983, + "PHNX.L": 0.0, + "PRU.L": 10739.548826803277, + "PSH.L": 48535.079937431896, + "PSN.L": 11176.655244358786, + "PSON.L": 1061.0936311820983, + "REL.L": 10922.538862379743, + "RIO.L": 10763.137307343586, + "RKT.L": 8634.487444395905, + "RMV.L": 11981.371246458779, + "RR.L": 10686.085668214893, + "RTO.L": 10208.935560730944, + "SBRY.L": 0.0, + "SDR.L": 10559.491454953797, + "SGE.L": 39386.92233860931, + "SGRO.L": 0.0, + "SHEL.L": 2919.4999999999995, + "SMDS.L": 10737.367268890008, + "SMIN.L": 0.0, + "SMT.L": 10156.187338338908, + "SN.L": 3470.4550573536226, + "SPX.L": 8918.622983198758, + "SSE.L": 11248.79114964541, + "STAN.L": 10391.896477912294, + "SVT.L": 10257.037219665031, + "TSCO.L": 10369.472648771494, + "TW.L": 10445.450204102444, + "ULVR.L": 9588.567194459027, + "UTG.L": 10618.396629213232, + "UU.L": 10506.450245814516, + "VOD.L": 10583.268328650958, + "VTY.L": 11098.12375539895, + "WEIR.L": 9903.962939162602, + "WPP.L": 10713.193292782293, + "WTB.L": 11841.059690982554 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 3ad87cb6a..b287c23b0 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11122,5 +11122,108 @@ "WEIR.L": 0.00999999688981543, "WPP.L": 0.009999993742933498, "WTB.L": 0.009999980608121121 + }, + "2024-07-29 07:00:00+00:00": { + "AAF.L": 0.019979585099044805, + "AAL.L": 0.010000000073419626, + "ABF.L": 0.009980500176299941, + "ADM.L": 0.010000044972628077, + "AHT.L": 0.015851429193411027, + "ANTO.L": 0.017610824431556604, + "AUTO.L": 0.010000004835559247, + "AV.L": 0.017535012943092527, + "AZN.L": 0.010000021792355065, + "BA.L": 0.010000005607571492, + "BARC.L": 0.009999997756894839, + "BATS.L": 0.010000004551497257, + "BDEV.L": 0.010000003068124, + "BEZ.L": 0.010000019741499734, + "BKG.L": 0.010000003325260421, + "BME.L": 0.009999991384386401, + "BNZL.L": 0.009999989717409388, + "BP.L": 2.2842306342508398e-07, + "BRBY.L": 0.009999993712102431, + "BT-A.L": 2.292499585899755e-08, + "CCH.L": 2.557381969810248e-07, + "CNA.L": 0.009999993841937905, + "CPG.L": 3.2218916083085036e-07, + "CRDA.L": 0.009999998486276671, + "CTEC.L": 4.189715308170385e-05, + "DARK.L": 0.02494144674255011, + "DCC.L": 0.02051347325529036, + "DGE.L": 0.009999681217444812, + "DPLM.L": 0.010000007058402725, + "EDV.L": 0.006648435401217217, + "ENT.L": 0.010135622206994703, + "EXPN.L": 0.010000002183515598, + "EZJ.L": 0.008807539968431085, + "FCIT.L": 2.9537091550989805e-08, + "FRAS.L": 0.010000002498294814, + "FRES.L": 0.009999998773214046, + "GBPOUND": 1.3939871249717475e-07, + "GLEN.L": 0.009269834186216472, + "GSK.L": 0.009999994522492736, + "HIK.L": 0.010000008033433405, + "HL.L": 0.010000003441036494, + "HLMA.L": 0.010000001720418946, + "HLN.L": 2.421124021748065e-08, + "HSBA.L": 0.009999998032851407, + "HWDN.L": 0.01000000077791745, + "IAG.L": 0.009999988264857464, + "ICG.L": 0.010000011603366764, + "IHG.L": 0.01486400460413109, + "III.L": 0.01000000402114464, + "IMB.L": 0.010000012545211604, + "IMI.L": 0.009999994323833172, + "INF.L": 0.009999973502666803, + "ITRK.L": 0.00999999870761982, + "JD.L": 0.01055342339461338, + "KGF.L": 0.00999998171465264, + "LAND.L": 1.71972305916726e-08, + "LGEN.L": 0.00999999606017342, + "LLOY.L": 8.148447096929664e-08, + "LMP.L": 4.406916070891048e-08, + "LSEG.L": 0.027045085362584462, + "MKS.L": 4.539944723788151e-08, + "MNDI.L": 0.009999997893604933, + "MNG.L": 0.009999999691432053, + "MRO.L": 0.04317292651260104, + "NG.L": 0.009999968663881448, + "NWG.L": 0.009999989985443769, + "NXT.L": 0.01000000644217381, + "PHNX.L": 3.029199892289661e-08, + "PRU.L": 0.009999997737146266, + "PSH.L": 0.04570273155506078, + "PSN.L": 0.010000002419407007, + "PSON.L": 0.0010113064752015977, + "REL.L": 0.009999995693468981, + "RIO.L": 0.010000003112200584, + "RKT.L": 0.009999984597667615, + "RMV.L": 0.011417471178131171, + "RR.L": 0.009999997411344368, + "RTO.L": 0.009999997016637655, + "SBRY.L": 4.451749640117268e-08, + "SDR.L": 0.00999999589093017, + "SGE.L": 0.037491152177251845, + "SGRO.L": 4.86387628631161e-08, + "SHEL.L": 0.0041100775767721085, + "SMDS.L": 0.009999996335147577, + "SMIN.L": 8.631676046887469e-08, + "SMT.L": 0.009999947122736774, + "SN.L": 0.0033152478877108106, + "SPX.L": 0.009999978645013896, + "SSE.L": 0.009999998722833458, + "STAN.L": 0.009999992147598467, + "SVT.L": 0.01000000098445856, + "TSCO.L": 0.009999997309778158, + "TW.L": 0.009999993951644819, + "ULVR.L": 0.009999965415135809, + "UTG.L": 0.010000019250650406, + "UU.L": 0.009999988350816632, + "VOD.L": 0.010000028778619717, + "VTY.L": 0.010000001035913576, + "WEIR.L": 0.009999997326036219, + "WPP.L": 0.009999994817594194, + "WTB.L": 0.00999998356217738 } } \ No newline at end of file From 57a0d66916d17bfe322b0c239ce2b6a5c3e849dc Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 29 Jul 2024 18:00:34 +0400 Subject: [PATCH 086/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-29 --- .../dow30_daily_initial_holdings.json | 43 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 45aa177e4..4fd1a5a9e 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4818,19 +4818,19 @@ "WMT": 0.0003912307275656606 }, "2024-07-26 13:30:00+00:00": { - "AAPL": 211489.32103809758, + "AAPL": 211344.3572112139, "AMGN": 20739.118239036135, - "AMZN": 220269.25280100168, + "AMZN": 220183.8019508269, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 81111.36358772714, - "CSCO": 44391.81083480192, + "CSCO": 44382.42961945628, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, "GS": 0.0, - "HD": 106329.70103315436, + "HD": 106847.36983541476, "HON": 0.0, "IBM": 0.0, "INTC": 0.0, @@ -4840,7 +4840,7 @@ "MCD": 1.1921705335766953e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 221442.17082683617, + "MSFT": 221447.4712506066, "NKE": 9.883856602317731e-13, "PG": 0.0, "TRV": 0.0, @@ -4849,5 +4849,38 @@ "V": 32884.00873103749, "VZ": 0.0, "WMT": 0.0003891803952424087 + }, + "2024-07-29 13:30:00+00:00": { + "AAPL": 209920.4707292268, + "AMGN": 20709.36272530426, + "AMZN": 224346.59705965556, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 82537.7252459499, + "CSCO": 44851.39020594917, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 107752.22841817047, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.1952346766378825e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 228516.62057741173, + "NKE": 9.95249449538938e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 105534.80893846806, + "USDOLLAR": -194.33244800154316, + "V": 33492.56823962908, + "VZ": 0.0, + "WMT": 0.0003870745936844139 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 1bf0d8a25..2ab3915ae 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4849,5 +4849,38 @@ "V": 0.03152877957047321, "VZ": 1.829409541763915e-09, "WMT": 1.624073413053133e-08 + }, + "2024-07-29 13:30:00+00:00": { + "AAPL": 0.1987806373471559, + "AMGN": 0.01958252075926774, + "AMZN": 0.21215464946367588, + "AXP": 7.166750596238821e-09, + "BA": 1.2337445097385301e-08, + "CAT": 6.2229027396743004e-09, + "CRM": 0.0780523198427648, + "CSCO": 0.04241394987192121, + "CVX": 6.945310658683462e-09, + "DIS": 8.888916664098203e-09, + "DOW": 9.509635842285071e-09, + "GS": 7.4054239045830184e-09, + "HD": 0.10189635560255894, + "HON": 4.2818623077121786e-09, + "IBM": 3.199716921190344e-09, + "INTC": 8.0205820550415e-09, + "JNJ": 1.0106214583671698e-08, + "JPM": 1.1927667331617082e-08, + "KO": 7.65031055971742e-09, + "MCD": 2.0466211624721094e-08, + "MMM": 4.467869670072058e-09, + "MRK": 8.585481843036628e-09, + "MSFT": 0.21609798849754147, + "NKE": 1.8709933253106145e-08, + "PG": 5.8164855623594646e-09, + "TRV": 5.134031464721091e-09, + "UNH": 0.09935110064144842, + "USDOLLAR": 1.9057245252620137e-09, + "V": 0.03167026769743753, + "VZ": 4.465284518326225e-09, + "WMT": 3.706246641743319e-08 } } \ No newline at end of file From 3696eb22a197f7c99a3e1158dc267b7169b65313 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 29 Jul 2024 18:01:42 +0400 Subject: [PATCH 087/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-29 --- .../ndx100_daily_initial_holdings.json | 172 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 242 insertions(+), 34 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 79bcaa42e..d4c935053 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15079,35 +15079,35 @@ "ZS": 19342.50519166049 }, "2024-07-26 13:30:00+00:00": { - "AAPL": 6314.943338346032, + "AAPL": 6310.614806066545, "ABNB": 0.0, "ADBE": 12528.406947547064, "ADI": 0.0, "ADP": 0.0, "ADSK": 83.24132190600484, "AEP": 0.0, - "AMAT": -53.04070165570212, + "AMAT": -53.1228297495808, "AMD": -1.7094018852501728e-11, "AMGN": 32287.05413711915, - "AMZN": 19220.01019298134, + "AMZN": 19212.554017457638, "ANSS": 11.139075015882714, - "ARM": 63693.138099859105, - "ASML": 15.60316557506463, + "ARM": 63832.83254642001, + "ASML": 15.61801582162244, "AVGO": -34.79670986242059, "AZN": 0.0, - "BIIB": 13558.588063477097, + "BIIB": 13593.507471321924, "BKNG": 10423.036630131612, "BKR": 0.0, - "CCEP": 15381.138425833899, + "CCEP": 15355.924469756961, "CDNS": -82.83627713422047, "CDW": 17190.951871712903, "CEG": 66077.89797686784, - "CHTR": 19833.577605486254, + "CHTR": 19901.44754163358, "CMCSA": 31250.85496759236, "COST": 0.0, - "CPRT": -0.799272762702119, + "CPRT": -0.7999016305653799, "CRWD": 6084.765998142343, - "CSCO": 54984.446061770344, + "CSCO": 54972.82633012466, "CSGP": 7861.830558732144, "CSX": 1112.7600402832027, "CTAS": 0.0, @@ -15115,65 +15115,65 @@ "DASH": 0.0, "DDOG": 15444.007259912305, "DLTR": 25279.116157947406, - "DXCM": 11264.976540303513, + "DXCM": 6885.8516137973675, "EA": 13920.975801480003, "EXC": 0.0, "FANG": 28580.741618168417, - "FAST": 21047.80128179186, + "FAST": 21185.797434680055, "FTNT": 24324.104588144728, "GEHC": 6103.437465065344, "GFS": 22036.424475676682, "GILD": 29021.278669867002, "GOOG": 957.1734779999227, - "GOOGL": -2.172689470886423e-12, + "GOOGL": -2.1740940338878174e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 7989.167198442542, - "INTC": 1.99545091105245, + "INTC": 1.9979937547887987, "INTU": 534.0602320973287, - "ISRG": 9850.279365994884, + "ISRG": 9843.546707967484, "KDP": 1792.8000411987305, "KHC": 0.0, "KLAC": 19591.60901126337, "LIN": 0.0, - "LRCX": -9.569898040011864, + "LRCX": -9.59901966401313, "LULU": 19101.162102460283, "MAR": 0.0, - "MCHP": 13552.239483623667, + "MCHP": 13585.82585151976, "MDB": 27827.042280953905, "MDLZ": 0.0, "MELI": 21119.040537134802, - "META": -126.03996984401431, - "MNST": 17270.766203399067, - "MRNA": 19953.598552103886, - "MRVL": 0.0, - "MSFT": 40.93039329108843, - "MU": 8.110985659327543, - "NFLX": 17358.933529581238, - "NVDA": 2920.972038364938, - "NXPI": 19266.241894371295, - "ODFL": 9543.755973324687, - "ON": 481.17925383618905, + "META": -126.04132878857176, + "MNST": 17332.816967509112, + "MRNA": 19959.333180225603, + "MRVL": 0.0, + "MSFT": 40.93137299801925, + "MU": 8.103618845514722, + "NFLX": 17392.099331889425, + "NVDA": 2921.9779923402216, + "NXPI": 19221.9287101804, + "ODFL": 9568.634627764959, + "ON": 481.005343969381, "ORLY": 25356.95421798889, - "PANW": -7.627998935294288, + "PANW": -7.6331943441873555, "PAYX": 8944.738707497178, "PCAR": 0.0, "PDD": 25719.46200601722, - "PEP": 27505.729625209813, + "PEP": 27480.7809483065, "PYPL": 4092.181195487507, - "QCOM": -6.743885227589812, + "QCOM": -6.744261773997678, "REGN": 15024.82245974924, "ROP": 14775.189149681006, "ROST": 8003.144742486102, "SBUX": 27444.627505883847, "SNPS": 0.0, "TEAM": 13632.438097188518, - "TMUS": 7970.975781579574, + "TMUS": 7972.791364578207, "TSLA": 5934.036322203166, - "TTD": 37588.92349961985, + "TTD": 37650.596941914344, "TTWO": 9666.729941462727, "TXN": 0.0, - "USDOLLAR": 102.18861225131998, + "USDOLLAR": -231.40905602460938, "VRSK": 0.0, "VRTX": 10763.149538964766, "WBA": 372.2246392993586, @@ -15181,5 +15181,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 19441.31452499617 + }, + "2024-07-29 13:30:00+00:00": { + "AAPL": 6261.618867498616, + "ABNB": 0.0, + "ADBE": 12737.85758774272, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 82.81453088434763, + "AEP": 0.0, + "AMAT": -53.38203920322968, + "AMD": -1.7200003118169744e-11, + "AMGN": 32240.730186811055, + "AMZN": 20110.711830906715, + "ANSS": 11.239829656280232, + "ARM": 59419.35701894339, + "ASML": 15.496939285329193, + "AVGO": -34.53034999089309, + "AZN": 0.0, + "BIIB": 14646.941864799479, + "BKNG": 10526.06831990588, + "BKR": 0.0, + "CCEP": 15528.226783159389, + "CDNS": -81.97969726954521, + "CDW": 17605.411404014383, + "CEG": 65542.3974612593, + "CHTR": 18190.768066800472, + "CMCSA": 32067.503141087378, + "COST": 0.0, + "CPRT": -0.8038319647525516, + "CRWD": 5814.9340886856, + "CSCO": 55362.40882801332, + "CSGP": 7911.823124122895, + "CSX": 1102.0799560546868, + "CTAS": 0.0, + "CTSH": 26999.769814217074, + "DASH": 0.0, + "DDOG": 14658.94901845297, + "DLTR": 25740.03569713757, + "DXCM": 11656.520528739831, + "EA": 14253.223844163389, + "EXC": 0.0, + "FANG": 28677.09667233799, + "FAST": 21398.267304808487, + "FTNT": 24045.680978032084, + "GEHC": 6179.582026224835, + "GFS": 21662.17947650242, + "GILD": 29051.742175714957, + "GOOG": 1137.6852272130782, + "GOOGL": -2.1948399672685992e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 8130.676140954498, + "INTC": 1.9979937547887987, + "INTU": 538.1547812334442, + "ISRG": 10469.691567166956, + "KDP": 1816.5599670410152, + "KHC": 0.0, + "KLAC": 19688.655775358402, + "LIN": 0.0, + "LRCX": -9.610541731518083, + "LULU": 20325.20795039654, + "MAR": 0.0, + "MCHP": 13445.954086001611, + "MDB": 26057.907754045045, + "MDLZ": 0.0, + "MELI": 21609.12374684164, + "META": -127.73427540214853, + "MNST": 17421.18534986316, + "MRNA": 19464.540515686644, + "MRVL": 0.0, + "MSFT": 42.238003352568235, + "MU": 8.125719849005048, + "NFLX": 17111.937832935302, + "NVDA": 2857.346936390427, + "NXPI": 19654.36318085113, + "ODFL": 9741.348511997277, + "ON": 451.4625527870285, + "ORLY": 24827.684883332215, + "PANW": -7.734031688744077, + "PAYX": 9056.86276640494, + "PCAR": 0.0, + "PDD": 25863.805944787186, + "PEP": 27685.201437314226, + "PYPL": 3979.260709332104, + "QCOM": -6.852766926984192, + "REGN": 15110.393264536095, + "ROP": 14183.982274962484, + "ROST": 8112.449023049208, + "SBUX": 27872.220982265328, + "SNPS": 0.0, + "TEAM": 13288.042188175792, + "TMUS": 8325.11916950526, + "TSLA": 5811.198464408793, + "TTD": 36942.47935908831, + "TTWO": 10019.60662614017, + "TXN": 0.0, + "USDOLLAR": 1049.881711679282, + "VRSK": 0.0, + "VRTX": 10809.420017511173, + "WBA": 379.5281764906051, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18837.459882202074 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 4dddb7c77..c454be880 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -14974,5 +14974,109 @@ "WDAY": 2.335157723215897e-08, "XEL": 2.6088414257001975e-07, "ZS": 0.017899788246300584 + }, + "2024-07-29 13:30:00+00:00": { + "AAPL": 0.005396748997465624, + "ABNB": 1.1314980541972838e-08, + "ADBE": 0.012302729586645966, + "ADI": 1.5873311110073946e-07, + "ADP": 1.7523186405659152e-07, + "ADSK": 3.860718586108105e-08, + "AEP": 1.2547604202038703e-08, + "AMAT": 5.024020280643116e-08, + "AMD": 6.298850162348094e-09, + "AMGN": 0.029526757314192124, + "AMZN": 0.01888675810193779, + "ANSS": 9.180684338044406e-08, + "ARM": 0.055791112771269975, + "ASML": 1.975839786767172e-08, + "AVGO": 2.356747521179629e-08, + "AZN": 3.8145625322038835e-08, + "BIIB": 0.013672832422372688, + "BKNG": 0.009314863464360548, + "BKR": 1.2408426266595672e-07, + "CCEP": 0.01449888685762726, + "CDNS": 1.4477510657253073e-08, + "CDW": 0.016520349456542825, + "CEG": 0.061683563731923435, + "CHTR": 0.017106538090483965, + "CMCSA": 0.029120544136266177, + "COST": 1.659158409807739e-08, + "CPRT": 2.972851356338435e-07, + "CRWD": 0.005775840213984831, + "CSCO": 0.05106937063897294, + "CSGP": 0.007332204371114031, + "CSX": 4.309358647712025e-05, + "CTAS": 2.2837046455057204e-08, + "CTSH": 0.02501485177579439, + "DASH": 9.169911065500282e-09, + "DDOG": 0.012970440790764523, + "DLTR": 0.02386660251425551, + "DXCM": 0.011790846387308367, + "EA": 0.013425576943737956, + "EXC": 3.98785911772355e-08, + "FANG": 0.02650019420411441, + "FAST": 0.0193660266586064, + "FTNT": 0.022445158696219773, + "GEHC": 0.006346377070761295, + "GFS": 0.018993382349325464, + "GILD": 0.026320077616992545, + "GOOG": 0.0027396165538593528, + "GOOGL": 2.3706883715299917e-07, + "HON": 2.055254504709201e-08, + "IDXX": 5.15726433305941e-08, + "ILMN": 0.007589837909638689, + "INTC": 5.395223739203553e-08, + "INTU": 0.0012415450851257577, + "ISRG": 0.010007427788174744, + "KDP": 0.0016961710694570985, + "KHC": 2.16990133979711e-08, + "KLAC": 0.02169065975220419, + "LIN": 9.029229672128725e-08, + "LRCX": 4.417487606254434e-08, + "LULU": 0.019038763985096914, + "MAR": 6.761452406200611e-08, + "MCHP": 0.012547821596550999, + "MDB": 0.024275076533505184, + "MDLZ": 1.1950042746882818e-07, + "MELI": 0.020547259883542522, + "META": 1.7902127985577952e-08, + "MNST": 0.016010244131956234, + "MRNA": 0.018107795606469804, + "MRVL": 1.4562449135049455e-08, + "MSFT": 4.95431534559742e-08, + "MU": 1.6092669586326504e-08, + "NFLX": 0.01615362202808261, + "NVDA": 0.00344596159469119, + "NXPI": 0.01904992786204718, + "ODFL": 0.008877040297424822, + "ON": 0.0017426936641759911, + "ORLY": 0.022468928149834762, + "PANW": 5.819212590344603e-08, + "PAYX": 0.008226142895924918, + "PCAR": 1.79596236593514e-08, + "PDD": 0.02380386794115216, + "PEP": 0.025161899042048408, + "PYPL": 0.003156579659559725, + "QCOM": 1.8133930585710504e-07, + "REGN": 0.013797646390542175, + "ROP": 0.012576683413667848, + "ROST": 0.007257221772908855, + "SBUX": 0.02544435899730142, + "SNPS": 7.196757357028609e-09, + "TEAM": 0.01240351807801792, + "TMUS": 0.007812889829967522, + "TSLA": 0.0066164582154798765, + "TTD": 0.03432149258118944, + "TTWO": 0.009294834841976485, + "TXN": 3.2518268415157456e-08, + "USDOLLAR": 3.481108244514537e-07, + "VRSK": 7.60995622814902e-07, + "VRTX": 0.010080675792135877, + "WBA": 0.00014913958829919005, + "WBD": 2.1739598035085073e-08, + "WDAY": 2.72428525046175e-08, + "XEL": 1.6665200838128098e-07, + "ZS": 0.017580891667501874 } } \ No newline at end of file From 1669c07a997983e119ffd43b2de8cf816072b893 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 29 Jul 2024 18:06:35 +0400 Subject: [PATCH 088/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-29 --- .../sp500_daily_initial_holdings.json | 609 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1062 insertions(+), 52 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index a2ec8ed4c..5f1a12bdf 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -72339,7 +72339,7 @@ "2024-07-26 13:30:00+00:00": { "A": 0.0, "AAL": 627.1838582521001, - "AAPL": 45206.65176802989, + "AAPL": 45175.66519523878, "ABBV": 5549.615607644331, "ABNB": 0.0, "ABT": 3428.848774989841, @@ -72360,16 +72360,16 @@ "AKAM": -0.08014031138121003, "ALB": 0.0, "ALGN": 1104.0071898375663, - "ALL": 6.477449850853783e-14, + "ALL": 6.518962427149018e-14, "ALLE": 0.0, - "AMAT": 1997.4378390412671, + "AMAT": 2000.530666949662, "AMCR": 0.0, "AMD": 26477.76445407418, "AME": 0.0, "AMGN": 5884.4004993744775, "AMP": 9.714445648354932, "AMT": 634.0977764438481, - "AMZN": 35567.692358259315, + "AMZN": 35553.89429288197, "ANET": 3402.8679403340475, "ANSS": 305.6298848086472, "AON": 17.67993814662414, @@ -72386,7 +72386,7 @@ "AWK": 0.0, "AXON": 4899.347540015809, "AXP": 0.0, - "AZO": 1.783462639294365e-12, + "AZO": 1.7819151816200363e-12, "BA": -1.1062571862974787e-12, "BAC": 0.0, "BALL": 0.0, @@ -72397,13 +72397,13 @@ "BEN": 193.63803929878213, "BF-B": 0.0, "BG": 1149.4131745190648, - "BIIB": 2084.6386243707393, + "BIIB": 2090.0074980316754, "BIO": 0.0, "BK": 0.0, "BKNG": 3471.3919831115236, "BKR": 0.0, "BLDR": 533.2266592676124, - "BLK": 9.57243629779888e-13, + "BLK": 9.634571115442628e-13, "BMY": 97.24457139609756, "BR": 0.0, "BRK-B": 0.0, @@ -72426,13 +72426,13 @@ "CDW": 399.4586197356737, "CE": -2.6696977226691173e-14, "CEG": 35125.406053718616, - "CF": 9771.585145404999, + "CF": 9815.450828241412, "CFG": 0.0, "CHD": 2432.9297781715227, "CHRW": 0.0, - "CHTR": 6377.972015194302, - "CI": 3.958889010986362e-13, - "CINF": 0.014459979035401548, + "CHTR": 6399.797253284526, + "CI": 3.976760102923614e-13, + "CINF": 0.014400390794689414, "CL": 9.773672260524245, "CLX": 15.062755143190191, "CMCSA": 6185.385983682915, @@ -72449,19 +72449,19 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 703.9857629096811, + "CPRT": 704.5396589551192, "CPT": 0.0, "CRL": 0.0, "CRM": 7776.544576016108, "CRWD": 2076.9073192142505, - "CSCO": 6942.346539573681, + "CSCO": 6940.879430062557, "CSGP": -7.972832364862723e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, "CTSH": 10511.874507972057, - "CTVA": 111.751010081754, + "CTVA": 112.09467675699777, "CVS": 0.0, "CVX": -5.683642839907335e-13, "CZR": 8254.733682236676, @@ -72476,7 +72476,7 @@ "DGX": 0.0, "DHI": -8.005074699944313, "DHR": 1901.520326191438, - "DIS": -3.9534292895444536, + "DIS": -3.988438960996812, "DLR": 2.8909604834768226e-14, "DLTR": 1030.3659145093734, "DOC": 0.0, @@ -72488,7 +72488,7 @@ "DUK": 1.2335208995198195, "DVA": 3591.4323503890887, "DVN": 0.0, - "DXCM": 4889.671778371627, + "DXCM": 2902.926533128941, "EA": 3843.206490316206, "EBAY": 0.0, "ECL": 0.0, @@ -72497,10 +72497,10 @@ "EG": 5.5372178263985916e-14, "EIX": 0.0, "EL": 0.0, - "ELV": -2.1502339813971606e-13, + "ELV": -2.1581816996001644e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 4055.5314518496702, + "ENPH": 4054.8573847186512, "EOG": 0.0, "EPAM": 5812.705748253426, "EQIX": 778.6885328737221, @@ -72519,21 +72519,21 @@ "EXR": 5.775709840780425e-14, "F": 0.0, "FANG": 13854.281287961674, - "FAST": 3243.4801356485605, + "FAST": 3264.745434322583, "FCX": 0.0, "FDS": 1216.1903983812017, "FDX": 6329.782035371978, "FE": 0.0, "FFIV": 2931.665149366714, "FI": 2.5141214870573655e-13, - "FICO": 1510.5229397303476, + "FICO": 1512.9080723872326, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.65411764577822e-14, + "FSLR": -7.663110214379278e-14, "FTNT": 5936.311281307239, "FTV": 0.0, "GD": 3.841239446371604e-13, @@ -72549,19 +72549,19 @@ "GM": 0.0, "GNRC": 0.0, "GOOG": 22652.270490535117, - "GOOGL": 1978.7433735049472, + "GOOGL": 1980.0225575618135, "GPC": 0.0, "GPN": -1.0336598476064938e-13, "GRMN": 2277.2522581680864, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.128670660440922, + "HAS": 1.1261404250262637, "HBAN": 0.0, "HCA": 6199.65940938989, - "HD": 8679.162266632578, + "HD": 8721.416984660898, "HES": 0.0, - "HIG": 5701.300320476002, + "HIG": 5941.988439344808, "HII": 0.7560843198167181, "HLT": -1.3441543557882745e-13, "HOLX": 2865.1732201050677, @@ -72573,7 +72573,7 @@ "HST": 0.0, "HSY": 10737.767442783164, "HUBB": 1.2850294991628133e-13, - "HUM": 1120.204755120678, + "HUM": 1124.0025437270783, "HWM": 2198.977578035736, "IBM": 0.0, "ICE": 740.9766433525559, @@ -72581,7 +72581,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 4291.158569426597, - "INTC": 216.94307936046664, + "INTC": 217.21953434487165, "INTU": 1253.158319463746, "INVH": 0.0, "IP": 0.0, @@ -72589,7 +72589,7 @@ "IQV": 0.0, "IR": 0.04532941153126652, "IRM": 0.0, - "ISRG": 6493.5446494655835, + "ISRG": 6489.106316918242, "IT": 7.635105699417658e-13, "ITW": 0.0, "IVZ": 0.0, @@ -72626,11 +72626,11 @@ "LMT": 8391.119835819656, "LNT": 0.0, "LOW": -2.798642919578052e-13, - "LRCX": 854.9994503352297, + "LRCX": 857.601251567578, "LULU": 1509.4122015867345, "LUV": 28.240551404119007, "LVS": 1751.812129947859, - "LW": 19.20246429209541, + "LW": 19.524861109534218, "LYB": 3548.778127280702, "LYV": 2778.1978418493227, "MA": 29238.05143145289, @@ -72638,43 +72638,43 @@ "MAR": -5.822954237295864e-13, "MAS": 0.0, "MCD": 10226.015179444334, - "MCHP": 2263.2490069589726, + "MCHP": 2268.8579923875463, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.294212663750685, "MET": -0.036344771736190024, - "META": 21813.71215845299, - "MGM": 3909.936291357359, + "META": 21813.947350713443, + "MGM": 3983.5308992405007, "MHK": 0.0, "MKC": 0.0, "MKTX": 6175.1759763463515, "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5134.539010878787, + "MNST": 5152.986488264889, "MO": -22.246811458415255, "MOH": 1953.4224380600858, "MOS": 0.0, "MPC": 15232.767147771294, "MPWR": -9.114378159583343e-13, - "MRK": 5774.958519468355, - "MRNA": 7622.181389564527, + "MRK": 5775.18533544715, + "MRNA": 7624.371990705033, "MRO": 0.0, "MS": 6280.539129640744, "MSCI": 3741.9932156654872, - "MSFT": 36746.97036591055, + "MSFT": 36747.84993873307, "MSI": 0.0, "MTB": -6.553227148974218, "MTCH": 0.0, "MTD": 0.0, - "MU": 3642.4491870637376, + "MU": 3639.1409276103504, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16721.927500854206, + "NFLX": 16753.87624590586, "NI": 0.0, "NKE": -2.982084454406618e-14, "NOC": -4.2853286408161874e-13, @@ -72684,28 +72684,28 @@ "NTAP": 5872.320660542805, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 136266.63922904103, + "NVDA": 136313.56811628494, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 7815.307771166666, + "NXPI": 7797.332227484043, "O": 0.0, - "ODFL": 2584.265622417746, + "ODFL": 2591.0022837051583, "OKE": 0.0, "OMC": 0.0, - "ON": -2.5493242100600546, + "ON": -2.5484028223853215, "ORCL": 7229.863224326231, "ORLY": -0.7769916164120174, "OTIS": 1589.7054179078925, "OXY": 0.0, - "PANW": 5833.045508730072, - "PARA": 2148.4643926551253, + "PANW": 5837.018379828612, + "PARA": 2146.612225847842, "PAYC": 0.0, "PAYX": 372.7045887237257, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 10612.422534489298, + "PEP": 10602.796689089737, "PFE": 0.0, "PFG": 163.4111647027993, "PG": 1.069773589724459, @@ -72728,7 +72728,7 @@ "PTC": 2.609742502779098e-14, "PWR": -4.951129004608214, "PYPL": 0.0, - "QCOM": 4249.892330443832, + "QCOM": 4250.129624175389, "QRVO": 0.0, "RCL": 1829.6244232503043, "REG": 0.0, @@ -72750,7 +72750,7 @@ "SHW": 1.4773137133025318, "SJM": 0.9889892913008347, "SLB": 0.0, - "SMCI": 11090.223020733369, + "SMCI": 11084.139547551198, "SNA": 0.0, "SNPS": 0.0, "SO": 10.565285055309992, @@ -72780,9 +72780,9 @@ "TGT": 0.0, "TJX": 446.03183213844306, "TMO": 0.0, - "TMUS": 7269.1959652291, - "TPR": 2640.0263732990306, - "TRGP": 401.21752797918646, + "TMUS": 7270.851700859197, + "TPR": 2677.3128365216267, + "TRGP": 402.3727380461485, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, @@ -72804,7 +72804,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -1086.0689756521192, + "USDOLLAR": -1086.0688792254189, "V": 1518.1343325907567, "VICI": 0.0, "VLO": 0.0, @@ -72840,5 +72840,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-29 13:30:00+00:00": { + "A": 0.0, + "AAL": 618.9777499420219, + "AAPL": 44824.919002563, + "ABBV": 5567.463811185786, + "ABNB": 0.0, + "ABT": 3239.7885467360893, + "ACGL": 0.0, + "ACN": 2.597478241077004e-13, + "ADBE": 10712.9692875931, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.522389592079985, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3551.7806947997715, + "AIG": 0.0, + "AIZ": 1.486896414286684, + "AJG": 0.0, + "AKAM": -0.08195359246313787, + "ALB": 0.0, + "ALGN": 1079.575589627727, + "ALL": 6.63723224642381e-14, + "ALLE": 0.0, + "AMAT": 2010.2921285215004, + "AMCR": 0.0, + "AMD": 27065.49869020905, + "AME": 0.0, + "AMGN": 5875.957837644848, + "AMP": 9.642148028831455, + "AMT": 642.8508093785127, + "AMZN": 36196.42159751963, + "ANET": 3431.292890445739, + "ANSS": 308.39435394946213, + "AON": 18.335881972270784, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 25.552394168712507, + "APTV": 2.365148420867241e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20397.54054955216, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4873.296099291901, + "AXP": 0.0, + "AZO": 1.817019859442357e-12, + "BA": -1.111256927942822e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 518.5294535675804, + "BDX": 0.0, + "BEN": 185.48910329828215, + "BF-B": 0.0, + "BG": 1160.2969952797935, + "BIIB": 2089.513095767109, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3505.70668376746, + "BKR": 0.0, + "BLDR": 544.2463975357335, + "BLK": 9.818001003226388e-13, + "BMY": 100.56865092182278, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.32947021405384225, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1385.1745484301168, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20886.479152702683, + "CAT": 0.0, + "CB": 305.95888844036403, + "CBOE": 0.0, + "CBRE": 5316.556265570728, + "CCI": 311.7444156667219, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 398.4176106615471, + "CE": -2.6998899936263113e-14, + "CEG": 35027.91479621708, + "CF": 9895.96811418644, + "CFG": 0.0, + "CHD": 2463.326201259498, + "CHRW": 0.0, + "CHTR": 6190.347241364475, + "CI": 3.987900362897654e-13, + "CINF": 0.015466764106677144, + "CL": 9.951375693815397, + "CLX": 15.103204204385754, + "CMCSA": 6370.610596520867, + "CME": 4851.355547241729, + "CMG": 5096.905669567215, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 951.8981608366228, + "CNP": 0.0, + "COF": 9302.200376052573, + "COO": 0.0, + "COP": 0.0, + "COR": 3430.1459566507215, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 708.0014300054575, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7913.296869727614, + "CRWD": 1813.8748087002662, + "CSCO": 7014.219238545499, + "CSGP": -8.023530779229742e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10747.611803536218, + "CTVA": 111.83187373611517, + "CVS": 0.0, + "CVX": -5.687606602021994e-13, + "CZR": 8409.71278497874, + "D": 0.0, + "DAL": 642.6883268615335, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0885409920046964e-13, + "DECK": 874.2585376025982, + "DFS": 3777.294936340903, + "DG": 0.0, + "DGX": 0.0, + "DHI": -8.020403017808382, + "DHR": 1902.9191025272003, + "DIS": -4.005722169446134, + "DLR": 2.94701517237878e-14, + "DLTR": 1040.6845887915201, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.249924005984138, + "DRI": 2.388563870536315, + "DTE": 0.0, + "DUK": 1.2390133368559795, + "DVA": 3446.663017175222, + "DVN": 0.0, + "DXCM": 4808.942797778503, + "EA": 3934.9312265879184, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.659872075570679e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.20499048922349e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 4016.429128766298, + "EOG": 0.0, + "EPAM": 5840.752760818718, + "EQIX": 780.9558304712994, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1371432534504669, + "EXPE": 4199.480407944297, + "EXR": 5.849625346439028e-14, + "F": 0.0, + "FANG": 13998.712572192971, + "FAST": 3351.96947096743, + "FCX": 0.0, + "FDS": 1221.3757706492224, + "FDX": 6339.703680270607, + "FE": 0.0, + "FFIV": 2810.9291499860865, + "FI": 2.5703324068631726e-13, + "FICO": 1544.690742622925, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.841917202993016e-14, + "FTNT": 5868.36184408522, + "FTV": 0.0, + "GD": 3.83569542432468e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1730.361501921456, + "GEN": 0.0, + "GEV": 19170.249920745264, + "GILD": 8480.54537285864, + "GIS": 7769.597469870688, + "GL": 0.3103899353803774, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23229.55653905915, + "GOOGL": 2167.6615910376663, + "GPC": 0.0, + "GPN": -1.0533119591557563e-13, + "GRMN": 2321.612741865055, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1606602130628396, + "HBAN": 0.0, + "HCA": 6191.474444529335, + "HD": 8824.596587021535, + "HES": 0.0, + "HIG": 5881.77566619045, + "HII": 0.7628591464655755, + "HLT": -1.3487794911841432e-13, + "HOLX": 2884.315972529674, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10756.748422699855, + "HUBB": 1.2974699250813087e-13, + "HUM": 1138.2660595761029, + "HWM": 2222.080060694423, + "IBM": 0.0, + "ICE": 747.6565965484722, + "IDXX": -9.739571644338342, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4288.029343453095, + "INTC": 217.21953434487165, + "INTU": 1262.766071559845, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04562517198220146, + "IRM": 0.0, + "ISRG": 6607.466667608923, + "IT": 7.819304907159918e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2504.9999054065643, + "JCI": 0.0, + "JKHY": 852.2562162387524, + "JNJ": 13731.841232191995, + "JNPR": 0.0, + "JPM": 2575.232409822126, + "K": 466.48820632917904, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 773.9240485835318, + "KMB": 4680.83044351459, + "KMI": 0.0, + "KMX": 1.1747257984090496, + "KO": 202.64595351456543, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.22612594215104603, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6831073084320143, + "LKQ": 4487.571996585478, + "LLY": 1.4041241878110187, + "LMT": 8402.5270611337, + "LNT": 0.0, + "LOW": -2.8225721075342e-13, + "LRCX": 858.6306628886048, + "LULU": 1545.4569723308027, + "LUV": 27.375633615294397, + "LVS": 1724.0265438681404, + "LW": 20.571741166901795, + "LYB": 3570.806488347248, + "LYV": 2814.997017525314, + "MA": 29679.042859815447, + "MAA": 0.0, + "MAR": -5.880788240852681e-13, + "MAS": 0.0, + "MCD": 10252.298309729127, + "MCHP": 2289.4673963892674, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3004680343991601, + "MET": -0.036570934682810745, + "META": 22106.94527965531, + "MGM": 3863.9971340652473, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 6075.281891369233, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5224.726634660586, + "MO": -22.492508838266875, + "MOH": 2002.4549947379533, + "MOS": 0.0, + "MPC": 15100.935230069426, + "MPWR": -9.41198087674292e-13, + "MRK": 5708.691893847692, + "MRNA": 7546.8811443297645, + "MRO": 0.0, + "MS": 6257.180304416962, + "MSCI": 3752.9624424388285, + "MSFT": 37920.931921511496, + "MSI": 0.0, + "MTB": -6.594708274030216, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3649.0659583745282, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16483.99559534296, + "NI": 0.0, + "NKE": -3.002793374228886e-14, + "NOC": -4.3166456589583946e-13, + "NOW": 5620.707407250043, + "NRG": 0.0, + "NSC": -2.9733004057276393e-14, + "NTAP": 5747.2317077457465, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 133071.21647383392, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7972.7482996834, + "O": 0.0, + "ODFL": 2434.1598822227975, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.793477041958176, + "ORCL": 7250.688539965251, + "ORLY": -0.7950842938751399, + "OTIS": 1581.4098668307925, + "OXY": 0.0, + "PANW": 5914.127569901691, + "PARA": 2074.379310054951, + "PAYC": 0.0, + "PAYX": 377.3765140451693, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 10681.667405613782, + "PFE": 0.0, + "PFG": 165.23337135930348, + "PG": 1.08000763619943, + "PGR": 8241.557453017202, + "PH": 0.0, + "PHM": -12.582393711216785, + "PKG": -5.195776548872603e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -61.840636200273316, + "POOL": 1448.4339009725854, + "PPG": -0.406433576082875, + "PPL": 0.0, + "PRU": 389.869086510181, + "PSA": 0.0, + "PSX": 1887.1516458360582, + "PTC": 2.5995989999581754e-14, + "PWR": -5.014392888543125, + "PYPL": 0.0, + "QCOM": 4318.507896036315, + "QRVO": 0.0, + "RCL": 1831.3991431017853, + "REG": 0.0, + "REGN": 1092.350467873429, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 374.7732006702891, + "ROK": 1.2171027188432562, + "ROL": 0.0, + "ROP": 5440.059083565415, + "ROST": 1130.7143863505637, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6245.57729835117, + "SBUX": 8421.841445739168, + "SCHW": 1.7515021265570259, + "SHW": 1.499932092536604, + "SJM": 1.0034818242384793, + "SLB": 0.0, + "SMCI": 11244.48809545839, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.62587928420555, + "SOLV": -1.6041258864927006e-12, + "SPG": 0.0, + "SPGI": -5.830249467323416, + "SRE": 0.0, + "STE": 0.5160767580090777, + "STLD": -2.810270465264069e-14, + "STT": 342.11904702972106, + "STX": -13.458846486583402, + "STZ": -2.1004376472115727, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.8245711741913295, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4713.93042422964, + "TDY": -16.273767655163034, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 446.2313628239206, + "TMO": 0.0, + "TMUS": 7271.679568674248, + "TPR": 2670.5504403014806, + "TRGP": 402.09915031024497, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.774797984541812e-12, + "TSLA": 102798.26720401985, + "TSN": 5102.267309516243, + "TT": 0.0, + "TTWO": 745.600014476243, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4095.504787098822, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3357.32967067875, + "UNH": 17968.650466744733, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -1211.8652704897843, + "V": 1546.2292978662483, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 10074.318696682121, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2968.6287798898093, + "VRTX": 1959.0269319673714, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.2002967010169737e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.795082232693735, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4147388894726205, + "WMB": 0.0, + "WMT": 11974.062150317654, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2858.9025225059204, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 52a7fed80..52016e74d 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -69814,5 +69814,510 @@ "ZBH": 3.581257368319614e-09, "ZBRA": 2.2422427180389914e-09, "ZTS": 8.920827193509692e-09 + }, + "2024-07-29 13:30:00+00:00": { + "A": 2.138960527419953e-09, + "AAL": 0.0005355330794557978, + "AAPL": 0.038782022446903645, + "ABBV": 0.00481692635988729, + "ABNB": 1.6128241608441746e-09, + "ABT": 0.0028030241054389986, + "ACGL": 5.695078658171936e-09, + "ACN": 7.18880513885421e-09, + "ADBE": 0.009267319767973167, + "ADI": 9.153324832931214e-09, + "ADM": 5.135186795136971e-09, + "ADP": 8.299527747001082e-09, + "ADSK": 7.438122572287788e-09, + "AEE": 2.39911316677639e-09, + "AEP": 2.3266290191446767e-09, + "AES": 1.096340135544091e-09, + "AFL": 0.003072928755522806, + "AIG": 1.954902232475625e-09, + "AIZ": 6.936928121583964e-09, + "AJG": 4.517076799135336e-09, + "AKAM": 6.310433593624344e-09, + "ALB": 8.565136060307829e-10, + "ALGN": 0.0009134707925196035, + "ALL": 5.788341282415037e-09, + "ALLE": 2.0381130043877666e-09, + "AMAT": 0.0017392695036245647, + "AMCR": 6.169424034294004e-10, + "AMD": 0.023735926096318145, + "AME": 2.230534642141175e-09, + "AMGN": 0.005014542802567651, + "AMP": 1.8617779690055224e-08, + "AMT": 0.000556189478289321, + "AMZN": 0.03131671557896343, + "ANET": 0.002968722619594349, + "ANSS": 0.00018406010779407883, + "AON": 1.0213866216479206e-08, + "AOS": 1.8139876410684031e-09, + "APA": 1.4165553553866776e-09, + "APD": 4.543710498743095e-09, + "APH": 2.4375612152500846e-08, + "APTV": 3.967726981931801e-09, + "ARE": 1.6448556125590672e-09, + "ATO": 2.782790767451888e-09, + "AVB": 2.466463953820595e-09, + "AVGO": 0.01764772983549167, + "AVY": 2.5586494622196967e-09, + "AWK": 4.924002191213726e-09, + "AXON": 0.00422686793031255, + "AXP": 4.429670301998935e-09, + "AZO": 2.601252688882229e-08, + "BA": 1.1574438845248572e-08, + "BAC": 3.047781853470151e-09, + "BALL": 5.891891410965309e-09, + "BAX": 3.864886609849971e-09, + "BBWI": 3.0466871951774066e-09, + "BBY": 0.00044868196030409745, + "BDX": 5.723443850667732e-09, + "BEN": 0.0001604834823287852, + "BF-B": 4.45426050369141e-09, + "BG": 0.0009393180259315352, + "BIIB": 0.001807808741070465, + "BIO": 2.307337998583536e-09, + "BK": 2.7165564790763693e-09, + "BKNG": 0.0017636045259294736, + "BKR": 1.4429090729257615e-09, + "BLDR": 0.00047088310498365036, + "BLK": 4.301956908979281e-08, + "BMY": 8.700898937718572e-05, + "BR": 3.884874150253646e-09, + "BRK-B": 5.57447558532289e-09, + "BRO": 2.849800838819271e-08, + "BSX": 4.259351325749968e-09, + "BWA": 2.7484702841052222e-09, + "BX": 0.001198165848524675, + "BXP": 1.7969751757236838e-09, + "C": 3.6869901622384626e-09, + "CAG": 5.6360482549603445e-09, + "CAH": 4.624190832532163e-09, + "CARR": 0.018070748886862352, + "CAT": 1.556129735669796e-09, + "CB": 0.00023083172190022392, + "CBOE": 1.4847119425896403e-08, + "CBRE": 0.0045997658193358505, + "CCI": 0.0002697202167998518, + "CCL": 1.8613090868998074e-09, + "CDNS": 7.786285021973594e-09, + "CDW": 0.00034472649944488454, + "CE": 4.068522177050319e-09, + "CEG": 0.03030576551704536, + "CF": 0.008561875418231044, + "CFG": 3.2022136634891066e-09, + "CHD": 0.0021312354290864404, + "CHRW": 6.061226316627312e-09, + "CHTR": 0.004939486657475694, + "CI": 1.3482537513016257e-08, + "CINF": 1.2084977323805212e-08, + "CL": 8.463769760037587e-06, + "CLX": 6.421198843127787e-08, + "CMCSA": 0.005511779421314424, + "CME": 0.004197350589470952, + "CMG": 0.004409781865872026, + "CMI": 2.200132535339663e-09, + "CMS": 2.079718085725753e-09, + "CNC": 0.0008235708297282655, + "CNP": 1.940484795233302e-09, + "COF": 0.008048098603411661, + "COO": 4.696002388067819e-09, + "COP": 3.4948400194367467e-09, + "COR": 0.0029379827533524525, + "COST": 4.617757783080709e-09, + "CPAY": 1.016170349856024e-08, + "CPB": 7.303957591451312e-09, + "CPRT": 0.0006125517828811889, + "CPT": 2.1270037224771005e-09, + "CRL": 1.201110715915661e-09, + "CRM": 0.0068464000883057645, + "CRWD": 0.0015276129795901484, + "CSCO": 0.006068631001143644, + "CSGP": 4.9602269265458726e-09, + "CSX": 4.678105779814503e-09, + "CTAS": 4.932570166445892e-09, + "CTLT": 2.5391437956210907e-09, + "CTRA": 1.3795900250585991e-09, + "CTSH": 0.00921717052118111, + "CTVA": 9.675632329745709e-05, + "CVS": 3.9038249315603585e-09, + "CVX": 5.182723719464321e-09, + "CZR": 0.007275984672229427, + "D": 3.5995697503814292e-09, + "DAL": 0.0005560468600011931, + "DAY": 1.7508215054647495e-09, + "DD": 2.897381565730565e-09, + "DE": 4.7380213655991765e-09, + "DECK": 0.0008509549071365706, + "DFS": 0.003268079666640033, + "DG": 2.3517583449511286e-09, + "DGX": 6.532345198765786e-09, + "DHI": 1.58901643776916e-08, + "DHR": 0.0014466172817859933, + "DIS": 5.2594990335136175e-09, + "DLR": 3.785690376093172e-09, + "DLTR": 0.0009004013802775513, + "DOC": 1.115347604489503e-09, + "DOV": 2.39499746242524e-09, + "DOW": 2.758482671698088e-09, + "DPZ": 1.5643912599166916e-08, + "DRI": 2.04505654339107e-06, + "DTE": 2.6805641480450738e-09, + "DUK": 1.5983894249718818e-08, + "DVA": 0.0029816214043271107, + "DVN": 1.4350330756080283e-09, + "DXCM": 0.004160649862059156, + "EA": 0.003385511548589693, + "EBAY": 3.0459144988905482e-09, + "ECL": 2.856891822342179e-09, + "ED": 3.945989874260519e-09, + "EFX": 2.4261497410619473e-09, + "EG": 1.091683701092657e-08, + "EIX": 3.924707106726375e-09, + "EL": 2.682969782185613e-09, + "ELV": 9.262349917180786e-09, + "EMN": 2.078569954217683e-09, + "EMR": 1.4095688590204788e-09, + "ENPH": 0.003474976726979388, + "EOG": 3.4062507467751794e-09, + "EPAM": 0.005053349033359406, + "EQIX": 0.000545982820608881, + "EQR": 2.4507939481437802e-09, + "EQT": 8.999186279119952e-10, + "ES": 2.0388745502985223e-09, + "ESS": 3.2800745808382495e-09, + "ETN": 1.21835783401959e-09, + "ETR": 3.728432175043839e-09, + "ETSY": 5.607249981726851e-09, + "EVRG": 1.3946811611967126e-09, + "EW": 3.1509553354237647e-09, + "EXC": 2.769770543326509e-09, + "EXPD": 9.238088275343671e-09, + "EXPE": 0.0036196681921374786, + "EXR": 6.5104084374000304e-09, + "F": 1.2503268209610158e-09, + "FANG": 0.012111508045636024, + "FAST": 0.0029000809725343198, + "FCX": 1.4500579951199829e-09, + "FDS": 0.0009594226212950434, + "FDX": 0.005379330989374354, + "FE": 2.3760609808567465e-09, + "FFIV": 0.002421146401852283, + "FI": 9.273779759602754e-09, + "FICO": 0.0013366280653449754, + "FIS": 3.4368247455991874e-09, + "FITB": 4.515810301021961e-09, + "FMC": 2.8888829790917603e-09, + "FOX": 1.6243571933659266e-09, + "FOXA": 2.2321142204409078e-09, + "FRT": 1.9288488462752194e-09, + "FSLR": 1.1733292695525662e-09, + "FTNT": 0.005077239025760585, + "FTV": 1.3403188295787297e-09, + "GD": 8.014934255901784e-09, + "GDDY": 1.0072190289316485e-08, + "GE": 2.2906239299828207e-09, + "GEHC": 0.0014970573037288205, + "GEN": 1.8720981632540783e-09, + "GEV": 0.01720151818525267, + "GILD": 0.007218708468659225, + "GIS": 0.006722167361479789, + "GL": 7.3647313505211235e-09, + "GLW": 2.4295192776166534e-09, + "GM": 2.1193957311957828e-09, + "GNRC": 1.9702533386007312e-09, + "GOOG": 0.020098045497943924, + "GOOGL": 0.0018754783925037561, + "GPC": 4.3193759620411346e-09, + "GPN": 8.442089315445972e-09, + "GRMN": 0.002008626617608474, + "GS": 4.512890448266388e-09, + "GWW": 1.7576058543660251e-09, + "HAL": 1.5227923796735264e-09, + "HAS": 9.925217788768577e-07, + "HBAN": 1.4319931283731928e-09, + "HCA": 0.005252008434040403, + "HD": 0.007634904954370195, + "HES": 3.513083261770014e-09, + "HIG": 0.005088677422341881, + "HII": 1.601573082223884e-08, + "HLT": 6.671991467114222e-09, + "HOLX": 0.002495466510839541, + "HON": 2.9414437780438184e-09, + "HPE": 1.2777735311634494e-09, + "HPQ": 1.8328489680886953e-09, + "HRL": 4.911135192184009e-09, + "HSIC": 4.821799867873108e-09, + "HST": 1.7099825595617655e-09, + "HSY": 0.009306249943775899, + "HUBB": 8.329673015577379e-10, + "HUM": 0.0009541540035526788, + "HWM": 0.001922527801432866, + "IBM": 2.3625590884425348e-09, + "ICE": 0.0006468601115938593, + "IDXX": 7.276549843084369e-09, + "IEX": 2.3479734484039703e-09, + "IFF": 2.6315034776244155e-09, + "INCY": 0.0037099366050200987, + "INTC": 0.00018793563115731594, + "INTU": 0.001098212672369051, + "INVH": 1.4151221093177057e-09, + "IP": 2.1107493146647742e-09, + "IPG": 3.826424283821791e-09, + "IQV": 2.193548408726826e-09, + "IR": 1.3468343249217864e-08, + "IRM": 3.566859641785028e-09, + "ISRG": 0.005690675970352921, + "IT": 8.815549095013808e-09, + "ITW": 3.0739180352725987e-09, + "IVZ": 1.8676998303631074e-09, + "J": 3.40777262054e-09, + "JBHT": 4.001640613026756e-09, + "JBL": 0.0021673502285978804, + "JCI": 1.5229031580120635e-09, + "JKHY": 0.0007373887756577264, + "JNJ": 0.011880560736738998, + "JNPR": 2.689132136882011e-09, + "JPM": 0.0022265278354349893, + "K": 0.0004035986626332878, + "KDP": 1.8507166430787705e-09, + "KEY": 1.2286891771806844e-09, + "KEYS": 2.9360175117331128e-09, + "KHC": 9.31540970626727e-10, + "KIM": 1.533366636605119e-09, + "KKR": 6.586743082683959e-09, + "KLAC": 0.000676433748684527, + "KMB": 0.004049712218822821, + "KMI": 7.452969372594814e-10, + "KMX": 1.6157571365187122e-08, + "KO": 0.00017532034607070808, + "KR": 8.103376624095908e-09, + "KVUE": -3.0588523254026976e-10, + "L": 3.920559354616816e-09, + "LDOS": 1.4642454512669183e-08, + "LEN": 1.0264434461115743e-08, + "LH": 2.0439257644862808e-09, + "LHX": 4.0199373627954506e-09, + "LIN": 1.551236809047315e-08, + "LKQ": 0.0038825569239320065, + "LLY": 1.1126067208677996e-08, + "LMT": 0.007123552001838085, + "LNT": 1.836753417584305e-09, + "LOW": 7.317740479235235e-09, + "LRCX": 0.0007194142725508105, + "LULU": 0.0013371352690648866, + "LUV": 2.368604034897413e-05, + "LVS": 0.001491604848229866, + "LW": 1.3312916944564762e-08, + "LYB": 0.0030713539010885694, + "LYV": 0.002435505573460113, + "MA": 0.02562294370276276, + "MAA": 2.5771884698991624e-09, + "MAR": 6.808468126461963e-09, + "MAS": 2.780478805845805e-09, + "MCD": 0.008859885805163267, + "MCHP": 0.001980838619848843, + "MCK": 1.5315764048337047e-08, + "MCO": 2.552736702229178e-09, + "MDLZ": 3.0042488761198767e-09, + "MDT": 1.1155333902645332e-06, + "MET": 3.965836561495207e-09, + "META": 0.01892976320078093, + "MGM": 0.0033430749059081095, + "MHK": 2.5029905279423447e-09, + "MKC": 3.6154240812866194e-09, + "MKTX": 0.005157375326100203, + "MLM": 1.8495084296136324e-09, + "MMC": 2.7245278089877425e-09, + "MMM": 2.433964528400885e-09, + "MNST": 0.004520374295838527, + "MO": 3.2578321108384578e-09, + "MOH": 0.0017324520872495069, + "MOS": 1.1180323064441278e-09, + "MPC": 0.012980598825198192, + "MPWR": 2.499770925469318e-08, + "MRK": 0.004939056415693469, + "MRNA": 0.0065143104139189795, + "MRO": 7.566157382686165e-10, + "MS": 0.005413627233817265, + "MSCI": 0.0031773541780340036, + "MSFT": 0.032807422363958304, + "MSI": 5.655141234040203e-09, + "MTB": 1.1246925081219303e-08, + "MTCH": 8.36927556815423e-09, + "MTD": 4.8768821186691646e-09, + "MU": 0.0032061416932268275, + "NCLH": 2.4629631626175998e-09, + "NDAQ": 4.27025846721188e-09, + "NDSN": 2.375183774921149e-09, + "NEE": 1.8443233002253225e-09, + "NEM": 1.3820513373522523e-09, + "NFLX": 0.014261655851720102, + "NI": 1.5867164548000362e-09, + "NKE": 1.0982394065079977e-08, + "NOC": 1.756318710323019e-08, + "NOW": 0.00489267413021013, + "NRG": 9.302794357065001e-10, + "NSC": 5.8242262687628e-09, + "NTAP": 0.004972347116522447, + "NTRS": 2.4434779336456732e-09, + "NUE": 4.745937602832403e-09, + "NVDA": 0.11689988630334677, + "NVR": 0.0011218113916039063, + "NWS": 1.0196982708293346e-09, + "NWSA": 1.0047246265544356e-09, + "NXPI": 0.006793507392788924, + "O": 4.892831072465111e-09, + "ODFL": 0.0020204246130411958, + "OKE": 2.6999032409285252e-09, + "OMC": 2.8317688891494956e-09, + "ON": 4.4518707304488385e-09, + "ORCL": 0.006273211313320102, + "ORLY": 1.4984553374732608e-08, + "OTIS": 0.0013681970052958556, + "OXY": 1.9690372386248666e-09, + "PANW": 0.005116884144812676, + "PARA": 0.0017947287509807435, + "PAYC": 1.0656648648145842e-08, + "PAYX": 0.00028390925049773106, + "PCAR": 5.034689896198552e-09, + "PCG": 1.4995840258594154e-09, + "PEG": 3.0017263631347834e-09, + "PEP": 0.009025111519446995, + "PFE": 3.482767433443543e-09, + "PFG": 0.00013749728597264489, + "PG": 8.71130631781677e-09, + "PGR": 0.007130509766483848, + "PH": 1.8087205619971543e-09, + "PHM": 7.33994865348463e-09, + "PKG": 7.43808165968515e-09, + "PLD": 3.242042907852012e-09, + "PM": 6.176784254663306e-09, + "PNC": 5.824392460719013e-09, + "PNR": 1.2721792689542614e-09, + "PNW": 2.210852917353277e-09, + "PODD": 1.1909585395396868e-08, + "POOL": 0.001223697480131889, + "PPG": 4.20289743612686e-09, + "PPL": 2.3228691763355857e-09, + "PRU": 0.0002582328068246741, + "PSA": 2.487658234023202e-09, + "PSX": 0.001367318737934256, + "PTC": 5.4851471595009855e-09, + "PWR": 5.2789143341800505e-09, + "PYPL": 1.2744728473856373e-09, + "QCOM": 0.003741067795758831, + "QRVO": 9.80656360548577e-10, + "RCL": 0.0015593030543900102, + "REG": 2.388386786158429e-09, + "REGN": 0.0009450588802630205, + "RF": 1.99062809363549e-09, + "RJF": 4.680088934273244e-09, + "RL": 2.750855075752836e-09, + "RMD": 0.00032658452420333475, + "ROK": 4.247816009073755e-09, + "ROL": 2.2418098930121934e-09, + "ROP": 0.004532814687042825, + "ROST": 0.0009782761402916998, + "RSG": 5.272393862291433e-09, + "RTX": 6.395251806961536e-09, + "RVTY": 1.700534185418934e-09, + "SBAC": 0.0053866342906720745, + "SBUX": 0.007286476780616309, + "SCHW": 3.528959959757155e-08, + "SHW": 2.1604834824682177e-08, + "SJM": 2.2558746199333814e-08, + "SLB": 1.5022954625516912e-09, + "SMCI": 0.009661606719874505, + "SNA": 2.397929997955925e-09, + "SNPS": 2.164875910034519e-09, + "SO": 8.186409653242358e-06, + "SOLV": -7.19255599550639e-10, + "SPG": 2.6264871334422686e-09, + "SPGI": 4.089852181086034e-09, + "SRE": 3.6075594737612e-09, + "STE": 4.1247667452130765e-07, + "STLD": 8.202722252857933e-09, + "STT": 0.0002959900425759486, + "STX": 6.659133129268411e-09, + "STZ": 3.2257058286114357e-08, + "SWK": 1.9528093281629465e-09, + "SWKS": 1.6558209565889726e-09, + "SYF": 4.191809228596032e-09, + "SYK": 1.4418815522314802e-08, + "SYY": 5.438649042834379e-09, + "T": 3.3467813927031573e-09, + "TAP": 2.9417207752354072e-09, + "TDG": 0.0042561128038850395, + "TDY": 8.344373062237772e-09, + "TECH": 6.0398398485160744e-09, + "TEL": 4.0487955800191625e-09, + "TER": 1.934079373435287e-09, + "TFC": 2.2786672851838233e-09, + "TFX": 4.675192966905046e-09, + "TGT": 5.4518110971873294e-09, + "TJX": 0.00038606624621472543, + "TMO": 5.645695804911594e-09, + "TMUS": 0.006208605190758666, + "TPR": 0.002310530405924903, + "TRGP": 0.00034771971206658714, + "TRMB": 4.890614253523803e-09, + "TROW": 4.385426942068337e-09, + "TRV": 4.845379573704187e-09, + "TSCO": 6.795029855772451e-09, + "TSLA": 0.08779716018680571, + "TSN": 0.004414411609277919, + "TT": 1.7091633986976068e-09, + "TTWO": 0.0006450947070514193, + "TXN": 3.958126282026716e-09, + "TXT": 1.8500358035036766e-09, + "TYL": 1.5601067892632284e-08, + "UAL": 0.0035433882927984823, + "UBER": 3.128531127010011e-09, + "UDR": 1.5709240693425338e-09, + "UHS": 3.173047015622285e-09, + "ULTA": 0.002832422812389515, + "UNH": 0.015544990448241756, + "UNP": 5.7528132957742936e-09, + "UPS": 1.7935858467769823e-09, + "URI": 3.5364874350988314e-09, + "USB": 2.259818880823647e-09, + "USDOLLAR": 1.6867935503819646e-07, + "V": 0.0013328265283553814, + "VICI": 2.015903298031136e-09, + "VLO": 9.363271930647452e-09, + "VLTO": 0.009522811637791782, + "VMC": 1.177814869427184e-09, + "VRSK": 5.59217198656052e-09, + "VRSN": 0.00255965269371052, + "VRTX": 0.0016948841594135434, + "VST": 1.0973733065794303e-09, + "VTR": 3.8292030000877425e-09, + "VTRS": 1.5691323469935956e-09, + "VZ": 4.312203290869882e-09, + "WAB": 1.6474594459132237e-09, + "WAT": 5.512592437035176e-09, + "WBA": 8.61232979163707e-10, + "WBD": 4.920136651202173e-10, + "WDC": 2.6747324645546075e-09, + "WEC": 4.6633805308751705e-09, + "WELL": 3.1182665570418303e-09, + "WFC": 6.103475137943589e-09, + "WM": 1.9543776924519906e-08, + "WMB": 6.7109291122914624e-09, + "WMT": 0.01035981851021164, + "WRB": 4.831156441223765e-09, + "WST": 2.3339343403935303e-09, + "WTW": 3.955944197553892e-09, + "WY": 1.3408292244079525e-09, + "WYNN": 0.002454547822960216, + "XEL": 2.552960332102095e-09, + "XOM": 4.632980725901042e-09, + "XYL": 3.054427833102682e-09, + "YUM": 6.885314616652394e-09, + "ZBH": 2.3169978689087523e-09, + "ZBRA": 1.4593132104707384e-09, + "ZTS": 5.4304095645647575e-09 } } \ No newline at end of file From 4ea01b6c4c0b43380fdcf0f3d52d482381f130aa Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 30 Jul 2024 11:31:17 +0400 Subject: [PATCH 089/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-30 --- .../ftse100_daily_initial_holdings.json | 105 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 +++++++++++++++++ 2 files changed, 207 insertions(+), 1 deletion(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 742d6a97e..4cd2198f7 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11597,7 +11597,7 @@ "SDR.L": 10559.491454953797, "SGE.L": 39386.92233860931, "SGRO.L": 0.0, - "SHEL.L": 2919.4999999999995, + "SHEL.L": 2806.0, "SMDS.L": 10737.367268890008, "SMIN.L": 0.0, "SMT.L": 10156.187338338908, @@ -11616,5 +11616,108 @@ "WEIR.L": 9903.962939162602, "WPP.L": 10713.193292782293, "WTB.L": 11841.059690982554 + }, + "2024-07-30 07:00:00+00:00": { + "AAF.L": 21494.34195840801, + "AAL.L": 10236.039197965216, + "ABF.L": 9894.706322629349, + "ADM.L": 10643.597540338424, + "AHT.L": 16332.90096248479, + "ANTO.L": 18068.1785276464, + "AUTO.L": 10308.523239613121, + "AV.L": 18114.899677300982, + "AZN.L": 12498.911133347157, + "BA.L": 10332.181886914877, + "BARC.L": 10407.65974569191, + "BATS.L": 11565.295736412281, + "BDEV.L": 10417.440826681468, + "BEZ.L": 10029.668538443033, + "BKG.L": 10160.60770068365, + "BME.L": 10266.753012673835, + "BNZL.L": 9762.802829904422, + "BP.L": 1.436458619261538e-12, + "BRBY.L": 10132.099594692312, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10454.372205022339, + "CPG.L": 0.0, + "CRDA.L": 11911.63635686812, + "CTEC.L": 43.724654022455255, + "DARK.L": 25986.351006189976, + "DCC.L": 21312.287403299157, + "DGE.L": 9720.35296547159, + "DPLM.L": 8705.259113300268, + "EDV.L": 6899.619679380875, + "ENT.L": 9494.80786047982, + "EXPN.L": 10796.276694950384, + "EZJ.L": 8979.560949845463, + "FCIT.L": 0.0, + "FRAS.L": 10509.864719154793, + "FRES.L": 10899.02013391737, + "GBPOUND": 2239.5693462221, + "GLEN.L": 9432.68553783283, + "GSK.L": 11101.301414024954, + "HIK.L": 9561.95012921133, + "HL.L": 9972.163785259327, + "HLMA.L": 10233.929372987817, + "HLN.L": 0.0, + "HSBA.L": 10220.803225234735, + "HWDN.L": 10417.367972614416, + "IAG.L": 10320.071520232836, + "ICG.L": 10661.925121167442, + "IHG.L": 16089.694235659206, + "III.L": 9155.611292130017, + "IMB.L": 10915.80241598351, + "IMI.L": 9320.202772077391, + "INF.L": 10542.925243229764, + "ITRK.L": 10029.94202341056, + "JD.L": 11363.933595536553, + "KGF.L": 10238.156996605565, + "LAND.L": 0.0, + "LGEN.L": 10606.265084436918, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28628.77569689158, + "MKS.L": 0.0, + "MNDI.L": 9675.034798535953, + "MNG.L": 10514.872248350985, + "MRO.L": 45033.08474914365, + "NG.L": 10074.501820790018, + "NWG.L": 10526.686429179865, + "NXT.L": 8902.758228476814, + "PHNX.L": 0.0, + "PRU.L": 10653.533572692671, + "PSH.L": 48875.03469992468, + "PSN.L": 11201.476496487754, + "PSON.L": 1064.1574241499004, + "REL.L": 11037.322180070667, + "RIO.L": 10478.324853323691, + "RKT.L": 8455.630204476269, + "RMV.L": 11744.536126948444, + "RR.L": 10519.115579649038, + "RTO.L": 10592.993226363009, + "SBRY.L": 0.0, + "SDR.L": 10451.299942453385, + "SGE.L": 37518.26595865687, + "SGRO.L": 0.0, + "SHEL.L": 5568.000000000001, + "SMDS.L": 10211.527181282006, + "SMIN.L": 0.0, + "SMT.L": 10025.979808360207, + "SN.L": 3459.682026133454, + "SPX.L": 8781.803198797414, + "SSE.L": 11355.458093627427, + "STAN.L": 11006.547851433928, + "SVT.L": 10313.975570606872, + "TSCO.L": 10369.472648771494, + "TW.L": 10399.751558690647, + "ULVR.L": 9562.274983210773, + "UTG.L": 10629.6092972483, + "UU.L": 10527.081468683073, + "VOD.L": 10395.74103377956, + "VTY.L": 11065.955280745624, + "WEIR.L": 9745.703737557427, + "WPP.L": 10519.495049301546, + "WTB.L": 11597.666891579005 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index b287c23b0..4b5462311 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11225,5 +11225,108 @@ "WEIR.L": 0.009999997326036219, "WPP.L": 0.009999994817594194, "WTB.L": 0.00999998356217738 + }, + "2024-07-30 07:00:00+00:00": { + "AAF.L": 0.020661978223768192, + "AAL.L": 0.009999999735996556, + "ABF.L": 0.00992637377926011, + "ADM.L": 0.010000022056636733, + "AHT.L": 0.01576256667534307, + "ANTO.L": 0.01740917643855468, + "AUTO.L": 0.010000002250055968, + "AV.L": 0.017692884378956893, + "AZN.L": 0.01000001025449457, + "BA.L": 0.010000002465022036, + "BARC.L": 0.010000000314063687, + "BATS.L": 0.010000002186220523, + "BDEV.L": 0.01000000202765659, + "BEZ.L": 0.010000002518761118, + "BKG.L": 0.010000001396667856, + "BME.L": 0.009999996257103357, + "BNZL.L": 0.0099999958542616, + "BP.L": 1.1444614997639412e-07, + "BRBY.L": 0.00999999427505558, + "BT-A.L": 9.986853189629865e-09, + "CCH.L": 1.0753532856101398e-07, + "CNA.L": 0.009999997296287493, + "CPG.L": 1.8546236263932973e-07, + "CRDA.L": 0.009999999124739627, + "CTEC.L": 4.2029484440928934e-05, + "DARK.L": 0.02510534601193902, + "DCC.L": 0.020347483367005113, + "DGE.L": 0.009372986389704737, + "DPLM.L": 0.010000002921884464, + "EDV.L": 0.006723930968896222, + "ENT.L": 0.010000004833484248, + "EXPN.L": 0.010000000988572373, + "EZJ.L": 0.008632084632923172, + "FCIT.L": 1.2656610041117754e-08, + "FRAS.L": 0.010000002024955167, + "FRES.L": 0.009999999860077277, + "GBPOUND": 5.981393413250283e-08, + "GLEN.L": 0.009067409840631195, + "GSK.L": 0.009999997904829383, + "HIK.L": 0.010000000872012194, + "HL.L": 0.01000000156439792, + "HLMA.L": 0.01000000078611137, + "HLN.L": 8.505571950476559e-09, + "HSBA.L": 0.009999999355859381, + "HWDN.L": 0.01000000025119218, + "IAG.L": 0.009999895208453655, + "ICG.L": 0.010000004395436862, + "IHG.L": 0.014927888435638045, + "III.L": 0.010000001736902405, + "IMB.L": 0.010000005912032746, + "IMI.L": 0.009999993014046542, + "INF.L": 0.009999989238344217, + "ITRK.L": 0.009999999389308583, + "JD.L": 0.010923200627178676, + "KGF.L": 0.009999991421641555, + "LAND.L": 7.371402559660088e-09, + "LGEN.L": 0.010000000172244708, + "LLOY.L": 3.756188605422e-08, + "LMP.L": 1.807837851991721e-08, + "LSEG.L": 0.02728976479440729, + "MKS.L": 1.9645907713202677e-08, + "MNDI.L": 0.009999999157310209, + "MNG.L": 0.010000001323682176, + "MRO.L": 0.04328921850776908, + "NG.L": 0.009999988750697044, + "NWG.L": 0.009999997744462688, + "NXT.L": 0.010000002790302226, + "PHNX.L": 1.2617086450718089e-08, + "PRU.L": 0.009999999068078445, + "PSH.L": 0.04649866952645148, + "PSN.L": 0.01000000114182879, + "PSON.L": 0.0010308773252375113, + "REL.L": 0.00999999852960739, + "RIO.L": 0.010000001295146126, + "RKT.L": 0.009999993719273518, + "RMV.L": 0.01128972373362591, + "RR.L": 0.009999998850485185, + "RTO.L": 0.010000000445947486, + "SBRY.L": 1.9262464604141862e-08, + "SDR.L": 0.009999998302800421, + "SGE.L": 0.03606531310734454, + "SGRO.L": 2.2374104537123466e-08, + "SHEL.L": 0.004568766642072851, + "SMDS.L": 0.009999996747590799, + "SMIN.L": 3.811535898277789e-08, + "SMT.L": 0.009999977658455662, + "SN.L": 0.0033718094563804095, + "SPX.L": 0.009999991184644421, + "SSE.L": 0.009999999670360723, + "STAN.L": 0.009999998547208113, + "SVT.L": 0.010000000722186772, + "TSCO.L": 0.009999999113305558, + "TW.L": 0.00999999761927424, + "ULVR.L": 0.009999987462653721, + "UTG.L": 0.010000008949244164, + "UU.L": 0.009999995900878885, + "VOD.L": 0.009999999883473583, + "VTY.L": 0.010000000464115385, + "WEIR.L": 0.009999998841974738, + "WPP.L": 0.009999997708398134, + "WTB.L": 0.009999992760873887 } } \ No newline at end of file From f5ad34a37ec5005ed89fa5e3076a6b126f68d843 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 30 Jul 2024 13:19:14 +0400 Subject: [PATCH 090/125] readme, removed old text --- README.rst | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/README.rst b/README.rst index df78be800..b9c05efc3 100644 --- a/README.rst +++ b/README.rst @@ -189,18 +189,11 @@ devoted to portfolio optimization (indeed, Cvxportfolio was born out of those). Contributions ------------- -We welcome contributors and you don't need to sign a CLA. If you don't have -a Github account you may also send a -`git patch via email `_ to the -`project maintainer `_. +We welcome contributions and you don't need to sign a CLA. Bug fixes, improvements in the documentations and examples, new constraints, new cost objects, ..., are good contributions and can be done even if you're not familiar with the low-level details on the library. -For more advanced contributions we recommend reading the -`TODOs and roadmap -`_ -file. Development ----------- @@ -292,9 +285,6 @@ Releases are also tagged in our git repository and include a short summary of changes in `their commit messages `_. -We maintain a `document listing the planned changes and target releases -`_. - .. Citing From 57eb9ae747ef95096aa60446426e38bde59ff3b0 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 30 Jul 2024 18:00:47 +0400 Subject: [PATCH 091/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-30 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 4fd1a5a9e..63f31280d 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4851,9 +4851,9 @@ "WMT": 0.0003891803952424087 }, "2024-07-29 13:30:00+00:00": { - "AAPL": 209920.4707292268, + "AAPL": 209879.8488925084, "AMGN": 20709.36272530426, - "AMZN": 224346.59705965556, + "AMZN": 224578.7037984477, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4873,14 +4873,47 @@ "MCD": 1.1952346766378825e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 228516.62057741173, + "MSFT": 228532.50568889422, "NKE": 9.95249449538938e-13, "PG": 0.0, "TRV": 0.0, "UNH": 105534.80893846806, - "USDOLLAR": -194.33244800154316, + "USDOLLAR": -194.33244727784535, "V": 33492.56823962908, "VZ": 0.0, "WMT": 0.0003870745936844139 + }, + "2024-07-30 13:30:00+00:00": { + "AAPL": 212330.03827240903, + "AMGN": 20642.415184109155, + "AMZN": 225528.80105389628, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 81566.91607597812, + "CSCO": 45179.66118534004, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 108835.12495161362, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2303539611427529e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 226462.07613308248, + "NKE": 1.0115853016045873e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 105189.90724431541, + "USDOLLAR": 121.2958460413932, + "V": 33866.96703145679, + "VZ": 0.0, + "WMT": 0.00038541216549894356 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 2ab3915ae..ae3aaa0b6 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4882,5 +4882,38 @@ "V": 0.03167026769743753, "VZ": 4.465284518326225e-09, "WMT": 3.706246641743319e-08 + }, + "2024-07-30 13:30:00+00:00": { + "AAPL": 0.20047123452755677, + "AMGN": 0.019478938580862488, + "AMZN": 0.21281863805511392, + "AXP": 7.79266098535975e-09, + "BA": 1.3559079569667467e-08, + "CAT": 6.705753829851461e-09, + "CRM": 0.07697063178944019, + "CSCO": 0.042633439740887166, + "CVX": 7.520761895432507e-09, + "DIS": 9.761356656252705e-09, + "DOW": 1.0247814283783598e-08, + "GS": 7.985702358943748e-09, + "HD": 0.10270147469753721, + "HON": 4.596082856070411e-09, + "IBM": 3.4179201243240323e-09, + "INTC": 8.55441600856301e-09, + "JNJ": 1.1030904925013901e-08, + "JPM": 1.3088411114389748e-08, + "KO": 8.302668959939235e-09, + "MCD": 2.3580901905377046e-08, + "MMM": 4.7926670853308055e-09, + "MRK": 9.313658185250417e-09, + "MSFT": 0.21370743888148197, + "NKE": 2.1174764076945648e-08, + "PG": 6.225889697973803e-09, + "TRV": 5.539045411874405e-09, + "UNH": 0.09925973495623226, + "USDOLLAR": 1.7685758648729047e-09, + "V": 0.03195823687484012, + "VZ": 4.803476250800606e-09, + "WMT": 4.213353590408512e-08 } } \ No newline at end of file From 61812d82c17bd68591953a84bb9c2b805cfb50b0 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 30 Jul 2024 18:02:24 +0400 Subject: [PATCH 092/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-30 --- .../ndx100_daily_initial_holdings.json | 170 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 241 insertions(+), 33 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index d4c935053..bd369438b 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15183,43 +15183,43 @@ "ZS": 19441.31452499617 }, "2024-07-29 13:30:00+00:00": { - "AAPL": 6261.618867498616, + "AAPL": 6260.4071778604175, "ABNB": 0.0, "ADBE": 12737.85758774272, "ADI": 0.0, "ADP": 0.0, "ADSK": 82.81453088434763, "AEP": 0.0, - "AMAT": -53.38203920322968, + "AMAT": -53.45903331222017, "AMD": -1.7200003118169744e-11, "AMGN": 32240.730186811055, - "AMZN": 20110.711830906715, + "AMZN": 20131.518171627, "ANSS": 11.239829656280232, - "ARM": 59419.35701894339, - "ASML": 15.496939285329193, - "AVGO": -34.53034999089309, + "ARM": 59557.697688503016, + "ASML": 15.52589744416103, + "AVGO": -34.46121160881278, "AZN": 0.0, - "BIIB": 14646.941864799479, + "BIIB": 14619.911635593988, "BKNG": 10526.06831990588, "BKR": 0.0, "CCEP": 15528.226783159389, - "CDNS": -81.97969726954521, + "CDNS": -82.03322810514581, "CDW": 17605.411404014383, "CEG": 65542.3974612593, "CHTR": 18190.768066800472, - "CMCSA": 32067.503141087378, + "CMCSA": 32071.54019014098, "COST": 0.0, "CPRT": -0.8038319647525516, - "CRWD": 5814.9340886856, + "CRWD": 5814.95665477855, "CSCO": 55362.40882801332, "CSGP": 7911.823124122895, - "CSX": 1102.0799560546868, + "CSX": 1099.8399658203118, "CTAS": 0.0, - "CTSH": 26999.769814217074, + "CTSH": 27025.047007371722, "DASH": 0.0, "DDOG": 14658.94901845297, - "DLTR": 25740.03569713757, - "DXCM": 11656.520528739831, + "DLTR": 25705.345772393583, + "DXCM": 11661.90024238155, "EA": 14253.223844163389, "EXC": 0.0, "FANG": 28677.09667233799, @@ -15228,44 +15228,44 @@ "GEHC": 6179.582026224835, "GFS": 21662.17947650242, "GILD": 29051.742175714957, - "GOOG": 1137.6852272130782, - "GOOGL": -2.1948399672685992e-12, + "GOOG": 1137.4850913526152, + "GOOGL": -2.195945636405347e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 8130.676140954498, - "INTC": 1.9979937547887987, + "INTC": 1.9973580438547118, "INTU": 538.1547812334442, "ISRG": 10469.691567166956, - "KDP": 1816.5599670410152, + "KDP": 1818.720016479492, "KHC": 0.0, "KLAC": 19688.655775358402, "LIN": 0.0, "LRCX": -9.610541731518083, - "LULU": 20325.20795039654, + "LULU": 20358.558968953206, "MAR": 0.0, "MCHP": 13445.954086001611, "MDB": 26057.907754045045, "MDLZ": 0.0, "MELI": 21609.12374684164, - "META": -127.73427540214853, - "MNST": 17421.18534986316, + "META": -127.58358170873217, + "MNST": 17428.020023949302, "MRNA": 19464.540515686644, "MRVL": 0.0, - "MSFT": 42.238003352568235, - "MU": 8.125719849005048, + "MSFT": 42.24093948644926, + "MU": 8.143400314566195, "NFLX": 17111.937832935302, - "NVDA": 2857.346936390427, + "NVDA": 2859.107307880651, "NXPI": 19654.36318085113, "ODFL": 9741.348511997277, - "ON": 451.4625527870285, + "ON": 452.0581407102995, "ORLY": 24827.684883332215, "PANW": -7.734031688744077, "PAYX": 9056.86276640494, "PCAR": 0.0, - "PDD": 25863.805944787186, - "PEP": 27685.201437314226, - "PYPL": 3979.260709332104, - "QCOM": -6.852766926984192, + "PDD": 25831.436526290534, + "PEP": 27731.878893954083, + "PYPL": 3980.621636766623, + "QCOM": -6.838073568757264, "REGN": 15110.393264536095, "ROP": 14183.982274962484, "ROST": 8112.449023049208, @@ -15273,17 +15273,121 @@ "SNPS": 0.0, "TEAM": 13288.042188175792, "TMUS": 8325.11916950526, - "TSLA": 5811.198464408793, + "TSLA": 5808.667156131185, "TTD": 36942.47935908831, "TTWO": 10019.60662614017, "TXN": 0.0, - "USDOLLAR": 1049.881711679282, + "USDOLLAR": 1049.8819266481055, "VRSK": 0.0, - "VRTX": 10809.420017511173, - "WBA": 379.5281764906051, + "VRTX": 10806.364093120505, + "WBA": 379.5922685998897, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, "ZS": 18837.459882202074 + }, + "2024-07-30 13:30:00+00:00": { + "AAPL": 5882.345454857061, + "ABNB": 0.0, + "ADBE": 13222.371705747732, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 83.37448049636788, + "AEP": 0.0, + "AMAT": -53.41796926528086, + "AMD": -1.704041701644163e-11, + "AMGN": 31470.50498003033, + "AMZN": 20418.018010617776, + "ANSS": 11.16337122664801, + "ARM": 57546.46874925292, + "ASML": 15.622344808256772, + "AVGO": -34.74683807970931, + "AZN": 0.0, + "BIIB": 14852.094102471303, + "BKNG": 10574.00506061801, + "BKR": 0.0, + "CCEP": 15547.1372502171, + "CDNS": -81.53250816517738, + "CDW": 17830.817280464107, + "CEG": 65102.28771183714, + "CHTR": 18764.00748225462, + "CMCSA": 32014.12777998017, + "COST": 0.0, + "CPRT": -0.8083911068308443, + "CRWD": 5799.897060175004, + "CSCO": 55141.40083293644, + "CSGP": 7835.663315158078, + "CSX": 34.430000305175106, + "CTAS": 0.0, + "CTSH": 26793.36613381768, + "DASH": 0.0, + "DDOG": 13812.530916857122, + "DLTR": 25549.78088649827, + "DXCM": 13311.67932644121, + "EA": 14716.971397318746, + "EXC": 0.0, + "FANG": 28037.62855714009, + "FAST": 20847.027412140418, + "FTNT": 24210.20380092881, + "GEHC": 6982.366415019295, + "GFS": 20137.342001348687, + "GILD": 28313.132949928113, + "GOOG": 3038.4320467043353, + "GOOGL": -2.2142853352476373e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 8222.993282297652, + "INTC": 1.9573092250029163, + "INTU": 1180.3075588577187, + "ISRG": 10844.428780082158, + "KDP": 1839.779983520508, + "KHC": 0.0, + "KLAC": 22709.814234640922, + "LIN": 0.0, + "LRCX": -9.481159603882544, + "LULU": 20510.219714966952, + "MAR": 0.0, + "MCHP": 13566.99232414557, + "MDB": 25674.703228250273, + "MDLZ": 0.0, + "MELI": 21046.325504951354, + "META": -126.80159197844033, + "MNST": 17253.834801009925, + "MRNA": 19502.975946350274, + "MRVL": 0.0, + "MSFT": 41.85825042733985, + "MU": 8.03068643327961, + "NFLX": 16992.215408912398, + "NVDA": 3584.8540783108742, + "NXPI": 20522.188680984436, + "ODFL": 9522.74835289285, + "ON": 1941.5745509976273, + "ORLY": 23682.13432696404, + "PANW": -7.680660735631972, + "PAYX": 8886.595398708172, + "PCAR": 0.0, + "PDD": 25506.197733656816, + "PEP": 27105.504547214714, + "PYPL": 3642.457129880699, + "QCOM": -6.756694704017385, + "REGN": 15237.343249624728, + "ROP": 13571.331711858564, + "ROST": 7873.324048397866, + "SBUX": 27577.77600621882, + "SNPS": 0.0, + "TEAM": 13326.223653682791, + "TMUS": 8414.192853754306, + "TSLA": 7387.545613910294, + "TTD": 36499.63282969042, + "TTWO": 9954.754077861944, + "TXN": 0.0, + "USDOLLAR": 203.07084448937547, + "VRSK": 0.0, + "VRTX": 10906.326390570943, + "WBA": 155.61523007370545, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18809.593423560065 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index c454be880..9677546cc 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15078,5 +15078,109 @@ "WDAY": 2.72428525046175e-08, "XEL": 1.6665200838128098e-07, "ZS": 0.017580891667501874 + }, + "2024-07-30 13:30:00+00:00": { + "AAPL": 0.0053865067134423825, + "ABNB": 1.2124303285040942e-08, + "ADBE": 0.012592418007986548, + "ADI": 1.9297908649878199e-07, + "ADP": 1.6230863273539984e-07, + "ADSK": 5.0090291452050675e-08, + "AEP": 1.4283159815387322e-08, + "AMAT": 6.866868723654358e-08, + "AMD": 7.445496669810047e-09, + "AMGN": 0.028756158726070156, + "AMZN": 0.019293316887797004, + "ANSS": 1.1349557610552156e-07, + "ARM": 0.05375516183648197, + "ASML": 2.587013941853532e-08, + "AVGO": 3.1938557751666e-08, + "AZN": 3.964894127547134e-08, + "BIIB": 0.013670712854735556, + "BKNG": 0.009484182566506351, + "BKR": 1.8829106480960812e-07, + "CCEP": 0.014512470940700453, + "CDNS": 1.8363870372565877e-08, + "CDW": 0.017221446854789057, + "CEG": 0.06085881785199269, + "CHTR": 0.01783585064174092, + "CMCSA": 0.028801364928933065, + "COST": 2.00079601715662e-08, + "CPRT": 5.161621601765597e-07, + "CRWD": 0.004586431900277225, + "CSCO": 0.050690947301795096, + "CSGP": 0.007183080812873097, + "CSX": 3.323269372543309e-07, + "CTAS": 2.631759987451122e-08, + "CTSH": 0.02500601271464269, + "DASH": 1.023219994225574e-08, + "DDOG": 0.012302714110745157, + "DLTR": 0.02356145187920732, + "DXCM": 0.01272704772703374, + "EA": 0.013737361489429311, + "EXC": 4.287973070373621e-08, + "FANG": 0.025907944635810417, + "FAST": 0.018952556028934284, + "FTNT": 0.022599410602860075, + "GEHC": 0.008864041310252573, + "GFS": 0.017019824597855043, + "GILD": 0.02573569332786047, + "GOOG": 0.0038489875706073052, + "GOOGL": 2.905474603355946e-07, + "HON": 2.2563654844506405e-08, + "IDXX": 6.143965910075065e-08, + "ILMN": 0.007676180274462157, + "INTC": 6.587016615516295e-08, + "INTU": 0.0016062238318861597, + "ISRG": 0.01010498823638191, + "KDP": 0.001718050926764885, + "KHC": 2.3581824321719597e-08, + "KLAC": 0.023964166586685265, + "LIN": 9.992881433901977e-08, + "LRCX": 5.35027658221888e-08, + "LULU": 0.019448449860915165, + "MAR": 7.754591440662762e-08, + "MCHP": 0.012790545642138716, + "MDB": 0.023885574359266686, + "MDLZ": 1.1960391543244452e-07, + "MELI": 0.020443512638215294, + "META": 2.1292350720609576e-08, + "MNST": 0.01586715428954236, + "MRNA": 0.01806396000241584, + "MRVL": 1.8206248583198844e-08, + "MSFT": 6.06728268740046e-08, + "MU": 2.039881639409541e-08, + "NFLX": 0.01613555714062174, + "NVDA": 0.004532875728661488, + "NXPI": 0.01959962339719246, + "ODFL": 0.008680201641428333, + "ON": 0.0025188628618070196, + "ORLY": 0.021654325682709107, + "PANW": 8.077328599984924e-08, + "PAYX": 0.007918475288535383, + "PCAR": 2.0276509793083995e-08, + "PDD": 0.023404623134402447, + "PEP": 0.023837670583802754, + "PYPL": 0.00468568547374669, + "QCOM": 3.968146233587493e-07, + "REGN": 0.013670165375760037, + "ROP": 0.011848789837036933, + "ROST": 0.007228664663979744, + "SBUX": 0.02475565585763977, + "SNPS": 8.776621621788475e-09, + "TEAM": 0.012625826869075837, + "TMUS": 0.008228522505979498, + "TSLA": 0.0078067395768756315, + "TTD": 0.033959490209797, + "TTWO": 0.008906518612448388, + "TXN": 3.8272719817699244e-08, + "USDOLLAR": 3.900238044228304e-07, + "VRSK": 9.177159169309722e-07, + "VRTX": 0.009974694492214135, + "WBA": 5.209495963011705e-07, + "WBD": 2.55019596214739e-08, + "WDAY": 3.1365502327943315e-08, + "XEL": 1.2920959865437742e-07, + "ZS": 0.017560941327299476 } } \ No newline at end of file From 5686f6bcb213da6642e44bcee831e421e241a028 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 30 Jul 2024 18:10:02 +0400 Subject: [PATCH 093/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-30 --- .../sp500_daily_initial_holdings.json | 597 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1056 insertions(+), 46 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 5f1a12bdf..c964dc6a4 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -72844,7 +72844,7 @@ "2024-07-29 13:30:00+00:00": { "A": 0.0, "AAL": 618.9777499420219, - "AAPL": 44824.919002563, + "AAPL": 44816.24490549037, "ABBV": 5567.463811185786, "ABNB": 0.0, "ABT": 3239.7885467360893, @@ -72862,19 +72862,19 @@ "AIG": 0.0, "AIZ": 1.486896414286684, "AJG": 0.0, - "AKAM": -0.08195359246313787, + "AKAM": -0.08192874771767641, "ALB": 0.0, "ALGN": 1079.575589627727, "ALL": 6.63723224642381e-14, "ALLE": 0.0, - "AMAT": 2010.2921285215004, + "AMAT": 2013.1916178170827, "AMCR": 0.0, "AMD": 27065.49869020905, "AME": 0.0, "AMGN": 5875.957837644848, "AMP": 9.642148028831455, "AMT": 642.8508093785127, - "AMZN": 36196.42159751963, + "AMZN": 36233.870052201164, "ANET": 3431.292890445739, "ANSS": 308.39435394946213, "AON": 18.335881972270784, @@ -72886,7 +72886,7 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 20397.54054955216, + "AVGO": 20356.699580596287, "AVY": 0.0, "AWK": 0.0, "AXON": 4873.296099291901, @@ -72902,7 +72902,7 @@ "BEN": 185.48910329828215, "BF-B": 0.0, "BG": 1160.2969952797935, - "BIIB": 2089.513095767109, + "BIIB": 2085.6569994961055, "BIO": 0.0, "BK": 0.0, "BKNG": 3505.70668376746, @@ -72915,7 +72915,7 @@ "BRO": 0.32947021405384225, "BSX": 0.0, "BWA": 0.0, - "BX": 1385.1745484301168, + "BX": 1393.219975076671, "BXP": 0.0, "C": 0.0, "CAG": 0.0, @@ -72940,12 +72940,12 @@ "CINF": 0.015466764106677144, "CL": 9.951375693815397, "CLX": 15.103204204385754, - "CMCSA": 6370.610596520867, - "CME": 4851.355547241729, + "CMCSA": 6371.412606810424, + "CME": 4851.839503950267, "CMG": 5096.905669567215, "CMI": 0.0, "CMS": 0.0, - "CNC": 951.8981608366228, + "CNC": 955.674513010271, "CNP": 0.0, "COF": 9302.200376052573, "COO": 0.0, @@ -72958,18 +72958,18 @@ "CPT": 0.0, "CRL": 0.0, "CRM": 7913.296869727614, - "CRWD": 1813.8748087002662, + "CRWD": 1813.8818478286396, "CSCO": 7014.219238545499, "CSGP": -8.023530779229742e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 10747.611803536218, + "CTSH": 10757.673721151757, "CTVA": 111.83187373611517, "CVS": 0.0, - "CVX": -5.687606602021994e-13, - "CZR": 8409.71278497874, + "CVX": -5.702380674434379e-13, + "CZR": 8419.32410528506, "D": 0.0, "DAL": 642.6883268615335, "DAY": 0.0, @@ -72983,7 +72983,7 @@ "DHR": 1902.9191025272003, "DIS": -4.005722169446134, "DLR": 2.94701517237878e-14, - "DLTR": 1040.6845887915201, + "DLTR": 1039.282054991949, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, @@ -72993,7 +72993,7 @@ "DUK": 1.2390133368559795, "DVA": 3446.663017175222, "DVN": 0.0, - "DXCM": 4808.942797778503, + "DXCM": 4811.162219526842, "EA": 3934.9312265879184, "EBAY": 0.0, "ECL": 0.0, @@ -73005,7 +73005,7 @@ "ELV": -2.20499048922349e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 4016.429128766298, + "ENPH": 4014.0695080386727, "EOG": 0.0, "EPAM": 5840.752760818718, "EQIX": 780.9558304712994, @@ -73020,8 +73020,8 @@ "EW": 0.0, "EXC": 0.0, "EXPD": -1.1371432534504669, - "EXPE": 4199.480407944297, - "EXR": 5.849625346439028e-14, + "EXPE": 4180.9616362664365, + "EXR": 5.838609189648061e-14, "F": 0.0, "FANG": 13998.712572192971, "FAST": 3351.96947096743, @@ -73038,7 +73038,7 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.841917202993016e-14, + "FSLR": -7.84226286804194e-14, "FTNT": 5868.36184408522, "FTV": 0.0, "GD": 3.83569542432468e-13, @@ -73053,8 +73053,8 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23229.55653905915, - "GOOGL": 2167.6615910376663, + "GOOG": 23225.470112361403, + "GOOGL": 2168.753568838265, "GPC": 0.0, "GPN": -1.0533119591557563e-13, "GRMN": 2321.612741865055, @@ -73078,15 +73078,15 @@ "HST": 0.0, "HSY": 10756.748422699855, "HUBB": 1.2974699250813087e-13, - "HUM": 1138.2660595761029, + "HUM": 1133.7144816828716, "HWM": 2222.080060694423, "IBM": 0.0, "ICE": 747.6565965484722, "IDXX": -9.739571644338342, "IEX": 0.0, "IFF": 0.0, - "INCY": 4288.029343453095, - "INTC": 217.21953434487165, + "INCY": 4287.403880220676, + "INTC": 217.15042059877044, "INTU": 1262.766071559845, "INVH": 0.0, "IP": 0.0, @@ -73125,18 +73125,18 @@ "LEN": 0.0, "LH": 0.0, "LHX": 0.0, - "LIN": 1.6831073084320143, + "LIN": 1.6845625636522006, "LKQ": 4487.571996585478, "LLY": 1.4041241878110187, "LMT": 8402.5270611337, "LNT": 0.0, "LOW": -2.8225721075342e-13, "LRCX": 858.6306628886048, - "LULU": 1545.4569723308027, + "LULU": 1547.9928659014133, "LUV": 27.375633615294397, "LVS": 1724.0265438681404, "LW": 20.571741166901795, - "LYB": 3570.806488347248, + "LYB": 3585.1249370457936, "LYV": 2814.997017525314, "MA": 29679.042859815447, "MAA": 0.0, @@ -73149,31 +73149,31 @@ "MDLZ": 0.0, "MDT": 1.3004680343991601, "MET": -0.036570934682810745, - "META": 22106.94527965531, - "MGM": 3863.9971340652473, + "META": 22080.864752530884, + "MGM": 3810.4329513507478, "MHK": 0.0, "MKC": 0.0, "MKTX": 6075.281891369233, "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5224.726634660586, + "MNST": 5226.776397809302, "MO": -22.492508838266875, "MOH": 2002.4549947379533, "MOS": 0.0, "MPC": 15100.935230069426, "MPWR": -9.41198087674292e-13, - "MRK": 5708.691893847692, + "MRK": 5708.918709826482, "MRNA": 7546.8811443297645, "MRO": 0.0, "MS": 6257.180304416962, "MSCI": 3752.9624424388285, - "MSFT": 37920.931921511496, + "MSFT": 37923.56795835455, "MSI": 0.0, "MTB": -6.594708274030216, "MTCH": 0.0, "MTD": 0.0, - "MU": 3649.0659583745282, + "MU": 3657.005831543463, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -73189,7 +73189,7 @@ "NTAP": 5747.2317077457465, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 133071.21647383392, + "NVDA": 133153.19978942873, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, @@ -73198,7 +73198,7 @@ "ODFL": 2434.1598822227975, "OKE": 0.0, "OMC": 0.0, - "ON": -2.793477041958176, + "ON": -2.797162311489068, "ORCL": 7250.688539965251, "ORLY": -0.7950842938751399, "OTIS": 1581.4098668307925, @@ -73210,14 +73210,14 @@ "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 10681.667405613782, + "PEP": 10699.676776731987, "PFE": 0.0, "PFG": 165.23337135930348, "PG": 1.08000763619943, "PGR": 8241.557453017202, "PH": 0.0, "PHM": -12.582393711216785, - "PKG": -5.195776548872603e-13, + "PKG": -5.211442366168217e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, @@ -73233,7 +73233,7 @@ "PTC": 2.5995989999581754e-14, "PWR": -5.014392888543125, "PYPL": 0.0, - "QCOM": 4318.507896036315, + "QCOM": 4309.24836857852, "QRVO": 0.0, "RCL": 1831.3991431017853, "REG": 0.0, @@ -73255,11 +73255,11 @@ "SHW": 1.499932092536604, "SJM": 1.0034818242384793, "SLB": 0.0, - "SMCI": 11244.48809545839, + "SMCI": 11241.99187219022, "SNA": 0.0, "SNPS": 0.0, "SO": 10.62587928420555, - "SOLV": -1.6041258864927006e-12, + "SOLV": -1.5952187238235454e-12, "SPG": 0.0, "SPGI": -5.830249467323416, "SRE": 0.0, @@ -73292,14 +73292,14 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.774797984541812e-12, - "TSLA": 102798.26720401985, + "TSLA": 102753.48915930308, "TSN": 5102.267309516243, "TT": 0.0, "TTWO": 745.600014476243, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 4095.504787098822, + "UAL": 4097.2347126142395, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -73309,7 +73309,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -1211.8652704897843, + "USDOLLAR": -1211.8652070536089, "V": 1546.2292978662483, "VICI": 0.0, "VLO": 0.0, @@ -73317,7 +73317,7 @@ "VMC": 0.0, "VRSK": 0.0, "VRSN": 2968.6287798898093, - "VRTX": 1959.0269319673714, + "VRTX": 1958.4730966853974, "VST": 0.0, "VTR": 0.0, "VTRS": 0.0, @@ -73326,7 +73326,7 @@ "WAT": -2.2002967010169737e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.795082232693735, + "WDC": -2.791441370363748, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -73345,5 +73345,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-07-30 13:30:00+00:00": { + "A": 0.0, + "AAL": 613.7023626570169, + "AAPL": 45245.89638381894, + "ABBV": 5553.850782410092, + "ABNB": 0.0, + "ABT": 3374.417412498961, + "ACGL": 0.0, + "ACN": 2.588231346455072e-13, + "ADBE": 10664.74789108971, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.62734407213193, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3556.272458329908, + "AIG": 0.0, + "AIZ": 1.480749734349838, + "AJG": 0.0, + "AKAM": -0.08086065739168731, + "ALB": 0.0, + "ALGN": 1077.2835947150209, + "ALL": 6.627441662853855e-14, + "ALLE": 0.0, + "AMAT": 2011.6452038628863, + "AMCR": 0.0, + "AMD": 27234.017969726046, + "AME": 0.0, + "AMGN": 5856.962519700285, + "AMP": 9.553809159120132, + "AMT": 661.7404887492243, + "AMZN": 36416.97110154076, + "ANET": 3437.1700912180017, + "ANSS": 306.29651539394234, + "AON": 18.387712058336525, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 25.313957244010112, + "APTV": 2.382767917847602e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20525.42296520357, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4835.233184399822, + "AXP": 0.0, + "AZO": 1.8093115894935081e-12, + "BA": -1.1076857228340747e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 507.02242461692447, + "BDX": 0.0, + "BEN": 183.22998729976757, + "BF-B": 0.0, + "BG": 1034.3036301888908, + "BIIB": 2118.779839036665, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3521.672013575812, + "BKR": 0.0, + "BLDR": 550.9879025128852, + "BLK": 9.933917551130985e-13, + "BMY": 98.8361044332725, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3288406872688066, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1400.4330575541753, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 21078.953508767772, + "CAT": 0.0, + "CB": 306.34226935263945, + "CBOE": 0.0, + "CBRE": 5307.447531067268, + "CCI": 315.02531651854747, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 403.51863719613254, + "CE": -2.6929225237654687e-14, + "CEG": 34514.58288627274, + "CF": 9837.919187292498, + "CFG": 0.0, + "CHD": 2391.833754788568, + "CHRW": 0.0, + "CHTR": 6007.351516833974, + "CI": 4.0214376556954996e-13, + "CINF": 0.015799462828439362, + "CL": 9.768735761131246, + "CLX": 14.820060776016813, + "CMCSA": 6538.195265270841, + "CME": 4835.146504438455, + "CMG": 5226.600571456986, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 958.7997322974891, + "CNP": 0.0, + "COF": 9378.101228712592, + "COO": 0.0, + "COP": 0.0, + "COR": 3414.031976636192, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 712.0170442787999, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7820.220629221246, + "CRWD": 1731.893280134672, + "CSCO": 7065.556880668223, + "CSGP": -8.026573333912747e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10679.979357852539, + "CTVA": 112.41812366285994, + "CVS": 0.0, + "CVX": -5.637880054388809e-13, + "CZR": 8779.740367498436, + "D": 0.0, + "DAL": 632.0569610547348, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0342792384783787e-13, + "DECK": 898.5331981219463, + "DFS": 3795.2567048092774, + "DG": 0.0, + "DGX": 0.0, + "DHI": -8.102906405733885, + "DHR": 1637.5917296489906, + "DIS": -4.083275149243292, + "DLR": 2.984654737273053e-14, + "DLTR": 1037.1782542925907, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.375304925206805, + "DRI": 2.4659718206314727, + "DTE": 0.0, + "DUK": 1.2371825535108323, + "DVA": 3455.17877038055, + "DVN": 0.0, + "DXCM": 5067.885871505039, + "EA": 4022.042644904834, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.732605517768037e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.216452115538801e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3843.1648148255103, + "EOG": 0.0, + "EPAM": 5867.966723170188, + "EQIX": 786.0167846727581, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.142729611579571, + "EXPE": 4253.714422128236, + "EXR": 5.839675234354259e-14, + "F": 0.0, + "FANG": 13783.45417387291, + "FAST": 3365.7168083735455, + "FCX": 0.0, + "FDS": 1217.781318894291, + "FDX": 6332.103807218914, + "FE": 0.0, + "FFIV": 3161.8994100555487, + "FI": 2.622219578934788e-13, + "FICO": 1521.816363958205, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.677981727476561e-14, + "FTNT": 5908.513730706788, + "FTV": 0.0, + "GD": 3.8416354479463867e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1770.2533392730766, + "GEN": 0.0, + "GEV": 19709.107758104834, + "GILD": 8358.694545353657, + "GIS": 7802.474572294619, + "GL": 0.31382173070643243, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23421.62690804825, + "GOOGL": 2186.866169922846, + "GPC": 0.0, + "GPN": -1.0622541990419851e-13, + "GRMN": 2328.0057257692174, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1729499870286757, + "HBAN": 0.0, + "HCA": 6245.808453196537, + "HD": 8913.282688398798, + "HES": 0.0, + "HIG": 5961.273818982157, + "HII": 0.7656131506044402, + "HLT": -1.3667798196585333e-13, + "HOLX": 2902.722584072124, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10693.105662150698, + "HUBB": 1.3348264792647782e-13, + "HUM": 1138.1500715766863, + "HWM": 2457.6184948436107, + "IBM": 0.0, + "ICE": 748.943073055754, + "IDXX": -9.849261491605214, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4338.72003499729, + "INTC": 212.79636005118442, + "INTU": 1267.8175077606281, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.046004110763014104, + "IRM": 0.0, + "ISRG": 6563.969202609387, + "IT": 7.948590437878798e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2481.974668153955, + "JCI": 0.0, + "JKHY": 854.054544337482, + "JNJ": 13609.089205134105, + "JNPR": 0.0, + "JPM": 2582.256343779141, + "K": 462.3267893296565, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 768.7824874288933, + "KMB": 4543.110153035833, + "KMI": 0.0, + "KMX": 1.181371471821124, + "KO": 201.43397462877167, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2173001747600279, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6886669982696978, + "LKQ": 4500.967614399562, + "LLY": 1.406142346413207, + "LMT": 8482.054043012324, + "LNT": 0.0, + "LOW": -2.8453166124278377e-13, + "LRCX": 847.0713288654962, + "LULU": 1559.5246129776474, + "LUV": 26.47048811814879, + "LVS": 1744.314357341925, + "LW": 20.684035398896047, + "LYB": 3575.2119924970725, + "LYV": 2855.9849418077247, + "MA": 30015.198017851086, + "MAA": 0.0, + "MAR": -5.906986530816332e-13, + "MAS": 0.0, + "MCD": 10553.539051991547, + "MCHP": 2310.0768003909884, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3123204213897017, + "MET": -0.036566121689774245, + "META": 21945.525947637776, + "MGM": 3993.5876487714704, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5795.989655459223, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5251.3731646415545, + "MO": -22.505911690919014, + "MOH": 2006.7867158546394, + "MOS": 0.0, + "MPC": 14899.83469457794, + "MPWR": -9.335223878284436e-13, + "MRK": 5604.526222732532, + "MRNA": 7609.694634669592, + "MRO": 0.0, + "MS": 6202.6760742555325, + "MSCI": 3785.0366361028778, + "MSFT": 37579.99286943612, + "MSI": 0.0, + "MTB": -6.540782811457416, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3606.3887299349817, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16368.666523350954, + "NI": 0.0, + "NKE": -3.052080704523657e-14, + "NOC": -4.276534627143565e-13, + "NOW": 5417.711033914097, + "NRG": 0.0, + "NSC": -2.9759435677208093e-14, + "NTAP": 5694.71233087671, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 132495.66365156337, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8010.248619668267, + "O": 0.0, + "ODFL": 2430.3341910077493, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.8671835572481768, + "ORCL": 7240.276279348021, + "ORLY": -0.7942180241198249, + "OTIS": 1582.7641502569254, + "OXY": 0.0, + "PANW": 5873.315398716562, + "PARA": 2041.0411906856039, + "PAYC": 0.0, + "PAYX": 380.88044089978865, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 10379.138427406337, + "PFE": 0.0, + "PFG": 165.90151637452348, + "PG": 1.0348499964077869, + "PGR": 8174.360678236929, + "PH": 0.0, + "PHM": -12.837897669361523, + "PKG": -5.171755921178075e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -61.511866828996155, + "POOL": 1440.9016734773293, + "PPG": -0.4076782470566023, + "PPL": 0.0, + "PRU": 265.6545297985842, + "PSA": 0.0, + "PSX": 1631.6003843351898, + "PTC": 2.65240535091288e-14, + "PWR": -5.002713283468341, + "PYPL": 0.0, + "QCOM": 4257.96466468283, + "QRVO": 0.0, + "RCL": 1848.4354427482021, + "REG": 0.0, + "REGN": 1101.5278514914687, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 389.3618799970083, + "ROK": 1.2068024804890796, + "ROL": 0.0, + "ROP": 5414.695680165041, + "ROST": 1137.030401858892, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6152.264082199696, + "SBUX": 8514.675260392014, + "SCHW": 1.7501745465984464, + "SHW": 1.5147390574330224, + "SJM": 1.0062951012922934, + "SLB": 0.0, + "SMCI": 11012.23270413187, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.654242623995703, + "SOLV": -1.6027341622347252e-12, + "SPG": 0.0, + "SPGI": -5.879123478067316, + "SRE": 0.0, + "STE": 0.5244657553700769, + "STLD": -2.8083377259437536e-14, + "STT": 343.4848076939774, + "STX": -13.383844992840404, + "STZ": -2.0689310825033997, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.845521596800438, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4694.258780125393, + "TDY": -16.371671518429487, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 450.02281123304573, + "TMO": 0.0, + "TMUS": 7171.892097041697, + "TPR": 2653.498652517236, + "TRGP": 405.0175122662698, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.789363351055263e-12, + "TSLA": 104654.97485069533, + "TSN": 5087.169337378214, + "TT": 0.0, + "TTWO": 740.7740704308036, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4064.7993515866883, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3286.8962890002977, + "UNH": 18006.44852068345, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -1604.983657842871, + "V": 1563.5139198417216, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 10927.148679450424, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2995.949372315784, + "VRTX": 1976.5895943855053, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.2376742033393325e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.691515811054766, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4308640767759262, + "WMB": 0.0, + "WMT": 11922.635322677574, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2874.9993940330714, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 52016e74d..7e47cfc79 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -70319,5 +70319,510 @@ "ZBH": 2.3169978689087523e-09, "ZBRA": 1.4593132104707384e-09, "ZTS": 5.4304095645647575e-09 + }, + "2024-07-30 13:30:00+00:00": { + "A": 2.309874638461812e-09, + "AAL": 0.0005301304253794404, + "AAPL": 0.03908441565873401, + "ABBV": 0.004797570093099398, + "ABNB": 1.6685488030895721e-09, + "ABT": 0.002914895146371099, + "ACGL": 6.341960379854187e-09, + "ACN": 7.98083584731606e-09, + "ADBE": 0.00921215880251948, + "ADI": 9.827121081173826e-09, + "ADM": 5.365159214138752e-09, + "ADP": 9.239404550236896e-09, + "ADSK": 8.205696136465157e-09, + "AEE": 2.663438063062366e-09, + "AEP": 2.5703189084096172e-09, + "AES": 1.199182568215285e-09, + "AFL": 0.003071959671758573, + "AIG": 2.118395701938223e-09, + "AIZ": 7.588254335045255e-09, + "AJG": 5.0395759813917214e-09, + "AKAM": 6.325543099256429e-09, + "ALB": 9.429721785651238e-10, + "ALGN": 0.0009027181771955739, + "ALL": 6.3432851515387975e-09, + "ALLE": 2.2462086832404132e-09, + "AMAT": 0.0017376932322807606, + "AMCR": 6.639232656910923e-10, + "AMD": 0.023795742743811223, + "AME": 2.4373624429160777e-09, + "AMGN": 0.005016205348198789, + "AMP": 2.067905106129977e-08, + "AMT": 0.0005716403249495462, + "AMZN": 0.03145776210183203, + "ANET": 0.0029691507765335326, + "ANSS": 0.00019417934804895798, + "AON": 1.1445334127925614e-08, + "AOS": 1.9784927805222126e-09, + "APA": 1.5555185015806983e-09, + "APD": 5.10016733850371e-09, + "APH": 2.8589512260818488e-08, + "APTV": 4.217327060009473e-09, + "ARE": 1.8050005508250052e-09, + "ATO": 3.09345997242176e-09, + "AVB": 2.7344199037129418e-09, + "AVGO": 0.017730342377596228, + "AVY": 2.7711439905470875e-09, + "AWK": 5.480348633218449e-09, + "AXON": 0.004197252566624044, + "AXP": 4.747336672104806e-09, + "AZO": 3.0342309946952074e-08, + "BA": 1.1586276303658463e-08, + "BAC": 3.223301486898589e-09, + "BALL": 6.4178481624221794e-09, + "BAX": 4.230183278263928e-09, + "BBWI": 3.3290316377045063e-09, + "BBY": 0.00043801383821951947, + "BDX": 6.269830557789858e-09, + "BEN": 0.00015827864129692326, + "BF-B": 4.846317648680627e-09, + "BG": 0.0008525066137178324, + "BIIB": 0.001830238257251984, + "BIO": 2.5356455161442563e-09, + "BK": 2.9409786851666576e-09, + "BKNG": 0.0017133111424549319, + "BKR": 1.6562288415808844e-09, + "BLDR": 0.0004759656156575621, + "BLK": 6.042724969653043e-08, + "BMY": 8.537500187315216e-05, + "BR": 4.3087393522268136e-09, + "BRK-B": 6.153144461738353e-09, + "BRO": 3.492448740616084e-08, + "BSX": 4.630667332708491e-09, + "BWA": 2.926199009639541e-09, + "BX": 0.0012096493793663325, + "BXP": 1.9687462914419173e-09, + "C": 3.9210600322686376e-09, + "CAG": 6.181426945666227e-09, + "CAH": 5.018022806356059e-09, + "CARR": 0.018208480284960738, + "CAT": 1.6726977394735478e-09, + "CB": 0.0002517182918079689, + "CBOE": 1.640974500308687e-08, + "CBRE": 0.0045846335634130726, + "CCI": 0.0002721298342070428, + "CCL": 1.922368843779685e-09, + "CDNS": 8.69658283229179e-09, + "CDW": 0.0003486148569500052, + "CE": 4.389866683905143e-09, + "CEG": 0.02981471485304234, + "CF": 0.008498211868471347, + "CFG": 3.421738801459277e-09, + "CHD": 0.0020661139760252104, + "CHRW": 6.5967744327341726e-09, + "CHTR": 0.004910394792789598, + "CI": 1.493096362126931e-08, + "CINF": 1.3418226773824903e-08, + "CL": 8.381692071310167e-06, + "CLX": 1.0133177169119788e-07, + "CMCSA": 0.00564783929799918, + "CME": 0.0041767284454241665, + "CMG": 0.0045148518434739915, + "CMI": 2.3855879321104896e-09, + "CMS": 2.3057126322916462e-09, + "CNC": 0.0008282323545940429, + "CNP": 2.1095156531819105e-09, + "COF": 0.008100866460555921, + "COO": 5.092396522753693e-09, + "COP": 3.867872738119194e-09, + "COR": 0.002939278046437831, + "COST": 5.124996602408432e-09, + "CPAY": 1.1410550193994317e-08, + "CPB": 8.061474288435844e-09, + "CPRT": 0.0006150533149772294, + "CPT": 2.3438625395031572e-09, + "CRL": 1.325184999979099e-09, + "CRM": 0.006755221572857501, + "CRWD": 0.0013531490269683146, + "CSCO": 0.006103395352092014, + "CSGP": 5.43412875698718e-09, + "CSX": 5.091714191454466e-09, + "CTAS": 5.356035515585126e-09, + "CTLT": 2.757423261589991e-09, + "CTRA": 1.5315465220728192e-09, + "CTSH": 0.009158128189042143, + "CTVA": 9.71103252624575e-05, + "CVS": 4.305791606191655e-09, + "CVX": 5.768437267101844e-09, + "CZR": 0.007584132549570034, + "D": 4.036980721622792e-09, + "DAL": 0.0005459847767146535, + "DAY": 1.9488712897367964e-09, + "DD": 3.1179917897368476e-09, + "DE": 4.904773586628089e-09, + "DECK": 0.0008974589738726147, + "DFS": 0.0032784333182978853, + "DG": 2.5582978894863027e-09, + "DGX": 6.975668392755356e-09, + "DHI": 1.7514935980998736e-08, + "DHR": 0.0013415454188005806, + "DIS": 5.826949816709423e-09, + "DLR": 4.348398223986497e-09, + "DLTR": 0.0008959510601530813, + "DOC": 1.2065085914159036e-09, + "DOV": 2.6326482783461874e-09, + "DOW": 2.921181181494588e-09, + "DPZ": 2.0479459208541396e-08, + "DRI": 2.1042228446992083e-06, + "DTE": 2.949672151202592e-09, + "DUK": 1.845396822182777e-08, + "DVA": 0.00298414837327193, + "DVN": 1.572078580010105e-09, + "DXCM": 0.00437776409407863, + "EA": 0.0034599089090373253, + "EBAY": 3.2624033272364383e-09, + "ECL": 2.9202344022999295e-09, + "ED": 4.433940495321159e-09, + "EFX": 2.6749695843914317e-09, + "EG": 1.2677746765782082e-08, + "EIX": 4.353208076741384e-09, + "EL": 2.869460584712547e-09, + "ELV": 1.037396677986421e-08, + "EMN": 2.246222863371729e-09, + "EMR": 1.5343480098663975e-09, + "ENPH": 0.0033198336040834602, + "EOG": 3.81877472123383e-09, + "EPAM": 0.005068879830498676, + "EQIX": 0.0005639590481988176, + "EQR": 2.7040156711027404e-09, + "EQT": 1.0035928058401113e-09, + "ES": 2.25764705632503e-09, + "ESS": 3.602569817106311e-09, + "ETN": 1.332160040282981e-09, + "ETR": 4.176570943252794e-09, + "ETSY": 5.984712539877992e-09, + "EVRG": 1.5374486887423443e-09, + "EW": 3.3646265333479005e-09, + "EXC": 3.0483957260723787e-09, + "EXPD": 1.053396484613796e-08, + "EXPE": 0.0036597724250789707, + "EXR": 7.361862560345654e-09, + "F": 1.3022044260354902e-09, + "FANG": 0.011906448758627276, + "FAST": 0.0029073767712996957, + "FCX": 1.5747693524921942e-09, + "FDS": 0.0009732687262760214, + "FDX": 0.005364048521759527, + "FE": 2.6518400103164525e-09, + "FFIV": 0.0027114936814492644, + "FI": 1.0489357443059825e-08, + "FICO": 0.0013155954531844046, + "FIS": 3.763811357882896e-09, + "FITB": 4.783090189934132e-09, + "FMC": 3.0990573330077236e-09, + "FOX": 1.7331080301183993e-09, + "FOXA": 2.3983169030756253e-09, + "FRT": 2.0924706539801955e-09, + "FSLR": 1.3196811268147427e-09, + "FTNT": 0.005103906106429758, + "FTV": 1.4561577384101369e-09, + "GD": 8.90912048359106e-09, + "GDDY": 1.0824673280739074e-08, + "GE": 2.4640284916576537e-09, + "GEHC": 0.0015291783152691465, + "GEN": 2.0210991871435633e-09, + "GEV": 0.01714228783201822, + "GILD": 0.007152289928034691, + "GIS": 0.006739953063606056, + "GL": 7.928806185473377e-09, + "GLW": 2.4065922979737793e-09, + "GM": 2.2483769391614288e-09, + "GNRC": 2.114782730970579e-09, + "GOOG": 0.02023330729040628, + "GOOGL": 0.0018891535470836468, + "GPC": 4.764785171634999e-09, + "GPN": 9.361457324560993e-09, + "GRMN": 0.0020109783874149674, + "GS": 4.857256341141659e-09, + "GWW": 1.9099613870751527e-09, + "HAL": 1.655964225673786e-09, + "HAS": 1.0013304621121599e-06, + "HBAN": 1.507769660645484e-09, + "HCA": 0.0053003860911271135, + "HD": 0.007699466546350346, + "HES": 3.941008067486815e-09, + "HIG": 0.005149262792939712, + "HII": 1.847208025579681e-08, + "HLT": 7.389372036642412e-09, + "HOLX": 0.0025074254836443773, + "HON": 3.1425908517354843e-09, + "HPE": 1.3457091152024194e-09, + "HPQ": 1.948973959961429e-09, + "HRL": 5.354017460319871e-09, + "HSIC": 5.088716165150114e-09, + "HST": 1.8828143377822e-09, + "HSY": 0.00923686083441796, + "HUBB": 9.389966259021307e-10, + "HUM": 0.0009631652408228977, + "HWM": 0.002135278416068349, + "IBM": 2.545734546191574e-09, + "ICE": 0.0006469526136726268, + "IDXX": 8.166800467075181e-09, + "IEX": 2.5575306798921403e-09, + "IFF": 2.8973145685894437e-09, + "INCY": 0.0037478596965183895, + "INTC": 0.0001838179880860175, + "INTU": 0.0011102576054639493, + "INVH": 1.567417266636138e-09, + "IP": 2.2688578139487348e-09, + "IPG": 4.091622378961365e-09, + "IQV": 2.3879166582210904e-09, + "IR": 1.542654964627996e-08, + "IRM": 3.999118676863377e-09, + "ISRG": 0.005656990876982906, + "IT": 1.0100350285014803e-08, + "ITW": 3.417019475464577e-09, + "IVZ": 1.9754775780229886e-09, + "J": 3.737576901630669e-09, + "JBHT": 4.3949012821047934e-09, + "JBL": 0.0021440257314202173, + "JCI": 1.6576375716677855e-09, + "JKHY": 0.000737785250142463, + "JNJ": 0.011755791412774878, + "JNPR": 2.8391716901943367e-09, + "JPM": 0.0022302331965057378, + "K": 0.0003993667159039709, + "KDP": 2.0390272771044894e-09, + "KEY": 1.2807158755357746e-09, + "KEYS": 3.1947133428204034e-09, + "KHC": 1.0075966069618315e-09, + "KIM": 1.6628654591670859e-09, + "KKR": 7.387517220018222e-09, + "KLAC": 0.0006944900649538336, + "KMB": 0.003924386052041135, + "KMI": 8.055120619489435e-10, + "KMX": 1.6073666434253802e-08, + "KO": 0.0001739968152015452, + "KR": 9.198400837739253e-09, + "KVUE": -3.4482616507794013e-10, + "L": 4.127713324548337e-09, + "LDOS": 1.836597243986648e-08, + "LEN": 1.092035694328365e-08, + "LH": 2.1913255350262222e-09, + "LHX": 4.291592918915787e-09, + "LIN": 1.7530504246898617e-08, + "LKQ": 0.003887988575989405, + "LLY": 1.369980266625271e-08, + "LMT": 0.0072437296575808266, + "LNT": 2.0056561008671325e-09, + "LOW": 7.961111178339546e-09, + "LRCX": 0.0007077793182609825, + "LULU": 0.001347189146082396, + "LUV": 2.2866620504997672e-05, + "LVS": 0.0015067739289814407, + "LW": 1.4379453589640097e-08, + "LYB": 0.0030769675723561, + "LYV": 0.002467065814077494, + "MA": 0.02585611709436703, + "MAA": 2.830124524032782e-09, + "MAR": 7.18309282395009e-09, + "MAS": 3.02452072475186e-09, + "MCD": 0.009094128889060438, + "MCHP": 0.001995513937388979, + "MCK": 1.798479198946113e-08, + "MCO": 2.8354410562392164e-09, + "MDLZ": 3.327380356073711e-09, + "MDT": 1.1239666679531461e-06, + "MET": 4.264293680939509e-09, + "META": 0.01888776748844551, + "MGM": 0.003449734076108219, + "MHK": 2.6905910232712358e-09, + "MKC": 4.007350721417591e-09, + "MKTX": 0.004945661556217638, + "MLM": 2.0758965734461946e-09, + "MMC": 2.9953580475405804e-09, + "MMM": 2.623529407261951e-09, + "MNST": 0.004536254209307143, + "MO": 3.5944349369727965e-09, + "MOH": 0.0017334757511740853, + "MOS": 1.1896355399052392e-09, + "MPC": 0.012846063183272399, + "MPWR": 3.1391505887034e-08, + "MRK": 0.004841288125111954, + "MRNA": 0.0065573322804182085, + "MRO": 8.320506182480511e-10, + "MS": 0.00535799702354228, + "MSCI": 0.003222964495524543, + "MSFT": 0.03246240674438828, + "MSI": 6.160352175344897e-09, + "MTB": 1.1745530286679168e-08, + "MTCH": 8.705035474069526e-09, + "MTD": 5.466768946353036e-09, + "MU": 0.0031832545454273473, + "NCLH": 2.488906958228306e-09, + "NDAQ": 4.863305158149211e-09, + "NDSN": 2.5654317560973092e-09, + "NEE": 2.065728524191021e-09, + "NEM": 1.5522634943861432e-09, + "NFLX": 0.014139678587693822, + "NI": 1.7334458422990483e-09, + "NKE": 1.2331944310607026e-08, + "NOC": 2.0062046753711793e-08, + "NOW": 0.004714250638800556, + "NRG": 1.0597916980980347e-09, + "NSC": 6.435392043594444e-09, + "NTAP": 0.004919082305353493, + "NTRS": 2.6570244572042404e-09, + "NUE": 5.157651103867161e-09, + "NVDA": 0.11677468221759704, + "NVR": 0.0011160486908324615, + "NWS": 1.1117812955834125e-09, + "NWSA": 1.0961430489716235e-09, + "NXPI": 0.006812082277544875, + "O": 5.312810327728261e-09, + "ODFL": 0.002029624809410382, + "OKE": 2.979354685587873e-09, + "OMC": 3.0385017420474603e-09, + "ON": 4.917916126455591e-09, + "ORCL": 0.006254312416852307, + "ORLY": 1.7246624776308086e-08, + "OTIS": 0.0013672076681866179, + "OXY": 2.18664280625834e-09, + "PANW": 0.005073614310615103, + "PARA": 0.0017630964833945163, + "PAYC": 1.1476039408966504e-08, + "PAYX": 0.00029976435447594675, + "PCAR": 5.402901112927848e-09, + "PCG": 1.659100442898884e-09, + "PEG": 3.376852958186847e-09, + "PEP": 0.008879301884734214, + "PFE": 3.851319082661731e-09, + "PFG": 0.00014085670545725722, + "PG": 9.265335157057162e-09, + "PGR": 0.007061212861501393, + "PH": 1.9528343487163575e-09, + "PHM": 8.099103859745855e-09, + "PKG": 8.156992059779983e-09, + "PLD": 3.6159877328625847e-09, + "PM": 6.9533086361449715e-09, + "PNC": 6.2501597701282195e-09, + "PNR": 1.3649390347742146e-09, + "PNW": 2.4369900520185187e-09, + "PODD": 1.2751631806558e-08, + "POOL": 0.0012179167363808195, + "PPG": 4.6062082151877625e-09, + "PPL": 2.544507396225227e-09, + "PRU": 0.00016539805734907035, + "PSA": 2.7558382080079505e-09, + "PSX": 0.001315631234305664, + "PTC": 6.120733084811797e-09, + "PWR": 5.7756902782983116e-09, + "PYPL": 1.53103606859001e-09, + "QCOM": 0.003687699149959297, + "QRVO": 1.0586614993808706e-09, + "RCL": 0.0015359422495578947, + "REG": 2.6190394352401187e-09, + "REGN": 0.0009516312459189435, + "RF": 2.1073768761758236e-09, + "RJF": 5.045950500759051e-09, + "RL": 3.0226936191165926e-09, + "RMD": 0.00036061775735504075, + "ROK": 4.533839295169546e-09, + "ROL": 2.551316276152963e-09, + "ROP": 0.004534517420219576, + "ROST": 0.00098218692303404, + "RSG": 5.891924788483027e-09, + "RTX": 6.880119222486405e-09, + "RVTY": 1.903207586254908e-09, + "SBAC": 0.005310193630285591, + "SBUX": 0.00735516225505478, + "SCHW": 3.542518175721197e-08, + "SHW": 2.4664877653399224e-08, + "SJM": 2.3830964675905688e-08, + "SLB": 1.6463953808123012e-09, + "SMCI": 0.009512519259625974, + "SNA": 2.592461215361955e-09, + "SNPS": 2.3860946350566292e-09, + "SO": 9.14348265781775e-06, + "SOLV": -7.734923522079992e-10, + "SPG": 2.8055106927512045e-09, + "SPGI": 4.518447306699852e-09, + "SRE": 4.045974705521671e-09, + "STE": 4.313273496757856e-07, + "STLD": 9.11766399126504e-09, + "STT": 0.0002967024610997465, + "STX": 7.501521032319647e-09, + "STZ": 3.471022066904197e-08, + "SWK": 2.2237331613223464e-09, + "SWKS": 1.7597056571941804e-09, + "SYF": 4.50570099365187e-09, + "SYK": 1.634571675435016e-08, + "SYY": 6.097570675299783e-09, + "T": 3.610347210345985e-09, + "TAP": 3.1442549730328356e-09, + "TDG": 0.004243659375138381, + "TDY": 9.103481347735688e-09, + "TECH": 6.387165748648851e-09, + "TEL": 4.3528367193591905e-09, + "TER": 2.0778774190458384e-09, + "TFC": 2.460900803751239e-09, + "TFX": 5.070121609421762e-09, + "TGT": 5.985145165737767e-09, + "TJX": 0.0003887321759465658, + "TMO": 6.308481627897196e-09, + "TMUS": 0.006192390585883467, + "TPR": 0.002292152061013425, + "TRGP": 0.0003498113803552803, + "TRMB": 5.1064133595169774e-09, + "TROW": 4.8829573454989755e-09, + "TRV": 5.333927068875276e-09, + "TSCO": 7.626105801329723e-09, + "TSLA": 0.08816932903724875, + "TSN": 0.004394398171085838, + "TT": 1.867999980440404e-09, + "TTWO": 0.0006399085429481964, + "TXN": 4.291473213187905e-09, + "TXT": 1.990829248107265e-09, + "TYL": 1.7263590136101184e-08, + "UAL": 0.003511268003270386, + "UBER": 3.0798743220540006e-09, + "UDR": 1.7071519071815525e-09, + "UHS": 3.425231605046059e-09, + "ULTA": 0.002735403649721693, + "UNH": 0.015553875737911609, + "UNP": 6.442291106383815e-09, + "UPS": 1.943589450569301e-09, + "URI": 3.7155019873689753e-09, + "USB": 2.4026828623201346e-09, + "USDOLLAR": 1.910512795882946e-07, + "V": 0.0013503226303115661, + "VICI": 2.1886615773202522e-09, + "VLO": 1.063919958723125e-08, + "VLTO": 0.009789506010414457, + "VMC": 1.2910045418871647e-09, + "VRSK": 6.437917269622983e-09, + "VRSN": 0.002572641929253574, + "VRTX": 0.0017073792681979738, + "VST": 1.2606995493349382e-09, + "VTR": 4.1636710280643616e-09, + "VTRS": 1.6670014412460667e-09, + "VZ": 4.715806510160326e-09, + "WAB": 1.8013620698917698e-09, + "WAT": 6.209345351718934e-09, + "WBA": 9.340604015801306e-10, + "WBD": 5.431574327342147e-10, + "WDC": 2.7804047894044904e-09, + "WEC": 5.218762956723768e-09, + "WELL": 3.4358287099016875e-09, + "WFC": 6.544288904214733e-09, + "WM": 2.2671856791940217e-08, + "WMB": 7.490362889912067e-09, + "WMT": 0.01029903629835125, + "WRB": 5.266425479333136e-09, + "WST": 2.559800338105584e-09, + "WTW": 4.29444450807953e-09, + "WY": 1.4367224645967115e-09, + "WYNN": 0.0024376656927998504, + "XEL": 2.825897819901853e-09, + "XOM": 5.149744747000731e-09, + "XYL": 3.4258044316555983e-09, + "YUM": 7.601385882015064e-09, + "ZBH": 2.4673553287962182e-09, + "ZBRA": 1.7074009427643993e-09, + "ZTS": 6.01151338069015e-09 } } \ No newline at end of file From e9ac4459e4249b32bbc5a498311a6e9a9bbe98cc Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 31 Jul 2024 11:31:55 +0400 Subject: [PATCH 094/125] [auto commit] ftse100_daily reconciliation & execution on 2024-07-31 --- .../ftse100_daily_initial_holdings.json | 103 ++++++++++++++++++ .../ftse100_daily_target_weights.json | 103 ++++++++++++++++++ 2 files changed, 206 insertions(+) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 4cd2198f7..2b5e70a50 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11719,5 +11719,108 @@ "WEIR.L": 9745.703737557427, "WPP.L": 10519.495049301546, "WTB.L": 11597.666891579005 + }, + "2024-07-31 07:00:00+00:00": { + "AAF.L": 21682.88881769229, + "AAL.L": 10214.026210442715, + "ABF.L": 9982.588252018873, + "ADM.L": 11024.155224317401, + "AHT.L": 16646.763065237617, + "ANTO.L": 18608.50044288408, + "AUTO.L": 10520.112767526245, + "AV.L": 18913.588457515347, + "AZN.L": 12505.05209852895, + "BA.L": 10543.125529678751, + "BARC.L": 10521.83296342304, + "BATS.L": 11674.283662888083, + "BDEV.L": 10461.16172796156, + "BEZ.L": 11020.6430141848, + "BKG.L": 10251.327412296894, + "BME.L": 10425.756557497038, + "BNZL.L": 9895.79457124057, + "BP.L": 1.4088314641464436e-12, + "BRBY.L": 10522.11009407655, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10609.990479034414, + "CPG.L": 0.0, + "CRDA.L": 11854.194455654784, + "CTEC.L": 41.00276713893037, + "DARK.L": 25986.351006189976, + "DCC.L": 21676.600008483736, + "DGE.L": 9935.10023815604, + "DPLM.L": 8873.670390480638, + "EDV.L": 7007.739082365948, + "ENT.L": 10582.219569994526, + "EXPN.L": 11049.597153714589, + "EZJ.L": 9046.987467690235, + "FCIT.L": 0.0, + "FRAS.L": 10727.107732902688, + "FRES.L": 9950.104740766512, + "GBPOUND": 2898.6383775271293, + "GLEN.L": 9461.712347395527, + "GSK.L": 10997.484019311403, + "HIK.L": 9697.11905773944, + "HL.L": 10116.818926296628, + "HLMA.L": 10558.879698041534, + "HLN.L": 0.0, + "HSBA.L": 10552.727126314423, + "HWDN.L": 10467.612512675256, + "IAG.L": 10659.86604568474, + "ICG.L": 10935.048440210627, + "IHG.L": 16387.353579018898, + "III.L": 9390.447754078761, + "IMB.L": 11006.76743611671, + "IMI.L": 11325.331166056836, + "INF.L": 10675.586162991978, + "ITRK.L": 10296.241659621906, + "JD.L": 11635.032116147346, + "KGF.L": 10538.209738273898, + "LAND.L": 0.0, + "LGEN.L": 10437.890287751521, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28767.83838771069, + "MKS.L": 0.0, + "MNDI.L": 9618.529079401093, + "MNG.L": 10535.292930890524, + "MRO.L": 46581.045715026965, + "NG.L": 10094.957662050507, + "NWG.L": 10481.177749745328, + "NXT.L": 9143.481749751538, + "PHNX.L": 0.0, + "PRU.L": 10598.238788788936, + "PSH.L": 49659.54569029268, + "PSN.L": 9713.353291326193, + "PSON.L": 1071.3062744081049, + "REL.L": 11140.023043267818, + "RIO.L": 10507.126112718948, + "RKT.L": 8576.924194766592, + "RMV.L": 12036.35184185943, + "RR.L": 10800.57915205876, + "RTO.L": 10850.580252411064, + "SBRY.L": 0.0, + "SDR.L": 10748.826601829536, + "SGE.L": 39169.214799197376, + "SGRO.L": 0.0, + "SHEL.L": 5632.999999999999, + "SMDS.L": 10292.21541588769, + "SMIN.L": 0.0, + "SMT.L": 10191.69848287855, + "SN.L": 3451.9870038333347, + "SPX.L": 9070.644965866915, + "SSE.L": 9599.458426405834, + "STAN.L": 10515.726429200316, + "SVT.L": 10415.651197288727, + "TSCO.L": 10429.17548132431, + "TW.L": 10530.319686241926, + "ULVR.L": 9629.016750225568, + "UTG.L": 10859.468991967287, + "UU.L": 10568.343914420198, + "VOD.L": 10418.413843331045, + "VTY.L": 11194.62917935895, + "WEIR.L": 10159.21971594514, + "WPP.L": 10832.829599442895, + "WTB.L": 11763.985304504764 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 4b5462311..e7a1d3b3f 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11328,5 +11328,108 @@ "WEIR.L": 0.009999998841974738, "WPP.L": 0.009999997708398134, "WTB.L": 0.009999992760873887 + }, + "2024-07-31 07:00:00+00:00": { + "AAF.L": 0.02052450984271161, + "AAL.L": 0.00999999890586331, + "ABF.L": 0.009470427332448678, + "ADM.L": 0.010000041841588864, + "AHT.L": 0.015744346053982592, + "ANTO.L": 0.017614109186579886, + "AUTO.L": 0.01000000516044865, + "AV.L": 0.020021010792200564, + "AZN.L": 0.010000018266508707, + "BA.L": 0.010000005061811342, + "BARC.L": 0.009999997586921421, + "BATS.L": 0.010000003824588478, + "BDEV.L": 0.010000002643499713, + "BEZ.L": 0.010000014785135045, + "BKG.L": 0.010000002353762348, + "BME.L": 0.00999999042207691, + "BNZL.L": 0.009999988366954144, + "BP.L": 1.6296835436880272e-07, + "BRBY.L": 0.009999988287871263, + "BT-A.L": 2.0801977722791133e-08, + "CCH.L": 1.7169772675221673e-07, + "CNA.L": 0.009999992806009722, + "CPG.L": 2.0886164823440816e-07, + "CRDA.L": 0.009999996593131225, + "CTEC.L": 1.5344179939256482e-07, + "DARK.L": 0.02469008440279019, + "DCC.L": 0.02018562365423631, + "DGE.L": 0.009402788141536758, + "DPLM.L": 0.01000000565383889, + "EDV.L": 0.00671706757885854, + "ENT.L": 0.01000001977391636, + "EXPN.L": 0.010000001967594829, + "EZJ.L": 0.00856369904959945, + "FCIT.L": 2.6780888111387977e-08, + "FRAS.L": 0.010000004524049498, + "FRES.L": 0.009999994441084249, + "GBPOUND": 1.2668802751043123e-07, + "GLEN.L": 0.008956163717603178, + "GSK.L": 0.00999999340689112, + "HIK.L": 0.010000001344502832, + "HL.L": 0.010000002865293092, + "HLMA.L": 0.01000000170383965, + "HLN.L": 2.093452388980211e-08, + "HSBA.L": 0.009999997911500158, + "HWDN.L": 0.009999999022208479, + "IAG.L": 0.009999987729529973, + "ICG.L": 0.010000009062042134, + "IHG.L": 0.014382069978847502, + "III.L": 0.010000003535916709, + "IMB.L": 0.010000010450008394, + "IMI.L": 0.00999999308772637, + "INF.L": 0.00999996900049851, + "ITRK.L": 0.009999998052647964, + "JD.L": 0.0108805151973604, + "KGF.L": 0.009999979686613158, + "LAND.L": 1.5851263089085276e-08, + "LGEN.L": 0.009999995326798176, + "LLOY.L": 6.64161170044302e-08, + "LMP.L": 4.1334421020489664e-08, + "LSEG.L": 0.026541597123436896, + "MKS.L": 3.961030561053941e-08, + "MNDI.L": 0.009999996944947338, + "MNG.L": 0.010000000285605925, + "MRO.L": 0.04409236722519253, + "NG.L": 0.009999960194773415, + "NWG.L": 0.009999989781497347, + "NXT.L": 0.010000005473066153, + "PHNX.L": 2.5615443984852143e-08, + "PRU.L": 0.009999996950592959, + "PSH.L": 0.04637783042213455, + "PSN.L": 0.009999998437350326, + "PSON.L": 0.0010138800535256908, + "REL.L": 0.009999995387122216, + "RIO.L": 0.010000001995622803, + "RKT.L": 0.009999982960740632, + "RMV.L": 0.011393039951238594, + "RR.L": 0.009999996922070292, + "RTO.L": 0.01000000053061601, + "SBRY.L": 3.946885775155041e-08, + "SDR.L": 0.009999996101464036, + "SGE.L": 0.0368655232894326, + "SGRO.L": 4.3586342769024204e-08, + "SHEL.L": 0.00329478617789949, + "SMDS.L": 0.009999991129263149, + "SMIN.L": 7.140488980285894e-08, + "SMT.L": 0.009999918961743442, + "SN.L": 0.00326758623105558, + "SPX.L": 0.009999975186482492, + "SSE.L": 0.009999994719790012, + "STAN.L": 0.009999993168892189, + "SVT.L": 0.010000000572665889, + "TSCO.L": 0.009999995963939632, + "TW.L": 0.009999993866585507, + "ULVR.L": 0.009999962412706623, + "UTG.L": 0.010000017686838768, + "UU.L": 0.009999986669007739, + "VOD.L": 0.009999998711409285, + "VTY.L": 0.010000000395980702, + "WEIR.L": 0.009999997262695294, + "WPP.L": 0.009999994475929886, + "WTB.L": 0.009999980532669728 } } \ No newline at end of file From 55e49d63ba3154ccbc6a38d0b3fe92ae9604e22e Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 31 Jul 2024 18:00:49 +0400 Subject: [PATCH 095/125] [auto commit] dow30_daily reconciliation & execution on 2024-07-31 --- .../dow30_daily_initial_holdings.json | 43 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 63f31280d..9fd0968a4 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4884,14 +4884,14 @@ "WMT": 0.0003870745936844139 }, "2024-07-30 13:30:00+00:00": { - "AAPL": 212330.03827240903, + "AAPL": 212475.4521267584, "AMGN": 20642.415184109155, - "AMZN": 225528.80105389628, + "AMZN": 225468.996633689, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 81566.91607597812, - "CSCO": 45179.66118534004, + "CSCO": 45198.42003814602, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -4906,14 +4906,47 @@ "MCD": 1.2303539611427529e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 226462.07613308248, + "MSFT": 226488.54593227708, "NKE": 1.0115853016045873e-12, "PG": 0.0, "TRV": 0.0, "UNH": 105189.90724431541, - "USDOLLAR": 121.2958460413932, + "USDOLLAR": 121.29584757499391, "V": 33866.96703145679, "VZ": 0.0, "WMT": 0.00038541216549894356 + }, + "2024-07-31 13:30:00+00:00": { + "AAPL": 214743.76625755997, + "AMGN": 20552.53003696331, + "AMZN": 225774.14631312774, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 80495.56761377474, + "CSCO": 45404.76384112619, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 109489.0573987574, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2511899037830477e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 222713.02822492318, + "NKE": 1.0227046067675985e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 105189.90724431541, + "USDOLLAR": 121.32084484104287, + "V": 34035.510291254366, + "VZ": 0.0, + "WMT": 0.00038336179089731187 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index ae3aaa0b6..a2af0d489 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4915,5 +4915,38 @@ "V": 0.03195823687484012, "VZ": 4.803476250800606e-09, "WMT": 4.213353590408512e-08 + }, + "2024-07-31 13:30:00+00:00": { + "AAPL": 0.20287189903204564, + "AMGN": 0.01941588545985737, + "AMZN": 0.21329235240069397, + "AXP": 1.2781638232610238e-08, + "BA": 2.2204498608564924e-08, + "CAT": 1.0983655601515246e-08, + "CRM": 0.07604588100558755, + "CSCO": 0.04289456126627572, + "CVX": 1.2417931162141815e-08, + "DIS": 1.6032209555864688e-08, + "DOW": 1.8239199619633935e-08, + "GS": 1.3131138980210104e-08, + "HD": 0.10343584699162679, + "HON": 7.54986719825165e-09, + "IBM": 5.605901755067595e-09, + "INTC": 1.3870239981840158e-08, + "JNJ": 1.8025096715655207e-08, + "JPM": 2.1341544370801193e-08, + "KO": 1.3662499489754591e-08, + "MCD": 3.8438404196633484e-08, + "MMM": 7.852647713012237e-09, + "MRK": 1.4912604220715434e-08, + "MSFT": 0.21055538449123332, + "NKE": 3.4578440138874164e-08, + "PG": 1.018345757042806e-08, + "TRV": 9.155087422991169e-09, + "UNH": 0.09933412423315875, + "USDOLLAR": 2.739312140144436e-09, + "V": 0.032153687259133854, + "VZ": 7.887154747464008e-09, + "WMT": 6.626785768728032e-08 } } \ No newline at end of file From 03fe8bebe3ac2caf0cb9dd0d50bd2497180ad71c Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 31 Jul 2024 18:02:28 +0400 Subject: [PATCH 096/125] [auto commit] ndx100_daily reconciliation & execution on 2024-07-31 --- .../ndx100_daily_initial_holdings.json | 154 +++++++++++++++--- .../ndx100_daily_target_weights.json | 104 ++++++++++++ 2 files changed, 233 insertions(+), 25 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index bd369438b..1393733cb 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15287,19 +15287,19 @@ "ZS": 18837.459882202074 }, "2024-07-30 13:30:00+00:00": { - "AAPL": 5882.345454857061, + "AAPL": 5886.3739688259975, "ABNB": 0.0, "ADBE": 13222.371705747732, "ADI": 0.0, "ADP": 0.0, "ADSK": 83.37448049636788, "AEP": 0.0, - "AMAT": -53.41796926528086, + "AMAT": -53.44876534244384, "AMD": -1.704041701644163e-11, "AMGN": 31470.50498003033, - "AMZN": 20418.018010617776, + "AMZN": 20412.603678952815, "ANSS": 11.16337122664801, - "ARM": 57546.46874925292, + "ARM": 57540.33594213644, "ASML": 15.622344808256772, "AVGO": -34.74683807970931, "AZN": 0.0, @@ -15307,15 +15307,15 @@ "BKNG": 10574.00506061801, "BKR": 0.0, "CCEP": 15547.1372502171, - "CDNS": -81.53250816517738, + "CDNS": -81.54510761319753, "CDW": 17830.817280464107, "CEG": 65102.28771183714, - "CHTR": 18764.00748225462, + "CHTR": 18753.088592971133, "CMCSA": 32014.12777998017, "COST": 0.0, "CPRT": -0.8083911068308443, - "CRWD": 5799.897060175004, - "CSCO": 55141.40083293644, + "CRWD": 5794.513447492071, + "CSCO": 55164.295856816694, "CSGP": 7835.663315158078, "CSX": 34.430000305175106, "CTAS": 0.0, @@ -15323,42 +15323,42 @@ "DASH": 0.0, "DDOG": 13812.530916857122, "DLTR": 25549.78088649827, - "DXCM": 13311.67932644121, + "DXCM": 13319.452747758936, "EA": 14716.971397318746, "EXC": 0.0, "FANG": 28037.62855714009, - "FAST": 20847.027412140418, - "FTNT": 24210.20380092881, + "FAST": 20844.090583856232, + "FTNT": 24252.39017170073, "GEHC": 6982.366415019295, "GFS": 20137.342001348687, "GILD": 28313.132949928113, - "GOOG": 3038.4320467043353, + "GOOG": 3036.4881745692687, "GOOGL": -2.2142853352476373e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 8222.993282297652, - "INTC": 1.9573092250029163, + "INTC": 1.9611233693579768, "INTU": 1180.3075588577187, "ISRG": 10844.428780082158, - "KDP": 1839.779983520508, + "KDP": 1836.5399093627925, "KHC": 0.0, "KLAC": 22709.814234640922, "LIN": 0.0, - "LRCX": -9.481159603882544, + "LRCX": -9.51339932812746, "LULU": 20510.219714966952, "MAR": 0.0, - "MCHP": 13566.99232414557, - "MDB": 25674.703228250273, + "MCHP": 13573.119806780038, + "MDB": 25715.577753963105, "MDLZ": 0.0, "MELI": 21046.325504951354, "META": -126.80159197844033, "MNST": 17253.834801009925, "MRNA": 19502.975946350274, "MRVL": 0.0, - "MSFT": 41.85825042733985, - "MU": 8.03068643327961, + "MSFT": 41.86314298817108, + "MU": 8.029949583282765, "NFLX": 16992.215408912398, - "NVDA": 3584.8540783108742, + "NVDA": 3585.1753844529694, "NXPI": 20522.188680984436, "ODFL": 9522.74835289285, "ON": 1941.5745509976273, @@ -15366,22 +15366,22 @@ "PANW": -7.680660735631972, "PAYX": 8886.595398708172, "PCAR": 0.0, - "PDD": 25506.197733656816, + "PDD": 25534.10155549712, "PEP": 27105.504547214714, - "PYPL": 3642.457129880699, + "PYPL": 3643.7633064843108, "QCOM": -6.756694704017385, "REGN": 15237.343249624728, "ROP": 13571.331711858564, "ROST": 7873.324048397866, - "SBUX": 27577.77600621882, + "SBUX": 27592.44342148124, "SNPS": 0.0, "TEAM": 13326.223653682791, "TMUS": 8414.192853754306, - "TSLA": 7387.545613910294, + "TSLA": 7392.00148343004, "TTD": 36499.63282969042, "TTWO": 9954.754077861944, "TXN": 0.0, - "USDOLLAR": 203.07084448937547, + "USDOLLAR": 203.071210124096, "VRSK": 0.0, "VRTX": 10906.326390570943, "WBA": 155.61523007370545, @@ -15389,5 +15389,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 18809.593423560065 + }, + "2024-07-31 13:30:00+00:00": { + "AAPL": 5727.684854106591, + "ABNB": 0.0, + "ADBE": 13349.263829718846, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 84.12904410514119, + "AEP": 0.0, + "AMAT": -52.89313189785212, + "AMD": -1.8362181115417817e-11, + "AMGN": 30670.370120412917, + "AMZN": 20625.200092505776, + "ANSS": 11.136574849330414, + "ARM": 58658.596858069825, + "ASML": 16.208729739435043, + "AVGO": -34.33653215203454, + "AZN": 0.0, + "BIIB": 14481.378358174934, + "BKNG": 10641.330335672988, + "BKR": 0.0, + "CCEP": 15456.783500315498, + "CDNS": -83.1921370589273, + "CDW": 17614.728342622864, + "CEG": 72910.76478301284, + "CHTR": 19366.37262390656, + "CMCSA": 30872.567767162785, + "COST": 0.0, + "CPRT": -0.8223831469137731, + "CRWD": 4554.345429863138, + "CSCO": 54544.75675546654, + "CSGP": 7626.910625462296, + "CSX": -6.867788381763166e-13, + "CTAS": 0.0, + "CTSH": 27326.940825951027, + "DASH": 0.0, + "DDOG": 12957.303459086697, + "DLTR": 25597.5569855487, + "DXCM": 13933.243149676853, + "EA": 14981.103179759333, + "EXC": 0.0, + "FANG": 28473.04785195047, + "FAST": 20416.126021058382, + "FTNT": 24535.79092486596, + "GEHC": 9178.95746555421, + "GFS": 17905.84749614263, + "GILD": 27645.646532279276, + "GOOG": 4140.6129313154825, + "GOOGL": -2.2533058697365753e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 8326.092272791258, + "INTC": 1.9356955382418002, + "INTU": 1854.4383255863015, + "ISRG": 10710.773443327094, + "KDP": 1836.0, + "KHC": 0.0, + "KLAC": 26436.451443174243, + "LIN": 0.0, + "LRCX": -9.424924765989367, + "LULU": 20583.589992919333, + "MAR": 0.0, + "MCHP": 13564.556173941439, + "MDB": 25424.343249916983, + "MDLZ": 0.0, + "MELI": 23176.447166993505, + "META": -127.8347378644261, + "MNST": 17166.814436066205, + "MRNA": 18819.525122132527, + "MRVL": 0.0, + "MSFT": 41.16529296230448, + "MU": 8.088885217889075, + "NFLX": 16880.070166004378, + "NVDA": 4871.440176033314, + "NXPI": 21070.04174555761, + "ODFL": 9452.403981416099, + "ON": 2649.662641288005, + "ORLY": 24293.61412580009, + "PANW": -7.572148109522859, + "PAYX": 8626.766344413989, + "PCAR": 0.0, + "PDD": 24902.519965774038, + "PEP": 25733.2852754582, + "PYPL": 5201.312302159742, + "QCOM": -6.616919527657684, + "REGN": 14148.949736277718, + "ROP": 12512.082983816925, + "ROST": 7794.162048371789, + "SBUX": 28051.92802713284, + "SNPS": 0.0, + "TEAM": 13539.880966052893, + "TMUS": 8904.624261517853, + "TSLA": 8165.867138287039, + "TTD": 35745.40662204994, + "TTWO": 9545.7924177692, + "TXN": 0.0, + "USDOLLAR": -413.5351703616155, + "VRSK": 0.0, + "VRTX": 11066.527298737954, + "WBA": 0.40178968444656155, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18593.876417419247 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 9677546cc..8d7d23e56 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15182,5 +15182,109 @@ "WDAY": 3.1365502327943315e-08, "XEL": 1.2920959865437742e-07, "ZS": 0.017560941327299476 + }, + "2024-07-31 13:30:00+00:00": { + "AAPL": 0.005287101505680621, + "ABNB": 6.154455495752337e-09, + "ADBE": 0.012822350092085122, + "ADI": 1.1212577576049737e-07, + "ADP": 6.414975649281993e-08, + "ADSK": 2.636061476752867e-08, + "AEP": 6.706880730811307e-09, + "AMAT": 4.164851656864114e-08, + "AMD": 3.460005471952714e-09, + "AMGN": 0.02888169596177281, + "AMZN": 0.019621820555819774, + "ANSS": 6.7779570734983e-08, + "ARM": 0.053732272668566554, + "ASML": 1.194104208053193e-08, + "AVGO": 1.6149988944801942e-08, + "AZN": 2.0040016356662047e-08, + "BIIB": 0.013794565857443746, + "BKNG": 0.009440356648153767, + "BKR": 9.807945464169131e-08, + "CCEP": 0.014432459793683747, + "CDNS": 9.103971704380476e-09, + "CDW": 0.018521642628008657, + "CEG": 0.06412119059776175, + "CHTR": 0.018177581223150885, + "CMCSA": 0.02849950408489652, + "COST": 1.0132792180221402e-08, + "CPRT": 1.6588505906306762e-07, + "CRWD": 0.004457865077114582, + "CSCO": 0.05035191921000525, + "CSGP": 0.007040842969799216, + "CSX": 7.395528476244938e-08, + "CTAS": 1.3183109370600307e-08, + "CTSH": 0.02499146323432252, + "DASH": 5.311620922387449e-09, + "DDOG": 0.01196164205402022, + "DLTR": 0.023538566418167733, + "DXCM": 0.012862375628471482, + "EA": 0.013814104748380908, + "EXC": 1.8714665249067174e-08, + "FANG": 0.02544462784511149, + "FAST": 0.018798565287725586, + "FTNT": 0.02266624646114523, + "GEHC": 0.007698364798312855, + "GFS": 0.01622769261040537, + "GILD": 0.025526467787467744, + "GOOG": 0.0038230779255886056, + "GOOGL": 1.3586777161416493e-07, + "HON": 1.1223496802299374e-08, + "IDXX": 3.099744208268438e-08, + "ILMN": 0.007685716101091663, + "INTC": 3.6459809524905674e-08, + "INTU": 0.001587989499486846, + "ISRG": 0.01031210666606959, + "KDP": 0.0016951219370747925, + "KHC": 1.1743334609772393e-08, + "KLAC": 0.023653283005132433, + "LIN": 4.84964323818305e-08, + "LRCX": 3.012558861401334e-08, + "LULU": 0.019760008051516457, + "MAR": 5.7773475026914445e-08, + "MCHP": 0.01314814303653593, + "MDB": 0.02376649559576428, + "MDLZ": 5.112455051063427e-08, + "MELI": 0.020686348865904487, + "META": 1.0650937078661373e-08, + "MNST": 0.015763349598700453, + "MRNA": 0.017896566143801078, + "MRVL": 8.96026724137327e-09, + "MSFT": 3.5133113494397925e-08, + "MU": 1.0100192133284842e-08, + "NFLX": 0.016403676509566208, + "NVDA": 0.004629619101940721, + "NXPI": 0.019688313124309523, + "ODFL": 0.00843706782627131, + "ON": 0.002963544620415806, + "ORLY": 0.020934336483284858, + "PANW": 5.421913345178715e-08, + "PAYX": 0.007433079158079947, + "PCAR": 1.0552724007656046e-08, + "PDD": 0.023185722660756608, + "PEP": 0.023281826145220983, + "PYPL": 0.004855550288892014, + "QCOM": 0.00013615447765046168, + "REGN": 0.013578226516503188, + "ROP": 0.011658240118282828, + "ROST": 0.0071150268272436035, + "SBUX": 0.023551602976296084, + "SNPS": 4.463777401368523e-09, + "TEAM": 0.012637915024164214, + "TMUS": 0.008001467617655758, + "TSLA": 0.008199516355603958, + "TTD": 0.03376022578624991, + "TTWO": 0.008811975327771759, + "TXN": 1.9628600033143e-08, + "USDOLLAR": 2.02123501683092e-07, + "VRSK": 0.0008708196525069524, + "VRTX": 0.009863130038955132, + "WBA": 1.471372318808441e-07, + "WBD": 1.2276046538458643e-08, + "WDAY": 1.6409641717260314e-08, + "XEL": 4.784960906376636e-08, + "ZS": 0.01750970698897925 } } \ No newline at end of file From 4d42cd614deed0d62f8ceda0d5e5146c03d50956 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 31 Jul 2024 18:09:42 +0400 Subject: [PATCH 097/125] [auto commit] sp500_daily reconciliation & execution on 2024-07-31 --- .../sp500_daily_initial_holdings.json | 601 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1058 insertions(+), 48 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index c964dc6a4..d48ee9d96 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -73348,11 +73348,11 @@ }, "2024-07-30 13:30:00+00:00": { "A": 0.0, - "AAL": 613.7023626570169, - "AAPL": 45245.89638381894, + "AAL": 613.1161960920342, + "AAPL": 45276.882956610025, "ABBV": 5553.850782410092, "ABNB": 0.0, - "ABT": 3374.417412498961, + "ABT": 3374.0955108193107, "ACGL": 0.0, "ACN": 2.588231346455072e-13, "ADBE": 10664.74789108971, @@ -73370,19 +73370,19 @@ "AKAM": -0.08086065739168731, "ALB": 0.0, "ALGN": 1077.2835947150209, - "ALL": 6.627441662853855e-14, + "ALL": 6.65720541935119e-14, "ALLE": 0.0, - "AMAT": 2011.6452038628863, + "AMAT": 2012.8049405914587, "AMCR": 0.0, "AMD": 27234.017969726046, "AME": 0.0, "AMGN": 5856.962519700285, "AMP": 9.553809159120132, "AMT": 661.7404887492243, - "AMZN": 36416.97110154076, + "AMZN": 36407.31426023155, "ANET": 3437.1700912180017, "ANSS": 306.29651539394234, - "AON": 18.387712058336525, + "AON": 18.55875257259525, "AOS": 0.0, "APA": 0.0, "APD": 0.0, @@ -73427,22 +73427,22 @@ "CAH": 0.0, "CARR": 21078.953508767772, "CAT": 0.0, - "CB": 306.34226935263945, + "CB": 307.43594753399543, "CBOE": 0.0, "CBRE": 5307.447531067268, "CCI": 315.02531651854747, "CCL": 0.0, "CDNS": 0.0, "CDW": 403.51863719613254, - "CE": -2.6929225237654687e-14, + "CE": -2.6865033577147666e-14, "CEG": 34514.58288627274, "CF": 9837.919187292498, "CFG": 0.0, "CHD": 2391.833754788568, "CHRW": 0.0, - "CHTR": 6007.351516833974, - "CI": 4.0214376556954996e-13, - "CINF": 0.015799462828439362, + "CHTR": 6003.855802703539, + "CI": 4.0152872632560043e-13, + "CINF": 0.01582180830031604, "CL": 9.768735761131246, "CLX": 14.820060776016813, "CMCSA": 6538.195265270841, @@ -73463,8 +73463,8 @@ "CPT": 0.0, "CRL": 0.0, "CRM": 7820.220629221246, - "CRWD": 1731.893280134672, - "CSCO": 7065.556880668223, + "CRWD": 1730.2856925289466, + "CSCO": 7068.490540152144, "CSGP": -8.026573333912747e-14, "CSX": 0.0, "CTAS": 0.0, @@ -73476,7 +73476,7 @@ "CVX": -5.637880054388809e-13, "CZR": 8779.740367498436, "D": 0.0, - "DAL": 632.0569610547348, + "DAL": 634.2602399712895, "DAY": 0.0, "DD": 0.0, "DE": 1.0342792384783787e-13, @@ -73486,7 +73486,7 @@ "DGX": 0.0, "DHI": -8.102906405733885, "DHR": 1637.5917296489906, - "DIS": -4.083275149243292, + "DIS": -4.0624465805725345, "DLR": 2.984654737273053e-14, "DLTR": 1037.1782542925907, "DOC": 0.0, @@ -73498,7 +73498,7 @@ "DUK": 1.2371825535108323, "DVA": 3455.17877038055, "DVN": 0.0, - "DXCM": 5067.885871505039, + "DXCM": 5070.84528865319, "EA": 4022.042644904834, "EBAY": 0.0, "ECL": 0.0, @@ -73507,10 +73507,10 @@ "EG": 5.732605517768037e-14, "EIX": 0.0, "EL": 0.0, - "ELV": -2.216452115538801e-13, + "ELV": -2.2173725281483252e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 3843.1648148255103, + "ENPH": 3850.2436770083796, "EOG": 0.0, "EPAM": 5867.966723170188, "EQIX": 786.0167846727581, @@ -73529,14 +73529,14 @@ "EXR": 5.839675234354259e-14, "F": 0.0, "FANG": 13783.45417387291, - "FAST": 3365.7168083735455, + "FAST": 3365.242662485791, "FCX": 0.0, "FDS": 1217.781318894291, "FDX": 6332.103807218914, "FE": 0.0, "FFIV": 3161.8994100555487, "FI": 2.622219578934788e-13, - "FICO": 1521.816363958205, + "FICO": 1532.6021962229527, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, @@ -73544,7 +73544,7 @@ "FOXA": 0.0, "FRT": 0.0, "FSLR": -7.677981727476561e-14, - "FTNT": 5908.513730706788, + "FTNT": 5918.809338005434, "FTV": 0.0, "GD": 3.8416354479463867e-13, "GDDY": 0.0, @@ -73558,7 +73558,7 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23421.62690804825, + "GOOG": 23406.642650640268, "GOOGL": 2186.866169922846, "GPC": 0.0, "GPN": -1.0622541990419851e-13, @@ -73574,7 +73574,7 @@ "HIG": 5961.273818982157, "HII": 0.7656131506044402, "HLT": -1.3667798196585333e-13, - "HOLX": 2902.722584072124, + "HOLX": 2908.2446237073805, "HON": 0.0, "HPE": 0.0, "HPQ": 0.0, @@ -73591,7 +73591,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 4338.72003499729, - "INTC": 212.79636005118442, + "INTC": 213.2110293456928, "INTU": 1267.8175077606281, "INVH": 0.0, "IP": 0.0, @@ -73636,10 +73636,10 @@ "LMT": 8482.054043012324, "LNT": 0.0, "LOW": -2.8453166124278377e-13, - "LRCX": 847.0713288654962, + "LRCX": 849.9517092408265, "LULU": 1559.5246129776474, "LUV": 26.47048811814879, - "LVS": 1744.314357341925, + "LVS": 1738.1398200449921, "LW": 20.684035398896047, "LYB": 3575.2119924970725, "LYV": 2855.9849418077247, @@ -73648,14 +73648,14 @@ "MAR": -5.906986530816332e-13, "MAS": 0.0, "MCD": 10553.539051991547, - "MCHP": 2310.0768003909884, + "MCHP": 2311.1201381581577, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.3123204213897017, "MET": -0.036566121689774245, "META": 21945.525947637776, - "MGM": 3993.5876487714704, + "MGM": 3991.7205710862445, "MHK": 0.0, "MKC": 0.0, "MKTX": 5795.989655459223, @@ -73673,12 +73673,12 @@ "MRO": 0.0, "MS": 6202.6760742555325, "MSCI": 3785.0366361028778, - "MSFT": 37579.99286943612, + "MSFT": 37584.38537029973, "MSI": 0.0, "MTB": -6.540782811457416, "MTCH": 0.0, "MTD": 0.0, - "MU": 3606.3887299349817, + "MU": 3606.057828268436, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, @@ -73688,13 +73688,13 @@ "NI": 0.0, "NKE": -3.052080704523657e-14, "NOC": -4.276534627143565e-13, - "NOW": 5417.711033914097, + "NOW": 5463.002088574099, "NRG": 0.0, "NSC": -2.9759435677208093e-14, - "NTAP": 5694.71233087671, + "NTAP": 5695.618027952234, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 132495.66365156337, + "NVDA": 132507.53907789936, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, @@ -73730,9 +73730,9 @@ "PNW": 0.0, "PODD": -61.511866828996155, "POOL": 1440.9016734773293, - "PPG": -0.4076782470566023, + "PPG": -0.40480592005993304, "PPL": 0.0, - "PRU": 265.6545297985842, + "PRU": 266.9150833704413, "PSA": 0.0, "PSX": 1631.6003843351898, "PTC": 2.65240535091288e-14, @@ -73755,12 +73755,12 @@ "RTX": 0.0, "RVTY": 0.0, "SBAC": 6152.264082199696, - "SBUX": 8514.675260392014, + "SBUX": 8519.20384448961, "SCHW": 1.7501745465984464, "SHW": 1.5147390574330224, - "SJM": 1.0062951012922934, + "SJM": 0.9957240765020009, "SLB": 0.0, - "SMCI": 11012.23270413187, + "SMCI": 10996.634640811575, "SNA": 0.0, "SNPS": 0.0, "SO": 10.654242623995703, @@ -73768,7 +73768,7 @@ "SPG": 0.0, "SPGI": -5.879123478067316, "SRE": 0.0, - "STE": 0.5244657553700769, + "STE": 0.5240884440209055, "STLD": -2.8083377259437536e-14, "STT": 343.4848076939774, "STX": -13.383844992840404, @@ -73776,11 +73776,11 @@ "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, - "SYK": -6.845521596800438, + "SYK": -6.835457270276432, "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4694.258780125393, + "TDG": 4741.462845265093, "TDY": -16.371671518429487, "TECH": 0.0, "TEL": 0.0, @@ -73797,14 +73797,14 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.789363351055263e-12, - "TSLA": 104654.97485069533, + "TSLA": 104718.09851001312, "TSN": 5087.169337378214, "TT": 0.0, "TTWO": 740.7740704308036, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 4064.7993515866883, + "UAL": 4067.826638751278, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -73814,11 +73814,11 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -1604.983657842871, + "USDOLLAR": -1604.983605592652, "V": 1563.5139198417216, "VICI": 0.0, "VLO": 0.0, - "VLTO": 10927.148679450424, + "VLTO": 10934.42648234258, "VMC": 0.0, "VRSK": 0.0, "VRSN": 2995.949372315784, @@ -73835,14 +73835,519 @@ "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, - "WM": 1.4308640767759262, + "WM": 1.4317203575257722, "WMB": 0.0, "WMT": 11922.635322677574, "WRB": 0.0, "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 2874.9993940330714, + "WYNN": 2877.798606192859, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-07-31 13:30:00+00:00": { + "A": 0.0, + "AAL": 624.2530813271063, + "AAPL": 45760.24323367326, + "ABBV": 5638.433800274159, + "ABNB": 0.0, + "ABT": 3397.9292586166216, + "ACGL": 0.0, + "ACN": 2.621029977244804e-13, + "ADBE": 10767.09507521316, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.76877613945526, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3569.3730783276806, + "AIG": 0.0, + "AIZ": 1.498677572543122, + "AJG": 0.0, + "AKAM": -0.0812415280344811, + "ALB": 0.0, + "ALGN": 1130.2919113157009, + "ALL": 6.773517599967833e-14, + "ALLE": 0.0, + "AMAT": 1991.8805705846562, + "AMCR": 0.0, + "AMD": 29647.923166514083, + "AME": 0.0, + "AMGN": 5831.459014746261, + "AMP": 9.490301366779436, + "AMT": 666.2523557179687, + "AMZN": 36456.58790956518, + "ANET": 3611.887184445499, + "ANSS": 305.56128614903747, + "AON": 18.89392139981413, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 26.192197718557697, + "APTV": 2.403842150970522e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20283.049754399886, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4796.702302359898, + "AXP": 0.0, + "AZO": 1.82408081744537e-12, + "BA": -1.1301846510599465e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 506.5478958293463, + "BDX": 0.0, + "BEN": 184.27886863045848, + "BF-B": 0.0, + "BG": 965.2400024103448, + "BIIB": 2096.1376636752198, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3544.0946940652, + "BKR": 0.0, + "BLDR": 549.8534958726333, + "BLK": 1.00161919697591e-12, + "BMY": 98.21157676822172, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.329934067912877, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1410.6104680053877, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 21398.707498384556, + "CAT": 0.0, + "CB": 310.40124852474867, + "CBOE": 0.0, + "CBRE": 5377.44002136015, + "CCI": 316.1867046042424, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 383.61770794705757, + "CE": -2.7125688464205787e-14, + "CEG": 38551.59591508551, + "CF": 10092.541516801331, + "CFG": 0.0, + "CHD": 2419.0690166644076, + "CHRW": 0.0, + "CHTR": 5695.241980782083, + "CI": 4.0528858620074445e-13, + "CINF": 0.016111057756518877, + "CL": 9.920770753346115, + "CLX": 14.888599415418973, + "CMCSA": 6538.195265270841, + "CME": 4770.793920783076, + "CMG": 5463.523425275766, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 999.81862041933, + "CNP": 0.0, + "COF": 9454.00208137261, + "COO": 0.0, + "COP": 0.0, + "COR": 3592.6399249014457, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 724.3409935888486, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7717.505193254496, + "CRWD": 1405.589081983939, + "CSCO": 7100.7602349369035, + "CSGP": -7.973846549757057e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10816.355092627671, + "CTVA": 112.78200239590275, + "CVS": 0.0, + "CVX": -5.826337726199826e-13, + "CZR": 9565.447929113905, + "D": 0.0, + "DAL": 632.0680740621873, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0547686896737137e-13, + "DECK": 899.2637762870743, + "DFS": 3819.558537410303, + "DG": 0.0, + "DGX": 0.0, + "DHI": -8.176393176558388, + "DHR": 1651.1968062720307, + "DIS": -4.156175139590953, + "DLR": 2.98526180212766e-14, + "DLTR": 1051.9049356204546, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.40755918166384, + "DRI": 2.486960958333901, + "DTE": 0.0, + "DUK": 1.2461078296576302, + "DVA": 3420.113679428716, + "DVN": 0.0, + "DXCM": 5171.463213885872, + "EA": 4094.2279651157787, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.766083759530272e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.228666922768979e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3754.173037127496, + "EOG": 0.0, + "EPAM": 5948.498441577473, + "EQIX": 787.757785043258, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1443780462712683, + "EXPE": 4268.926054035616, + "EXR": 5.795965774678986e-14, + "F": 0.0, + "FANG": 14097.314484982098, + "FAST": 3388.4711093102655, + "FCX": 0.0, + "FDS": 1228.0638587833696, + "FDX": 6355.113442362359, + "FE": 0.0, + "FFIV": 3195.000783567862, + "FI": 2.6196571951470227e-13, + "FICO": 1549.0395931854719, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.608810720922722e-14, + "FTNT": 6002.201597069537, + "FTV": 0.0, + "GD": 3.891533660618844e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1717.9220765904604, + "GEN": 0.0, + "GEV": 19882.037750780615, + "GILD": 8313.364545833103, + "GIS": 7948.074448506119, + "GL": 0.32003972916921225, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23827.561228898234, + "GOOGL": 2225.403518948202, + "GPC": 0.0, + "GPN": -1.0576790774266962e-13, + "GRMN": 2339.878694568309, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1839746432871818, + "HBAN": 0.0, + "HCA": 6322.433350841473, + "HD": 8966.837868889474, + "HES": 0.0, + "HIG": 5996.725404415988, + "HII": 0.7696064902240088, + "HLT": -1.3453418969959654e-13, + "HOLX": 3025.678895224255, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10868.961263668667, + "HUBB": 1.3806410948076908e-13, + "HUM": 1058.5413410139402, + "HWM": 2506.2130647750832, + "IBM": 0.0, + "ICE": 748.6461996696025, + "IDXX": -9.890732066306711, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4241.719759252941, + "INTC": 210.44654541213828, + "INTU": 1291.5890860311401, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04631373074322802, + "IRM": 0.0, + "ISRG": 6483.069642843181, + "IT": 8.230577740375766e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2526.670605499751, + "JCI": 0.0, + "JKHY": 862.6964739288723, + "JNJ": 13721.54083908527, + "JNPR": 0.0, + "JPM": 2601.0271794658447, + "K": 471.4656088076903, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 785.8656852224553, + "KMB": 4503.383282170116, + "KMI": 0.0, + "KMX": 1.194804137913011, + "KO": 204.52455777477036, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.22001368021060247, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6921370645905076, + "LKQ": 4598.0865887699465, + "LLY": 1.3802508739271842, + "LMT": 8723.847407639765, + "LNT": 0.0, + "LOW": -2.8743395398868246e-13, + "LRCX": 842.0471629561698, + "LULU": 1545.6380944248165, + "LUV": 27.15437642389344, + "LVS": 1755.7814993878185, + "LW": 21.553417497762172, + "LYB": 3607.520516826762, + "LYV": 2812.005249884074, + "MA": 31248.218283233153, + "MAA": 0.0, + "MAR": -5.684547707480152e-13, + "MAS": 0.0, + "MCD": 10732.262363562122, + "MCHP": 2294.684881362285, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.322855848583028, + "MET": -0.03705213119179511, + "META": 22124.332297738263, + "MGM": 4026.2609740999214, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5810.979777171895, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5303.640756600615, + "MO": -21.621400100985095, + "MOH": 2110.0861375779236, + "MOS": 0.0, + "MPC": 15654.256804693312, + "MPWR": -9.253079931127194e-13, + "MRK": 5265.02287141757, + "MRNA": 7389.846713729489, + "MRO": 0.0, + "MS": 6173.926961807294, + "MSCI": 3792.3956410618366, + "MSFT": 36957.861358228896, + "MSI": 0.0, + "MTB": -6.520042248929415, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3742.3244117553313, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16260.636579099024, + "NI": 0.0, + "NKE": -3.085629053517959e-14, + "NOC": -4.365909716432418e-13, + "NOW": 5533.650671356407, + "NRG": 0.0, + "NSC": -2.9919226167436125e-14, + "NTAP": 5662.114144602445, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 136856.8544699848, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 8022.025814161229, + "O": 0.0, + "ODFL": 2465.003833572874, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.7934770419581763, + "ORCL": 7240.276279348021, + "ORLY": -0.8147249712942528, + "OTIS": 1601.7255390256203, + "OXY": 0.0, + "PANW": 5790.337006646054, + "PARA": 2102.161282267147, + "PAYC": 0.0, + "PAYX": 386.3310014009583, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 10279.14451494451, + "PFE": 0.0, + "PFG": 165.73953901683183, + "PG": 1.0285816941813948, + "PGR": 8200.70446120416, + "PH": 0.0, + "PHM": -12.935279589080041, + "PKG": -5.181938582900737e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.36091901482609, + "POOL": 1461.9760225531677, + "PPG": -0.4080293105978053, + "PPL": 0.0, + "PRU": 143.20115602755092, + "PSA": 0.0, + "PSX": 1543.4416820502565, + "PTC": 2.6634440695267006e-14, + "PWR": -5.059164014938843, + "PYPL": 0.0, + "QCOM": 4169.88050696803, + "QRVO": 0.0, + "RCL": 1884.4008238173312, + "REG": 0.0, + "REGN": 1101.0801106271929, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 391.40316235877805, + "ROK": 1.227667055539887, + "ROL": 0.0, + "ROP": 5429.358718232236, + "ROST": 1146.3044801795586, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6379.296626144002, + "SBUX": 9004.883476282626, + "SCHW": 1.7342445998967884, + "SHW": 1.5214344057472495, + "SJM": 1.0092788504217078, + "SLB": 0.0, + "SMCI": 11074.78109037111, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.692920084365666, + "SOLV": -1.6327958096976848e-12, + "SPG": 0.0, + "SPGI": -5.831079576850807, + "SRE": 0.0, + "STE": 0.5255310114381883, + "STLD": -2.790516159137636e-14, + "STT": 344.52917865586517, + "STX": -13.23513540671583, + "STZ": -2.0463303529073174, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.788420835421245, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4881.859093412242, + "TDY": -16.362421056087452, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 453.7743108768194, + "TMO": 0.0, + "TMUS": 7282.505315565816, + "TPR": 2608.246292961112, + "TRGP": 409.15189702607785, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.7704705697008535e-12, + "TSLA": 100258.64458702043, + "TSN": 5103.944577560738, + "TT": 0.0, + "TTWO": 744.0734694753529, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 4033.2291182916238, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3338.908801976227, + "UNH": 18006.44852068345, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -1408.5636462051482, + "V": 1571.294945303619, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 11578.602408718261, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3005.109940398511, + "VRTX": 2005.6233346894614, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.4269796824966595e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.688683926358459, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4397828967412671, + "WMB": 0.0, + "WMT": 11859.207463262477, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2816.974167900884, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 7e47cfc79..cd0823889 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -70824,5 +70824,510 @@ "ZBH": 2.4673553287962182e-09, "ZBRA": 1.7074009427643993e-09, "ZTS": 6.01151338069015e-09 + }, + "2024-07-31 13:30:00+00:00": { + "A": 1.1865940853848169e-09, + "AAL": 0.0005329666699520129, + "AAPL": 0.03906857080298952, + "ABBV": 0.004813944198602167, + "ABNB": 8.987102680823498e-10, + "ABT": 0.002901037669124304, + "ACGL": 3.0929595524150087e-09, + "ACN": 4.249036968142077e-09, + "ADBE": 0.009192624815270004, + "ADI": 5.317114063242808e-09, + "ADM": 2.834828785233164e-09, + "ADP": 4.6441785887840405e-09, + "ADSK": 5.155436653495331e-09, + "AEE": 1.3732745480055316e-09, + "AEP": 1.2468411508198247e-09, + "AES": 6.122697351588669e-10, + "AFL": 0.003047397194421501, + "AIG": 1.1357355831935975e-09, + "AIZ": 3.910871352321471e-09, + "AJG": 2.6253702864651692e-09, + "AKAM": 3.818674496467806e-09, + "ALB": 4.986771682570297e-10, + "ALGN": 0.0008569653228759683, + "ALL": 3.4492696731000384e-09, + "ALLE": 1.2209558727107673e-09, + "AMAT": 0.001700600081773535, + "AMCR": 3.63637863495666e-10, + "AMD": 0.025055080260592964, + "AME": 1.3373875632477555e-09, + "AMGN": 0.004978695974521212, + "AMP": 1.240951596159159e-08, + "AMT": 0.0005688261516936719, + "AMZN": 0.031125414755493255, + "ANET": 0.003083673419633161, + "ANSS": 0.00023517022430938567, + "AON": 5.58335777003604e-09, + "AOS": 1.0990240342704278e-09, + "APA": 7.682562980340144e-10, + "APD": 2.7604217564004175e-09, + "APH": 9.791139129593115e-09, + "APTV": 2.3033279247710127e-09, + "ARE": 9.4478187325229e-10, + "ATO": 1.5654888210910329e-09, + "AVB": 1.5052511204392041e-09, + "AVGO": 0.017317007362166195, + "AVY": 1.4756441802121364e-09, + "AWK": 2.921790963962515e-09, + "AXON": 0.004178596595239409, + "AXP": 2.502472614709308e-09, + "AZO": 1.4850316106812513e-08, + "BA": 5.74307272504045e-09, + "BAC": 1.880793839874407e-09, + "BALL": 3.698627419319928e-09, + "BAX": 2.411284457998342e-09, + "BBWI": 1.7823717111732553e-09, + "BBY": 0.00043252043009106865, + "BDX": 3.313182957975905e-09, + "BEN": 0.00015733138326154677, + "BF-B": 2.6972968691482133e-09, + "BG": 0.0008240734090656533, + "BIIB": 0.0017896238342590923, + "BIO": 1.3270373532917336e-09, + "BK": 1.6406884139123163e-09, + "BKNG": 0.0016611346506540197, + "BKR": 8.398913380480872e-10, + "BLDR": 0.00046945596276462044, + "BLK": 3.799886255927446e-08, + "BMY": 8.384910124826296e-05, + "BR": 2.2718382690946775e-09, + "BRK-B": 3.4592418349287183e-09, + "BRO": 1.3424071799167613e-08, + "BSX": 2.787121458375182e-09, + "BWA": 1.4705083703766326e-09, + "BX": 0.001204272768395534, + "BXP": 1.062953587376566e-09, + "C": 2.2380487289322944e-09, + "CAG": 3.5114750875313512e-09, + "CAH": 2.738849835694393e-09, + "CARR": 0.018269502750402573, + "CAT": 8.803564346717262e-10, + "CB": 0.00024400706724091417, + "CBOE": 9.430666550990432e-09, + "CBRE": 0.004591020033207232, + "CCI": 0.0002699505570263368, + "CCL": 1.0816145259404336e-09, + "CDNS": 4.754618743697623e-09, + "CDW": 0.00032758521052642965, + "CE": 2.2476322474906404e-09, + "CEG": 0.03280349912506142, + "CF": 0.008616670360006275, + "CFG": 1.867767567791814e-09, + "CHD": 0.002065317730085611, + "CHRW": 3.7300407142155e-09, + "CHTR": 0.004667277381845107, + "CI": 8.67621365734882e-09, + "CINF": 9.041469072127547e-09, + "CL": 8.428868887530105e-06, + "CLX": 6.92496598124858e-08, + "CMCSA": 0.005582092008404162, + "CME": 0.004073315002574709, + "CMG": 0.004664570446764577, + "CMI": 1.3003205065398265e-09, + "CMS": 1.1702474229129058e-09, + "CNC": 0.000853610017600614, + "CNP": 1.151245104378241e-09, + "COF": 0.008071444001304526, + "COO": 2.8973016257997716e-09, + "COP": 1.938956986438366e-09, + "COR": 0.0028704264240952113, + "COST": 2.8805145558110085e-09, + "CPAY": 5.909445274848221e-09, + "CPB": 4.640521821034084e-09, + "CPRT": 0.0006184159965505029, + "CPT": 1.316208185954113e-09, + "CRL": 6.879982875835977e-10, + "CRM": 0.006588951473613885, + "CRWD": 0.001200006131936495, + "CSCO": 0.006062396344164942, + "CSGP": 3.0133891186042583e-09, + "CSX": 2.7580901715952195e-09, + "CTAS": 2.9109355896458107e-09, + "CTLT": 1.4994251252667456e-09, + "CTRA": 7.990324232701489e-10, + "CTSH": 0.009137685951097391, + "CTVA": 9.629019562854388e-05, + "CVS": 2.5507206171338886e-09, + "CVX": 2.728017416827339e-09, + "CZR": 0.008166649333722416, + "D": 2.081257047904597e-09, + "DAL": 0.0005396386493569715, + "DAY": 1.1137058587525112e-09, + "DD": 1.6162003179873387e-09, + "DE": 2.56304888430608e-09, + "DECK": 0.0008712672323126715, + "DFS": 0.0032610133461668835, + "DG": 1.3600854786961147e-09, + "DGX": 3.889497993023833e-09, + "DHI": 1.0932196384924466e-08, + "DHR": 0.0013700038691517834, + "DIS": 3.0017288996855032e-09, + "DLR": 2.2591780038407404e-09, + "DLTR": 0.0008980865775406396, + "DOC": 6.429966316696611e-10, + "DOV": 1.4659402827721281e-09, + "DOW": 1.5761526753140218e-09, + "DPZ": 1.2503465823543515e-08, + "DRI": 2.1078870067204704e-06, + "DTE": 1.4791791316976241e-09, + "DUK": 8.23838167014068e-09, + "DVA": 0.0029199618838537675, + "DVN": 7.873528373830729e-10, + "DXCM": 0.0044152289017623785, + "EA": 0.003494715817519843, + "EBAY": 1.8403901644942147e-09, + "ECL": 1.413513312813476e-09, + "ED": 2.2072814867115564e-09, + "EFX": 1.4083452003713323e-09, + "EG": 6.713704317909079e-09, + "EIX": 2.108392921576357e-09, + "EL": 1.5418076614717636e-09, + "ELV": 6.065331180551216e-09, + "EMN": 1.1787154927695612e-09, + "EMR": 8.416788666463823e-10, + "ENPH": 0.0032060087507607814, + "EOG": 1.8468044666725348e-09, + "EPAM": 0.005078625042499352, + "EQIX": 0.0005120062734341104, + "EQR": 1.5093491563963942e-09, + "EQT": 4.969534348037087e-10, + "ES": 1.1741330938656237e-09, + "ESS": 2.0958403206882534e-09, + "ETN": 6.697842410452702e-10, + "ETR": 2.0232842169710233e-09, + "ETSY": 3.6868546680483524e-09, + "EVRG": 7.943524206317447e-10, + "EW": 1.830560579041624e-09, + "EXC": 1.542017264844437e-09, + "EXPD": 5.834160068030135e-09, + "EXPE": 0.0036208608687893287, + "EXR": 4.021452322054469e-09, + "F": 7.263162669609699e-10, + "FANG": 0.012035587584568904, + "FAST": 0.0028929602367755423, + "FCX": 7.819014976205166e-10, + "FDS": 0.0009670516466089521, + "FDX": 0.005386318369934737, + "FE": 1.3920834273105738e-09, + "FFIV": 0.002705204951555441, + "FI": 5.976786112293421e-09, + "FICO": 0.0013246176674649433, + "FIS": 2.0937614048466523e-09, + "FITB": 2.74991033978526e-09, + "FMC": 1.6925873633473802e-09, + "FOX": 9.777464297159035e-10, + "FOXA": 1.3368731328164253e-09, + "FRT": 1.0612055050906814e-09, + "FSLR": 6.913132140037671e-10, + "FTNT": 0.005124478455785973, + "FTV": 7.531569401434516e-10, + "GD": 4.6788234874654005e-09, + "GDDY": 5.831070873511785e-09, + "GE": 1.3347157516966488e-09, + "GEHC": 0.0014666947323346234, + "GEN": 1.1177926652330843e-09, + "GEV": 0.01697442842799185, + "GILD": 0.007097643839732451, + "GIS": 0.006785799638270164, + "GL": 3.845658009574699e-09, + "GLW": 1.291567680383883e-09, + "GM": 1.2418332890441616e-09, + "GNRC": 1.10506295022015e-09, + "GOOG": 0.02037213243395849, + "GOOGL": 0.0019001558346522496, + "GPC": 2.4337534082164856e-09, + "GPN": 5.187661987034874e-09, + "GRMN": 0.0019977071779054907, + "GS": 2.62735348159782e-09, + "GWW": 1.0111360395529838e-09, + "HAL": 8.518468038528435e-10, + "HAS": 1.0032250667917296e-06, + "HBAN": 8.486510526987382e-10, + "HCA": 0.0052475430820847985, + "HD": 0.007655581885680763, + "HES": 1.943790965751772e-09, + "HIG": 0.00511977557758983, + "HII": 9.030078715672736e-09, + "HLT": 3.936764439342587e-09, + "HOLX": 0.0025832077313784813, + "HON": 1.6686420612995491e-09, + "HPE": 7.172816660860488e-10, + "HPQ": 1.0801954004328723e-09, + "HRL": 2.979635631460643e-09, + "HSIC": 2.8726590113106712e-09, + "HST": 1.0456167564102301e-09, + "HSY": 0.009279478059130342, + "HUBB": 4.626065832747015e-10, + "HUM": 0.0009142611146504649, + "HWM": 0.002139760586526166, + "IBM": 1.3898715640780197e-09, + "ICE": 0.0006391693451929119, + "IDXX": 4.627665205743253e-09, + "IEX": 1.421185735130746e-09, + "IFF": 1.6560460791724585e-09, + "INCY": 0.0036214354839422, + "INTC": 0.0001796720969606998, + "INTU": 0.0011185953027258503, + "INVH": 8.094511963143564e-10, + "IP": 1.2657217280754916e-09, + "IPG": 2.2906037372410367e-09, + "IQV": 1.1935029373651834e-09, + "IR": 7.009750898502058e-09, + "IRM": 1.995045704293566e-09, + "ISRG": 0.00553500929912393, + "IT": 4.629924139265701e-09, + "ITW": 2.0270154418004507e-09, + "IVZ": 1.0952871556300855e-09, + "J": 2.0445123179189414e-09, + "JBHT": 2.3446592935543368e-09, + "JBL": 0.0021571976803836674, + "JCI": 7.989950596062556e-10, + "JKHY": 0.0007365544213878329, + "JNJ": 0.011714972442393827, + "JNPR": 1.5304760797040424e-09, + "JPM": 0.002220630834058621, + "K": 0.00040252049787596345, + "KDP": 1.1396053411762869e-09, + "KEY": 7.177719825896362e-10, + "KEYS": 1.732351992026972e-09, + "KHC": 5.621361305400527e-10, + "KIM": 8.804524686564093e-10, + "KKR": 3.2231505014563554e-09, + "KLAC": 0.0006709625506426446, + "KMB": 0.003844826774054281, + "KMI": 4.292373291101679e-10, + "KMX": 7.764272442245586e-09, + "KO": 0.00017461199568368963, + "KR": 5.328392342240228e-09, + "KVUE": -1.8996873484411036e-10, + "L": 2.259133803725476e-09, + "LDOS": 1.0384028585218264e-08, + "LEN": 6.441587430200537e-09, + "LH": 1.174963575681298e-09, + "LHX": 2.3330470435615394e-09, + "LIN": 9.355562763587093e-09, + "LKQ": 0.0039194637761525404, + "LLY": 9.634869325509092e-09, + "LMT": 0.007108538082691162, + "LNT": 1.0431041793573535e-09, + "LOW": 4.735046752870076e-09, + "LRCX": 0.0007111613996451021, + "LULU": 0.001319654399045189, + "LUV": 2.318384825917854e-05, + "LVS": 0.0014990251248005887, + "LW": 7.002702038535715e-09, + "LYB": 0.0030424998095699204, + "LYV": 0.0024007987061774516, + "MA": 0.025909871901830868, + "MAA": 1.6080655222270894e-09, + "MAR": 4.6153183250547854e-09, + "MAS": 1.7350185715227586e-09, + "MCD": 0.009120819516220085, + "MCHP": 0.0019591355338048587, + "MCK": 1.143572581128407e-08, + "MCO": 1.5004946335312607e-09, + "MDLZ": 1.7839388605291913e-09, + "MDT": 1.125793604856068e-06, + "MET": 2.319865947566312e-09, + "META": 0.018780391329816865, + "MGM": 0.003437478458509669, + "MHK": 1.5008156102957502e-09, + "MKC": 2.1117707640249e-09, + "MKTX": 0.0049450726827661206, + "MLM": 1.1472427783835404e-09, + "MMC": 1.620957546964346e-09, + "MMM": 1.4656094884091556e-09, + "MNST": 0.004528070684673522, + "MO": 2.136075942381799e-09, + "MOH": 0.001800474278782331, + "MOS": 6.160160652453909e-10, + "MPC": 0.013009301347420886, + "MPWR": 1.5069191843383624e-08, + "MRK": 0.004495100001379634, + "MRNA": 0.00630919759180457, + "MRO": 4.195128668383039e-10, + "MS": 0.005271088551573833, + "MSCI": 0.00317768778075651, + "MSFT": 0.03199770411588572, + "MSI": 3.2229647500920942e-09, + "MTB": 6.872206407985347e-09, + "MTCH": 3.811188427854012e-09, + "MTD": 2.6615948092436234e-09, + "MU": 0.0032145543800794073, + "NCLH": 1.3293877174540171e-09, + "NDAQ": 2.726215344195553e-09, + "NDSN": 1.4059455594356978e-09, + "NEE": 1.076896567098136e-09, + "NEM": 7.877018712986998e-10, + "NFLX": 0.01419057874211846, + "NI": 9.298656742328277e-10, + "NKE": 7.2088048110201965e-09, + "NOC": 9.617461097230284e-09, + "NOW": 0.004812021899847507, + "NRG": 4.980252369561961e-10, + "NSC": 3.4083393656167775e-09, + "NTAP": 0.0048341051408775605, + "NTRS": 1.520384314128754e-09, + "NUE": 2.6913700955761264e-09, + "NVDA": 0.11727308562564967, + "NVR": 0.0011425813813008031, + "NWS": 6.07140552997467e-10, + "NWSA": 5.959276325281162e-10, + "NXPI": 0.006776537519675072, + "O": 2.9680359841066195e-09, + "ODFL": 0.0019701717835627387, + "OKE": 1.567079257393454e-09, + "OMC": 1.6109478271090035e-09, + "ON": 2.677182601377739e-09, + "ORCL": 0.006181507612858516, + "ORLY": 8.65299285917915e-09, + "OTIS": 0.0013674832707477858, + "OXY": 1.1237058481344382e-09, + "PANW": 0.005067250386469943, + "PARA": 0.001794754415885766, + "PAYC": 6.460222054455309e-09, + "PAYX": 0.00023405983822152632, + "PCAR": 3.1355774961348754e-09, + "PCG": 8.716478805118835e-10, + "PEG": 1.5616071296349294e-09, + "PEP": 0.008688138200055278, + "PFE": 2.2254368338377614e-09, + "PFG": 0.00014138474247497968, + "PG": 5.5175602138309816e-09, + "PGR": 0.007001502178169498, + "PH": 1.0360538563016854e-09, + "PHM": 4.729572461201233e-09, + "PKG": 4.413024462631237e-09, + "PLD": 1.8870237333691842e-09, + "PM": 3.965908526046303e-09, + "PNC": 3.5420860524691276e-09, + "PNR": 7.513310155123942e-10, + "PNW": 1.2577952151366397e-09, + "PODD": 7.968492380485738e-09, + "POOL": 0.001191069199250926, + "PPG": 2.6309768592260505e-09, + "PPL": 1.3295693491926752e-09, + "PRU": 9.511108591237527e-05, + "PSA": 1.493505014168166e-09, + "PSX": 0.0008995981422027207, + "PTC": 3.6406604937957664e-09, + "PWR": 2.846131873847413e-09, + "PYPL": 8.78832155455008e-10, + "QCOM": 0.003716651511676382, + "QRVO": 5.918735620163021e-10, + "RCL": 0.001494255258169633, + "REG": 1.3569441766371995e-09, + "REGN": 0.000985814997749546, + "RF": 1.1890748819515777e-09, + "RJF": 2.898755295587152e-09, + "RL": 1.6784600655177516e-09, + "RMD": 0.0003798470336140592, + "ROK": 2.3974627693781048e-09, + "ROL": 1.4239104360056968e-09, + "ROP": 0.004577415146049767, + "ROST": 0.0009786725053022225, + "RSG": 3.168236811858203e-09, + "RTX": 3.6162972484680536e-09, + "RVTY": 1.0229591986868697e-09, + "SBAC": 0.005324148265258266, + "SBUX": 0.007688060245634551, + "SCHW": 3.047776621194097e-08, + "SHW": 1.2822140430313872e-08, + "SJM": 1.270131501072355e-08, + "SLB": 8.49049331271244e-10, + "SMCI": 0.00938503739985132, + "SNA": 1.4035197311303456e-09, + "SNPS": 1.3197623455649553e-09, + "SO": 4.388032019756534e-06, + "SOLV": -4.0758714961248435e-10, + "SPG": 1.4755300132978703e-09, + "SPGI": 2.581491791165694e-09, + "SRE": 2.0855787409872458e-09, + "STE": 4.427621529503063e-07, + "STLD": 4.832070294183802e-09, + "STT": 0.00029414397695182333, + "STX": 4.065265645803527e-09, + "STZ": 3.292315196280197e-08, + "SWK": 1.203752159555515e-09, + "SWKS": 1.1804156042379815e-09, + "SYF": 2.4122840717668127e-09, + "SYK": 1.0306919968713397e-08, + "SYY": 3.1938696624423016e-09, + "T": 2.045358064479385e-09, + "TAP": 1.7718295053179296e-09, + "TDG": 0.004200026617539974, + "TDY": 4.897075563406746e-09, + "TECH": 3.302145065508051e-09, + "TEL": 2.5031159321891014e-09, + "TER": 1.196316798028938e-09, + "TFC": 1.3802244745859671e-09, + "TFX": 2.9729215868725417e-09, + "TGT": 3.3057298227457615e-09, + "TJX": 0.0003874129412524039, + "TMO": 3.528985828195694e-09, + "TMUS": 0.00614814885300183, + "TPR": 0.002226833783210651, + "TRGP": 0.0003259697145827692, + "TRMB": 3.000581855163468e-09, + "TROW": 2.89972402347427e-09, + "TRV": 2.7702464396394703e-09, + "TSCO": 4.547537044739423e-09, + "TSLA": 0.08691724281490161, + "TSN": 0.004357571783021506, + "TT": 9.854430554184522e-10, + "TTWO": 0.0006352756099045326, + "TXN": 2.2733985336805417e-09, + "TXT": 1.0970182484451667e-09, + "TYL": 1.3817891697140427e-08, + "UAL": 0.003443438311932804, + "UBER": 1.7094404428062772e-09, + "UDR": 9.483603622545963e-10, + "UHS": 1.8927183163708224e-09, + "ULTA": 0.002735319342759248, + "UNH": 0.015373350650091213, + "UNP": 3.2765815880410867e-09, + "UPS": 1.0742953144966726e-09, + "URI": 1.929139209928424e-09, + "USB": 1.3485011773492142e-09, + "USDOLLAR": 1.0443390383919372e-07, + "V": 0.0013414798202968413, + "VICI": 1.161676416103006e-09, + "VLO": 4.636042963946906e-09, + "VLTO": 0.010371642280943501, + "VMC": 6.96636695673053e-10, + "VRSK": 3.9161548363311595e-09, + "VRSN": 0.0025641903743057076, + "VRTX": 0.0017123319828947724, + "VST": 5.075094639941583e-10, + "VTR": 2.2507565122125578e-09, + "VTRS": 9.774289068176795e-10, + "VZ": 2.6274239490435485e-09, + "WAB": 9.830057743081528e-10, + "WAT": 2.5856201156948985e-09, + "WBA": 5.070160482695984e-10, + "WBD": 3.016499776504393e-10, + "WDC": 1.4978419193640653e-09, + "WEC": 2.56965559760364e-09, + "WELL": 1.920116528534413e-09, + "WFC": 3.8907223240974354e-09, + "WM": 1.1978548725494472e-08, + "WMB": 4.0216540935586066e-09, + "WMT": 0.010124992460770471, + "WRB": 2.7609626376649834e-09, + "WST": 1.2871902687887823e-09, + "WTW": 2.2371117109831297e-09, + "WY": 7.541016406421997e-10, + "WYNN": 0.002357302660918058, + "XEL": 1.4573551199218873e-09, + "XOM": 2.558694635220292e-09, + "XYL": 2.0061858936987242e-09, + "YUM": 4.1518843760546186e-09, + "ZBH": 1.3642075266724047e-09, + "ZBRA": 9.531554755597916e-10, + "ZTS": 3.352953354826554e-09 } } \ No newline at end of file From 092ccafe44f525669d87eb06355bcaead9932ebe Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 1 Aug 2024 11:31:50 +0400 Subject: [PATCH 098/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-01 --- .../ftse100_daily_initial_holdings.json | 107 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 +++++++++++++++++ 2 files changed, 208 insertions(+), 2 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 2b5e70a50..aa11675c7 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11733,7 +11733,7 @@ "BA.L": 10543.125529678751, "BARC.L": 10521.83296342304, "BATS.L": 11674.283662888083, - "BDEV.L": 10461.16172796156, + "BDEV.L": 10564.500496319404, "BEZ.L": 11020.6430141848, "BKG.L": 10251.327412296894, "BME.L": 10425.756557497038, @@ -11795,7 +11795,7 @@ "PSON.L": 1071.3062744081049, "REL.L": 11140.023043267818, "RIO.L": 10507.126112718948, - "RKT.L": 8576.924194766592, + "RKT.L": 8576.924385047065, "RMV.L": 12036.35184185943, "RR.L": 10800.57915205876, "RTO.L": 10850.580252411064, @@ -11822,5 +11822,108 @@ "WEIR.L": 10159.21971594514, "WPP.L": 10832.829599442895, "WTB.L": 11763.985304504764 + }, + "2024-08-01 07:00:00+00:00": { + "AAF.L": 21550.906591592648, + "AAL.L": 10431.954786915523, + "ABF.L": 9946.636553632252, + "ADM.L": 11044.184576105768, + "AHT.L": 16954.58935832214, + "ANTO.L": 18948.53061368021, + "AUTO.L": 10538.174788835462, + "AV.L": 20875.836783947452, + "AZN.L": 12634.012367346637, + "BA.L": 10855.48438530986, + "BARC.L": 10611.380478005369, + "BATS.L": 11607.214169672203, + "BDEV.L": 10457.186880035502, + "BEZ.L": 10403.113643597828, + "BKG.L": 10211.007540468783, + "BME.L": 10324.17099685687, + "BNZL.L": 9829.298700572497, + "BP.L": 1.4089849108698008e-12, + "BRBY.L": 10538.474351406952, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10586.04892509763, + "CPG.L": 0.0, + "CRDA.L": 12171.636541307378, + "CTEC.L": 40.79339183920185, + "DARK.L": 25968.76187787377, + "DCC.L": 21636.12083012989, + "DGE.L": 9813.545178145967, + "DPLM.L": 8917.77810593265, + "EDV.L": 6967.694859038147, + "ENT.L": 10634.183942116886, + "EXPN.L": 11058.644312956169, + "EZJ.L": 8812.97910531083, + "FCIT.L": 0.0, + "FRAS.L": 10691.879136078705, + "FRES.L": 10926.635894391826, + "GBPOUND": -805.0346130637037, + "GLEN.L": 9668.251200996492, + "GSK.L": 10875.767073785171, + "HIK.L": 9586.981412272087, + "HL.L": 9990.245677888985, + "HLMA.L": 10667.196473059437, + "HLN.L": 0.0, + "HSBA.L": 10392.11887743024, + "HWDN.L": 10456.447059328402, + "IAG.L": 10360.948931871693, + "ICG.L": 11076.667938973767, + "IHG.L": 15792.03489229952, + "III.L": 9414.533545047861, + "IMB.L": 10885.480742605781, + "IMI.L": 11409.938762814998, + "INF.L": 10513.980748118729, + "ITRK.L": 10214.928793603176, + "JD.L": 11609.59506817673, + "KGF.L": 10454.784517068407, + "LAND.L": 0.0, + "LGEN.L": 10601.678019475043, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 29100.37960488683, + "MKS.L": 0.0, + "MNDI.L": 11135.97225292668, + "MNG.L": 10417.579713346802, + "MRO.L": 44211.71475474668, + "NG.L": 10127.687132919827, + "NWG.L": 10469.800796888167, + "NXT.L": 9580.796146733945, + "PHNX.L": 0.0, + "PRU.L": 10675.037620591758, + "PSH.L": 50496.35741335182, + "PSN.L": 11279.486146035944, + "PSON.L": 1078.4551246663095, + "REL.L": 11046.384020941006, + "RIO.L": 10899.676611143384, + "RKT.L": 8537.693422880824, + "RMV.L": 12188.603912012217, + "RR.L": 11266.464808995406, + "RTO.L": 10385.477920743419, + "SBRY.L": 0.0, + "SDR.L": 10234.916917452541, + "SGE.L": 39332.49545375634, + "SGRO.L": 0.0, + "SHEL.L": 2856.9999999999986, + "SMDS.L": 10624.982709771391, + "SMIN.L": 0.0, + "SMT.L": 10324.273566988451, + "SN.L": 3570.4903472551673, + "SPX.L": 9177.060353734623, + "SSE.L": 11465.172664580341, + "STAN.L": 10217.935621683642, + "SVT.L": 10468.522523163288, + "TSCO.L": 10407.18020561696, + "TW.L": 10435.657992998404, + "ULVR.L": 9665.421350415458, + "UTG.L": 10663.247301353522, + "UU.L": 10656.026611611578, + "VOD.L": 10467.731962824115, + "VTY.L": 11138.33434871562, + "WEIR.L": 10312.37378201466, + "WPP.L": 10656.223374574773, + "WTB.L": 11820.776957698925 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index e7a1d3b3f..6d3f96dfe 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11431,5 +11431,108 @@ "WEIR.L": 0.009999997262695294, "WPP.L": 0.009999994475929886, "WTB.L": 0.009999980532669728 + }, + "2024-08-01 07:00:00+00:00": { + "AAF.L": 0.02039752015282214, + "AAL.L": 0.009999999768533347, + "ABF.L": 0.009598708252469779, + "ADM.L": 0.01000001719403261, + "AHT.L": 0.016054880314100472, + "ANTO.L": 0.017935996221680867, + "AUTO.L": 0.010000002222542754, + "AV.L": 0.020712829888952185, + "AZN.L": 0.010000007859550332, + "BA.L": 0.010000003017627839, + "BARC.L": 0.010000000303028536, + "BATS.L": 0.010000001542396329, + "BDEV.L": 0.01000000112241805, + "BEZ.L": 0.010000002458372034, + "BKG.L": 0.010000001023815163, + "BME.L": 0.009999995746912644, + "BNZL.L": 0.00999999556387932, + "BP.L": 8.967828718506447e-08, + "BRBY.L": 0.009999995864005112, + "BT-A.L": 8.571660586507925e-09, + "CCH.L": 7.095348809911435e-08, + "CNA.L": 0.009999997361944962, + "CPG.L": 2.0498595285972874e-07, + "CRDA.L": 0.00999999903061245, + "CTEC.L": 6.170578151141847e-08, + "DARK.L": 0.024650984350818465, + "DCC.L": 0.020221343963730296, + "DGE.L": 0.009288192315033243, + "DPLM.L": 0.0100000024053042, + "EDV.L": 0.006649006284519527, + "ENT.L": 0.010000010490560691, + "EXPN.L": 0.01000000086220741, + "EZJ.L": 0.00834198319129922, + "FCIT.L": 1.1068850879086785e-08, + "FRAS.L": 0.010000001813711487, + "FRES.L": 0.009999999666970183, + "GBPOUND": 5.046115450610313e-08, + "GLEN.L": 0.009150857026843047, + "GSK.L": 0.009999997338035622, + "HIK.L": 0.01000000042714707, + "HL.L": 0.010000001044621645, + "HLMA.L": 0.010000001423399648, + "HLN.L": 1.479242145593695e-08, + "HSBA.L": 0.009999999124351565, + "HWDN.L": 0.009999999663300976, + "IAG.L": 0.00999990783816437, + "ICG.L": 0.010000004350876404, + "IHG.L": 0.013985939468541233, + "III.L": 0.010000001535530151, + "IMB.L": 0.010000004032470016, + "IMI.L": 0.009999997597356649, + "INF.L": 0.009999979187903602, + "ITRK.L": 0.009999999215126376, + "JD.L": 0.010955293106696776, + "KGF.L": 0.009999991534410443, + "LAND.L": 6.491890055020063e-09, + "LGEN.L": 0.00999999992307687, + "LLOY.L": 2.7478636736134775e-08, + "LMP.L": 1.5565617907457266e-08, + "LSEG.L": 0.02691164507614636, + "MKS.L": 1.74527507278265e-08, + "MNDI.L": 0.010000000091176287, + "MNG.L": 0.010000000079352735, + "MRO.L": 0.04184559459315258, + "NG.L": 0.009999985260793928, + "NWG.L": 0.009999996281681375, + "NXT.L": 0.010000002729677772, + "PHNX.L": 1.0651015826525646e-08, + "PRU.L": 0.009999999035185158, + "PSH.L": 0.04749391028542397, + "PSN.L": 0.010000000864018036, + "PSON.L": 0.0010208003277391024, + "REL.L": 0.009999998198853536, + "RIO.L": 0.010000001223633927, + "RKT.L": 0.009999993146577362, + "RMV.L": 0.011536219881465045, + "RR.L": 0.009999999412289769, + "RTO.L": 0.0099999987807713, + "SBRY.L": 1.5586230407026216e-08, + "SDR.L": 0.009999995874125825, + "SGE.L": 0.03708697487038503, + "SGRO.L": 1.730141528647464e-08, + "SHEL.L": 0.0027319221055189863, + "SMDS.L": 0.00999999832528229, + "SMIN.L": 3.406010122956192e-08, + "SMT.L": 0.009999978283713353, + "SN.L": 0.0034289125997307374, + "SPX.L": 0.009999991449095778, + "SSE.L": 0.009999999396635751, + "STAN.L": 0.009999997059208957, + "SVT.L": 0.010000000354735325, + "TSCO.L": 0.009999998195131508, + "TW.L": 0.009999997564853539, + "ULVR.L": 0.009999985905707005, + "UTG.L": 0.010000005998282184, + "UU.L": 0.009999995408395093, + "VOD.L": 0.00999999956058071, + "VTY.L": 0.010000000232703567, + "WEIR.L": 0.009999999247836337, + "WPP.L": 0.00999999775733338, + "WTB.L": 0.009999993645847026 } } \ No newline at end of file From 97b0b60be0acb8b81d1c7b66eadc54457846060b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 1 Aug 2024 18:00:46 +0400 Subject: [PATCH 099/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-01 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 9fd0968a4..8ac312cd0 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4917,9 +4917,9 @@ "WMT": 0.00038541216549894356 }, "2024-07-31 13:30:00+00:00": { - "AAPL": 214743.76625755997, + "AAPL": 214656.5268197661, "AMGN": 20552.53003696331, - "AMZN": 225774.14631312774, + "AMZN": 225871.79644553107, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4939,14 +4939,47 @@ "MCD": 1.2511899037830477e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 222713.02822492318, + "MSFT": 222665.37289047564, "NKE": 1.0227046067675985e-12, "PG": 0.0, "TRV": 0.0, - "UNH": 105189.90724431541, + "UNH": 104918.99602670333, "USDOLLAR": 121.32084484104287, "V": 34035.510291254366, "VZ": 0.0, "WMT": 0.00038336179089731187 + }, + "2024-08-01 13:30:00+00:00": { + "AAPL": 217496.7636534744, + "AMGN": 20833.96169258998, + "AMZN": 230851.74775655568, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 81654.88555969208, + "CSCO": 45601.72642876072, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 110985.90487051276, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2577894748026465e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 222816.2895294737, + "NKE": 1.0254500805972193e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 107101.0991898085, + "USDOLLAR": 306.4284635779816, + "V": 34265.80746220357, + "VZ": 0.0, + "WMT": 0.00038186560130255024 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index a2af0d489..9b2fd0f8e 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4948,5 +4948,38 @@ "V": 0.032153687259133854, "VZ": 7.887154747464008e-09, "WMT": 6.626785768728032e-08 + }, + "2024-08-01 13:30:00+00:00": { + "AAPL": 0.20290494815929616, + "AMGN": 0.019435850161883022, + "AMZN": 0.2153618780488232, + "AXP": 5.086620867333639e-09, + "BA": 8.781125414957076e-09, + "CAT": 4.374382355426805e-09, + "CRM": 0.07617677827330033, + "CSCO": 0.042542299463531316, + "CVX": 4.931321529311629e-09, + "DIS": 6.362782836481506e-09, + "DOW": 7.537928333027135e-09, + "GS": 5.250542144630856e-09, + "HD": 0.10353969208241201, + "HON": 3.0184093158152395e-09, + "IBM": 2.2516501028051876e-09, + "INTC": 5.543092834303955e-09, + "JNJ": 7.163934551207442e-09, + "JPM": 8.370753984717435e-09, + "KO": 5.454906891156253e-09, + "MCD": 1.516683600840801e-08, + "MMM": 3.1522317483948607e-09, + "MRK": 5.915926350624798e-09, + "MSFT": 0.208343947079912, + "NKE": 1.3608251465756191e-08, + "PG": 4.077320969358266e-09, + "TRV": 3.6516533687495947e-09, + "UNH": 0.09972766329956609, + "USDOLLAR": 1.555880557203848e-09, + "V": 0.031966793347820155, + "VZ": 3.176341315084913e-09, + "WMT": 2.5651562806672376e-08 } } \ No newline at end of file From cdb0f05fd419b86641bc7d8e5f74165489ae0545 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 1 Aug 2024 18:02:33 +0400 Subject: [PATCH 100/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-01 --- .../ndx100_daily_initial_holdings.json | 168 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 240 insertions(+), 32 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 1393733cb..32dabaa39 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15391,20 +15391,20 @@ "ZS": 18809.593423560065 }, "2024-07-31 13:30:00+00:00": { - "AAPL": 5727.684854106591, + "AAPL": 5725.3579879290955, "ABNB": 0.0, "ADBE": 13349.263829718846, "ADI": 0.0, "ADP": 0.0, "ADSK": 84.12904410514119, "AEP": 0.0, - "AMAT": -52.89313189785212, + "AMAT": -52.89441637309494, "AMD": -1.8362181115417817e-11, "AMGN": 30670.370120412917, - "AMZN": 20625.200092505776, + "AMZN": 20634.120748625035, "ANSS": 11.136574849330414, - "ARM": 58658.596858069825, - "ASML": 16.208729739435043, + "ARM": 58636.11197826539, + "ASML": 16.200328147968325, "AVGO": -34.33653215203454, "AZN": 0.0, "BIIB": 14481.378358174934, @@ -15412,86 +15412,190 @@ "BKR": 0.0, "CCEP": 15456.783500315498, "CDNS": -83.1921370589273, - "CDW": 17614.728342622864, - "CEG": 72910.76478301284, - "CHTR": 19366.37262390656, - "CMCSA": 30872.567767162785, + "CDW": 17646.59529708138, + "CEG": 72730.1451681304, + "CHTR": 19378.523578952336, + "CMCSA": 30864.993775867108, "COST": 0.0, "CPRT": -0.8223831469137731, "CRWD": 4554.345429863138, "CSCO": 54544.75675546654, "CSGP": 7626.910625462296, - "CSX": -6.867788381763166e-13, + "CSX": -6.873670524887232e-13, "CTAS": 0.0, "CTSH": 27326.940825951027, "DASH": 0.0, "DDOG": 12957.303459086697, "DLTR": 25597.5569855487, "DXCM": 13933.243149676853, - "EA": 14981.103179759333, + "EA": 14994.012417025324, "EXC": 0.0, "FANG": 28473.04785195047, - "FAST": 20416.126021058382, + "FAST": 20444.68759567633, "FTNT": 24535.79092486596, "GEHC": 9178.95746555421, "GFS": 17905.84749614263, - "GILD": 27645.646532279276, + "GILD": 27706.116285444252, "GOOG": 4140.6129313154825, "GOOGL": -2.2533058697365753e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 8326.092272791258, - "INTC": 1.9356955382418002, + "INTC": 1.9414168153991231, "INTU": 1854.4383255863015, - "ISRG": 10710.773443327094, + "ISRG": 10718.302260321936, "KDP": 1836.0, "KHC": 0.0, "KLAC": 26436.451443174243, "LIN": 0.0, - "LRCX": -9.424924765989367, + "LRCX": -9.444691444090985, "LULU": 20583.589992919333, "MAR": 0.0, "MCHP": 13564.556173941439, "MDB": 25424.343249916983, "MDLZ": 0.0, "MELI": 23176.447166993505, - "META": -127.8347378644261, - "MNST": 17166.814436066205, - "MRNA": 18819.525122132527, + "META": -127.89311447666182, + "MNST": 17190.035146629078, + "MRNA": 18902.64449997984, "MRVL": 0.0, - "MSFT": 41.16529296230448, - "MU": 8.088885217889075, - "NFLX": 16880.070166004378, + "MSFT": 41.156484560661404, + "MU": 8.09256834376955, + "NFLX": 16895.143884907742, "NVDA": 4871.440176033314, "NXPI": 21070.04174555761, "ODFL": 9452.403981416099, "ON": 2649.662641288005, "ORLY": 24293.61412580009, - "PANW": -7.572148109522859, - "PAYX": 8626.766344413989, + "PANW": -7.572266301651925, + "PAYX": 8624.09182708986, "PCAR": 0.0, - "PDD": 24902.519965774038, + "PDD": 24894.707231675446, "PEP": 25733.2852754582, - "PYPL": 5201.312302159742, - "QCOM": -6.616919527657684, + "PYPL": 5202.91292974069, + "QCOM": -6.615035645858334, "REGN": 14148.949736277718, "ROP": 12512.082983816925, "ROST": 7794.162048371789, - "SBUX": 28051.92802713284, + "SBUX": 28055.45555042205, "SNPS": 0.0, "TEAM": 13539.880966052893, - "TMUS": 8904.624261517853, - "TSLA": 8165.867138287039, + "TMUS": 8904.673991012041, + "TSLA": 8165.15042965056, "TTD": 35745.40662204994, "TTWO": 9545.7924177692, "TXN": 0.0, - "USDOLLAR": -413.5351703616155, + "USDOLLAR": -413.5344419076957, "VRSK": 0.0, "VRTX": 11066.527298737954, - "WBA": 0.40178968444656155, + "WBA": 0.4018559148249922, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, "ZS": 18593.876417419247 + }, + "2024-08-01 13:30:00+00:00": { + "AAPL": 5801.113302171816, + "ABNB": 0.0, + "ADBE": 13971.250836631001, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 84.36463358267225, + "AEP": 0.0, + "AMAT": -52.61005391796876, + "AMD": -1.766414341673817e-11, + "AMGN": 31762.528238708594, + "AMZN": 21674.202252577452, + "ANSS": 11.421331062572593, + "ARM": 52332.93613636587, + "ASML": 16.157092643763544, + "AVGO": -35.65245818390837, + "AZN": 0.0, + "BIIB": 15172.550448970547, + "BKNG": 10472.889519464925, + "BKR": 0.0, + "CCEP": 15637.844248359997, + "CDNS": -83.84401193288593, + "CDW": 19598.017724093243, + "CEG": 67652.22876485558, + "CHTR": 19678.655166446726, + "CMCSA": 31236.041356309535, + "COST": 0.0, + "CPRT": -0.8217542790505121, + "CRWD": 4734.527583298343, + "CSCO": 54781.36797251953, + "CSGP": 7575.508624538153, + "CSX": -6.88151213590514e-13, + "CTAS": 0.0, + "CTSH": 27698.138024084346, + "DASH": 0.0, + "DDOG": 12902.333320427253, + "DLTR": 25308.038911577325, + "DXCM": 13584.413750826168, + "EA": 14967.201506999309, + "EXC": 0.0, + "FANG": 27432.070955427538, + "FAST": 20051.485486130794, + "FTNT": 24422.16013810779, + "GEHC": 8796.332394191797, + "GFS": 17456.171815401376, + "GILD": 27000.393853606343, + "GOOG": 4069.4800579637363, + "GOOGL": -2.215573000183776e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 8288.356828978398, + "INTC": 1.934741911215938, + "INTU": 1840.2171727827258, + "ISRG": 11278.928861594708, + "KDP": 1856.520057678222, + "KHC": 0.0, + "KLAC": 25977.15240760983, + "LIN": 0.0, + "LRCX": -9.016588474325246, + "LULU": 21574.28152410908, + "MAR": 0.0, + "MCHP": 14196.051528077984, + "MDB": 25432.71531866563, + "MDLZ": 0.0, + "MELI": 23392.713998490046, + "META": -141.43129303828343, + "MNST": 16957.802254187347, + "MRNA": 16081.328964448321, + "MRVL": 0.0, + "MSFT": 41.1843793259868, + "MU": 7.895871548502686, + "NFLX": 17596.658534250262, + "NVDA": 5191.836929613349, + "NXPI": 21221.76040711559, + "ODFL": 9238.19530643902, + "ON": 3200.4013490495963, + "ORLY": 22811.76468365748, + "PANW": -7.637444936731583, + "PAYX": 8010.167788018526, + "PCAR": 0.0, + "PDD": 25228.553083755287, + "PEP": 25010.0303113011, + "PYPL": 5331.127785965922, + "QCOM": 165.28887892222386, + "REGN": 14930.805732173802, + "ROP": 12431.028710354944, + "ROST": 7668.3909986945155, + "SBUX": 24983.945386548265, + "SNPS": 0.0, + "TEAM": 13584.60296549772, + "TMUS": 8798.84868076214, + "TSLA": 8840.308252742156, + "TTD": 36473.42102784682, + "TTWO": 9486.407455390627, + "TXN": 0.0, + "USDOLLAR": -1418.6343129347356, + "VRSK": 784.1099853515625, + "VRTX": 10326.447122620555, + "WBA": 0.39391145781571457, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18793.200175708625 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 8d7d23e56..45aa56266 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15286,5 +15286,109 @@ "WDAY": 1.6409641717260314e-08, "XEL": 4.784960906376636e-08, "ZS": 0.01750970698897925 + }, + "2024-08-01 13:30:00+00:00": { + "AAPL": 0.0053551658559298065, + "ABNB": 1.181336939751146e-08, + "ADBE": 0.013420356131231697, + "ADI": 1.4855652090152515e-07, + "ADP": 9.847845670506331e-08, + "ADSK": 6.829758096387178e-08, + "AEP": 1.4586373299101092e-08, + "AMAT": 7.519911486045895e-08, + "AMD": 7.099544935880545e-09, + "AMGN": 0.029251255051112802, + "AMZN": 0.02061902390713765, + "ANSS": 1.0273514299858883e-06, + "ARM": 0.047497751738511, + "ASML": 3.118816816697653e-08, + "AVGO": 8.609141176619655e-08, + "AZN": 4.549441212459648e-08, + "BIIB": 0.014172411049736287, + "BKNG": 0.00918031044034588, + "BKR": 1.5445339593701838e-07, + "CCEP": 0.015561293337430891, + "CDNS": 2.4852619381427127e-08, + "CDW": 0.01799647702714832, + "CEG": 0.06312857906688672, + "CHTR": 0.018125617635981233, + "CMCSA": 0.02838710617356712, + "COST": 2.511359990943572e-08, + "CPRT": 9.082673447009448e-07, + "CRWD": 0.004427846865392722, + "CSCO": 0.04943448605977669, + "CSGP": 0.006964733686646546, + "CSX": 9.915841661383981e-08, + "CTAS": 2.636374975071631e-08, + "CTSH": 0.025658403324813783, + "DASH": 9.317506267802934e-09, + "DDOG": 0.011113160630712726, + "DLTR": 0.02274983158460372, + "DXCM": 0.012693201281722919, + "EA": 0.013930685491839904, + "EXC": 3.451360526079861e-08, + "FANG": 0.02472666753595838, + "FAST": 0.017433855665275534, + "FTNT": 0.022714020084836667, + "GEHC": 0.014780644113421901, + "GFS": 0.013795264431014975, + "GILD": 0.024746378003966087, + "GOOG": 0.00441691293805918, + "GOOGL": 3.6043232417356787e-07, + "HON": 2.2771155674308145e-08, + "IDXX": 6.165067100173164e-08, + "ILMN": 0.007738267656411183, + "INTC": 9.326211837953178e-08, + "INTU": 0.0018886738072815855, + "ISRG": 0.011036707425045348, + "KDP": 0.0019461638932905575, + "KHC": 2.5318194264351278e-08, + "KLAC": 0.030732521719365434, + "LIN": 1.1019647083358953e-07, + "LRCX": 4.1811169253256426e-08, + "LULU": 0.0206219589294755, + "MAR": 8.235025192364524e-08, + "MCHP": 0.0134954824662792, + "MDB": 0.02343366625211421, + "MDLZ": 9.39971197608817e-08, + "MELI": 0.02118183878362622, + "META": 6.481022907115028e-08, + "MNST": 0.015533301585719984, + "MRNA": 0.015678127714593943, + "MRVL": 2.031982128341513e-08, + "MSFT": 1.006337370693553e-07, + "MU": 2.5271850349087425e-08, + "NFLX": 0.016840777145100964, + "NVDA": 0.008291979119903089, + "NXPI": 0.020556703844666274, + "ODFL": 0.008689903300215731, + "ON": 0.0034026875067138685, + "ORLY": 0.019026934046996583, + "PANW": 1.4562220825614168e-06, + "PAYX": 0.005731715378289153, + "PCAR": 2.3850570645477085e-08, + "PDD": 0.022647115037933933, + "PEP": 0.020816906801494065, + "PYPL": 0.004167538697079046, + "QCOM": 0.000458382639935572, + "REGN": 0.013397987356391155, + "ROP": 0.011060793498877152, + "ROST": 0.00709211030227512, + "SBUX": 0.02074845368673825, + "SNPS": 1.0880358135144388e-08, + "TEAM": 0.012665497966669733, + "TMUS": 0.010583742016079225, + "TSLA": 0.009753783351957358, + "TTD": 0.03358631599474249, + "TTWO": 0.008354999957060986, + "TXN": 3.5390022301275175e-08, + "USDOLLAR": 4.2759875669342445e-07, + "VRSK": 1.4646327367974846e-07, + "VRTX": 0.009313817970821175, + "WBA": 1.264895678953451e-07, + "WBD": 2.2442133194989624e-08, + "WDAY": 3.324248122784893e-08, + "XEL": 6.853567017140976e-08, + "ZS": 0.0172373548971443 } } \ No newline at end of file From 1658061a11032f3aee6f695f23ed7dd87f0d301f Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 1 Aug 2024 18:10:23 +0400 Subject: [PATCH 101/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-01 --- .../sp500_daily_initial_holdings.json | 613 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1064 insertions(+), 54 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index d48ee9d96..2b3757480 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -73854,8 +73854,8 @@ "2024-07-31 13:30:00+00:00": { "A": 0.0, "AAL": 624.2530813271063, - "AAPL": 45760.24323367326, - "ABBV": 5638.433800274159, + "AAPL": 45741.65318115352, + "ABBV": 5638.554739324688, "ABNB": 0.0, "ABT": 3397.9292586166216, "ACGL": 0.0, @@ -73877,14 +73877,14 @@ "ALGN": 1130.2919113157009, "ALL": 6.773517599967833e-14, "ALLE": 0.0, - "AMAT": 1991.8805705846562, + "AMAT": 1991.9289421063975, "AMCR": 0.0, "AMD": 29647.923166514083, "AME": 0.0, "AMGN": 5831.459014746261, - "AMP": 9.490301366779436, + "AMP": 9.536228834133743, "AMT": 666.2523557179687, - "AMZN": 36456.58790956518, + "AMZN": 36472.355838242926, "ANET": 3611.887184445499, "ANSS": 305.56128614903747, "AON": 18.89392139981413, @@ -73938,19 +73938,19 @@ "CCI": 316.1867046042424, "CCL": 0.0, "CDNS": 0.0, - "CDW": 383.61770794705757, - "CE": -2.7125688464205787e-14, - "CEG": 38551.59591508551, + "CDW": 384.3117139964753, + "CE": -2.7339660665895862e-14, + "CEG": 38456.093221786265, "CF": 10092.541516801331, "CFG": 0.0, "CHD": 2419.0690166644076, "CHRW": 0.0, - "CHTR": 5695.241980782083, + "CHTR": 5698.815320541015, "CI": 4.0528858620074445e-13, "CINF": 0.016111057756518877, "CL": 9.920770753346115, "CLX": 14.888599415418973, - "CMCSA": 6538.195265270841, + "CMCSA": 6536.591244691727, "CME": 4770.793920783076, "CMG": 5463.523425275766, "CMI": 0.0, @@ -73991,20 +73991,20 @@ "DGX": 0.0, "DHI": -8.176393176558388, "DHR": 1651.1968062720307, - "DIS": -4.156175139590953, + "DIS": -4.156396597815734, "DLR": 2.98526180212766e-14, "DLTR": 1051.9049356204546, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, - "DPZ": 10.40755918166384, + "DPZ": 10.54943098779538, "DRI": 2.486960958333901, "DTE": 0.0, "DUK": 1.2461078296576302, "DVA": 3420.113679428716, "DVN": 0.0, "DXCM": 5171.463213885872, - "EA": 4094.2279651157787, + "EA": 4097.755966998453, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, @@ -74029,17 +74029,17 @@ "EVRG": 0.0, "EW": 0.0, "EXC": 0.0, - "EXPD": -1.1443780462712683, + "EXPD": -1.1535360012541078, "EXPE": 4268.926054035616, - "EXR": 5.795965774678986e-14, + "EXR": 5.811246110294728e-14, "F": 0.0, "FANG": 14097.314484982098, - "FAST": 3388.4711093102655, + "FAST": 3393.211483185775, "FCX": 0.0, - "FDS": 1228.0638587833696, + "FDS": 1228.6825500940158, "FDX": 6355.113442362359, "FE": 0.0, - "FFIV": 3195.000783567862, + "FFIV": 3220.3416890490203, "FI": 2.6196571951470227e-13, "FICO": 1549.0395931854719, "FIS": 0.0, @@ -74048,7 +74048,7 @@ "FOX": 0.0, "FOXA": 0.0, "FRT": 0.0, - "FSLR": -7.608810720922722e-14, + "FSLR": -7.612960812441425e-14, "FTNT": 6002.201597069537, "FTV": 0.0, "GD": 3.891533660618844e-13, @@ -74056,8 +74056,8 @@ "GE": 0.0, "GEHC": 1717.9220765904604, "GEN": 0.0, - "GEV": 19882.037750780615, - "GILD": 8313.364545833103, + "GEV": 19688.886306753557, + "GILD": 8331.548497561997, "GIS": 7948.074448506119, "GL": 0.32003972916921225, "GLW": 0.0, @@ -74067,7 +74067,7 @@ "GOOGL": 2225.403518948202, "GPC": 0.0, "GPN": -1.0576790774266962e-13, - "GRMN": 2339.878694568309, + "GRMN": 2289.1252269671763, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, @@ -74079,7 +74079,7 @@ "HIG": 5996.725404415988, "HII": 0.7696064902240088, "HLT": -1.3453418969959654e-13, - "HOLX": 3025.678895224255, + "HOLX": 3035.2501310052567, "HON": 0.0, "HPE": 0.0, "HPQ": 0.0, @@ -74091,12 +74091,12 @@ "HUM": 1058.5413410139402, "HWM": 2506.2130647750832, "IBM": 0.0, - "ICE": 748.6461996696025, + "ICE": 754.4849109355857, "IDXX": -9.890732066306711, "IEX": 0.0, "IFF": 0.0, - "INCY": 4241.719759252941, - "INTC": 210.44654541213828, + "INCY": 4244.848985226441, + "INTC": 211.06855594495048, "INTU": 1291.5890860311401, "INVH": 0.0, "IP": 0.0, @@ -74104,7 +74104,7 @@ "IQV": 0.0, "IR": 0.04631373074322802, "IRM": 0.0, - "ISRG": 6483.069642843181, + "ISRG": 6487.626722232829, "IT": 8.230577740375766e-13, "ITW": 0.0, "IVZ": 0.0, @@ -74135,18 +74135,18 @@ "LEN": 0.0, "LH": 0.0, "LHX": 0.0, - "LIN": 1.6921370645905076, + "LIN": 1.6923982817638334, "LKQ": 4598.0865887699465, "LLY": 1.3802508739271842, "LMT": 8723.847407639765, "LNT": 0.0, "LOW": -2.8743395398868246e-13, - "LRCX": 842.0471629561698, + "LRCX": 843.8131691185318, "LULU": 1545.6380944248165, "LUV": 27.15437642389344, "LVS": 1755.7814993878185, "LW": 21.553417497762172, - "LYB": 3607.520516826762, + "LYB": 3631.3846913596085, "LYV": 2812.005249884074, "MA": 31248.218283233153, "MAA": 0.0, @@ -74159,7 +74159,7 @@ "MDLZ": 0.0, "MDT": 1.322855848583028, "MET": -0.03705213119179511, - "META": 22124.332297738263, + "META": 22134.435526243247, "MGM": 4026.2609740999214, "MHK": 0.0, "MKC": 0.0, @@ -74167,29 +74167,29 @@ "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5303.640756600615, + "MNST": 5310.8147321449505, "MO": -21.621400100985095, - "MOH": 2110.0861375779236, + "MOH": 2086.1413203493066, "MOS": 0.0, "MPC": 15654.256804693312, "MPWR": -9.253079931127194e-13, "MRK": 5265.02287141757, - "MRNA": 7389.846713729489, + "MRNA": 7422.485128208388, "MRO": 0.0, - "MS": 6173.926961807294, - "MSCI": 3792.3956410618366, - "MSFT": 36957.861358228896, + "MS": 6229.461569011508, + "MSCI": 3807.4606899076903, + "MSFT": 36949.95324769971, "MSI": 0.0, "MTB": -6.520042248929415, "MTCH": 0.0, "MTD": 0.0, - "MU": 3742.3244117553313, + "MU": 3744.0284107023786, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16260.636579099024, + "NFLX": 16275.15715055238, "NI": 0.0, "NKE": -3.085629053517959e-14, "NOC": -4.365909716432418e-13, @@ -74209,14 +74209,14 @@ "OKE": 0.0, "OMC": 0.0, "ON": -2.7934770419581763, - "ORCL": 7240.276279348021, + "ORCL": 7272.554525582806, "ORLY": -0.8147249712942528, "OTIS": 1601.7255390256203, "OXY": 0.0, - "PANW": 5790.337006646054, + "PANW": 5790.427386845824, "PARA": 2102.161282267147, "PAYC": 0.0, - "PAYX": 386.3310014009583, + "PAYX": 386.21122894916766, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, @@ -74243,7 +74243,7 @@ "PTC": 2.6634440695267006e-14, "PWR": -5.059164014938843, "PYPL": 0.0, - "QCOM": 4169.88050696803, + "QCOM": 4168.693313749236, "QRVO": 0.0, "RCL": 1884.4008238173312, "REG": 0.0, @@ -74260,12 +74260,12 @@ "RTX": 0.0, "RVTY": 0.0, "SBAC": 6379.296626144002, - "SBUX": 9004.883476282626, + "SBUX": 9006.015838241794, "SCHW": 1.7342445998967884, "SHW": 1.5214344057472495, "SJM": 1.0092788504217078, "SLB": 0.0, - "SMCI": 11074.78109037111, + "SMCI": 11074.624957413074, "SNA": 0.0, "SNPS": 0.0, "SO": 10.692920084365666, @@ -74295,31 +74295,31 @@ "TGT": 0.0, "TJX": 453.7743108768194, "TMO": 0.0, - "TMUS": 7282.505315565816, - "TPR": 2608.246292961112, - "TRGP": 409.15189702607785, + "TMUS": 7282.545986041642, + "TPR": 2604.311207276989, + "TRGP": 411.4523987441503, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, "TSCO": -2.7704705697008535e-12, - "TSLA": 100258.64458702043, + "TSLA": 100249.84500269702, "TSN": 5103.944577560738, "TT": 0.0, "TTWO": 744.0734694753529, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 4033.2291182916238, + "UAL": 4032.3639905591394, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, "ULTA": 3338.908801976227, - "UNH": 18006.44852068345, + "UNH": 17960.073834923176, "UNP": 0.0, "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -1408.5636462051482, + "USDOLLAR": -1408.563442441683, "V": 1571.294945303619, "VICI": 0.0, "VLO": 0.0, @@ -74336,7 +74336,7 @@ "WAT": -2.4269796824966595e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.688683926358459, + "WDC": -2.6850430640284726, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -74347,7 +74347,512 @@ "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 2816.974167900884, + "WYNN": 2814.594690097755, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-08-01 13:30:00+00:00": { + "A": 0.0, + "AAL": 623.6669706620437, + "AAPL": 46346.885782857295, + "ABBV": 5680.3017917296165, + "ABNB": 0.0, + "ABT": 3434.968347073852, + "ACGL": 0.0, + "ACN": 2.6387331532600875e-13, + "ADBE": 10825.157524011096, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.812933989713915, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3906.996117110174, + "AIG": 0.0, + "AIZ": 1.5016654587320648, + "AJG": 0.0, + "AKAM": -0.08115044958544392, + "ALB": 0.0, + "ALGN": 892.9684426045886, + "ALL": 6.833827331828036e-14, + "ALLE": 0.0, + "AMAT": 1981.2202540585154, + "AMCR": 0.0, + "AMD": 28230.858362627165, + "AME": 0.0, + "AMGN": 5911.310846237932, + "AMP": 9.479753842408424, + "AMT": 670.1626496036308, + "AMZN": 37307.05157825173, + "ANET": 3745.4628939294294, + "ANSS": 313.37432345488753, + "AON": 18.91868616678549, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 25.405357534568665, + "APTV": 2.7285923563809774e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 21060.38489877105, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4679.861902532587, + "AXP": 0.0, + "AZO": 1.8439044225615002e-12, + "BA": -1.1308988739173306e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 514.4960493802785, + "BDX": 0.0, + "BEN": 185.4084189352314, + "BF-B": 0.0, + "BG": 971.9354457428145, + "BIIB": 2133.7099727264954, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3487.995486150774, + "BKR": 0.0, + "BLDR": 540.0977866967695, + "BLK": 1.0069744618693728e-12, + "BMY": 96.29770860700536, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.33145816277515416, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1402.3104702965898, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 21082.058583286944, + "CAT": 0.0, + "CB": 310.80716708713544, + "CBOE": 0.0, + "CBRE": 5412.196514841516, + "CCI": 321.76134083361586, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 375.0292308563682, + "CE": -2.752056200794895e-14, + "CEG": 37463.653958007875, + "CF": 10097.818783476761, + "CFG": 0.0, + "CHD": 2392.076978120283, + "CHRW": 0.0, + "CHTR": 5293.852434976869, + "CI": 3.899125696877599e-13, + "CINF": 0.01629354561899125, + "CL": 9.827970741031, + "CLX": 14.898712966556705, + "CMCSA": 6615.171735693815, + "CME": 4698.458081766298, + "CMG": 5544.199845985542, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 1008.8037376376276, + "CNP": 0.0, + "COF": 9439.692235048507, + "COO": 0.0, + "COP": 0.0, + "COR": 3375.7319721169983, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 723.7870975434104, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7828.6546954380065, + "CRWD": 1389.596751032094, + "CSCO": 7131.562820210538, + "CSGP": -7.920106354303444e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10899.899937320162, + "CTVA": 109.08257118049521, + "CVS": 0.0, + "CVX": -5.718956556868918e-13, + "CZR": 9551.030948654427, + "D": 0.0, + "DAL": 633.091069953343, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0354096737087854e-13, + "DECK": 898.8741702717679, + "DFS": 3809.784842867854, + "DG": 0.0, + "DGX": 0.0, + "DHI": -8.17909809289631, + "DHR": 1673.7322549709465, + "DIS": -4.159498703483452, + "DLR": 3.040709117393292e-14, + "DLTR": 1044.2911261139504, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.428173160349452, + "DRI": 2.4688263126131953, + "DTE": 0.0, + "DUK": 1.25606290506719, + "DVA": 3424.371556031379, + "DVN": 0.0, + "DXCM": 5041.991677022606, + "EA": 4090.4287377362566, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.703127160999759e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.2327243977178108e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3902.4924951712737, + "EOG": 0.0, + "EPAM": 6018.755167800087, + "EQIX": 802.1612409312578, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1626939562369472, + "EXPE": 4193.197397438936, + "EXR": 5.759363460458492e-14, + "F": 0.0, + "FANG": 13980.657999451156, + "FAST": 3339.644209557235, + "FCX": 0.0, + "FDS": 1216.0725224462715, + "FDX": 6400.922052440046, + "FE": 0.0, + "FFIV": 3220.024861271588, + "FI": 2.629105710456747e-13, + "FICO": 1489.209923766254, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.577683979066651e-14, + "FTNT": 5974.404046469081, + "FTV": 0.0, + "GD": 3.9601768878143014e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1803.7109459695532, + "GEN": 0.0, + "GEV": 21095.23312690113, + "GILD": 8142.219790567684, + "GIS": 7867.055234794383, + "GL": 0.31511288916185953, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 23418.220166767678, + "GOOGL": 2188.137889895973, + "GPC": 0.0, + "GPN": -1.0596547125478501e-13, + "GRMN": 2243.199147062487, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.16328076478249, + "HBAN": 0.0, + "HCA": 6322.433350841473, + "HD": 9089.425357653805, + "HES": 0.0, + "HIG": 6013.376875618865, + "HII": 0.7799340057447526, + "HLT": -1.3416543393075164e-13, + "HOLX": 2999.541540537487, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10741.675742570338, + "HUBB": 1.3943501815325652e-13, + "HUM": 1047.3508436025688, + "HWM": 2566.4918794635496, + "IBM": 0.0, + "ICE": 743.5991255993963, + "IDXX": -9.85610385800303, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4080.2614390584, + "INTC": 210.3428682019368, + "INTU": 1281.6842617517605, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04251509854798108, + "IRM": 0.0, + "ISRG": 6558.642752043672, + "IT": 8.242286364155762e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2525.090455666604, + "JCI": 0.0, + "JKHY": 856.2025071155183, + "JNJ": 13603.939008580746, + "JNPR": 0.0, + "JPM": 2581.8930527802313, + "K": 490.39603614694937, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 796.4804865787, + "KMB": 4506.362683825267, + "KMI": 0.0, + "KMX": 1.2032879327014294, + "KO": 203.0095610505127, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.22034259820007615, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.7017264904991722, + "LKQ": 4643.855339987163, + "LLY": 1.4379503747428923, + "LMT": 8196.515734617662, + "LNT": 0.0, + "LOW": -2.9239747596356333e-13, + "LRCX": 805.5653422026944, + "LULU": 1561.7586978097077, + "LUV": 27.15437642389344, + "LVS": 1749.6067938473634, + "LW": 21.74178366524466, + "LYB": 3558.1885593225643, + "LYV": 2902.0588939059667, + "MA": 30551.321175315206, + "MAA": 0.0, + "MAR": -5.589393171090914e-13, + "MAS": 0.0, + "MCD": 10788.871138501196, + "MCHP": 2283.0758081181702, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3282882135523928, + "MET": -0.03782685786495893, + "META": 24477.485359232218, + "MGM": 3738.737420531095, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5759.28986548519, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5270.845328125842, + "MO": -22.161934677481355, + "MOH": 2068.7542144386493, + "MOS": 0.0, + "MPC": 14988.117658251098, + "MPWR": -9.451594298858857e-13, + "MRK": 5134.53200283718, + "MRNA": 6157.5896426616355, + "MRO": 0.0, + "MS": 6165.904746057789, + "MSCI": 3754.2120368203528, + "MSFT": 37395.78194218312, + "MSI": 0.0, + "MTB": -6.491759820593271, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3653.0265978674915, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16974.019965482574, + "NI": 0.0, + "NKE": -3.093912495049651e-14, + "NOC": -4.3592692269874146e-13, + "NOW": 5551.957038801192, + "NRG": 0.0, + "NSC": -3.007781588702641e-14, + "NTAP": 5724.141268231101, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 143024.56880986484, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7981.7363079765755, + "O": 0.0, + "ODFL": 2308.330529548063, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.8111664481736742, + "ORCL": 7251.729209943785, + "ORLY": -0.8029519717969378, + "OTIS": 1599.863254005307, + "OXY": 0.0, + "PANW": 5840.268760427753, + "PARA": 2104.013272442081, + "PAYC": 0.0, + "PAYX": 254.13930210184532, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 10024.4617749491, + "PFE": 0.0, + "PFG": 165.17263371192178, + "PG": 1.0290294788542587, + "PGR": 8265.992696808406, + "PH": 0.0, + "PHM": -12.817650963125624, + "PKG": -5.226846834189993e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.18536624278507, + "POOL": 1455.3415692125086, + "PPG": -0.40729528635636425, + "PPL": 0.0, + "PRU": 143.74668805620166, + "PSA": 0.0, + "PSX": 1070.8979683709124, + "PTC": 2.5930354498427443e-14, + "PWR": -5.080771373434602, + "PYPL": 0.0, + "QCOM": 4249.757108091622, + "QRVO": 0.0, + "RCL": 1709.1996187465895, + "REG": 0.0, + "REGN": 1079.3678458088796, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 399.3623175742078, + "ROK": 1.2094435982464442, + "ROL": 0.0, + "ROP": 5394.186898572793, + "ROST": 1148.9428018738183, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6162.934288791599, + "SBUX": 8820.3482089361, + "SCHW": 1.7310585295323528, + "SHW": 1.5080866699984672, + "SJM": 1.0076590730196604, + "SLB": 0.0, + "SMCI": 10988.835609151425, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 10.819264618838007, + "SOLV": -1.6369710886533683e-12, + "SPG": 0.0, + "SPGI": -5.811625038738107, + "SRE": 0.0, + "STE": 0.5331654199647239, + "STLD": -2.8463434605457794e-14, + "STT": 342.6412631571515, + "STX": -13.193755442336284, + "STZ": -2.0675867716410554, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.7810267898509125, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4889.0745792254265, + "TDY": -16.28224763774488, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 454.1335148286858, + "TMO": 0.0, + "TMUS": 7344.737921995617, + "TPR": 2641.6936456451535, + "TRGP": 413.77580947038496, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.788202502295543e-12, + "TSLA": 101746.82966021835, + "TSN": 5140.011919894113, + "TT": 0.0, + "TTWO": 739.444542608115, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3957.978843144029, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3292.675579585065, + "UNH": 18333.60708828002, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -630.3203052437491, + "V": 1581.9269228333696, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 12056.058862939362, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3018.6094926245037, + "VRTX": 1961.3606934116615, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.3233452730114726e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.441095256720125, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4499860833952216, + "WMB": 0.0, + "WMT": 11812.923187599215, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2716.2880832984197, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index cd0823889..54ad5e80a 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -71329,5 +71329,510 @@ "ZBH": 1.3642075266724047e-09, "ZBRA": 9.531554755597916e-10, "ZTS": 3.352953354826554e-09 + }, + "2024-08-01 13:30:00+00:00": { + "A": 1.615001490828018e-09, + "AAL": 0.0005293297131603298, + "AAPL": 0.03933631854174446, + "ABBV": 0.004904876384179553, + "ABNB": 1.1968381667237718e-09, + "ABT": 0.0029153934640805293, + "ACGL": 4.692430545043274e-09, + "ACN": 6.174429244975718e-09, + "ADBE": 0.00923327256826505, + "ADI": 5.777119749500922e-09, + "ADM": 4.2533088444146855e-09, + "ADP": 8.131848153330697e-09, + "ADSK": 6.873262922265231e-09, + "AEE": 1.8713185985075024e-09, + "AEP": 1.6982314599797758e-09, + "AES": 7.733403413129219e-10, + "AFL": 0.0033159388044159293, + "AIG": 1.6191898585478545e-09, + "AIZ": 5.434513582034589e-09, + "AJG": 3.532393997284944e-09, + "AKAM": 5.0143881414316975e-09, + "ALB": 6.30108762835818e-10, + "ALGN": 0.0007578680787520289, + "ALL": 5.241507184002436e-09, + "ALLE": 1.6486387123774286e-09, + "AMAT": 0.0016815198533425158, + "AMCR": 4.905763375091632e-10, + "AMD": 0.02396056509657628, + "AME": 1.773412649631857e-09, + "AMGN": 0.005017150558150038, + "AMP": 2.667865430621677e-08, + "AMT": 0.0005688145515476472, + "AMZN": 0.03166363397717056, + "ANET": 0.0031726240662710097, + "ANSS": 0.0002465765659178615, + "AON": 9.88873933627422e-09, + "AOS": 1.3530896454019276e-09, + "APA": 1.1016817623981472e-09, + "APD": 3.4829014340078175e-09, + "APH": 1.0910658980270053e-08, + "APTV": 3.249011998328007e-09, + "ARE": 1.293511585616069e-09, + "ATO": 2.0692443491575363e-09, + "AVB": 2.039500603521928e-09, + "AVGO": 0.017874725981347036, + "AVY": 1.9859674167669873e-09, + "AWK": 4.0047510694615954e-09, + "AXON": 0.004178948401798501, + "AXP": 3.5728887762983994e-09, + "AZO": 1.847151562856282e-08, + "BA": 9.796814767751676e-09, + "BAC": 2.5544182997693256e-09, + "BALL": 5.349473377156919e-09, + "BAX": 3.3807603023761502e-09, + "BBWI": 2.3556647440054796e-09, + "BBY": 0.0004367576784591404, + "BDX": 6.030397042101382e-09, + "BEN": 0.00015736346436069713, + "BF-B": 3.899057454643083e-09, + "BG": 0.0008249089656595028, + "BIIB": 0.0018168388006084206, + "BIO": 2.0202206599292425e-09, + "BK": 2.2111613695032856e-09, + "BKNG": 0.001647841345391287, + "BKR": 1.213309089859573e-09, + "BLDR": 0.0004584114208549493, + "BLK": 1.324495882883702e-07, + "BMY": 8.17317169031672e-05, + "BR": 3.1142316675240632e-09, + "BRK-B": 5.163301991959709e-09, + "BRO": 2.467696229660174e-08, + "BSX": 3.3831253467653857e-09, + "BWA": 1.994012584631437e-09, + "BX": 0.0011901848394947482, + "BXP": 1.3867976575207889e-09, + "C": 3.090643713138536e-09, + "CAG": 5.3345803567422264e-09, + "CAH": 4.10180382782388e-09, + "CARR": 0.01789312362223062, + "CAT": 1.156604070382576e-09, + "CB": 0.00026375334574813274, + "CBOE": 1.767200675828949e-08, + "CBRE": 0.004593517505509221, + "CCI": 0.0002730947009341169, + "CCL": 1.520727913655216e-09, + "CDNS": 5.716396599521844e-09, + "CDW": 0.0003272305847274643, + "CE": 3.024653231035518e-09, + "CEG": 0.03153419960960128, + "CF": 0.008570390073982047, + "CFG": 2.591057754529577e-09, + "CHD": 0.0020302432144526147, + "CHRW": 4.808293278416419e-09, + "CHTR": 0.004493025348548163, + "CI": 2.0336608146948887e-08, + "CINF": 1.0875256413539976e-08, + "CL": 8.328513096175211e-06, + "CLX": 7.850367239665209e-07, + "CMCSA": 0.00561454132466866, + "CME": 0.004172871168996746, + "CMG": 0.00470556391932291, + "CMI": 1.5662919706478647e-09, + "CMS": 1.572497194961227e-09, + "CNC": 0.000856209767242161, + "CNP": 1.4976768970646516e-09, + "COF": 0.00801181115533668, + "COO": 4.1901107289705645e-09, + "COP": 3.014181424725955e-09, + "COR": 0.002865054761727407, + "COST": 3.829535455507645e-09, + "CPAY": 9.98994823799485e-09, + "CPB": 7.457050070962948e-09, + "CPRT": 0.0006143022831017808, + "CPT": 1.7365200847965582e-09, + "CRL": 9.928956253381829e-10, + "CRM": 0.00664446877664585, + "CRWD": 0.0009456689915731224, + "CSCO": 0.006052830726928425, + "CSGP": 4.078805367642891e-09, + "CSX": 3.845966686657519e-09, + "CTAS": 4.184014379317035e-09, + "CTLT": 2.2502916274646775e-09, + "CTRA": 1.0748319009557752e-09, + "CTSH": 0.00919613242187107, + "CTVA": 9.258389244278279e-05, + "CVS": 3.5976826503757153e-09, + "CVX": 4.167571703648453e-09, + "CZR": 0.008106308723024192, + "D": 2.7652935264743187e-09, + "DAL": 0.0005373287927140397, + "DAY": 1.6919794466746485e-09, + "DD": 2.229815544473497e-09, + "DE": 3.584128975077149e-09, + "DECK": 0.0009100926882258654, + "DFS": 0.0032335500527962283, + "DG": 1.8468622813250418e-09, + "DGX": 5.489395428326054e-09, + "DHI": 1.4634310924251842e-08, + "DHR": 0.0014205336153107232, + "DIS": 4.253093938149233e-09, + "DLR": 2.910435594566777e-09, + "DLTR": 0.000886364462585594, + "DOC": 8.395888018194204e-10, + "DOV": 1.9260449357865423e-09, + "DOW": 2.3981552140054777e-09, + "DPZ": 1.1655780365391727e-08, + "DRI": 2.0954850969475735e-06, + "DTE": 1.96092405237198e-09, + "DUK": 1.2108120813513395e-08, + "DVA": 0.0029063878989077346, + "DVN": 1.1685112640871362e-09, + "DXCM": 0.004327619777179492, + "EA": 0.0034716658428447663, + "EBAY": 2.131809384867351e-09, + "ECL": 2.0441142616899534e-09, + "ED": 2.9667071919102744e-09, + "EFX": 1.9955815360360563e-09, + "EG": 1.1051261296259403e-08, + "EIX": 2.8239403574251903e-09, + "EL": 2.1664845061781768e-09, + "ELV": 1.1369046354923835e-08, + "EMN": 1.5917697964562492e-09, + "EMR": 1.0891491696472632e-09, + "ENPH": 0.0033121920035699883, + "EOG": 2.885653608849655e-09, + "EPAM": 0.005108577251761465, + "EQIX": 0.0006234646121564885, + "EQR": 2.0359457467003994e-09, + "EQT": 6.792826945030314e-10, + "ES": 1.6138450330331515e-09, + "ESS": 2.748453807141842e-09, + "ETN": 8.460423739997581e-10, + "ETR": 2.7089425267663097e-09, + "ETSY": 5.909100892516882e-09, + "EVRG": 1.0378098554857112e-09, + "EW": 2.4249732063816798e-09, + "EXC": 2.217597700004195e-09, + "EXPD": 8.07766534872278e-09, + "EXPE": 0.003558899536977214, + "EXR": 5.823035056991441e-09, + "F": 9.936932408690468e-10, + "FANG": 0.011865912563609148, + "FAST": 0.002834478194986851, + "FCX": 1.0209469303298236e-09, + "FDS": 0.0010319606110122683, + "FDX": 0.005432665731338483, + "FE": 1.8096583219807116e-09, + "FFIV": 0.0027225077618379338, + "FI": 8.484842028407095e-09, + "FICO": 0.0013258450080992517, + "FIS": 2.844369270063668e-09, + "FITB": 3.803325082186405e-09, + "FMC": 2.094390579582514e-09, + "FOX": 1.4160128104838767e-09, + "FOXA": 1.9709463640354726e-09, + "FRT": 1.4809337611070588e-09, + "FSLR": 7.035812478337036e-10, + "FTNT": 0.005070700702979962, + "FTV": 1.0141942650275814e-09, + "GD": 6.659472369670875e-09, + "GDDY": 8.92906186978473e-09, + "GE": 1.7028081515243587e-09, + "GEHC": 0.0015308760456944556, + "GEN": 1.421575083862791e-09, + "GEV": 0.020183901400794697, + "GILD": 0.0069105980611996135, + "GIS": 0.006677064149543035, + "GL": 5.1623105407604876e-09, + "GLW": 1.5943774461477004e-09, + "GM": 1.7044978703365637e-09, + "GNRC": 1.422159944828273e-09, + "GOOG": 0.01991539560918036, + "GOOGL": 0.0018573130559112218, + "GPC": 3.28087890690795e-09, + "GPN": 7.742494364849825e-09, + "GRMN": 0.0019039076117160227, + "GS": 3.4159386590729265e-09, + "GWW": 1.3351476093658407e-09, + "HAL": 1.1896970378157098e-09, + "HAS": 9.821974574606344e-07, + "HBAN": 1.1348853844117094e-09, + "HCA": 0.005365978092872208, + "HD": 0.0077145219611861856, + "HES": 3.0464786934490956e-09, + "HIG": 0.005103764217566324, + "HII": 1.5415211078462787e-08, + "HLT": 5.390633747494576e-09, + "HOLX": 0.0025458182651113214, + "HON": 2.43378648395828e-09, + "HPE": 9.720015543192584e-10, + "HPQ": 1.4331073691649931e-09, + "HRL": 4.262274420626305e-09, + "HSIC": 4.048976165987272e-09, + "HST": 1.3568204694840985e-09, + "HSY": 0.009116849715889816, + "HUBB": 5.309933586783895e-10, + "HUM": 0.0009639473272224957, + "HWM": 0.0022111984579371666, + "IBM": 1.805654503264088e-09, + "ICE": 0.0006311260830644747, + "IDXX": 7.554705866236937e-09, + "IEX": 1.900459730199439e-09, + "IFF": 2.224237079353285e-09, + "INCY": 0.00346306963635335, + "INTC": 0.0001785256448584666, + "INTU": 0.0011776651426556501, + "INVH": 1.0965922651531385e-09, + "IP": 1.7385150301259123e-09, + "IPG": 3.260481125571541e-09, + "IQV": 1.706384029217863e-09, + "IR": 1.161387008420715e-08, + "IRM": 2.6942770071051897e-09, + "ISRG": 0.00556656466527548, + "IT": 7.144252468726313e-09, + "ITW": 2.780532934378958e-09, + "IVZ": 1.4758115109969175e-09, + "J": 2.7514066091162664e-09, + "JBHT": 3.0096354397959895e-09, + "JBL": 0.002143147660720988, + "JCI": 1.1024922090149515e-09, + "JKHY": 0.0007267637984347758, + "JNJ": 0.01154616377005777, + "JNPR": 1.916206321263136e-09, + "JPM": 0.0021913375191607693, + "K": 0.0004162168248706308, + "KDP": 1.6059501134440553e-09, + "KEY": 9.580969478937863e-10, + "KEYS": 2.2537274785515527e-09, + "KHC": 8.420869963111193e-10, + "KIM": 1.2072092955971116e-09, + "KKR": 4.591094040662635e-09, + "KLAC": 0.0006625415721032145, + "KMB": 0.0038247100660623546, + "KMI": 6.066644881616584e-10, + "KMX": 1.43286340165899e-08, + "KO": 0.0001722997544068661, + "KR": 7.902542325671983e-09, + "KVUE": -2.1413254745965413e-10, + "L": 3.216121461128822e-09, + "LDOS": 1.616947490663428e-08, + "LEN": 9.824574727173036e-09, + "LH": 1.5400014504311279e-09, + "LHX": 3.2489944185445362e-09, + "LIN": 1.631911362795988e-08, + "LKQ": 0.003941395810866762, + "LLY": 1.306767462430794e-08, + "LMT": 0.006956669144728866, + "LNT": 1.3743911428087376e-09, + "LOW": 5.672925960264293e-09, + "LRCX": 0.0006414176484816009, + "LULU": 0.0013936325956338503, + "LUV": 2.3047815304531012e-05, + "LVS": 0.001484954797064934, + "LW": 1.1932561958150648e-08, + "LYB": 0.0030199016489629647, + "LYV": 0.002463091785587674, + "MA": 0.02592988480527443, + "MAA": 2.15813938364281e-09, + "MAR": 6.633845837049588e-09, + "MAS": 2.2986147035563675e-09, + "MCD": 0.009156893188283177, + "MCHP": 0.0019377383325178649, + "MCK": 2.4267353276683132e-08, + "MCO": 2.1412008454255393e-09, + "MDLZ": 2.594357718830627e-09, + "MDT": 1.1254497226245703e-06, + "MET": 3.240544160718198e-09, + "META": 0.018478694953791345, + "MGM": 0.003173202119577012, + "MHK": 1.751563572988253e-09, + "MKC": 2.8923530944602995e-09, + "MKTX": 0.004888109737661061, + "MLM": 1.422543873823969e-09, + "MMC": 2.1706657142433017e-09, + "MMM": 1.805971155411419e-09, + "MNST": 0.004473562546749066, + "MO": 3.0061831524158457e-09, + "MOH": 0.0017558492812199309, + "MOS": 8.290713650021735e-10, + "MPC": 0.012720958848082048, + "MPWR": 1.1556195940685645e-08, + "MRK": 0.004357874272231048, + "MRNA": 0.005656929898994999, + "MRO": 6.458861465814741e-10, + "MS": 0.0052332314970002965, + "MSCI": 0.0031865956747309477, + "MSFT": 0.03177629011724478, + "MSI": 4.4895798336228315e-09, + "MTB": 1.165233561155591e-08, + "MTCH": 6.5172247129964205e-09, + "MTD": 3.821924760705746e-09, + "MU": 0.0031004966882846366, + "NCLH": 1.8971798352183836e-09, + "NDAQ": 3.82506362339404e-09, + "NDSN": 1.7518924331676128e-09, + "NEE": 1.359364789792616e-09, + "NEM": 9.77045555312352e-10, + "NFLX": 0.014406613886032179, + "NI": 1.1859926979936008e-09, + "NKE": 1.1127958050719569e-08, + "NOC": 1.749723753277139e-08, + "NOW": 0.0050462776009132515, + "NRG": 5.996828644233803e-10, + "NSC": 4.61282718804628e-09, + "NTAP": 0.004840098338568834, + "NTRS": 1.934345439584203e-09, + "NUE": 3.920209002005843e-09, + "NVDA": 0.11921718109539513, + "NVR": 0.0012151284632204108, + "NWS": 8.024754138615266e-10, + "NWSA": 7.780135880133304e-10, + "NXPI": 0.006750746106643117, + "O": 3.933900240636737e-09, + "ODFL": 0.001953714005147589, + "OKE": 2.2080304054519697e-09, + "OMC": 2.1657567737229547e-09, + "ON": 3.0662746898688133e-09, + "ORCL": 0.006154807773319476, + "ORLY": 9.816332181063933e-09, + "OTIS": 0.0013578552564397506, + "OXY": 1.6660789093026092e-09, + "PANW": 0.0049899646312236, + "PARA": 0.0017857533474749518, + "PAYC": 1.1046462359843924e-08, + "PAYX": 0.00021565816920232622, + "PCAR": 4.2935874659718785e-09, + "PCG": 1.1366560242467932e-09, + "PEG": 2.088058961150541e-09, + "PEP": 0.008508125287283829, + "PFE": 3.348579316729392e-09, + "PFG": 0.00014017881848328307, + "PG": 8.653091930093002e-09, + "PGR": 0.007080680635971507, + "PH": 1.2551874734861858e-09, + "PHM": 6.00370237354461e-09, + "PKG": 6.215611723561899e-09, + "PLD": 2.6401865099317565e-09, + "PM": 5.586905861177217e-09, + "PNC": 5.078392489299371e-09, + "PNR": 9.526882095191337e-10, + "PNW": 1.6764813383342125e-09, + "PODD": 1.4316892137337803e-08, + "POOL": 0.0012351548292755283, + "PPG": 3.640281528379217e-09, + "PPL": 1.7500813549026615e-09, + "PRU": 0.00012198002873323864, + "PSA": 2.1768851253752646e-09, + "PSX": 0.0009088893980682785, + "PTC": 4.889330991332372e-09, + "PWR": 3.539773737785405e-09, + "PYPL": 1.2102086611928312e-09, + "QCOM": 0.003620927107102945, + "QRVO": 7.182847423716428e-10, + "RCL": 0.0014506201863912823, + "REG": 1.92181637988318e-09, + "REGN": 0.001155454208832157, + "RF": 1.6232256656917046e-09, + "RJF": 3.9031462504702635e-09, + "RL": 2.2149630726743566e-09, + "RMD": 0.0003482181751266322, + "ROK": 3.0147054350504082e-09, + "ROL": 1.8366105364613036e-09, + "ROP": 0.004578233168645007, + "ROST": 0.0009751529358094261, + "RSG": 4.481926672681073e-09, + "RTX": 5.429398197262705e-09, + "RVTY": 1.3780923903133288e-09, + "SBAC": 0.005227491570086418, + "SBUX": 0.007486152564111446, + "SCHW": 5.0420285018184076e-08, + "SHW": 2.722019412769415e-08, + "SJM": 4.687622445863633e-08, + "SLB": 1.2103154983100924e-09, + "SMCI": 0.008812866418169382, + "SNA": 1.8479345441294438e-09, + "SNPS": 1.5904402353268516e-09, + "SO": 9.133648460428863e-06, + "SOLV": -4.77116862060252e-10, + "SPG": 1.99014064582304e-09, + "SPGI": 3.799081531498162e-09, + "SRE": 2.7986011650456798e-09, + "STE": 4.678389418560861e-07, + "STLD": 6.274534960459592e-09, + "STT": 0.00029081084567963576, + "STX": 5.616327699026682e-09, + "STZ": 8.416086209074188e-08, + "SWK": 1.5579415412982634e-09, + "SWKS": 1.116940224734719e-09, + "SYF": 3.4761314365481173e-09, + "SYK": 1.6204462222153276e-08, + "SYY": 4.974714980855208e-09, + "T": 2.8099441926988924e-09, + "TAP": 2.3771540788921787e-09, + "TDG": 0.0042184884839101735, + "TDY": 7.737860086720564e-09, + "TECH": 5.038738895730533e-09, + "TEL": 3.4450662689818475e-09, + "TER": 1.2925511464442686e-09, + "TFC": 1.803796962773744e-09, + "TFX": 4.235143855362284e-09, + "TGT": 4.541047367027989e-09, + "TJX": 0.0003854397152356768, + "TMO": 5.67689488128506e-09, + "TMUS": 0.006233741838879209, + "TPR": 0.0022421040237613297, + "TRGP": 0.0003511816369811228, + "TRMB": 4.053262176739583e-09, + "TROW": 3.934606446977189e-09, + "TRV": 3.6492933244313127e-09, + "TSCO": 5.447336321075006e-09, + "TSLA": 0.08663772690640058, + "TSN": 0.004362514913314182, + "TT": 1.2482631205235977e-09, + "TTWO": 0.0006276375431880412, + "TXN": 2.5951069661405793e-09, + "TXT": 1.4879474131985158e-09, + "TYL": 2.6660916625727414e-08, + "UAL": 0.0033592900177241, + "UBER": 2.314359283075092e-09, + "UDR": 1.26153441820328e-09, + "UHS": 3.0105784138293635e-09, + "ULTA": 0.002780168657563293, + "UNH": 0.01570741266114512, + "UNP": 4.678987772262844e-09, + "UPS": 1.4835800495411643e-09, + "URI": 2.5478135972058716e-09, + "USB": 1.8152608585862864e-09, + "USDOLLAR": 1.3993358873823792e-07, + "V": 0.0013426357673194111, + "VICI": 1.6996566929659432e-09, + "VLO": 1.0557390147907289e-08, + "VLTO": 0.010325554149130584, + "VMC": 8.45691960681442e-10, + "VRSK": 5.9470740982030956e-09, + "VRSN": 0.0025613213659375286, + "VRTX": 0.0017728667905378146, + "VST": 5.080554803703216e-10, + "VTR": 3.093952214104344e-09, + "VTRS": 1.359296937603991e-09, + "VZ": 3.6459802100511584e-09, + "WAB": 1.2261073778617802e-09, + "WAT": 3.9977419898422015e-09, + "WBA": 6.814466013782598e-10, + "WBD": 4.124490355877286e-10, + "WDC": 1.8435815360483363e-09, + "WEC": 3.5373012235913277e-09, + "WELL": 2.538836343053627e-09, + "WFC": 5.783958126629185e-09, + "WM": 1.7551496123503408e-08, + "WMB": 5.680012139561206e-09, + "WMT": 0.010026064235552546, + "WRB": 4.048070842285639e-09, + "WST": 1.8194941698014263e-09, + "WTW": 3.1290795333543124e-09, + "WY": 1.050432068415104e-09, + "WYNN": 0.002305398767812227, + "XEL": 1.9430216191809617e-09, + "XOM": 3.8825328590923485e-09, + "XYL": 2.537777858938251e-09, + "YUM": 5.925501135880161e-09, + "ZBH": 1.9207241400752083e-09, + "ZBRA": 1.2438981995424031e-09, + "ZTS": 5.184899181691472e-09 } } \ No newline at end of file From d3e3335fd396e596478c6888b7119a8e8fd8d791 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 2 Aug 2024 11:32:14 +0400 Subject: [PATCH 102/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-02 --- .../ftse100_daily_initial_holdings.json | 105 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 +++++++++++++++++ 2 files changed, 207 insertions(+), 1 deletion(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index aa11675c7..13d756d64 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11896,7 +11896,7 @@ "PSH.L": 50496.35741335182, "PSN.L": 11279.486146035944, "PSON.L": 1078.4551246663095, - "REL.L": 11046.384020941006, + "REL.L": 11101.392132772282, "RIO.L": 10899.676611143384, "RKT.L": 8537.693422880824, "RMV.L": 12188.603912012217, @@ -11925,5 +11925,108 @@ "WEIR.L": 10312.37378201466, "WPP.L": 10656.223374574773, "WTB.L": 11820.776957698925 + }, + "2024-08-02 07:00:00+00:00": { + "AAF.L": 21022.974810197305, + "AAL.L": 10088.55218156443, + "ABF.L": 9830.792192164241, + "ADM.L": 10851.902798937444, + "AHT.L": 16230.292198123281, + "ANTO.L": 17653.621196127828, + "AUTO.L": 10329.16577467001, + "AV.L": 21245.812951608794, + "AZN.L": 12918.543754103168, + "BA.L": 10015.76642276908, + "BARC.L": 9874.852307204415, + "BATS.L": 11682.667349540061, + "BDEV.L": 10481.034754638576, + "BEZ.L": 9915.34860829361, + "BKG.L": 10120.287828855544, + "BME.L": 10475.422816340923, + "BNZL.L": 9672.126642629775, + "BP.L": 1.3825856105795138e-12, + "BRBY.L": 10339.378245462405, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10202.988324122145, + "CPG.L": 0.0, + "CRDA.L": 11890.473551157951, + "CTEC.L": 40.16526327766492, + "DARK.L": 26118.26141738891, + "DCC.L": 20887.25603058379, + "DGE.L": 9649.44584713238, + "DPLM.L": 8617.04368239625, + "EDV.L": 6619.310116086236, + "ENT.L": 10207.33188161306, + "EXPN.L": 10657.553586579523, + "EZJ.L": 8517.494549319674, + "FCIT.L": 0.0, + "FRAS.L": 10368.95033185886, + "FRES.L": 10254.788612968465, + "GBPOUND": -5195.459713215349, + "GLEN.L": 9178.139810967588, + "GSK.L": 11033.28312093676, + "HIK.L": 11183.649811828007, + "HL.L": 10829.160600545943, + "HLMA.L": 10314.164021149229, + "HLN.L": 0.0, + "HSBA.L": 10093.846415216743, + "HWDN.L": 10244.30344573819, + "IAG.L": 10350.004412523302, + "ICG.L": 10580.999693302787, + "IHG.L": 15019.729568987868, + "III.L": 9164.643463743429, + "IMB.L": 10910.74880375389, + "IMI.L": 10811.642185739422, + "INF.L": 10183.53489872811, + "ITRK.L": 9924.23529758621, + "JD.L": 11447.007477388568, + "KGF.L": 10519.249302919954, + "LAND.L": 0.0, + "LGEN.L": 10266.791477493494, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 29686.861387906578, + "MKS.L": 0.0, + "MNDI.L": 10964.92954185232, + "MNG.L": 10309.679296692118, + "MRO.L": 39931.12493263183, + "NG.L": 10004.952085356905, + "NWG.L": 9528.34340885939, + "NXT.L": 9773.37496375373, + "PHNX.L": 0.0, + "PRU.L": 10060.64696616921, + "PSH.L": 48979.63616530706, + "PSN.L": 11109.28327429444, + "PSON.L": 1071.8169065694053, + "REL.L": 10831.218794020104, + "RIO.L": 10624.4645769219, + "RKT.L": 8531.404918027249, + "RMV.L": 11951.767501847282, + "RR.L": 10380.113152683203, + "RTO.L": 10034.572867413104, + "SBRY.L": 0.0, + "SDR.L": 9648.470075036077, + "SGE.L": 38407.23841125561, + "SGRO.L": 0.0, + "SHEL.L": 2818.4999999999986, + "SMDS.L": 10432.993582370555, + "SMIN.L": 0.0, + "SMT.L": 9812.912941122322, + "SN.L": 3709.000748657307, + "SPX.L": 8817.274994753316, + "SSE.L": 11416.41063304571, + "STAN.L": 9590.449181740465, + "SVT.L": 10492.924673566931, + "TSCO.L": 10287.773581568335, + "TW.L": 10446.368855606728, + "ULVR.L": 9736.208073006896, + "UTG.L": 10629.609297248302, + "UU.L": 10599.290748723031, + "VOD.L": 10366.922112653954, + "VTY.L": 10808.607483518983, + "WEIR.L": 9888.647532555642, + "WPP.L": 10288.767575994667, + "WTB.L": 11601.723438235733 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 6d3f96dfe..bcd7b5498 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11534,5 +11534,108 @@ "WEIR.L": 0.009999999247836337, "WPP.L": 0.00999999775733338, "WTB.L": 0.009999993645847026 + }, + "2024-08-02 07:00:00+00:00": { + "AAF.L": 0.020466074712037135, + "AAL.L": 0.009999999814906377, + "ABF.L": 0.009999756278167847, + "ADM.L": 0.010000046036060087, + "AHT.L": 0.016153118525837118, + "ANTO.L": 0.017311174625558905, + "AUTO.L": 0.01000000606584168, + "AV.L": 0.019465091103418878, + "AZN.L": 0.010000019866119947, + "BA.L": 0.01000000378990004, + "BARC.L": 0.009999998382540183, + "BATS.L": 0.010000003866447284, + "BDEV.L": 0.010000004016434885, + "BEZ.L": 0.01000000420675269, + "BKG.L": 0.010000002719803185, + "BME.L": 0.00999999668976632, + "BNZL.L": 0.009999993093912203, + "BP.L": 2.7414214652784197e-07, + "BRBY.L": 0.009999995596737166, + "BT-A.L": 1.6595962256170646e-08, + "CCH.L": 2.2346183423675503e-07, + "CNA.L": 0.009999953329273491, + "CPG.L": 1.210174236749747e-05, + "CRDA.L": 0.00999999860377511, + "CTEC.L": 1.0772925533488863e-07, + "DARK.L": 0.025432010548835, + "DCC.L": 0.020256008831550914, + "DGE.L": 0.009397677185707432, + "DPLM.L": 0.01000000499204335, + "EDV.L": 0.006413270989109173, + "ENT.L": 0.010000010294033386, + "EXPN.L": 0.010000001419530424, + "EZJ.L": 0.00837952365693347, + "FCIT.L": 2.0783449882047694e-08, + "FRAS.L": 0.010000003434730204, + "FRES.L": 0.009999997829759948, + "GBPOUND": 9.937738592192408e-08, + "GLEN.L": 0.008935072040198711, + "GSK.L": 0.00999999636261387, + "HIK.L": 0.010000004951111946, + "HL.L": 0.010000007046006797, + "HLMA.L": 0.01000000284942223, + "HLN.L": 2.8228219952438683e-08, + "HSBA.L": 0.009999998921350266, + "HWDN.L": 0.009999999724516146, + "IAG.L": 0.009999993628635505, + "ICG.L": 0.010000008492038737, + "IHG.L": 0.014065507394200757, + "III.L": 0.010000003214852655, + "IMB.L": 0.010000010037705268, + "IMI.L": 0.009999995535809542, + "INF.L": 0.009999968656582653, + "ITRK.L": 0.009999998870362665, + "JD.L": 0.011143659574734987, + "KGF.L": 0.009999995992964004, + "LAND.L": 1.2822226035701621e-08, + "LGEN.L": 0.009999997747624834, + "LLOY.L": 4.786972800721016e-08, + "LMP.L": 3.319829811889588e-08, + "LSEG.L": 0.028117566122991232, + "MKS.L": 3.942452642605971e-08, + "MNDI.L": 0.010000000739994994, + "MNG.L": 0.010000002258274332, + "MRO.L": 0.03887344064019979, + "NG.L": 0.00999997835788551, + "NWG.L": 0.00999999164393188, + "NXT.L": 0.010000006982581378, + "PHNX.L": 2.1524066131214088e-08, + "PRU.L": 0.009999997033638242, + "PSH.L": 0.04716108578359589, + "PSN.L": 0.0100000021803146, + "PSON.L": 0.0010974659917776454, + "REL.L": 0.009999997138299592, + "RIO.L": 0.01000000273597971, + "RKT.L": 0.009999988708810805, + "RMV.L": 0.01163518331190642, + "RR.L": 0.009999999275959771, + "RTO.L": 0.009999997732750508, + "SBRY.L": 3.156004929281989e-08, + "SDR.L": 0.009999990230139397, + "SGE.L": 0.037366560084126636, + "SGRO.L": 3.714118655986917e-08, + "SHEL.L": 0.003980556190933236, + "SMDS.L": 0.009999997646188148, + "SMIN.L": 7.95475525092351e-08, + "SMT.L": 0.009999957421913496, + "SN.L": 0.0043371017527097586, + "SPX.L": 0.009999985618713896, + "SSE.L": 0.009999999878836348, + "STAN.L": 0.009999994332178668, + "SVT.L": 0.010000002580159017, + "TSCO.L": 0.010000002083191663, + "TW.L": 0.009999999144703703, + "ULVR.L": 0.009999979099566635, + "UTG.L": 0.010000017241656436, + "UU.L": 0.00999999361706204, + "VOD.L": 0.010000023550626867, + "VTY.L": 0.010000000719006946, + "WEIR.L": 0.009999998932243095, + "WPP.L": 0.009999996011800776, + "WTB.L": 0.00999999053084081 } } \ No newline at end of file From 1c55cf64b670467dec60153395ec213ce059bcc0 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 2 Aug 2024 18:00:45 +0400 Subject: [PATCH 103/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-02 --- .../dow30_daily_initial_holdings.json | 39 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 ++++++++++++++++ 2 files changed, 69 insertions(+), 3 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 8ac312cd0..aff4fc651 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4952,7 +4952,7 @@ "2024-08-01 13:30:00+00:00": { "AAPL": 217496.7636534744, "AMGN": 20833.96169258998, - "AMZN": 230851.74775655568, + "AMZN": 230857.83309561672, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -4972,14 +4972,47 @@ "MCD": 1.2577894748026465e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 222816.2895294737, + "MSFT": 222818.939741359, "NKE": 1.0254500805972193e-12, "PG": 0.0, "TRV": 0.0, "UNH": 107101.0991898085, - "USDOLLAR": 306.4284635779816, + "USDOLLAR": 306.4284646346383, "V": 34265.80746220357, "VZ": 0.0, "WMT": 0.00038186560130255024 + }, + "2024-08-02 13:30:00+00:00": { + "AAPL": 212436.66918238808, + "AMGN": 20916.40843424317, + "AMZN": 203264.41210641025, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 77850.18861014191, + "CSCO": 44766.97715726504, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 107563.24584070263, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2699515311202029e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 218971.64688916263, + "NKE": 9.997795756176137e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 107101.0991898085, + "USDOLLAR": -114.39114112755558, + "V": 33944.15942039637, + "VZ": 0.0, + "WMT": 0.0003856892157239987 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 9b2fd0f8e..317624a70 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -4981,5 +4981,38 @@ "V": 0.031966793347820155, "VZ": 3.176341315084913e-09, "WMT": 2.5651562806672376e-08 + }, + "2024-08-02 13:30:00+00:00": { + "AAPL": 0.20623919568192942, + "AMGN": 0.019894958824381005, + "AMZN": 0.20482283288483893, + "AXP": 2.303542462592338e-09, + "BA": 3.791898756751091e-09, + "CAT": 1.9612168693471017e-09, + "CRM": 0.07582556302530845, + "CSCO": 0.043602755453453663, + "CVX": 2.1823754877131823e-09, + "DIS": 2.8736089515093594e-09, + "DOW": 2.8350953662741714e-09, + "GS": 2.322558527955777e-09, + "HD": 0.10403827362261711, + "HON": 1.3990385808064002e-09, + "IBM": 1.0346017163829482e-09, + "INTC": 2.077992872078591e-09, + "JNJ": 3.1503229575665938e-09, + "JPM": 3.747795481708466e-09, + "KO": 2.429401830406331e-09, + "MCD": 6.399968570036802e-09, + "MMM": 1.4339399738004282e-09, + "MRK": 2.6293658286381917e-09, + "MSFT": 0.21327669697553556, + "NKE": 5.822113032352409e-09, + "PG": 1.8484822069837464e-09, + "TRV": 1.6485856571669175e-09, + "UNH": 0.1002895453004265, + "USDOLLAR": -2.212163162476936e-10, + "V": 0.03201011437984871, + "VZ": 1.465113858646029e-09, + "WMT": 1.071585791489165e-08 } } \ No newline at end of file From cd0b29dbd6d92461441f739e6d6030a9461c6398 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 2 Aug 2024 18:03:14 +0400 Subject: [PATCH 104/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-02 --- .../ndx100_daily_initial_holdings.json | 150 +++++++++++++++--- .../ndx100_daily_target_weights.json | 104 ++++++++++++ 2 files changed, 231 insertions(+), 23 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 32dabaa39..b0b72d375 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15497,24 +15497,24 @@ "2024-08-01 13:30:00+00:00": { "AAPL": 5801.113302171816, "ABNB": 0.0, - "ADBE": 13971.250836631001, + "ADBE": 13970.996565819441, "ADI": 0.0, "ADP": 0.0, "ADSK": 84.36463358267225, "AEP": 0.0, - "AMAT": -52.61005391796876, + "AMAT": -52.388826553893104, "AMD": -1.766414341673817e-11, "AMGN": 31762.528238708594, - "AMZN": 21674.202252577452, + "AMZN": 21674.77359271616, "ANSS": 11.421331062572593, - "ARM": 52332.93613636587, - "ASML": 16.157092643763544, - "AVGO": -35.65245818390837, + "ARM": 52239.58766814007, + "ASML": 16.15691743254781, + "AVGO": -35.70346451681593, "AZN": 0.0, "BIIB": 15172.550448970547, "BKNG": 10472.889519464925, "BKR": 0.0, - "CCEP": 15637.844248359997, + "CCEP": 15648.449519861655, "CDNS": -83.84401193288593, "CDW": 19598.017724093243, "CEG": 67652.22876485558, @@ -15539,35 +15539,35 @@ "FTNT": 24422.16013810779, "GEHC": 8796.332394191797, "GFS": 17456.171815401376, - "GILD": 27000.393853606343, - "GOOG": 4069.4800579637363, - "GOOGL": -2.215573000183776e-12, + "GILD": 26996.84601325092, + "GOOG": 4071.0187610981493, + "GOOGL": -2.214415332247202e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 8288.356828978398, - "INTC": 1.934741911215938, + "INTC": 1.934424116373626, "INTU": 1840.2171727827258, "ISRG": 11278.928861594708, "KDP": 1856.520057678222, "KHC": 0.0, - "KLAC": 25977.15240760983, + "KLAC": 26131.79678819388, "LIN": 0.0, - "LRCX": -9.016588474325246, + "LRCX": -9.0350867507966, "LULU": 21574.28152410908, "MAR": 0.0, - "MCHP": 14196.051528077984, + "MCHP": 14193.618435353037, "MDB": 25432.71531866563, "MDLZ": 0.0, "MELI": 23392.713998490046, - "META": -141.43129303828343, + "META": -141.4638745626711, "MNST": 16957.802254187347, - "MRNA": 16081.328964448321, + "MRNA": 16015.38955833703, "MRVL": 0.0, - "MSFT": 41.1843793259868, + "MSFT": 41.184869179452214, "MU": 7.895871548502686, "NFLX": 17596.658534250262, - "NVDA": 5191.836929613349, - "NXPI": 21221.76040711559, + "NVDA": 5188.746563921464, + "NXPI": 21260.489353942805, "ODFL": 9238.19530643902, "ON": 3200.4013490495963, "ORLY": 22811.76468365748, @@ -15581,21 +15581,125 @@ "REGN": 14930.805732173802, "ROP": 12431.028710354944, "ROST": 7668.3909986945155, - "SBUX": 24983.945386548265, + "SBUX": 24977.530476688564, "SNPS": 0.0, "TEAM": 13584.60296549772, "TMUS": 8798.84868076214, - "TSLA": 8840.308252742156, + "TSLA": 8840.69690970153, "TTD": 36473.42102784682, "TTWO": 9486.407455390627, "TXN": 0.0, - "USDOLLAR": -1418.6343129347356, + "USDOLLAR": -1418.633978667122, "VRSK": 784.1099853515625, "VRTX": 10326.447122620555, - "WBA": 0.39391145781571457, + "WBA": 0.39258738690889167, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, "ZS": 18793.200175708625 + }, + "2024-08-02 13:30:00+00:00": { + "AAPL": 5666.149540627147, + "ABNB": 0.0, + "ADBE": 14145.811270322596, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 80.91616525359228, + "AEP": 0.0, + "AMAT": -48.24915081830376, + "AMD": -1.6271112817806793e-11, + "AMGN": 31550.802848252177, + "AMZN": 19417.413263219147, + "ANSS": 11.00366477422126, + "ARM": 45319.27961787514, + "ASML": 14.436797347484447, + "AVGO": -32.12631768194593, + "AZN": 0.0, + "BIIB": 14937.016918427646, + "BKNG": 9350.618128644863, + "BKR": 0.0, + "CCEP": 16977.454200340293, + "CDNS": -79.77211251895494, + "CDW": 19225.84523874742, + "CEG": 62743.55029599381, + "CHTR": 19105.116274465694, + "CMCSA": 30175.12562410818, + "COST": 0.0, + "CPRT": -0.8198677354328688, + "CRWD": 4427.599725256026, + "CSCO": 51964.843433543974, + "CSGP": 7395.654619638112, + "CSX": -6.812893365195267e-13, + "CTAS": 0.0, + "CTSH": 26798.661048408205, + "DASH": 0.0, + "DDOG": 11338.938656666558, + "DLTR": 23639.296877662073, + "DXCM": 13844.540877657273, + "EA": 14707.04098170357, + "EXC": 0.0, + "FANG": 25593.26231054064, + "FAST": 17838.042206425307, + "FTNT": 23715.515990794152, + "GEHC": 15615.561282483426, + "GFS": 13921.189536522012, + "GILD": 27129.503823172956, + "GOOG": 4654.894180801148, + "GOOGL": -2.166420043070816e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 8105.743500374223, + "INTC": 1.3947179007787436, + "INTU": 1783.1619146787007, + "ISRG": 12050.91727819, + "KDP": 2128.9000930786124, + "KHC": 0.0, + "KLAC": 28396.386364420174, + "LIN": 0.0, + "LRCX": -8.456460765999484, + "LULU": 20497.115618361877, + "MAR": 0.0, + "MCHP": 13136.894269300365, + "MDB": 23605.398788958453, + "MDLZ": 0.0, + "MELI": 23636.624753315293, + "META": -132.75610586144805, + "MNST": 16888.778714091877, + "MRNA": 15392.173902404367, + "MRVL": 0.0, + "MSFT": 40.39746258984731, + "MU": 7.157705788241351, + "NFLX": 17986.951449772612, + "NVDA": 7805.651404327195, + "NXPI": 20227.416971725834, + "ODFL": 8768.634627764959, + "ON": 3332.939922895173, + "ORLY": 20703.362742335856, + "PANW": -7.230316293109304, + "PAYX": 6052.25092986551, + "PCAR": 0.0, + "PDD": 23849.76350051971, + "PEP": 23063.290603600526, + "PYPL": 4354.868115436987, + "QCOM": 475.45310849704924, + "REGN": 14378.665154219269, + "ROP": 11940.068021790774, + "ROST": 7673.726527591814, + "SBUX": 21462.91139816717, + "SNPS": 0.0, + "TEAM": 11760.563028165545, + "TMUS": 11789.79746693514, + "TSLA": 9845.41103402259, + "TTD": 33724.75360963631, + "TTWO": 8639.59786034368, + "TXN": 0.0, + "USDOLLAR": -612.6344227381427, + "VRSK": 0.0, + "VRTX": 9744.354993028737, + "WBA": 0.39126331600206876, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 17366.670273957778 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 45aa56266..6b8a59b9e 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15390,5 +15390,109 @@ "WDAY": 3.324248122784893e-08, "XEL": 6.853567017140976e-08, "ZS": 0.0172373548971443 + }, + "2024-08-02 13:30:00+00:00": { + "AAPL": 0.005681276757239611, + "ABNB": 3.5555660244515945e-09, + "ADBE": 0.015002978160844798, + "ADI": 5.635043847575033e-08, + "ADP": 3.823330260381984e-08, + "ADSK": 5.3730116048072074e-08, + "AEP": 6.010773555032983e-09, + "AMAT": 9.759526602327065e-08, + "AMD": 2.991139446633483e-09, + "AMGN": 0.02790848270438883, + "AMZN": 0.01913077241187558, + "ANSS": 0.0008272661290565596, + "ARM": 0.04279180834593405, + "ASML": 1.1461180238854838e-08, + "AVGO": 4.596507463465151e-08, + "AZN": 1.818448493620346e-08, + "BIIB": 0.013836286007283177, + "BKNG": 0.008085344189235729, + "BKR": 4.7155778435874986e-08, + "CCEP": 0.017913861004246207, + "CDNS": 1.305331716687215e-08, + "CDW": 0.020675260856809166, + "CEG": 0.06032530553501721, + "CHTR": 0.018535236391376487, + "CMCSA": 0.025996300349888295, + "COST": 1.0928906516114451e-08, + "CPRT": 0.0019892830342739067, + "CRWD": 0.004016726057775076, + "CSCO": 0.04669559701889605, + "CSGP": 0.007401528535815387, + "CSX": 2.595960692234791e-08, + "CTAS": 1.0124956923321536e-08, + "CTSH": 0.0253063037294166, + "DASH": 5.382928427636632e-09, + "DDOG": 0.010997688278635691, + "DLTR": 0.02138045291388182, + "DXCM": 0.013973927460656333, + "EA": 0.013713144980907558, + "EXC": 1.4268334217514034e-08, + "FANG": 0.0240685770149247, + "FAST": 0.015192556561093747, + "FTNT": 0.023232786753315166, + "GEHC": 0.014911591995668643, + "GFS": 0.011376678306505541, + "GILD": 0.024264728878763096, + "GOOG": 0.00785550487081418, + "GOOGL": 1.5588737968947036e-07, + "HON": 8.55839878756895e-09, + "IDXX": 6.841285049286071e-08, + "ILMN": 0.0081744900400867, + "INTC": 6.926366406307116e-09, + "INTU": 0.004797108227190099, + "ISRG": 0.013501369290981533, + "KDP": 0.0019867383742179128, + "KHC": 8.366346392904064e-09, + "KLAC": 0.02700815648902333, + "LIN": 3.49455675521728e-08, + "LRCX": 3.7953280136975636e-08, + "LULU": 0.018687619502785198, + "MAR": 2.3169818220926048e-08, + "MCHP": 0.014069836886363188, + "MDB": 0.02287920778137285, + "MDLZ": 4.573491125186966e-08, + "MELI": 0.023522869460418365, + "META": 2.6934696416703978e-08, + "MNST": 0.01562178476225787, + "MRNA": 0.014918241174008045, + "MRVL": 1.0905931141048515e-08, + "MSFT": 2.3056852947743228e-07, + "MU": 1.1941487587547879e-08, + "NFLX": 0.018229950978130287, + "NVDA": 0.010431957087557396, + "NXPI": 0.02005939847597515, + "ODFL": 0.00843413636163784, + "ON": 0.004315156558060119, + "ORLY": 0.018745618763707415, + "PANW": 0.0010697185877666143, + "PAYX": 0.005870037150028623, + "PCAR": 7.945104220718624e-09, + "PDD": 0.022335222327984575, + "PEP": 0.022262079815427705, + "PYPL": 0.0014473710217276941, + "QCOM": 0.002685378304590362, + "REGN": 0.013732368779679458, + "ROP": 0.01166066432804421, + "ROST": 0.0077486648436695515, + "SBUX": 0.018336189087636654, + "SNPS": 4.065803613070913e-09, + "TEAM": 0.008661904230032547, + "TMUS": 0.016468963814634145, + "TSLA": 0.01194815475807593, + "TTD": 0.03277109558188048, + "TTWO": 0.008328012102106368, + "TXN": 1.1526246335897282e-08, + "USDOLLAR": 1.3710943246947674e-07, + "VRSK": 6.709136255536891e-08, + "VRTX": 0.009045116402731899, + "WBA": 4.446903957136611e-08, + "WBD": 7.891527645823348e-09, + "WDAY": 1.1669666367226837e-08, + "XEL": 3.849256288145351e-08, + "ZS": 0.01715670189819084 } } \ No newline at end of file From 5771c02b8f60f05b7d6e5eaf862301d69fd0c96d Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 2 Aug 2024 18:13:08 +0400 Subject: [PATCH 105/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-02 --- .../sp500_daily_initial_holdings.json | 579 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1047 insertions(+), 37 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 2b3757480..7f3b5c794 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -74358,14 +74358,14 @@ }, "2024-08-01 13:30:00+00:00": { "A": 0.0, - "AAL": 623.6669706620437, + "AAL": 624.2530813271063, "AAPL": 46346.885782857295, "ABBV": 5680.3017917296165, "ABNB": 0.0, "ABT": 3434.968347073852, "ACGL": 0.0, "ACN": 2.6387331532600875e-13, - "ADBE": 10825.157524011096, + "ADBE": 10824.96051075716, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, @@ -74382,17 +74382,17 @@ "ALGN": 892.9684426045886, "ALL": 6.833827331828036e-14, "ALLE": 0.0, - "AMAT": 1981.2202540585154, + "AMAT": 1972.8891442835265, "AMCR": 0.0, "AMD": 28230.858362627165, "AME": 0.0, "AMGN": 5911.310846237932, "AMP": 9.479753842408424, "AMT": 670.1626496036308, - "AMZN": 37307.05157825173, + "AMZN": 37308.03500618948, "ANET": 3745.4628939294294, "ANSS": 313.37432345488753, - "AON": 18.91868616678549, + "AON": 19.043624377401724, "AOS": 0.0, "APA": 0.0, "APD": 0.0, @@ -74401,12 +74401,12 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 21060.38489877105, + "AVGO": 21090.515023256907, "AVY": 0.0, "AWK": 0.0, "AXON": 4679.861902532587, "AXP": 0.0, - "AZO": 1.8439044225615002e-12, + "AZO": 1.8447165074327362e-12, "BA": -1.1308988739173306e-12, "BAC": 0.0, "BALL": 0.0, @@ -74437,9 +74437,9 @@ "CAH": 0.0, "CARR": 21082.058583286944, "CAT": 0.0, - "CB": 310.80716708713544, + "CB": 313.3440462740167, "CBOE": 0.0, - "CBRE": 5412.196514841516, + "CBRE": 5412.43644938353, "CCI": 321.76134083361586, "CCL": 0.0, "CDNS": 0.0, @@ -74494,7 +74494,7 @@ "DFS": 3809.784842867854, "DG": 0.0, "DGX": 0.0, - "DHI": -8.17909809289631, + "DHI": -8.192758141497496, "DHR": 1673.7322549709465, "DIS": -4.159498703483452, "DLR": 3.040709117393292e-14, @@ -74544,7 +74544,7 @@ "FDS": 1216.0725224462715, "FDX": 6400.922052440046, "FE": 0.0, - "FFIV": 3220.024861271588, + "FFIV": 3223.034120985216, "FI": 2.629105710456747e-13, "FICO": 1489.209923766254, "FIS": 0.0, @@ -74562,23 +74562,23 @@ "GEHC": 1803.7109459695532, "GEN": 0.0, "GEV": 21095.23312690113, - "GILD": 8142.219790567684, + "GILD": 8141.149906324057, "GIS": 7867.055234794383, - "GL": 0.31511288916185953, + "GL": 0.3173554561838062, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 23418.220166767678, - "GOOGL": 2188.137889895973, + "GOOG": 23427.074784129043, + "GOOGL": 2186.9945571889375, "GPC": 0.0, "GPN": -1.0596547125478501e-13, "GRMN": 2243.199147062487, "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.16328076478249, + "HAS": 1.1630096779800254, "HBAN": 0.0, - "HCA": 6322.433350841473, + "HCA": 6340.892968364125, "HD": 9089.425357653805, "HES": 0.0, "HIG": 6013.376875618865, @@ -74601,7 +74601,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 4080.2614390584, - "INTC": 210.3428682019368, + "INTC": 210.3083179199358, "INTU": 1281.6842617517605, "INVH": 0.0, "IP": 0.0, @@ -74628,7 +74628,7 @@ "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": 796.4804865787, + "KLAC": 801.2220082652018, "KMB": 4506.362683825267, "KMI": 0.0, "KMX": 1.2032879327014294, @@ -74646,11 +74646,11 @@ "LMT": 8196.515734617662, "LNT": 0.0, "LOW": -2.9239747596356333e-13, - "LRCX": 805.5653422026944, + "LRCX": 807.2180260817734, "LULU": 1561.7586978097077, "LUV": 27.15437642389344, "LVS": 1749.6067938473634, - "LW": 21.74178366524466, + "LW": 21.75627368932287, "LYB": 3558.1885593225643, "LYV": 2902.0588939059667, "MA": 30551.321175315206, @@ -74658,13 +74658,13 @@ "MAR": -5.589393171090914e-13, "MAS": 0.0, "MCD": 10788.871138501196, - "MCHP": 2283.0758081181702, + "MCHP": 2282.684506696909, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.3282882135523928, "MET": -0.03782685786495893, - "META": 24477.485359232218, + "META": 24483.12423708625, "MGM": 3738.737420531095, "MHK": 0.0, "MKC": 0.0, @@ -74678,12 +74678,12 @@ "MOS": 0.0, "MPC": 14988.117658251098, "MPWR": -9.451594298858857e-13, - "MRK": 5134.53200283718, - "MRNA": 6157.5896426616355, + "MRK": 5134.75881881597, + "MRNA": 6132.341244036636, "MRO": 0.0, - "MS": 6165.904746057789, - "MSCI": 3754.2120368203528, - "MSFT": 37395.78194218312, + "MS": 6166.2017491687975, + "MSCI": 3763.653699081858, + "MSFT": 37396.226733477204, "MSI": 0.0, "MTB": -6.491759820593271, "MTCH": 0.0, @@ -74704,11 +74704,11 @@ "NTAP": 5724.141268231101, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 143024.56880986484, + "NVDA": 142939.4355080029, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 7981.7363079765755, + "NXPI": 7996.302688669331, "O": 0.0, "ODFL": 2308.330529548063, "OKE": 0.0, @@ -74727,7 +74727,7 @@ "PEG": 0.0, "PEP": 10024.4617749491, "PFE": 0.0, - "PFG": 165.17263371192178, + "PFG": 165.29410900668512, "PG": 1.0290294788542587, "PGR": 8265.992696808406, "PH": 0.0, @@ -74756,7 +74756,7 @@ "RF": 0.0, "RJF": 0.0, "RL": 0.0, - "RMD": 399.3623175742078, + "RMD": 398.4259463723926, "ROK": 1.2094435982464442, "ROL": 0.0, "ROP": 5394.186898572793, @@ -74765,12 +74765,12 @@ "RTX": 0.0, "RVTY": 0.0, "SBAC": 6162.934288791599, - "SBUX": 8820.3482089361, + "SBUX": 8818.083485017758, "SCHW": 1.7310585295323528, "SHW": 1.5080866699984672, "SJM": 1.0076590730196604, "SLB": 0.0, - "SMCI": 10988.835609151425, + "SMCI": 10989.77145486943, "SNA": 0.0, "SNPS": 0.0, "SO": 10.819264618838007, @@ -74807,7 +74807,7 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.788202502295543e-12, - "TSLA": 101746.82966021835, + "TSLA": 101751.30287679759, "TSN": 5140.011919894113, "TT": 0.0, "TTWO": 739.444542608115, @@ -74824,7 +74824,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": -630.3203052437491, + "USDOLLAR": -630.3202606001647, "V": 1581.9269228333696, "VICI": 0.0, "VLO": 0.0, @@ -74838,7 +74838,7 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.3233452730114726e-13, + "WAT": -2.3509811155408555e-13, "WBA": 0.0, "WBD": 0.0, "WDC": -2.441095256720125, @@ -74860,5 +74860,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-08-02 13:30:00+00:00": { + "A": 0.0, + "AAL": 582.0500948469086, + "AAPL": 45268.618609762474, + "ABBV": 5968.388459443269, + "ABNB": 0.0, + "ABT": 3547.6958580232167, + "ACGL": 0.0, + "ACN": 2.5684732513709845e-13, + "ADBE": 10545.278573378095, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.166568329867552, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3753.9054845023043, + "AIG": 0.0, + "AIZ": 1.4846768305236204, + "AJG": 0.0, + "AKAM": -0.07881554255475419, + "ALB": 0.0, + "ALGN": 859.0949286866465, + "ALL": 6.912935414392815e-14, + "ALLE": 0.0, + "AMAT": 1816.9948084713567, + "AMCR": 0.0, + "AMD": 26004.51493880892, + "AME": 0.0, + "AMGN": 5934.703819948968, + "AMP": 8.998063667714531, + "AMT": 691.8196018741888, + "AMZN": 32848.76974149535, + "ANET": 3419.5381627886372, + "ANSS": 301.9145478976477, + "AON": 18.983031731552778, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 23.96281921850256, + "APTV": 2.4584278781931486e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 18977.446443436354, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4881.924719764998, + "AXP": 0.0, + "AZO": 1.851141933245702e-12, + "BA": -1.0429268529909818e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 498.24382306095225, + "BDX": 0.0, + "BEN": 176.8560765084464, + "BF-B": 0.0, + "BG": 935.5233964685357, + "BIIB": 2100.5869823155476, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3114.2230389058113, + "BKR": 0.0, + "BLDR": 484.0104830648311, + "BLK": 9.783672328389928e-13, + "BMY": 98.95697530161578, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.33351239077812217, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1327.2150160038746, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20035.871107244726, + "CAT": 0.0, + "CB": 306.6241448178483, + "CBOE": 0.0, + "CBRE": 5336.211513060334, + "CCI": 329.39743039307126, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 372.01027541930387, + "CE": -2.5371125314725098e-14, + "CEG": 34396.12383495822, + "CF": 9902.563942628942, + "CFG": 0.0, + "CHD": 2357.3034626866383, + "CHRW": 0.0, + "CHTR": 5241.071998882274, + "CI": 3.8674451730991774e-13, + "CINF": 0.016010503606635307, + "CL": 10.069844147206796, + "CLX": 15.95488042134382, + "CMCSA": 6563.8540887451645, + "CME": 4993.6905460277985, + "CMG": 5344.0409504428235, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 1015.705309098494, + "CNP": 0.0, + "COF": 8951.9366518579, + "COO": 0.0, + "COP": 0.0, + "COR": 3374.3259171712975, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 722.1254622295295, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7463.879722885502, + "CRWD": 1082.5525813615259, + "CSCO": 7001.018050637037, + "CSGP": -7.81262596339622e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 10559.67706198207, + "CTVA": 105.68637481315085, + "CVS": 0.0, + "CVX": -5.445818762533479e-13, + "CZR": 8786.948399435198, + "D": 0.0, + "DAL": 594.2170588421411, + "DAY": 0.0, + "DD": 0.0, + "DE": 1.0065548983124255e-13, + "DECK": 882.7430067639363, + "DFS": 3559.9024804825785, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.890643862357065, + "DHR": 1682.7224372192518, + "DIS": -4.084161658350734, + "DLR": 3.0708613432262555e-14, + "DLTR": 1012.9844316014371, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.272963289238481, + "DRI": 2.4406170345243625, + "DTE": 0.0, + "DUK": 1.3084703987453903, + "DVA": 3411.597926223389, + "DVN": 0.0, + "DXCM": 5207.995476064028, + "EA": 4019.3287335974337, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.42493308016404e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.2335191950696672e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3539.78368435154, + "EOG": 0.0, + "EPAM": 5968.77003632806, + "EQIX": 820.6033283873459, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1458433526059557, + "EXPE": 3852.5826896252893, + "EXR": 5.680828066246088e-14, + "F": 0.0, + "FANG": 13540.420976852476, + "FAST": 3195.5349630716037, + "FCX": 0.0, + "FDS": 1206.3498707698632, + "FDX": 6184.757620528862, + "FE": 0.0, + "FFIV": 3052.142147882475, + "FI": 2.5634462753412157e-13, + "FICO": 1512.4577759924061, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.494678454562301e-14, + "FTNT": 5829.239321824886, + "FTV": 0.0, + "GD": 3.8636806098758945e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1775.8296615989168, + "GEN": 0.0, + "GEV": 22105.386297663368, + "GILD": 8321.921987617017, + "GIS": 8034.964061459919, + "GL": 0.31582642614432443, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 22914.889212040103, + "GOOGL": 2139.5935865259744, + "GPC": 0.0, + "GPN": -1.0034017867363398e-13, + "GRMN": 2209.276635030167, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1588529217505816, + "HBAN": 0.0, + "HCA": 6319.647454743879, + "HD": 8809.119459238551, + "HES": 0.0, + "HIG": 5847.398197364777, + "HII": 0.7317939831410009, + "HLT": -1.2747153346651309e-13, + "HOLX": 3066.5415953175066, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 11114.04181590697, + "HUBB": 1.30043024117961e-13, + "HUM": 1049.3947450232706, + "HWM": 2481.5173773105234, + "IBM": 0.0, + "ICE": 742.2136661294384, + "IDXX": -9.888658411013482, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4022.061369102358, + "INTC": 151.6320920540818, + "INTU": 1241.9461115792276, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.041359796957003314, + "IRM": 0.0, + "ISRG": 6742.545490076088, + "IT": 8.041596647343485e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2460.529752957908, + "JCI": 0.0, + "JKHY": 840.9167563877922, + "JNJ": 13897.512000466591, + "JNPR": 0.0, + "JPM": 2469.0261526388517, + "K": 514.6302601563154, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 695.7374718914995, + "KMB": 4638.785923480709, + "KMI": 0.0, + "KMX": 1.1537990039121335, + "KO": 205.91835198704536, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2159022994442197, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6776223171408469, + "LKQ": 4454.082739130759, + "LLY": 1.4087125007142456, + "LMT": 8303.183394756692, + "LNT": 0.0, + "LOW": -2.8225721075341996e-13, + "LRCX": 755.5220835667368, + "LULU": 1449.0357135232655, + "LUV": 25.987744108771683, + "LVS": 1676.3941105886227, + "LW": 21.1513283115827, + "LYB": 3397.8326477429373, + "LYV": 2743.79194333198, + "MA": 30207.384795078848, + "MAA": 0.0, + "MAR": -5.316782065550215e-13, + "MAS": 0.0, + "MCD": 10893.19293560472, + "MCHP": 2074.3732246487384, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3340497556749615, + "MET": -0.03586357522720568, + "META": 20531.42250095665, + "MGM": 3409.205865425004, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5669.091221984045, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5346.684609866625, + "MO": -22.51037817239406, + "MOH": 2089.570637817091, + "MOS": 0.0, + "MPC": 14466.652335047032, + "MPWR": -8.775815454364817e-13, + "MRK": 5226.897009944283, + "MRNA": 6070.285918840594, + "MRO": 0.0, + "MS": 5883.893717279139, + "MSCI": 3771.1516891059723, + "MSFT": 36681.254561828544, + "MSI": 0.0, + "MTB": -6.165946269177192, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3311.514056876233, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16751.476199546574, + "NI": 0.0, + "NKE": -3.0164613371499115e-14, + "NOC": -4.427107978616453e-13, + "NOW": 5362.114086565965, + "NRG": 0.0, + "NSC": -2.936416581534542e-14, + "NTAP": 5442.303329653376, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 124144.94208405534, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7340.507224263589, + "O": 0.0, + "ODFL": 2191.002283705159, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.561301406327463, + "ORCL": 7159.058739962672, + "ORLY": -0.8089378489995146, + "OTIS": 1584.795769141966, + "OXY": 0.0, + "PANW": 5528.942038137815, + "PARA": 2037.336857071038, + "PAYC": 0.0, + "PAYX": 252.18437772032573, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 10391.089780360842, + "PFE": 0.0, + "PFG": 159.30108579519123, + "PG": 1.0597954480908662, + "PGR": 8266.756462028117, + "PH": 0.0, + "PHM": -12.176479029188455, + "PKG": -5.123453316515172e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -62.83970992878467, + "POOL": 1396.6455046881335, + "PPG": -0.4017421127131447, + "PPL": 0.0, + "PRU": 134.4727042657008, + "PSA": 0.0, + "PSX": 1023.1536986198922, + "PTC": 2.5819967312289232e-14, + "PWR": -4.821291787581602, + "PYPL": 0.0, + "QCOM": 3971.1576482471223, + "QRVO": 0.0, + "RCL": 1554.2117044838585, + "REG": 0.0, + "REGN": 1118.956708008222, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 393.2759047624085, + "ROK": 1.1411713557327818, + "ROL": 0.0, + "ROP": 5418.460612324658, + "ROST": 1149.7422156650275, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6516.609869579562, + "SBUX": 8505.618092196835, + "SCHW": 1.665745707543505, + "SHW": 1.4953826925533038, + "SJM": 1.0343424731904989, + "SLB": 0.0, + "SMCI": 9187.656102213878, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 11.394263562445488, + "SOLV": -1.605517610750678e-12, + "SPG": 0.0, + "SPGI": -5.763462757314247, + "SRE": 0.0, + "STE": 0.537004805069287, + "STLD": -2.641714234504409e-14, + "STT": 335.93302311317694, + "STX": -12.349344896775449, + "STZ": -2.061537500961042, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.84326251404057, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4815.477551073326, + "TDY": -16.005492484194306, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 451.26000500877103, + "TMO": 0.0, + "TMUS": 7632.679961104732, + "TPR": 2527.5789127887406, + "TRGP": 412.1555607520057, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.671574243455307e-12, + "TSLA": 96221.42994847869, + "TSN": 5113.171151641443, + "TT": 0.0, + "TTWO": 718.9591141973751, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3592.973138079697, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 3119.752106560758, + "UNH": 18333.60708828002, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 1522.7554503097383, + "V": 1567.07760992654, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 12064.765397826639, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 3030.662716802741, + "VRTX": 1944.1540162259892, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.3944385369548405e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.3630157973479187, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4728895520977248, + "WMB": 0.0, + "WMT": 11931.205806681684, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2556.2735956720926, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 54ad5e80a..c2f43163d 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -71834,5 +71834,510 @@ "ZBH": 1.9207241400752083e-09, "ZBRA": 1.2438981995424031e-09, "ZTS": 5.184899181691472e-09 + }, + "2024-08-02 13:30:00+00:00": { + "A": 1.828561413373102e-09, + "AAL": 0.0005171362967598168, + "AAPL": 0.04017900592570645, + "ABBV": 0.005302767609721512, + "ABNB": 1.081241123905766e-09, + "ABT": 0.003152033818588282, + "ACGL": 4.242064097720885e-09, + "ACN": 5.46482159335955e-09, + "ADBE": 0.00936912801674881, + "ADI": 6.44918287000317e-09, + "ADM": 3.1567584492838887e-09, + "ADP": 6.022937264975634e-09, + "ADSK": 6.92066361407261e-09, + "AEE": 2.0655992098387697e-09, + "AEP": 1.8638515401460923e-09, + "AES": 8.898758440405767e-10, + "AFL": 0.0031858028351627278, + "AIG": 1.4957189816352658e-09, + "AIZ": 4.36484288356554e-09, + "AJG": 3.675657901679357e-09, + "AKAM": 4.570323898836332e-09, + "ALB": 7.788566978240031e-10, + "ALGN": 0.0007626469840832122, + "ALL": 4.7381492928097975e-09, + "ALLE": 1.4382102197446246e-09, + "AMAT": 0.0016143539105172716, + "AMCR": 5.042911237087568e-10, + "AMD": 0.023805877873171424, + "AME": 1.7003203893884555e-09, + "AMGN": 0.005096799088599891, + "AMP": 1.0028529627600965e-08, + "AMT": 0.0006186201728443997, + "AMZN": 0.029578704600896708, + "ANET": 0.002993854927135663, + "ANSS": 0.0001848345003257229, + "AON": 6.899164229363632e-09, + "AOS": 1.3886926595973617e-09, + "APA": 1.0733077366568405e-09, + "APD": 3.1417887945157365e-09, + "APH": 1.4134241754960056e-08, + "APTV": 2.5427654916544794e-09, + "ARE": 1.2273612273948138e-09, + "ATO": 2.241956893117508e-09, + "AVB": 2.1778458371795986e-09, + "AVGO": 0.016860951994934335, + "AVY": 1.9932818903296074e-09, + "AWK": 4.612910167991305e-09, + "AXON": 0.004479746798168756, + "AXP": 3.1254828417057954e-09, + "AZO": 1.6793832149806506e-08, + "BA": 6.33462022733853e-09, + "BAC": 2.1584886044835175e-09, + "BALL": 5.42645744431544e-09, + "BAX": 2.838650937890837e-09, + "BBWI": 2.3043464658329122e-09, + "BBY": 0.0004427125977355869, + "BDX": 4.9328468986401236e-09, + "BEN": 0.0001571321023711952, + "BF-B": 3.207792445921418e-09, + "BG": 0.0007217939156717685, + "BIIB": 0.0018663087424309055, + "BIO": 1.8778803284141874e-09, + "BK": 2.0433192874169836e-09, + "BKNG": 0.0013334799002231747, + "BKR": 1.2085555721008195e-09, + "BLDR": 0.00043002633829460974, + "BLK": 3.752344095849236e-08, + "BMY": 8.79191858827735e-05, + "BR": 3.2143948828216693e-09, + "BRK-B": 3.936898202825721e-09, + "BRO": 2.6900397410847475e-08, + "BSX": 3.8805552731253956e-09, + "BWA": 1.7209006956369578e-09, + "BX": 0.00117917197514795, + "BXP": 1.3210416258239655e-09, + "C": 2.3631513414909726e-09, + "CAG": 4.307663215038043e-09, + "CAH": 3.999000961583519e-09, + "CARR": 0.01780133670144177, + "CAT": 1.0882118224847374e-09, + "CB": 1.1306331622323992e-07, + "CBOE": 1.0503820596742832e-08, + "CBRE": 0.00474105353806884, + "CCI": 0.0002926653188271208, + "CCL": 1.2681298475522007e-09, + "CDNS": 5.669930269306403e-09, + "CDW": 0.0003306384800477787, + "CE": 2.4040742814494297e-09, + "CEG": 0.0305526076227482, + "CF": 0.008798155450377593, + "CFG": 2.034461255997206e-09, + "CHD": 0.00209438440637666, + "CHRW": 5.279502667948436e-09, + "CHTR": 0.004368065274512234, + "CI": 8.638740107752782e-09, + "CINF": 8.688489227293883e-09, + "CL": 1.5290345828226134e-07, + "CLX": 1.2271798495460042e-06, + "CMCSA": 0.0058318080974940015, + "CME": 0.004436788592589836, + "CMG": 0.004748033868333011, + "CMI": 1.7663060938084132e-09, + "CMS": 1.5820824334858632e-09, + "CNC": 0.0009024249998780604, + "CNP": 1.4608215473873426e-09, + "COF": 0.007947405125280652, + "COO": 4.652063100148898e-09, + "COP": 2.4187013778804604e-09, + "COR": 0.002749922372594872, + "COST": 3.5820117101089307e-09, + "CPAY": 7.386520863670257e-09, + "CPB": 5.401117921627586e-09, + "CPRT": 0.0006415875227990302, + "CPT": 1.924979996132426e-09, + "CRL": 1.0802940861503577e-09, + "CRM": 0.006631442341235642, + "CRWD": 0.0009618157681559746, + "CSCO": 0.006220221306703166, + "CSGP": 4.528853462599676e-09, + "CSX": 3.420343080584992e-09, + "CTAS": 4.153660355109637e-09, + "CTLT": 2.2492703729453542e-09, + "CTRA": 9.960071036738572e-10, + "CTSH": 0.00911679962915034, + "CTVA": 9.389836246179037e-05, + "CVS": 2.9673834599234315e-09, + "CVX": 3.1058720135602567e-09, + "CZR": 0.007806965506748126, + "D": 3.0886152891854454e-09, + "DAL": 0.0005279458840389825, + "DAY": 1.6804377358042673e-09, + "DD": 2.089395481212152e-09, + "DE": 3.1367793341648946e-09, + "DECK": 0.0009715820846010127, + "DFS": 0.0031628677067164846, + "DG": 1.6610226369257848e-09, + "DGX": 6.122472606003875e-09, + "DHI": 1.3631240441864897e-08, + "DHR": 0.001489984306184888, + "DIS": 4.3115573703660035e-09, + "DLR": 3.350960330913057e-09, + "DLTR": 0.0009000094338460325, + "DOC": 8.734214337957982e-10, + "DOV": 1.8448959580255243e-09, + "DOW": 1.974717784725584e-09, + "DPZ": 1.3212298228191174e-08, + "DRI": 2.1625547708678046e-06, + "DTE": 2.1220488668268916e-09, + "DUK": 1.1465096550636672e-08, + "DVA": 0.0030310581859650555, + "DVN": 1.1183396842073697e-09, + "DXCM": 0.004634078474363659, + "EA": 0.0034428949560228153, + "EBAY": 3.3217766205784473e-09, + "ECL": 2.169368737395306e-09, + "ED": 3.23631125913507e-09, + "EFX": 2.032359995045811e-09, + "EG": 5.889871135012629e-09, + "EIX": 3.0457666386107326e-09, + "EL": 2.0602349047739595e-09, + "ELV": 7.2546745209185034e-09, + "EMN": 1.5270832997148372e-09, + "EMR": 1.096734372013364e-09, + "ENPH": 0.003148251219754145, + "EOG": 2.5897354997182888e-09, + "EPAM": 0.005303115076674367, + "EQIX": 0.0007001173971441393, + "EQR": 2.049700935668348e-09, + "EQT": 7.344180733737769e-10, + "ES": 1.7596217161888435e-09, + "ESS": 2.990137342080842e-09, + "ETN": 1.0557106065617602e-09, + "ETR": 2.98444762918865e-09, + "ETSY": 4.642986353435725e-09, + "EVRG": 1.1830447913282766e-09, + "EW": 2.4480812684606377e-09, + "EXC": 2.2837818423873562e-09, + "EXPD": 7.177694108387701e-09, + "EXPE": 0.003360304981185803, + "EXR": 5.158453854223929e-09, + "F": 9.58367381482324e-10, + "FANG": 0.012030289026787643, + "FAST": 0.002839139369036239, + "FCX": 1.1732832720084533e-09, + "FDS": 0.0009524400960326619, + "FDX": 0.0053246250524694025, + "FE": 1.9614646622370443e-09, + "FFIV": 0.0026707424236615037, + "FI": 7.200239628329723e-09, + "FICO": 0.0015127732424089868, + "FIS": 2.510215981217889e-09, + "FITB": 3.0738984325751056e-09, + "FMC": 2.0660160273160216e-09, + "FOX": 1.3369289147527082e-09, + "FOXA": 1.8112873077259067e-09, + "FRT": 1.4851653945458018e-09, + "FSLR": 1.212186745543766e-09, + "FTNT": 0.005179124335108354, + "FTV": 1.0164708529128315e-09, + "GD": 5.06216206153643e-09, + "GDDY": 1.1152776684219515e-08, + "GE": 1.8244070880396375e-09, + "GEHC": 0.0015777726289789933, + "GEN": 1.2889459766632101e-09, + "GEV": 0.018155028686885406, + "GILD": 0.007388382411982696, + "GIS": 0.0071388485543417085, + "GL": 5.292739118654757e-09, + "GLW": 1.815740894770565e-09, + "GM": 1.5731115671438979e-09, + "GNRC": 1.4741856495666962e-09, + "GOOG": 0.020360009796439617, + "GOOGL": 0.0019010529381937005, + "GPC": 2.908962565468083e-09, + "GPN": 5.833343341108224e-09, + "GRMN": 0.0019628818788005086, + "GS": 3.169872043434363e-09, + "GWW": 1.3941523811391777e-09, + "HAL": 1.1633605423528651e-09, + "HAS": 1.0247341537428606e-06, + "HBAN": 9.905322336819555e-10, + "HCA": 0.005561290574483041, + "HD": 0.007786989488770154, + "HES": 2.4168637594385574e-09, + "HIG": 0.00509469088025052, + "HII": 6.453594317940456e-09, + "HLT": 5.023962402335946e-09, + "HOLX": 0.0027245285851131206, + "HON": 2.4108039669853863e-09, + "HPE": 8.72336493601536e-10, + "HPQ": 1.4160310606075754e-09, + "HRL": 3.6893680313987187e-09, + "HSIC": 3.573295296182734e-09, + "HST": 1.3888118381707778e-09, + "HSY": 0.009791767972050131, + "HUBB": 6.111676197624992e-10, + "HUM": 0.0009323759300854689, + "HWM": 0.0022167578329589693, + "IBM": 1.7646847794808277e-09, + "ICE": 0.0006594340907724403, + "IDXX": 8.84105842110528e-09, + "IEX": 1.6613257688123844e-09, + "IFF": 2.0873243685025314e-09, + "INCY": 0.0035734916674096755, + "INTC": 0.0001347189933418502, + "INTU": 0.0013116828456552247, + "INVH": 1.2412260865163537e-09, + "IP": 1.5958358414542088e-09, + "IPG": 2.665845377601519e-09, + "IQV": 1.957191408715117e-09, + "IR": 1.2121874501331713e-08, + "IRM": 3.4183671722759656e-09, + "ISRG": 0.005990611323302026, + "IT": 6.772293311634682e-09, + "ITW": 2.391533084919638e-09, + "IVZ": 1.3729206530855308e-09, + "J": 2.5665907252655897e-09, + "JBHT": 2.5581520809026754e-09, + "JBL": 0.002193626763146065, + "JCI": 1.050023557290624e-09, + "JKHY": 0.0007471370484840987, + "JNJ": 0.01214410755544883, + "JNPR": 2.306061031105935e-09, + "JPM": 0.0019990595638969327, + "K": 0.0004572326336964225, + "KDP": 1.55582867142982e-09, + "KEY": 8.229148698015706e-10, + "KEYS": 1.963015527864067e-09, + "KHC": 7.98244384283901e-10, + "KIM": 1.2478075979000632e-09, + "KKR": 4.733090913701297e-09, + "KLAC": 0.00039578216254058826, + "KMB": 0.0041201953390686205, + "KMI": 5.976575147236244e-10, + "KMX": 9.391078131576298e-09, + "KO": 0.00018294313655959978, + "KR": 5.864593790587864e-09, + "KVUE": -2.2247378835050336e-10, + "L": 2.6696408023298846e-09, + "LDOS": 1.2205618448326443e-08, + "LEN": 8.628371100628408e-09, + "LH": 1.947642309395161e-09, + "LHX": 2.913904939922476e-09, + "LIN": 1.0210566847599108e-08, + "LKQ": 0.0039131512792384545, + "LLY": 8.647929499240286e-09, + "LMT": 0.006831482727178589, + "LNT": 1.5224720372714887e-09, + "LOW": 5.236345343795793e-09, + "LRCX": 0.0006752729674012645, + "LULU": 0.0012874294021635907, + "LUV": 2.3089710405720888e-05, + "LVS": 0.0014894291485561156, + "LW": 8.221744071479711e-09, + "LYB": 0.002817669804320027, + "LYV": 0.0024377874735516045, + "MA": 0.026087057837693613, + "MAA": 2.4279750845344425e-09, + "MAR": 5.362604558472516e-09, + "MAS": 2.031583867445797e-09, + "MCD": 0.009091683047810311, + "MCHP": 0.0018430325026620314, + "MCK": 1.4027916316780616e-08, + "MCO": 2.220737965083879e-09, + "MDLZ": 2.571770116451256e-09, + "MDT": 1.1811825013606395e-06, + "MET": 2.3592845892641183e-09, + "META": 0.01824159059727791, + "MGM": 0.0030289836421817547, + "MHK": 2.0387099460104602e-09, + "MKC": 2.6897148222659188e-09, + "MKTX": 0.004985337754747789, + "MLM": 1.4875735133688715e-09, + "MMC": 2.161219755575459e-09, + "MMM": 1.8375992371316965e-09, + "MNST": 0.004750385518497738, + "MO": 2.8508625267277088e-09, + "MOH": 0.001855431421671729, + "MOS": 7.972089908761923e-10, + "MPC": 0.012748387424121582, + "MPWR": 2.051488872070225e-08, + "MRK": 0.00464395108751014, + "MRNA": 0.0053932956176725244, + "MRO": 6.277262093941418e-10, + "MS": 0.005227660775647528, + "MSCI": 0.0033501516191095496, + "MSFT": 0.0325903581104982, + "MSI": 4.607967684743561e-09, + "MTB": 6.563535573082626e-09, + "MTCH": 5.67710569401659e-09, + "MTD": 3.3221122063468428e-09, + "MU": 0.003053110216336215, + "NCLH": 1.4714623648151974e-09, + "NDAQ": 3.4178215067901054e-09, + "NDSN": 1.753716027836168e-09, + "NEE": 1.7123894227518794e-09, + "NEM": 1.115374969581369e-09, + "NFLX": 0.01487099176107725, + "NI": 1.2839625236848698e-09, + "NKE": 8.506714178902991e-09, + "NOC": 1.0601538240852291e-08, + "NOW": 0.005091163360738227, + "NRG": 7.449940638832899e-10, + "NSC": 3.953427745475469e-09, + "NTAP": 0.004835328165759493, + "NTRS": 1.9287116362565833e-09, + "NUE": 3.088712621325385e-09, + "NVDA": 0.11748425606496384, + "NVR": 0.0010063568602516264, + "NWS": 7.650670103303453e-10, + "NWSA": 7.775054184524953e-10, + "NXPI": 0.006374342576804416, + "O": 3.735990770221906e-09, + "ODFL": 0.0016613177621890118, + "OKE": 2.3043367366318883e-09, + "OMC": 1.984202050895729e-09, + "ON": 3.7014026320126446e-09, + "ORCL": 0.006360631250274227, + "ORLY": 1.2316099156649457e-08, + "OTIS": 0.0014080374028467748, + "OXY": 1.5787651051444925e-09, + "PANW": 0.0049162321870729565, + "PARA": 0.0018101187623479782, + "PAYC": 1.06940734643062e-08, + "PAYX": 0.00016298934618530535, + "PCAR": 3.4901497456644254e-09, + "PCG": 1.2423507525207533e-09, + "PEG": 2.231826071951984e-09, + "PEP": 0.00876529521845778, + "PFE": 2.882046741478426e-09, + "PFG": 0.00012627131953796942, + "PG": 6.16861700752665e-09, + "PGR": 0.007344787151182324, + "PH": 1.307451015933435e-09, + "PHM": 5.781106331153332e-09, + "PKG": 5.300198290343367e-09, + "PLD": 2.6100540125187124e-09, + "PM": 5.032141355658368e-09, + "PNC": 4.017387626770786e-09, + "PNR": 9.897072082238448e-10, + "PNW": 1.7315119979451495e-09, + "PODD": 2.3692585394806268e-08, + "POOL": 0.0011435996345060793, + "PPG": 3.2663916137626013e-09, + "PPL": 1.8506135357864199e-09, + "PRU": 3.492392718904881e-08, + "PSA": 2.133324894035564e-09, + "PSX": 0.0003807623426993411, + "PTC": 6.650444701483605e-09, + "PWR": 3.6446560586956246e-09, + "PYPL": 1.2500298154309303e-09, + "QCOM": 0.003628855659756724, + "QRVO": 7.219695290795819e-10, + "RCL": 0.0013304561878287936, + "REG": 2.0402304077998642e-09, + "REGN": 0.0012960328765536818, + "RF": 1.3890014104464955e-09, + "RJF": 3.4348633499876573e-09, + "RL": 2.0425309956216456e-09, + "RMD": 0.000372206823884149, + "ROK": 2.8362147058256415e-09, + "ROL": 1.8017309688822442e-09, + "ROP": 0.004724618945513924, + "ROST": 0.0010215098132606464, + "RSG": 4.252851770615631e-09, + "RTX": 4.499902119522553e-09, + "RVTY": 1.4685504013181627e-09, + "SBAC": 0.0057736473872074395, + "SBUX": 0.007557001654044507, + "SCHW": 3.516232144726887e-08, + "SHW": 1.7008163088109715e-08, + "SJM": 1.0868387689942286e-08, + "SLB": 1.1335323544913943e-09, + "SMCI": 0.008255981121851882, + "SNA": 1.6731293181874e-09, + "SNPS": 1.538121576138965e-09, + "SO": 1.010680336547539e-05, + "SOLV": -5.640694722044427e-10, + "SPG": 2.140005806003045e-09, + "SPGI": 3.416645722098942e-09, + "SRE": 3.016893486955171e-09, + "STE": 4.657034902777237e-07, + "STLD": 4.834899262405981e-09, + "STT": 0.0002984620863370311, + "STX": 4.659383280175499e-09, + "STZ": 3.8577091093347214e-08, + "SWK": 1.3871002232094693e-09, + "SWKS": 1.7605986718675995e-09, + "SYF": 2.6364792858485285e-09, + "SYK": 1.8682582501856064e-08, + "SYY": 4.163716924884107e-09, + "T": 2.653707585908949e-09, + "TAP": 2.172803376480054e-09, + "TDG": 0.004450921930291775, + "TDY": 6.523884979706777e-09, + "TECH": 5.342856376441521e-09, + "TEL": 2.9270784882244625e-09, + "TER": 1.6899418370914508e-09, + "TFC": 1.6823680217315909e-09, + "TFX": 4.6184949775405295e-09, + "TGT": 3.861833694884363e-09, + "TJX": 0.00040092611376563565, + "TMO": 5.118869802163799e-09, + "TMUS": 0.006781403811199961, + "TPR": 0.002245686821904586, + "TRGP": 0.00036618507124329717, + "TRMB": 3.459886865848495e-09, + "TROW": 3.771774220555919e-09, + "TRV": 3.035362676858892e-09, + "TSCO": 4.903899305207706e-09, + "TSLA": 0.08674226467991844, + "TSN": 0.004542898100409049, + "TT": 1.3090087585977831e-09, + "TTWO": 0.0006387842562459811, + "TXN": 2.7377038800507513e-09, + "TXT": 1.5028671858516645e-09, + "TYL": 4.367094891964086e-08, + "UAL": 0.003192261888062325, + "UBER": 2.326127727745568e-09, + "UDR": 1.3431760418972246e-09, + "UHS": 2.5675406253217296e-09, + "ULTA": 0.0025581745407464856, + "UNH": 0.01559044473284799, + "UNP": 3.973695544105643e-09, + "UPS": 1.39135498715181e-09, + "URI": 2.3823785240102566e-09, + "USB": 1.6352539520065796e-09, + "USDOLLAR": 8.661810323596503e-08, + "V": 0.0013922273001641529, + "VICI": 1.637012884504697e-09, + "VLO": 6.797373826862539e-09, + "VLTO": 0.010748621412496828, + "VMC": 9.656519016636156e-10, + "VRSK": 4.9012535399101014e-09, + "VRSN": 0.0026926533988841173, + "VRTX": 0.0017273611550628605, + "VST": 7.894232542106746e-10, + "VTR": 3.263021366835926e-09, + "VTRS": 1.247307804787276e-09, + "VZ": 3.317000251611846e-09, + "WAB": 1.3354216564757011e-09, + "WAT": 4.426279657260047e-09, + "WBA": 6.834418971280052e-10, + "WBD": 4.014837128563108e-10, + "WDC": 2.7229225147210893e-09, + "WEC": 3.7491421338138075e-09, + "WELL": 2.6402082245640214e-09, + "WFC": 3.870996093002e-09, + "WM": 1.5375823802674214e-08, + "WMB": 5.714915114449894e-09, + "WMT": 0.010600553020839378, + "WRB": 3.236005772393542e-09, + "WST": 1.8408451000162272e-09, + "WTW": 3.042404941343722e-09, + "WY": 1.1424259630983009e-09, + "WYNN": 0.002271142379044986, + "XEL": 2.1977126013060142e-09, + "XOM": 3.148877775321296e-09, + "XYL": 2.6373497887914787e-09, + "YUM": 5.725502762535956e-09, + "ZBH": 1.8708692257575257e-09, + "ZBRA": 1.3316138343949291e-09, + "ZTS": 4.59925988731654e-09 } } \ No newline at end of file From c92b4e0d3874b5fb76dc38ce5acf413d9c92c3ad Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 5 Aug 2024 11:31:51 +0400 Subject: [PATCH 106/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-05 --- .../ftse100_daily_initial_holdings.json | 105 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 +++++++++++++++++ 2 files changed, 207 insertions(+), 1 deletion(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 13d756d64..e71d02a59 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -11937,7 +11937,7 @@ "AV.L": 21245.812951608794, "AZN.L": 12918.543754103168, "BA.L": 10015.76642276908, - "BARC.L": 9874.852307204415, + "BARC.L": 9865.897692384851, "BATS.L": 11682.667349540061, "BDEV.L": 10481.034754638576, "BEZ.L": 9915.34860829361, @@ -12028,5 +12028,108 @@ "WEIR.L": 9888.647532555642, "WPP.L": 10288.767575994667, "WTB.L": 11601.723438235733 + }, + "2024-08-05 07:00:00+00:00": { + "AAF.L": 20476.188630573222, + "AAL.L": 9542.630091006282, + "ABF.L": 9671.006866001475, + "ADM.L": 10603.53883676169, + "AHT.L": 15011.058645121828, + "ANTO.L": 17024.798277532238, + "AUTO.L": 10011.78227026256, + "AV.L": 19022.8807240364, + "AZN.L": 12865.322055860925, + "BA.L": 10234.823282562324, + "BARC.L": 9403.864046130275, + "BATS.L": 8866.940759606136, + "BDEV.L": 10083.57361462165, + "BEZ.L": 10184.146160492071, + "BKG.L": 9914.656482532173, + "BME.L": 10288.444695258544, + "BNZL.L": 9442.413634867306, + "BP.L": 1.3305545246536769e-12, + "BRBY.L": 9731.179035540674, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10068.224126670137, + "CPG.L": 0.0, + "CRDA.L": 11739.310653228147, + "CTEC.L": 39.7465126782079, + "DARK.L": 25995.145570348068, + "DCC.L": 20381.266301160722, + "DGE.L": 9600.823823128356, + "DPLM.L": 8011.565043009634, + "EDV.L": 6495.173023770043, + "ENT.L": 9702.532696556525, + "EXPN.L": 10298.682936663574, + "EZJ.L": 8233.908826195226, + "FCIT.L": 0.0, + "FRAS.L": 10116.478721286987, + "FRES.L": 9880.462712834646, + "GBPOUND": -1720.4552749641314, + "GLEN.L": 8730.45316302455, + "GSK.L": 11215.858539226116, + "HIK.L": 11183.649811828007, + "HL.L": 9741.619654231112, + "HLMA.L": 9828.7443997727, + "HLN.L": 0.0, + "HSBA.L": 9491.182707870375, + "HWDN.L": 9624.620784987806, + "IAG.L": 10337.22682427147, + "ICG.L": 9609.894558927012, + "IHG.L": 14545.083589035934, + "III.L": 8466.15552563946, + "IMB.L": 10718.71153902825, + "IMI.L": 10340.257003801093, + "INF.L": 9819.320226344933, + "ITRK.L": 9798.200355257166, + "JD.L": 10629.67769256548, + "KGF.L": 9651.115377697115, + "LAND.L": 0.0, + "LGEN.L": 9895.204915843686, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 29245.48849965462, + "MKS.L": 0.0, + "MNDI.L": 10404.491722587376, + "MNG.L": 9789.190938632364, + "MRO.L": 36479.798536407, + "NG.L": 10074.501820790018, + "NWG.L": 9601.664026592547, + "NXT.L": 9287.915862516362, + "PHNX.L": 0.0, + "PRU.L": 9581.422068222479, + "PSH.L": 45423.186342305664, + "PSN.L": 9259.515210295276, + "PSON.L": 1054.9660452464943, + "REL.L": 10676.400363948616, + "RIO.L": 10398.321355003498, + "RKT.L": 8726.348568488302, + "RMV.L": 11600.74171640411, + "RR.L": 9702.674189034404, + "RTO.L": 10463.059529110666, + "SBRY.L": 0.0, + "SDR.L": 10023.97232593268, + "SGE.L": 37173.56235458798, + "SGRO.L": 0.0, + "SHEL.L": 2702.9999999999995, + "SMDS.L": 10259.734857563299, + "SMIN.L": 0.0, + "SMT.L": 9917.903110372466, + "SN.L": 4767.192427535593, + "SPX.L": 8508.163629994726, + "SSE.L": 9622.387069144062, + "STAN.L": 9640.02096067739, + "SVT.L": 10509.192773836026, + "TSCO.L": 10092.953761714794, + "TW.L": 9857.893630121684, + "ULVR.L": 9873.736562613152, + "UTG.L": 10652.034633318452, + "UU.L": 10444.556577208827, + "VOD.L": 10111.335314691338, + "VTY.L": 10269.785533075701, + "WEIR.L": 9500.657231846184, + "WPP.L": 9912.765768108258, + "WTB.L": 11114.937839428636 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index bcd7b5498..d989a2366 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11637,5 +11637,108 @@ "WEIR.L": 0.009999998932243095, "WPP.L": 0.009999996011800776, "WTB.L": 0.00999999053084081 + }, + "2024-08-05 07:00:00+00:00": { + "AAF.L": 0.020650484137113356, + "AAL.L": 0.00999999989565805, + "ABF.L": 0.009999942072383233, + "ADM.L": 0.010685534632970731, + "AHT.L": 0.0166433956809027, + "ANTO.L": 0.018374327422798684, + "AUTO.L": 0.01000001676662227, + "AV.L": 0.01011983107370429, + "AZN.L": 0.010000101463330845, + "BA.L": 0.010000018399294033, + "BARC.L": 0.009999997215291496, + "BATS.L": 0.010000010354157741, + "BDEV.L": 0.010000011352736591, + "BEZ.L": 0.010000061329066362, + "BKG.L": 0.01000001104806208, + "BME.L": 0.00999999782688194, + "BNZL.L": 0.009999991015830892, + "BP.L": 0.00011909399302444859, + "BRBY.L": 0.009999984533254019, + "BT-A.L": 4.5306815117548215e-08, + "CCH.L": 0.00046598879759929854, + "CNA.L": 0.009999994308295217, + "CPG.L": 0.0014724240747710316, + "CRDA.L": 0.010000001030177593, + "CTEC.L": 2.2865118256899037e-05, + "DARK.L": 0.026249859339633943, + "DCC.L": 0.020701979190921146, + "DGE.L": 0.009999836281262093, + "DPLM.L": 0.010000014447907974, + "EDV.L": 0.006549536528400358, + "ENT.L": 0.010000031601246873, + "EXPN.L": 0.010000004384468082, + "EZJ.L": 0.00882591283110785, + "FCIT.L": 5.3546692713889285e-08, + "FRAS.L": 0.010000010835200131, + "FRES.L": 0.009999995241271759, + "GBPOUND": 2.4751461963801354e-07, + "GLEN.L": 0.00880482669794932, + "GSK.L": 0.00999999756564293, + "HIK.L": 0.010000019549185349, + "HL.L": 0.010000010764181996, + "HLMA.L": 0.010000007239467501, + "HLN.L": 8.937279543602273e-07, + "HSBA.L": 0.010000001312924377, + "HWDN.L": 0.0100000000201507, + "IAG.L": 0.00999999066226438, + "ICG.L": 0.010000012923415132, + "IHG.L": 0.014773519642180767, + "III.L": 0.010000007967123596, + "IMB.L": 0.010000047672569946, + "IMI.L": 0.009999993359912345, + "INF.L": 0.009999955576580323, + "ITRK.L": 0.01000000247386545, + "JD.L": 0.010720001205689236, + "KGF.L": 0.009999977618483317, + "LAND.L": 3.415475949369642e-08, + "LGEN.L": 0.00999999810955505, + "LLOY.L": 1.2066807333550258e-07, + "LMP.L": 1.5016406944316566e-07, + "LSEG.L": 0.02939368934604509, + "MKS.L": 1.2608348270682637e-07, + "MNDI.L": 0.0100000023327083, + "MNG.L": 0.009999997887299274, + "MRO.L": 0.03682706896307606, + "NG.L": 0.009999988340704723, + "NWG.L": 0.009999985505516671, + "NXT.L": 0.010000023561902738, + "PHNX.L": 6.704401816736142e-08, + "PRU.L": 0.00999999549420644, + "PSH.L": 0.045141214187144785, + "PSN.L": 0.010000001249180426, + "PSON.L": 0.0021580249326055064, + "REL.L": 0.009999997677655744, + "RIO.L": 0.010000008447613033, + "RKT.L": 0.009999985663394278, + "RMV.L": 0.01204173049660036, + "RR.L": 0.009999997263857953, + "RTO.L": 0.01000000581099833, + "SBRY.L": 1.0447384246904289e-07, + "SDR.L": 0.009999995109411823, + "SGE.L": 0.037561995526044015, + "SGRO.L": 1.5406782692423855e-07, + "SHEL.L": 0.00568128455938786, + "SMDS.L": 0.00999999761969217, + "SMIN.L": 4.914484809082932e-07, + "SMT.L": 0.009999977983070259, + "SN.L": 0.00601161718397992, + "SPX.L": 0.009999983122767288, + "SSE.L": 0.010000001309490431, + "STAN.L": 0.009999991036423428, + "SVT.L": 0.010000013015086412, + "TSCO.L": 0.0100000111290212, + "TW.L": 0.009999992660415947, + "ULVR.L": 0.00999997525606833, + "UTG.L": 0.010000909084181258, + "UU.L": 0.009999993685533568, + "VOD.L": 0.010000442810399893, + "VTY.L": 0.010000003430012044, + "WEIR.L": 0.009999999870781467, + "WPP.L": 0.009999990797530474, + "WTB.L": 0.009999984864811436 } } \ No newline at end of file From b40344ba2d89326c989597cc663c67004fbf02de Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 5 Aug 2024 18:00:44 +0400 Subject: [PATCH 107/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-05 --- .../dow30_daily_initial_holdings.json | 45 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index aff4fc651..3730c90e5 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -4985,17 +4985,17 @@ "2024-08-02 13:30:00+00:00": { "AAPL": 212436.66918238808, "AMGN": 20916.40843424317, - "AMZN": 203264.41210641025, + "AMZN": 203368.0861856433, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 77850.18861014191, - "CSCO": 44766.97715726504, + "CSCO": 44720.08181419281, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, "GS": 0.0, - "HD": 107563.24584070263, + "HD": 106468.35709758672, "HON": 0.0, "IBM": 0.0, "INTC": 0.0, @@ -5005,14 +5005,47 @@ "MCD": 1.2699515311202029e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 218971.64688916263, + "MSFT": 218836.36035676408, "NKE": 9.997795756176137e-13, "PG": 0.0, "TRV": 0.0, - "UNH": 107101.0991898085, - "USDOLLAR": -114.39114112755558, + "UNH": 108052.98614437989, + "USDOLLAR": -114.39113998515346, "V": 33944.15942039637, "VZ": 0.0, "WMT": 0.0003856892157239987 + }, + "2024-08-05 13:30:00+00:00": { + "AAPL": 192442.23023929502, + "AMGN": 20250.86603986178, + "AMZN": 194327.5937967025, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 72989.85785602401, + "CSCO": 43706.77988614804, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 105604.36218211711, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.291824559482139e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 206289.44113618942, + "NKE": 9.754817028197064e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 102774.93601568177, + "USDOLLAR": -63.09125665997352, + "V": 32592.15373391664, + "VZ": 0.0, + "WMT": 0.0003773769479615056 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 317624a70..398a2e47a 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -5014,5 +5014,38 @@ "V": 0.03201011437984871, "VZ": 1.465113858646029e-09, "WMT": 1.071585791489165e-08 + }, + "2024-08-05 13:30:00+00:00": { + "AAPL": 0.1982128957489863, + "AMGN": 0.020698783314173685, + "AMZN": 0.20533821192633225, + "AXP": 7.548519238824697e-09, + "BA": 1.251874801684751e-08, + "CAT": 6.4992281616311114e-09, + "CRM": 0.07517626626029955, + "CSCO": 0.04501604490299407, + "CVX": 7.248075079102959e-09, + "DIS": 9.516596124688691e-09, + "DOW": 8.385278190077325e-09, + "GS": 7.407547812794126e-09, + "HD": 0.10751918440776002, + "HON": 4.630356213574897e-09, + "IBM": 3.43957840552439e-09, + "INTC": 6.7507557056632055e-09, + "JNJ": 1.0676768572538117e-08, + "JPM": 1.2391653308866681e-08, + "KO": 8.217378063896764e-09, + "MCD": 2.2829200486080054e-08, + "MMM": 4.719443921784525e-09, + "MRK": 8.84601389245676e-09, + "MSFT": 0.212469100021868, + "NKE": 1.9678254814801118e-08, + "PG": 6.211322311482605e-09, + "TRV": 5.467184105692076e-09, + "UNH": 0.1020737194846689, + "USDOLLAR": -4.911531412832163e-10, + "V": 0.033495579664755276, + "VZ": 4.807225724598708e-09, + "WMT": 3.697018695883996e-08 } } \ No newline at end of file From 9bd813730be6b03c3e8058ceb9f4bb0199683226 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 5 Aug 2024 18:02:45 +0400 Subject: [PATCH 108/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-05 --- .../ndx100_daily_initial_holdings.json | 182 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 ++++++++++ 2 files changed, 247 insertions(+), 39 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index b0b72d375..df098fdf5 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15604,38 +15604,38 @@ "ADBE": 14145.811270322596, "ADI": 0.0, "ADP": 0.0, - "ADSK": 80.91616525359228, + "ADSK": 80.80690425131938, "AEP": 0.0, - "AMAT": -48.24915081830376, - "AMD": -1.6271112817806793e-11, + "AMAT": -48.21578579065517, + "AMD": -1.626319411127273e-11, "AMGN": 31550.802848252177, - "AMZN": 19417.413263219147, + "AMZN": 19427.317025615575, "ANSS": 11.00366477422126, - "ARM": 45319.27961787514, - "ASML": 14.436797347484447, - "AVGO": -32.12631768194593, + "ARM": 45307.433986552365, + "ASML": 14.426819923437185, + "AVGO": -32.17392036426476, "AZN": 0.0, "BIIB": 14937.016918427646, - "BKNG": 9350.618128644863, + "BKNG": 9332.554041733178, "BKR": 0.0, "CCEP": 16977.454200340293, "CDNS": -79.77211251895494, "CDW": 19225.84523874742, - "CEG": 62743.55029599381, + "CEG": 62686.061906024166, "CHTR": 19105.116274465694, - "CMCSA": 30175.12562410818, + "CMCSA": 30130.890369693927, "COST": 0.0, - "CPRT": -0.8198677354328688, - "CRWD": 4427.599725256026, - "CSCO": 51964.843433543974, + "CPRT": -0.8209682242075059, + "CRWD": 4431.476878517123, + "CSCO": 51910.40801450842, "CSGP": 7395.654619638112, - "CSX": -6.812893365195267e-13, + "CSX": -6.816814544648474e-13, "CTAS": 0.0, "CTSH": 26798.661048408205, "DASH": 0.0, "DDOG": 11338.938656666558, - "DLTR": 23639.296877662073, - "DXCM": 13844.540877657273, + "DLTR": 23640.46695048157, + "DXCM": 13843.543248935679, "EA": 14707.04098170357, "EXC": 0.0, "FANG": 25593.26231054064, @@ -15643,9 +15643,9 @@ "FTNT": 23715.515990794152, "GEHC": 15615.561282483426, "GFS": 13921.189536522012, - "GILD": 27129.503823172956, - "GOOG": 4654.894180801148, - "GOOGL": -2.166420043070816e-12, + "GILD": 27126.01599563491, + "GOOG": 4654.064070575452, + "GOOGL": -2.164859285201242e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 8105.743500374223, @@ -15654,46 +15654,46 @@ "ISRG": 12050.91727819, "KDP": 2128.9000930786124, "KHC": 0.0, - "KLAC": 28396.386364420174, + "KLAC": 28324.710981356515, "LIN": 0.0, - "LRCX": -8.456460765999484, + "LRCX": -8.456354958335515, "LULU": 20497.115618361877, "MAR": 0.0, - "MCHP": 13136.894269300365, + "MCHP": 13126.155035111155, "MDB": 23605.398788958453, "MDLZ": 0.0, - "MELI": 23636.624753315293, - "META": -132.75610586144805, - "MNST": 16888.778714091877, + "MELI": 23751.80890339221, + "META": -132.7751145127566, + "MNST": 16872.592666933993, "MRNA": 15392.173902404367, "MRVL": 0.0, - "MSFT": 40.39746258984731, + "MSFT": 40.37250395840291, "MU": 7.157705788241351, - "NFLX": 17986.951449772612, - "NVDA": 7805.651404327195, - "NXPI": 20227.416971725834, - "ODFL": 8768.634627764959, + "NFLX": 17986.371594158052, + "NVDA": 7797.385048344111, + "NXPI": 20167.634668867333, + "ODFL": 8741.013214609506, "ON": 3332.939922895173, "ORLY": 20703.362742335856, - "PANW": -7.230316293109304, + "PANW": -7.224412452125532, "PAYX": 6052.25092986551, "PCAR": 0.0, - "PDD": 23849.76350051971, + "PDD": 23815.68694397049, "PEP": 23063.290603600526, "PYPL": 4354.868115436987, - "QCOM": 475.45310849704924, + "QCOM": 475.5123676467363, "REGN": 14378.665154219269, "ROP": 11940.068021790774, - "ROST": 7673.726527591814, - "SBUX": 21462.91139816717, + "ROST": 7661.9872241214525, + "SBUX": 21457.198817386048, "SNPS": 0.0, - "TEAM": 11760.563028165545, + "TEAM": 11735.196967162095, "TMUS": 11789.79746693514, - "TSLA": 9845.41103402259, - "TTD": 33724.75360963631, + "TSLA": 9847.47320012774, + "TTD": 33665.063173042356, "TTWO": 8639.59786034368, "TXN": 0.0, - "USDOLLAR": -612.6344227381427, + "USDOLLAR": -612.632884815114, "VRSK": 0.0, "VRTX": 9744.354993028737, "WBA": 0.39126331600206876, @@ -15701,5 +15701,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 17366.670273957778 + }, + "2024-08-05 13:30:00+00:00": { + "AAPL": 5347.928717107464, + "ABNB": 0.0, + "ADBE": 14274.983210609622, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 78.99730927752226, + "AEP": 0.0, + "AMAT": -44.74852109642759, + "AMD": -1.488782724681079e-11, + "AMGN": 28391.419930549997, + "AMZN": 18268.23822765624, + "ANSS": 904.677480851674, + "ARM": 37354.432040990694, + "ASML": 13.555819329352238, + "AVGO": -29.213366971103152, + "AZN": 0.0, + "BIIB": 13719.805818119337, + "BKNG": 9379.165646989532, + "BKR": 0.0, + "CCEP": 18474.130688389705, + "CDNS": -78.61321317573639, + "CDW": 20853.66112725484, + "CEG": 55727.979272468416, + "CHTR": 18480.329431963128, + "CMCSA": 26327.437574423602, + "COST": 0.0, + "CPRT": 1996.7748007199627, + "CRWD": 3897.248073785273, + "CSCO": 47002.69766942731, + "CSGP": 7626.804628793386, + "CSX": -6.707023763624169e-13, + "CTAS": 0.0, + "CTSH": 25111.12118520126, + "DASH": 0.0, + "DDOG": 10311.221673623892, + "DLTR": 21560.83944351735, + "DXCM": 14318.284227894017, + "EA": 13979.277858180865, + "EXC": 0.0, + "FANG": 24057.41185564903, + "FAST": 15655.333735774162, + "FTNT": 23155.48719125416, + "GEHC": 15213.118138969794, + "GFS": 11273.852633041322, + "GILD": 24732.930274652554, + "GOOG": 7490.140632644548, + "GOOGL": -2.0225643710099246e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7830.3329042589185, + "INTC": 1.2844245393285905, + "INTU": 4771.331757464432, + "ISRG": 13691.178682313346, + "KDP": 2059.1000900268546, + "KHC": 0.0, + "KLAC": 27025.268127628286, + "LIN": 0.0, + "LRCX": -7.829316160754694, + "LULU": 18304.922551435062, + "MAR": 0.0, + "MCHP": 13720.623049578804, + "MDB": 21967.838739100713, + "MDLZ": 0.0, + "MELI": 23130.9318392243, + "META": -122.55088797922106, + "MNST": 16106.228741557694, + "MRNA": 13568.817414251991, + "MRVL": 0.0, + "MSFT": 38.05775815897272, + "MU": 6.4261699917959945, + "NFLX": 18387.413204856486, + "NVDA": 9495.829832712438, + "NXPI": 20701.116983932865, + "ODFL": 8388.73382687429, + "ON": 4276.096200830899, + "ORLY": 19564.132761867106, + "PANW": 1136.053139063594, + "PAYX": 6052.25092986551, + "PCAR": 0.0, + "PDD": 22428.453193324054, + "PEP": 22971.46474453549, + "PYPL": 1393.0590422406399, + "QCOM": 2599.8155736505764, + "REGN": 14148.818866127027, + "ROP": 11940.068021790774, + "ROST": 7638.3203790502785, + "SBUX": 18598.929870373624, + "SNPS": 0.0, + "TEAM": 8457.927515822144, + "TMUS": 17208.308336973176, + "TSLA": 10517.685290505713, + "TTD": 30845.437271731396, + "TTWO": 8353.18949044703, + "TXN": 0.0, + "USDOLLAR": -285.2946325690202, + "VRSK": 0.0, + "VRTX": 9308.579045347033, + "WBA": 0.3641198466280301, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 17835.760055805684 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 6b8a59b9e..993fc051f 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15494,5 +15494,109 @@ "WDAY": 1.1669666367226837e-08, "XEL": 3.849256288145351e-08, "ZS": 0.01715670189819084 + }, + "2024-08-05 13:30:00+00:00": { + "AAPL": 0.003534191590643351, + "ABNB": 4.92092966891458e-09, + "ADBE": 0.015297681336581211, + "ADI": 2.703598547489085e-07, + "ADP": 8.963652242405107e-08, + "ADSK": 0.0005157430720880363, + "AEP": 1.1166598641826218e-08, + "AMAT": 2.0564615408856377e-07, + "AMD": 5.394683273621901e-09, + "AMGN": 0.02591504718121429, + "AMZN": 0.019205454101783242, + "ANSS": 0.0023693360580750765, + "ARM": 0.03522981531787588, + "ASML": 2.7926284956094613e-08, + "AVGO": 2.3157771498844243e-07, + "AZN": 2.497220756830119e-08, + "BIIB": 0.01277490908118021, + "BKNG": 0.009529938899090309, + "BKR": 2.751327370282649e-08, + "CCEP": 0.018692510914226627, + "CDNS": 9.48029178372275e-08, + "CDW": 0.021530170319407668, + "CEG": 0.05483970683440269, + "CHTR": 0.017799023159026303, + "CMCSA": 0.023097005250513954, + "COST": 3.278792350459671e-08, + "CPRT": 0.003716170296772738, + "CRWD": 0.0016578726741131528, + "CSCO": 0.04308636882801664, + "CSGP": 0.009095040103357224, + "CSX": 2.8308716030482682e-08, + "CTAS": 1.8635517732169305e-08, + "CTSH": 0.02436245897298339, + "DASH": 4.651184357436792e-09, + "DDOG": 0.006997265915481422, + "DLTR": 0.021024131296253173, + "DXCM": 0.01495167533527651, + "EA": 0.013819459306879976, + "EXC": 2.447349043393444e-08, + "FANG": 0.023422463177859544, + "FAST": 0.015424187500991436, + "FTNT": 0.023415474772599077, + "GEHC": 0.015346164251056282, + "GFS": 0.005500994480338394, + "GILD": 0.022610090470910567, + "GOOG": 0.007585348537977075, + "GOOGL": 2.6383412344627813e-07, + "HON": 1.2153663700807091e-08, + "IDXX": 1.6813010313564218e-07, + "ILMN": 0.007786174573390244, + "INTC": 1.31899623999977e-08, + "INTU": 0.007046315997994594, + "ISRG": 0.01473990868138798, + "KDP": 2.450624872976908e-06, + "KHC": 1.2259178873062307e-08, + "KLAC": 0.03689863381368208, + "LIN": 9.50949368432894e-08, + "LRCX": 6.520789701970366e-08, + "LULU": 0.018169915647410384, + "MAR": 3.7715382881814066e-08, + "MCHP": 0.015060406671669087, + "MDB": 0.02212464732438031, + "MDLZ": 2.463395154715828e-07, + "MELI": 0.024912017483839033, + "META": 8.279948406767e-08, + "MNST": 0.015685771848227392, + "MRNA": 0.014017744381152856, + "MRVL": 2.2769637871896433e-08, + "MSFT": 0.0015168667383549791, + "MU": 2.4653158216239537e-08, + "NFLX": 0.01944292208848374, + "NVDA": 0.013023125821410183, + "NXPI": 0.023665115576867568, + "ODFL": 0.008148350153027896, + "ON": 0.005697576177732972, + "ORLY": 0.01810142754961668, + "PANW": 0.002784189722626617, + "PAYX": 0.006221776842422354, + "PCAR": 1.3541274586031138e-08, + "PDD": 0.0208932049458322, + "PEP": 0.021736688400711874, + "PYPL": 5.8416377596726826e-08, + "QCOM": 0.0058453199967172026, + "REGN": 0.012984570280541561, + "ROP": 0.011972650503374732, + "ROST": 0.007183635200572561, + "SBUX": 0.017466217644869688, + "SNPS": 8.48961503321609e-09, + "TEAM": 0.009144367653354905, + "TMUS": 0.021177100181826305, + "TSLA": 0.012821244865000586, + "TTD": 0.031193163495292334, + "TTWO": 0.008000149533466812, + "TXN": 2.537361891644298e-08, + "USDOLLAR": 2.2672278886129524e-07, + "VRSK": 0.0026488960997112375, + "VRTX": 0.009419287114693494, + "WBA": 3.295247491969161e-08, + "WBD": 1.1790981592078073e-08, + "WDAY": 2.2484702678638956e-08, + "XEL": 5.744624497799808e-08, + "ZS": 0.020119863189412078 } } \ No newline at end of file From 4c91c8297d078a729ce7f3976c647b7b902e97f3 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Mon, 5 Aug 2024 18:09:59 +0400 Subject: [PATCH 109/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-05 --- .../sp500_daily_initial_holdings.json | 641 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1078 insertions(+), 68 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 7f3b5c794..f4b174609 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -74867,14 +74867,14 @@ "AAPL": 45268.618609762474, "ABBV": 5968.388459443269, "ABNB": 0.0, - "ABT": 3547.6958580232167, + "ABT": 3548.662054515119, "ACGL": 0.0, "ACN": 2.5684732513709845e-13, "ADBE": 10545.278573378095, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, - "ADSK": -15.166568329867552, + "ADSK": -15.14608893058351, "AEE": 0.0, "AEP": 0.0, "AES": 0.0, @@ -74884,17 +74884,17 @@ "AJG": 0.0, "AKAM": -0.07881554255475419, "ALB": 0.0, - "ALGN": 859.0949286866465, + "ALGN": 868.4297331320959, "ALL": 6.912935414392815e-14, "ALLE": 0.0, - "AMAT": 1816.9948084713567, + "AMAT": 1815.7383286993022, "AMCR": 0.0, - "AMD": 26004.51493880892, + "AMD": 25991.859251108464, "AME": 0.0, "AMGN": 5934.703819948968, "AMP": 8.998063667714531, "AMT": 691.8196018741888, - "AMZN": 32848.76974149535, + "AMZN": 32865.52410553575, "ANET": 3419.5381627886372, "ANSS": 301.9145478976477, "AON": 18.983031731552778, @@ -74906,7 +74906,7 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 18977.446443436354, + "AVGO": 19005.56598590036, "AVY": 0.0, "AWK": 0.0, "AXON": 4881.924719764998, @@ -74925,9 +74925,9 @@ "BIIB": 2100.5869823155476, "BIO": 0.0, "BK": 0.0, - "BKNG": 3114.2230389058113, + "BKNG": 3108.206795395146, "BKR": 0.0, - "BLDR": 484.0104830648311, + "BLDR": 484.0266549617429, "BLK": 9.783672328389928e-13, "BMY": 98.95697530161578, "BR": 0.0, @@ -74942,7 +74942,7 @@ "CAH": 0.0, "CARR": 20035.871107244726, "CAT": 0.0, - "CB": 306.6241448178483, + "CB": 304.68484024086507, "CBOE": 0.0, "CBRE": 5336.211513060334, "CCI": 329.39743039307126, @@ -74950,36 +74950,36 @@ "CDNS": 0.0, "CDW": 372.01027541930387, "CE": -2.5371125314725098e-14, - "CEG": 34396.12383495822, + "CEG": 34364.60859919072, "CF": 9902.563942628942, "CFG": 0.0, "CHD": 2357.3034626866383, "CHRW": 0.0, "CHTR": 5241.071998882274, "CI": 3.8674451730991774e-13, - "CINF": 0.016010503606635307, + "CINF": 0.01602415922540011, "CL": 10.069844147206796, "CLX": 15.95488042134382, - "CMCSA": 6563.8540887451645, + "CMCSA": 6554.231800534317, "CME": 4993.6905460277985, "CMG": 5344.0409504428235, "CMI": 0.0, "CMS": 0.0, "CNC": 1015.705309098494, "CNP": 0.0, - "COF": 8951.9366518579, + "COF": 8802.624028205753, "COO": 0.0, "COP": 0.0, "COR": 3374.3259171712975, "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 722.1254622295295, + "CPRT": 723.0947538978296, "CPT": 0.0, "CRL": 0.0, "CRM": 7463.879722885502, - "CRWD": 1082.5525813615259, - "CSCO": 7001.018050637037, + "CRWD": 1083.500549229351, + "CSCO": 6993.684181696409, "CSGP": -7.81262596339622e-14, "CSX": 0.0, "CTAS": 0.0, @@ -74995,25 +74995,25 @@ "DAY": 0.0, "DD": 0.0, "DE": 1.0065548983124255e-13, - "DECK": 882.7430067639363, + "DECK": 860.046330870292, "DFS": 3559.9024804825785, "DG": 0.0, "DGX": 0.0, "DHI": -7.890643862357065, - "DHR": 1682.7224372192518, + "DHR": 1674.8710260215232, "DIS": -4.084161658350734, "DLR": 3.0708613432262555e-14, - "DLTR": 1012.9844316014371, + "DLTR": 1013.0345712293677, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, "DPZ": 10.272963289238481, - "DRI": 2.4406170345243625, + "DRI": 2.4347399734816575, "DTE": 0.0, "DUK": 1.3084703987453903, "DVA": 3411.597926223389, "DVN": 0.0, - "DXCM": 5207.995476064028, + "DXCM": 5207.620191255758, "EA": 4019.3287335974337, "EBAY": 0.0, "ECL": 0.0, @@ -75025,9 +75025,9 @@ "ELV": -2.2335191950696672e-13, "EMN": 0.0, "EMR": 0.0, - "ENPH": 3539.78368435154, + "ENPH": 3541.806142923968, "EOG": 0.0, - "EPAM": 5968.77003632806, + "EPAM": 5912.398045307206, "EQIX": 820.6033283873459, "EQR": 0.0, "EQT": 0.0, @@ -75041,7 +75041,7 @@ "EXC": 0.0, "EXPD": -1.1458433526059557, "EXPE": 3852.5826896252893, - "EXR": 5.680828066246088e-14, + "EXR": 5.681894110952281e-14, "F": 0.0, "FANG": 13540.420976852476, "FAST": 3195.5349630716037, @@ -75051,7 +75051,7 @@ "FE": 0.0, "FFIV": 3052.142147882475, "FI": 2.5634462753412157e-13, - "FICO": 1512.4577759924061, + "FICO": 1481.9490551780652, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, @@ -75067,14 +75067,14 @@ "GEHC": 1775.8296615989168, "GEN": 0.0, "GEV": 22105.386297663368, - "GILD": 8321.921987617017, + "GILD": 8320.852103373389, "GIS": 8034.964061459919, - "GL": 0.31582642614432443, + "GL": 0.3106957517575669, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 22914.889212040103, - "GOOGL": 2139.5935865259744, + "GOOG": 22910.80278534236, + "GOOGL": 2138.0521552885093, "GPC": 0.0, "GPN": -1.0034017867363398e-13, "GRMN": 2209.276635030167, @@ -75084,7 +75084,7 @@ "HAS": 1.1588529217505816, "HBAN": 0.0, "HCA": 6319.647454743879, - "HD": 8809.119459238551, + "HD": 8719.451230492763, "HES": 0.0, "HIG": 5847.398197364777, "HII": 0.7317939831410009, @@ -75098,11 +75098,11 @@ "HST": 0.0, "HSY": 11114.04181590697, "HUBB": 1.30043024117961e-13, - "HUM": 1049.3947450232706, + "HUM": 1049.4092545823137, "HWM": 2481.5173773105234, "IBM": 0.0, "ICE": 742.2136661294384, - "IDXX": -9.888658411013482, + "IDXX": -9.874351012118208, "IEX": 0.0, "IFF": 0.0, "INCY": 4022.061369102358, @@ -75120,7 +75120,7 @@ "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, - "JBL": 2460.529752957908, + "JBL": 2397.3234151852203, "JCI": 0.0, "JKHY": 840.9167563877922, "JNJ": 13897.512000466591, @@ -75133,11 +75133,11 @@ "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": 695.7374718914995, + "KLAC": 693.9813593647292, "KMB": 4638.785923480709, "KMI": 0.0, - "KMX": 1.1537990039121335, - "KO": 205.91835198704536, + "KMX": 1.1222675468376717, + "KO": 207.64544732801846, "KR": 0.0, "KVUE": 0.0, "L": -0.2159022994442197, @@ -75151,11 +75151,11 @@ "LMT": 8303.183394756692, "LNT": 0.0, "LOW": -2.8225721075341996e-13, - "LRCX": 755.5220835667368, + "LRCX": 755.51263043629, "LULU": 1449.0357135232655, "LUV": 25.987744108771683, "LVS": 1676.3941105886227, - "LW": 21.1513283115827, + "LW": 21.280495568999523, "LYB": 3397.8326477429373, "LYV": 2743.79194333198, "MA": 30207.384795078848, @@ -75163,13 +75163,13 @@ "MAR": -5.316782065550215e-13, "MAS": 0.0, "MCD": 10893.19293560472, - "MCHP": 2074.3732246487384, + "MCHP": 2072.6774524670755, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.3340497556749615, "MET": -0.03586357522720568, - "META": 20531.42250095665, + "META": 20534.362287783453, "MGM": 3409.205865425004, "MHK": 0.0, "MKC": 0.0, @@ -75177,18 +75177,18 @@ "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5346.684609866625, + "MNST": 5341.560397471005, "MO": -22.51037817239406, "MOH": 2089.570637817091, "MOS": 0.0, "MPC": 14466.652335047032, - "MPWR": -8.775815454364817e-13, + "MPWR": -8.848981381999701e-13, "MRK": 5226.897009944283, "MRNA": 6070.285918840594, "MRO": 0.0, "MS": 5883.893717279139, "MSCI": 3771.1516891059723, - "MSFT": 36681.254561828544, + "MSFT": 36658.59190296746, "MSI": 0.0, "MTB": -6.165946269177192, "MTCH": 0.0, @@ -75199,31 +75199,31 @@ "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16751.476199546574, + "NFLX": 16750.936172652433, "NI": 0.0, "NKE": -3.0164613371499115e-14, - "NOC": -4.427107978616453e-13, + "NOC": -4.450618471433551e-13, "NOW": 5362.114086565965, "NRG": 0.0, - "NSC": -2.936416581534542e-14, - "NTAP": 5442.303329653376, + "NSC": -2.952589464096352e-14, + "NTAP": 5442.5295812111435, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 124144.94208405534, + "NVDA": 124013.46986839923, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 7340.507224263589, + "NXPI": 7318.812292744188, "O": 0.0, - "ODFL": 2191.002283705159, + "ODFL": 2184.100573020221, "OKE": 0.0, "OMC": 0.0, "ON": -2.561301406327463, - "ORCL": 7159.058739962672, + "ORCL": 6912.284906275601, "ORLY": -0.8089378489995146, "OTIS": 1584.795769141966, "OXY": 0.0, - "PANW": 5528.942038137815, + "PANW": 5524.427436939419, "PARA": 2037.336857071038, "PAYC": 0.0, "PAYX": 252.18437772032573, @@ -75233,7 +75233,7 @@ "PEP": 10391.089780360842, "PFE": 0.0, "PFG": 159.30108579519123, - "PG": 1.0597954480908662, + "PG": 1.0709888937232601, "PGR": 8266.756462028117, "PH": 0.0, "PHM": -12.176479029188455, @@ -75245,7 +75245,7 @@ "PNW": 0.0, "PODD": -62.83970992878467, "POOL": 1396.6455046881335, - "PPG": -0.4017421127131447, + "PPG": -0.4007846866135725, "PPL": 0.0, "PRU": 134.4727042657008, "PSA": 0.0, @@ -75253,7 +75253,7 @@ "PTC": 2.5819967312289232e-14, "PWR": -4.821291787581602, "PYPL": 0.0, - "QCOM": 3971.1576482471223, + "QCOM": 3971.6526022632024, "QRVO": 0.0, "RCL": 1554.2117044838585, "REG": 0.0, @@ -75265,17 +75265,17 @@ "ROK": 1.1411713557327818, "ROL": 0.0, "ROP": 5418.460612324658, - "ROST": 1149.7422156650275, + "ROST": 1147.9833345355207, "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, "SBAC": 6516.609869579562, - "SBUX": 8505.618092196835, + "SBUX": 8503.354232017587, "SCHW": 1.665745707543505, "SHW": 1.4953826925533038, "SJM": 1.0343424731904989, "SLB": 0.0, - "SMCI": 9187.656102213878, + "SMCI": 9196.779891789065, "SNA": 0.0, "SNPS": 0.0, "SO": 11.394263562445488, @@ -75285,17 +75285,17 @@ "SRE": 0.0, "STE": 0.537004805069287, "STLD": -2.641714234504409e-14, - "STT": 335.93302311317694, + "STT": 331.8358024133811, "STX": -12.349344896775449, - "STZ": -2.061537500961042, + "STZ": -2.075988522229902, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, - "SYK": -6.84326251404057, + "SYK": -6.839770463525792, "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4815.477551073326, + "TDG": 4746.0957758925915, "TDY": -16.005492484194306, "TECH": 0.0, "TEL": 0.0, @@ -75312,24 +75312,24 @@ "TROW": 0.0, "TRV": 0.0, "TSCO": -2.671574243455307e-12, - "TSLA": 96221.42994847869, + "TSLA": 96241.58396447083, "TSN": 5113.171151641443, "TT": 0.0, "TTWO": 718.9591141973751, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3592.973138079697, + "UAL": 3592.1080103472113, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, - "ULTA": 3119.752106560758, - "UNH": 18333.60708828002, + "ULTA": 3121.106817247136, + "UNH": 18496.55146092967, "UNP": 0.0, "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 1522.7554503097383, + "USDOLLAR": 1522.7555970864057, "V": 1567.07760992654, "VICI": 0.0, "VLO": 0.0, @@ -75365,5 +75365,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-08-05 13:30:00+00:00": { + "A": 0.0, + "AAL": 532.8132213867577, + "AAPL": 41135.26321418229, + "ABBV": 5858.071125442162, + "ABNB": 0.0, + "ABT": 3586.0230446520013, + "ACGL": 0.0, + "ACN": 2.4627278878909173e-13, + "ADBE": 9892.225886617269, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -14.806906447905732, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3514.7060905303565, + "AIG": 0.0, + "AIZ": 1.479042352204027, + "AJG": 0.0, + "AKAM": -0.07627364019752461, + "ALB": 0.0, + "ALGN": 827.6094320188782, + "ALL": 6.924684234190714e-14, + "ALLE": 0.0, + "AMAT": 1685.1660420961236, + "AMCR": 0.0, + "AMD": 24527.00602657954, + "AME": 0.0, + "AMGN": 5508.0377244537885, + "AMP": 8.64888213289804, + "AMT": 705.7763085282891, + "AMZN": 30691.42740907173, + "ANET": 3205.817027614348, + "ANSS": 292.1408992720517, + "AON": 19.23059758046199, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 22.079175547810948, + "APTV": 2.314708535163366e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 17256.727416292622, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 4917.663612340797, + "AXP": 0.0, + "AZO": 1.8675821626520534e-12, + "BA": -9.673352095829783e-13, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 471.5521896826871, + "BDX": 0.0, + "BEN": 171.2082942066445, + "BF-B": 0.0, + "BG": 798.4663755473256, + "BIIB": 2015.4067676812663, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3123.7307888865535, + "BKR": 0.0, + "BLDR": 454.7919206833173, + "BLK": 9.436838311562352e-13, + "BMY": 96.45888001156383, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.33308165128177614, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1253.4039128552533, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 19092.129774034463, + "CAT": 0.0, + "CB": 34.46630395508647, + "CBOE": 0.0, + "CBRE": 5223.552370231067, + "CCI": 332.4460713490663, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 363.0227461739312, + "CE": -2.4573598769052755e-14, + "CEG": 30807.40826067334, + "CF": 9527.887067495285, + "CFG": 0.0, + "CHD": 2395.967623802522, + "CHRW": 0.0, + "CHTR": 4704.675354210356, + "CI": 3.9189693624250273e-13, + "CINF": 0.016031607400318018, + "CL": 10.167580658914908, + "CLX": 16.170608176236225, + "CMCSA": 6443.578239005278, + "CME": 5042.060421144372, + "CMG": 5368.549996250694, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 1005.287779009194, + "CNP": 0.0, + "COF": 8340.422514857173, + "COO": 0.0, + "COP": 0.0, + "COR": 3219.344435935542, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 709.2476696964766, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 6997.895955731836, + "CRWD": 1001.9798046134445, + "CSCO": 6827.9360578542255, + "CSGP": -7.81262596339622e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 9861.520433564669, + "CTVA": 102.24975433020845, + "CVS": 0.0, + "CVX": -5.243667994356332e-13, + "CZR": 8046.894150981764, + "D": 0.0, + "DAL": 548.1820207437543, + "DAY": 0.0, + "DD": 0.0, + "DE": 9.77191353752705e-14, + "DECK": 803.2755678351765, + "DFS": 3312.6613412544034, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.583562058108469, + "DHR": 1613.4381139914396, + "DIS": -3.8506162098518124, + "DLR": 2.98526180212766e-14, + "DLTR": 991.7960821564287, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.174744004947856, + "DRI": 2.381007832206454, + "DTE": 0.0, + "DUK": 1.3057241800773103, + "DVA": 3424.371556031379, + "DVN": 0.0, + "DXCM": 5178.376580235523, + "EA": 3834.1035922823685, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.342719349968464e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.223396188258302e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3367.8677618521633, + "EOG": 0.0, + "EPAM": 5803.541772172849, + "EQIX": 797.5557849637756, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.1124168029446602, + "EXPE": 3703.692548014513, + "EXR": 5.782816986235193e-14, + "F": 0.0, + "FANG": 13127.95875295416, + "FAST": 3190.320443308341, + "FCX": 0.0, + "FDS": 1221.4052621112032, + "FDX": 5723.457834209772, + "FE": 0.0, + "FFIV": 3040.7387645828344, + "FI": 2.5216483367074504e-13, + "FICO": 1489.1332178625921, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -6.951686158661211e-14, + "FTNT": 5637.7453461799305, + "FTV": 0.0, + "GD": 3.813914532011705e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1758.0284319317282, + "GEN": 0.0, + "GEV": 18436.676378348715, + "GILD": 8223.513039267153, + "GIS": 8220.485877519375, + "GL": 0.3013857337808724, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 21402.848977411184, + "GOOGL": 1997.5192578142703, + "GPC": 0.0, + "GPN": -9.670089758184418e-14, + "GRMN": 2135.0382288934593, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1469245508922028, + "HBAN": 0.0, + "HCA": 6088.378750846845, + "HD": 8619.956480052946, + "HES": 0.0, + "HIG": 5665.264592618471, + "HII": 0.7122956708178738, + "HLT": -1.2479334765679562e-13, + "HOLX": 3072.4315649625382, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10856.296508785534, + "HUBB": 1.2335761401969096e-13, + "HUM": 1040.972919201348, + "HWM": 2287.138489800504, + "IBM": 0.0, + "ICE": 741.4714826640604, + "IDXX": -9.51749689399325, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 4034.577795543513, + "INTC": 139.64112733854623, + "INTU": 1204.941702580484, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.039160101740585505, + "IRM": 0.0, + "ISRG": 6653.775227058078, + "IT": 7.849977012469957e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2264.7222255275974, + "JCI": 0.0, + "JKHY": 844.2137039392887, + "JNJ": 13896.38436246011, + "JNPR": 0.0, + "JPM": 2155.932932890527, + "K": 612.8726707068356, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 679.2006215406522, + "KMB": 4639.448181122264, + "KMI": 0.0, + "KMX": 1.0576491498478828, + "KO": 209.03924154029343, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2140933027810246, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6915026962938198, + "LKQ": 4440.733975369279, + "LLY": 1.307509885126842, + "LMT": 7780.757765915363, + "LNT": 0.0, + "LOW": -2.79959062987661e-13, + "LRCX": 699.4913619725144, + "LULU": 1374.5311493634752, + "LUV": 23.905908889860527, + "LVS": 1616.4127709587635, + "LW": 20.22722240837798, + "LYB": 3116.187662650271, + "LYV": 2659.422817608508, + "MA": 28954.760430456892, + "MAA": 0.0, + "MAR": -5.167254047120634e-13, + "MAS": 0.0, + "MCD": 10532.731982860076, + "MCHP": 1964.4131465197424, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3304281790287187, + "MET": -0.03315925319630593, + "META": 18953.13245776274, + "MGM": 3154.35563718463, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5899.628180783203, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5346.684609866624, + "MO": -22.331689943462663, + "MOH": 2110.868098338995, + "MOS": 0.0, + "MPC": 13291.616235316491, + "MPWR": -8.775815454364817e-13, + "MRK": 5228.712230342498, + "MRNA": 5351.200019393404, + "MRO": 0.0, + "MS": 5506.492544283049, + "MSCI": 3679.5109541794195, + "MSFT": 34556.782173557345, + "MSI": 0.0, + "MTB": -5.955524933307385, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3060.298873366642, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16552.940580471353, + "NI": 0.0, + "NKE": -2.9431515840229816e-14, + "NOC": -4.464078545547976e-13, + "NOW": 5132.81087102859, + "NRG": 0.0, + "NSC": -2.940508986947888e-14, + "NTAP": 5390.010549764334, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 117210.35885996369, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7103.657218160072, + "O": 0.0, + "ODFL": 1713.4071698863913, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.464008828638109, + "ORCL": 6914.001615090745, + "ORLY": -0.8089378489995146, + "OTIS": 1571.7597739997723, + "OXY": 0.0, + "PANW": 5159.286469969016, + "PARA": 1967.8821914890702, + "PAYC": 0.0, + "PAYX": 125.76437955138042, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 9892.040076446217, + "PFE": 0.0, + "PFG": 150.62536473059055, + "PG": 1.0878750020875934, + "PGR": 8282.792036149018, + "PH": 0.0, + "PHM": -11.4813139170172, + "PKG": -5.13546382956158e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -60.26381734435435, + "POOL": 1328.0757109599047, + "PPG": -0.39401876350463777, + "PPL": 0.0, + "PRU": 14.767055682570847, + "PSA": 0.0, + "PSX": 439.54464801319244, + "PTC": 2.499356227107002e-14, + "PWR": -4.477136401547542, + "PYPL": 0.0, + "QCOM": 3945.540095945063, + "QRVO": 0.0, + "RCL": 1437.564549796751, + "REG": 0.0, + "REGN": 1101.069926230281, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 399.21249475282343, + "ROK": 1.1157288521913964, + "ROL": 0.0, + "ROP": 5418.460612324658, + "ROST": 1103.0922183224254, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 6430.997879246119, + "SBUX": 8366.367802087112, + "SCHW": 1.636009658489552, + "SHW": 1.4638800557944054, + "SJM": 1.053012254909325, + "SLB": 0.0, + "SMCI": 7818.5040641611595, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 11.47290701055138, + "SOLV": -1.5325901765788113e-12, + "SPG": 0.0, + "SPGI": -5.662392849640958, + "SRE": 0.0, + "STE": 0.5300805898307451, + "STLD": -2.5285562625795833e-14, + "STT": 316.7322638982666, + "STX": -12.229084221144848, + "STZ": -2.0506992991096697, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.810193027591449, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4542.925496527521, + "TDY": -15.573787381194773, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 445.2336180502701, + "TMO": 0.0, + "TMUS": 7775.2373735145875, + "TPR": 2347.2249469078365, + "TRGP": 385.7729446079908, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.6396995396781195e-12, + "TSLA": 84005.082261587, + "TSN": 5252.407756939861, + "TT": 0.0, + "TTWO": 695.1251451575918, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3211.1007417274486, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 2677.7423875299946, + "UNH": 17325.640541649638, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 585.2495862725292, + "V": 1552.9412163026998, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 11688.667132173721, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2999.324382984019, + "VRTX": 1955.8624176001188, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.307730954512052e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.13484583176689, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4776701354067834, + "WMB": 0.0, + "WMT": 11674.067744865817, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2369.534859404824, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index c2f43163d..75102fb6a 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -72339,5 +72339,510 @@ "ZBH": 1.8708692257575257e-09, "ZBRA": 1.3316138343949291e-09, "ZTS": 4.59925988731654e-09 + }, + "2024-08-05 13:30:00+00:00": { + "A": 3.4484997646868248e-09, + "AAL": 0.0005032768113126986, + "AAPL": 0.038615138035152444, + "ABBV": 0.005533353003870507, + "ABNB": 1.6014296993644726e-09, + "ABT": 0.0033872286043945053, + "ACGL": 1.1587868584530861e-08, + "ACN": 1.1609642196095183e-08, + "ADBE": 0.008425939126901084, + "ADI": 1.7200790869867515e-08, + "ADM": 6.602178237231947e-09, + "ADP": 1.1390974983062418e-08, + "ADSK": 1.8124327360950947e-08, + "AEE": 5.381975699245124e-09, + "AEP": 4.699542836642638e-09, + "AES": 2.2814827950952846e-09, + "AFL": 0.00331984904757751, + "AIG": 3.0343577872392836e-09, + "AIZ": 1.2487929536899066e-08, + "AJG": 1.0469711852006549e-08, + "AKAM": 5.693840934289451e-09, + "ALB": 2.1757241974541516e-09, + "ALGN": 0.0006651034486310753, + "ALL": 1.1989338890015777e-08, + "ALLE": 3.4362236672732078e-09, + "AMAT": 0.0015917527124067743, + "AMCR": 1.0754188560010666e-09, + "AMD": 0.024347289025735727, + "AME": 4.01433613482041e-09, + "AMGN": 0.005080001470728249, + "AMP": 2.2075539294060683e-08, + "AMT": 0.000666797139027513, + "AMZN": 0.029351978800148375, + "ANET": 0.0030281826921901953, + "ANSS": 0.00024014911178007477, + "AON": 1.676051222230073e-08, + "AOS": 3.751984801417516e-09, + "APA": 2.0583637003674562e-09, + "APD": 8.665920862764969e-09, + "APH": 2.076620176746006e-05, + "APTV": 6.758803818718018e-09, + "ARE": 3.1263738833458576e-09, + "ATO": 6.220075486556919e-09, + "AVB": 5.3825665269965754e-09, + "AVGO": 0.016584535430682973, + "AVY": 5.183693840004597e-09, + "AWK": 1.517383551916747e-08, + "AXON": 0.004693078326680342, + "AXP": 6.1822534757919135e-09, + "AZO": 3.139426871695946e-05, + "BA": 1.291282125780756e-08, + "BAC": 4.434266425478479e-09, + "BALL": 1.15773278755721e-08, + "BAX": 6.0113808102491986e-09, + "BBWI": 4.69548400438462e-09, + "BBY": 0.00044543133034319, + "BDX": 8.2054337887308e-09, + "BEN": 0.00016171806572166475, + "BF-B": 7.140114170731983e-09, + "BG": 0.0005792711570186212, + "BIIB": 0.001788525070229251, + "BIO": 3.685321373888408e-09, + "BK": 4.197281936270926e-09, + "BKNG": 0.0017715092895625984, + "BKR": 2.4980757185789224e-09, + "BLDR": 0.00043245681519686596, + "BLK": 4.0270184731198145e-07, + "BMY": 9.110599719211122e-05, + "BR": 8.660087200600377e-09, + "BRK-B": 8.925268213052649e-09, + "BRO": 2.5259562141766646e-07, + "BSX": 9.683193062416258e-09, + "BWA": 3.481594090370655e-09, + "BX": 0.0011838453157315373, + "BXP": 3.3968853103067263e-09, + "C": 4.385338306873155e-09, + "CAG": 9.680001541858965e-09, + "CAH": 7.93839282969391e-09, + "CARR": 0.018052310081885133, + "CAT": 2.842384135449183e-09, + "CB": 2.7068055716311006e-05, + "CBOE": 2.9393377279417453e-08, + "CBRE": 0.004933866526536973, + "CCI": 0.0003140246174047142, + "CCL": 2.0899381819505594e-09, + "CDNS": 1.6317242048963763e-08, + "CDW": 0.0003447608973220096, + "CE": 6.115039343538692e-09, + "CEG": 0.029600985317623823, + "CF": 0.008995227079286924, + "CFG": 4.634663635688472e-09, + "CHD": 0.0022631422340221824, + "CHRW": 1.3327730174655024e-08, + "CHTR": 0.003761006329761414, + "CI": 1.6246524322958615e-08, + "CINF": 2.1404747903064336e-08, + "CL": 9.579762837846401e-06, + "CLX": 1.5229939391854912e-05, + "CMCSA": 0.006086371686884094, + "CME": 0.004762579019184614, + "CMG": 0.005070938082583409, + "CMI": 4.30149180328272e-09, + "CMS": 3.985111105547215e-09, + "CNC": 0.0009495497488658935, + "CNP": 3.6303387199401388e-09, + "COF": 0.007343854199248319, + "COO": 8.154172052311557e-09, + "COP": 5.0871285735772795e-09, + "COR": 0.0029988470276084388, + "COST": 1.0123463638039965e-08, + "CPAY": 1.475166601500809e-08, + "CPB": 1.1281778517568473e-08, + "CPRT": 0.000669929654851973, + "CPT": 5.205470769542285e-09, + "CRL": 1.9793653236377606e-09, + "CRM": 0.006605633115479522, + "CRWD": 0.0009463399321385128, + "CSCO": 0.006449427823213615, + "CSGP": 1.272813772886875e-08, + "CSX": 6.981606698455291e-09, + "CTAS": 9.786655247399163e-09, + "CTLT": 4.0948636140647885e-09, + "CTRA": 2.0688431214084035e-09, + "CTSH": 0.00862853831997037, + "CTVA": 9.657822452998365e-05, + "CVS": 5.7590434402411095e-09, + "CVX": 7.245620574730759e-09, + "CZR": 0.007600802489728766, + "D": 8.892027577661261e-09, + "DAL": 0.0005177911643967127, + "DAY": 2.108961927704736e-09, + "DD": 4.523177418902142e-09, + "DE": 7.354497510406931e-09, + "DECK": 0.0008104832113573116, + "DFS": 0.003067711420018554, + "DG": 4.553992626689889e-09, + "DGX": 1.4831997742777216e-08, + "DHI": 3.5430105868550076e-08, + "DHR": 0.0014692310425327136, + "DIS": 8.94885921300965e-09, + "DLR": 9.742651792058341e-09, + "DLTR": 0.0009368085701616792, + "DOC": 2.0045035512866986e-09, + "DOV": 4.85564587794155e-09, + "DOW": 3.93453199233494e-09, + "DPZ": 9.623900558437829e-06, + "DRI": 6.757373025264036e-07, + "DTE": 5.632542857077534e-09, + "DUK": 1.1102469919673335e-07, + "DVA": 0.0032229376615718415, + "DVN": 2.0019608866808952e-09, + "DXCM": 0.004891309597247602, + "EA": 0.0033697668338061614, + "EBAY": 8.988740908878884e-09, + "ECL": 4.728143177894845e-09, + "ED": 9.453512400906036e-09, + "EFX": 4.5609167137900986e-09, + "EG": 1.7739617348716406e-08, + "EIX": 9.182786010495317e-09, + "EL": 4.452749130751183e-09, + "ELV": 1.2816472226498005e-08, + "EMN": 3.571022880335878e-09, + "EMR": 2.631551451325109e-09, + "ENPH": 0.0036292651695151203, + "EOG": 4.821323614958584e-09, + "EPAM": 0.005478007704795145, + "EQIX": 0.00047655755931826766, + "EQR": 4.990172803639402e-09, + "EQT": 1.6885896073216404e-09, + "ES": 4.140351269023878e-09, + "ESS": 7.979703603620056e-09, + "ETN": 2.932437286191899e-09, + "ETR": 8.323829534320707e-09, + "ETSY": 8.646183993655903e-09, + "EVRG": 3.041766066622615e-09, + "EW": 5.897012900264999e-09, + "EXC": 4.891857002006216e-09, + "EXPD": 1.6573130249362603e-08, + "EXPE": 0.0034723629899063896, + "EXR": 1.6699547184264204e-08, + "F": 1.447657487837042e-09, + "FANG": 0.012400147112987883, + "FAST": 0.0030134497706993785, + "FCX": 2.64826689293045e-09, + "FDS": 0.0009586716408931075, + "FDX": 0.005095766215504971, + "FE": 4.931711915969608e-09, + "FFIV": 0.002649367475986049, + "FI": 1.634368341207584e-08, + "FICO": 0.001592696564559538, + "FIS": 5.672541907803336e-09, + "FITB": 7.458761387768827e-09, + "FMC": 5.76487625231715e-09, + "FOX": 2.5736272208230926e-09, + "FOXA": 3.545569753906524e-09, + "FRT": 3.168051766148701e-09, + "FSLR": 4.402045979288067e-09, + "FTNT": 0.005325207546310835, + "FTV": 2.1151064788821582e-09, + "GD": 1.4376216369007397e-08, + "GDDY": 1.9669264333806113e-08, + "GE": 4.225088229148315e-09, + "GEHC": 0.0016605785227350746, + "GEN": 3.264267526459909e-09, + "GEV": 0.010288349900955153, + "GILD": 0.0070584337195705674, + "GIS": 0.007764773381623153, + "GL": 1.7328476588646487e-08, + "GLW": 3.550926985819779e-09, + "GM": 3.0126251328088897e-09, + "GNRC": 3.911836627347097e-09, + "GOOG": 0.02027870785350596, + "GOOGL": 0.001949949304790298, + "GPC": 8.30679060138252e-09, + "GPN": 1.3924217879793547e-08, + "GRMN": 0.0020166618299796465, + "GS": 6.675836081266185e-09, + "GWW": 3.6102606947224927e-09, + "HAL": 2.3236938891979516e-09, + "HAS": 1.0820573888912343e-06, + "HBAN": 1.913393354682421e-09, + "HCA": 0.005424035373550605, + "HD": 0.008142189091014329, + "HES": 4.857708030421018e-09, + "HIG": 0.005168569782472337, + "HII": 2.6665173659055557e-08, + "HLT": 1.7020137731207204e-08, + "HOLX": 0.0026673710618066505, + "HON": 4.236906784712791e-09, + "HPE": 1.636044744112833e-09, + "HPQ": 2.7009996412657945e-09, + "HRL": 8.341421770199009e-09, + "HSIC": 7.366283809672826e-09, + "HST": 2.515463772617198e-09, + "HSY": 0.010064212780134784, + "HUBB": 2.093041370087008e-09, + "HUM": 0.0009832748540566218, + "HWM": 0.002160678326760743, + "IBM": 4.211542925743593e-09, + "ICE": 0.0007003653541794128, + "IDXX": 1.8865930965894344e-08, + "IEX": 4.21995780390385e-09, + "IFF": 5.619748899418656e-09, + "INCY": 0.003719701780468209, + "INTC": 0.00013189819219836272, + "INTU": 0.0014762583462258555, + "INVH": 2.8864347921267893e-09, + "IP": 3.3302428795133083e-09, + "IPG": 5.018929810808743e-09, + "IQV": 4.0450459949490794e-09, + "IR": 1.8385268523839527e-08, + "IRM": 7.2378365315102e-09, + "ISRG": 0.006283850974800729, + "IT": 1.8270679042186028e-08, + "ITW": 5.775537868020104e-09, + "IVZ": 2.393214733144689e-09, + "J": 5.504860213296675e-09, + "JBHT": 6.191996020712276e-09, + "JBL": 0.0021391797068970025, + "JCI": 2.2986579508517973e-09, + "JKHY": 0.0007974412088100246, + "JNJ": 0.01272673365071586, + "JNPR": 4.2253360187014e-09, + "JPM": 0.0018806521803225388, + "K": 0.0005789093966818975, + "KDP": 3.139591117603443e-09, + "KEY": 1.635544918698176e-09, + "KEYS": 4.712111721999526e-09, + "KHC": 1.463039683805294e-09, + "KIM": 2.6047094676420775e-09, + "KKR": 1.0100606384509669e-08, + "KLAC": 0.0013997868064552234, + "KMB": 0.004382223296096547, + "KMI": 1.0036808125249768e-09, + "KMX": 1.4719295211489356e-08, + "KO": 0.00019743748263081727, + "KR": 1.2033572623565217e-08, + "KVUE": -5.681008640639377e-10, + "L": 6.939828236024321e-09, + "LDOS": 7.44044219154834e-08, + "LEN": 1.5746731940070238e-08, + "LH": 4.237382759358715e-09, + "LHX": 6.095074187587236e-09, + "LIN": 3.680006430670791e-08, + "LKQ": 0.004058168337359956, + "LLY": 3.3108750518778804e-08, + "LMT": 0.0069916633707967045, + "LNT": 3.6041773110779707e-09, + "LOW": 1.7478461025854937e-08, + "LRCX": 0.0006602108709673292, + "LULU": 0.0012982908041892086, + "LUV": 2.2580379612616946e-05, + "LVS": 0.001526785945220762, + "LW": 2.7012802067997662e-08, + "LYB": 0.0029373886188576166, + "LYV": 0.002511996664120231, + "MA": 0.025366754620557, + "MAA": 6.418852832125031e-09, + "MAR": 1.2208189799613732e-08, + "MAS": 5.033082515968037e-09, + "MCD": 0.00934576600076921, + "MCHP": 0.0018555643988360105, + "MCK": 2.6743590944802145e-08, + "MCO": 5.321091153704562e-09, + "MDLZ": 6.445596785782072e-09, + "MDT": 1.2529499215854417e-06, + "MET": 4.584150169985131e-09, + "META": 0.019689038650563383, + "MGM": 0.002979339198315598, + "MHK": 5.7952637268029006e-09, + "MKC": 6.9787535546420425e-09, + "MKTX": 0.005388588610101067, + "MLM": 3.561425779579727e-09, + "MMC": 4.94434216094689e-09, + "MMM": 5.071022910623483e-09, + "MNST": 0.0050502812996967095, + "MO": 6.892927106576393e-09, + "MOH": 0.001958215908345215, + "MOS": 1.5437850954975442e-09, + "MPC": 0.011754107177784943, + "MPWR": 0.000262036186285544, + "MRK": 0.004938831890623811, + "MRNA": 0.0050545063653646815, + "MRO": 1.0583504688499797e-09, + "MS": 0.004693942735154968, + "MSCI": 0.0029760911351358692, + "MSFT": 0.033096922913885156, + "MSI": 9.691310825120041e-09, + "MTB": 1.840108464086663e-08, + "MTCH": 8.920404875698386e-09, + "MTD": 8.015815983044313e-09, + "MU": 0.0032223430932635027, + "NCLH": 2.4764806655832844e-09, + "NDAQ": 8.084107477851062e-09, + "NDSN": 4.419286963566945e-09, + "NEE": 5.549629426437163e-09, + "NEM": 3.0134113073118426e-09, + "NFLX": 0.014933791483309616, + "NI": 3.1842186737967243e-09, + "NKE": 1.8864068331879812e-08, + "NOC": 3.295663965274411e-08, + "NOW": 0.0050066315434429565, + "NRG": 2.3989053006346366e-09, + "NSC": 1.0752593291672061e-08, + "NTAP": 0.005091190034415392, + "NTRS": 4.721005355715893e-09, + "NUE": 6.292027250426055e-09, + "NVDA": 0.11878900604883316, + "NVR": 0.0012091418412779212, + "NWS": 1.828426728155023e-09, + "NWSA": 1.835650363645983e-09, + "NXPI": 0.006709806061427794, + "O": 8.498788172542606e-09, + "ODFL": 0.0013308509245512044, + "OKE": 5.349815698509393e-09, + "OMC": 4.645066710136732e-09, + "ON": 1.1289051598170421e-08, + "ORCL": 0.006530720651220529, + "ORLY": 1.0630923367192887e-05, + "OTIS": 0.001484617227581293, + "OXY": 3.2611197442132383e-09, + "PANW": 0.005124273424774499, + "PARA": 0.0018587900862901945, + "PAYC": 1.488646771520038e-08, + "PAYX": 2.0200386742700422e-07, + "PCAR": 7.664555786899688e-09, + "PCG": 3.10660222789005e-09, + "PEG": 6.567851457506686e-09, + "PEP": 0.007325226194246242, + "PFE": 5.182827668980856e-09, + "PFG": 3.764255713922404e-05, + "PG": 2.171373972231064e-08, + "PGR": 0.00782353196631082, + "PH": 3.942039948090985e-09, + "PHM": 1.5904073486061368e-08, + "PKG": 1.755712411018926e-08, + "PLD": 6.01488910969185e-09, + "PM": 1.2558476718348633e-08, + "PNC": 9.643547180071204e-09, + "PNR": 2.5776676751375353e-09, + "PNW": 4.56868040472142e-09, + "PODD": 3.773961001782918e-08, + "POOL": 0.0010593551053755055, + "PPG": 7.91157688769558e-09, + "PPL": 4.7458174748572204e-09, + "PRU": 3.0797564921300626e-08, + "PSA": 5.923337972912016e-09, + "PSX": 8.563512570841083e-08, + "PTC": 1.3414626387424743e-08, + "PWR": 9.61842133124885e-09, + "PYPL": 1.9960851208491187e-09, + "QCOM": 0.004087723253005452, + "QRVO": 1.5954831289055574e-09, + "RCL": 0.001149535130623436, + "REG": 4.095566653400643e-09, + "REGN": 0.0010405403164913236, + "RF": 2.738753458944542e-09, + "RJF": 8.38848640048566e-09, + "RL": 4.827454670044702e-09, + "RMD": 0.0009733039535611723, + "ROK": 9.573492721879025e-09, + "ROL": 4.7020815101409945e-09, + "ROP": 0.004781566651452257, + "ROST": 0.0010418413429814386, + "RSG": 1.1299786492185714e-08, + "RTX": 9.494702014964823e-09, + "RVTY": 3.44238761934735e-09, + "SBAC": 0.005696515364278074, + "SBUX": 0.007840497048505476, + "SCHW": 1.7382591941875555e-07, + "SHW": 7.487764350538434e-08, + "SJM": 2.008946164331159e-08, + "SLB": 2.3134123290786784e-09, + "SMCI": 0.010015154683534633, + "SNA": 4.187347835777119e-09, + "SNPS": 4.35153055124327e-09, + "SO": 1.0837775095198997e-05, + "SOLV": -1.4469829361719162e-09, + "SPG": 5.65168048884602e-09, + "SPGI": 6.89576074359388e-09, + "SRE": 7.887449184616526e-09, + "STE": 4.983846548287057e-07, + "STLD": 1.4406821649407808e-08, + "STT": 0.00029915037462270203, + "STX": 1.4510247037604913e-08, + "STZ": 0.00019422255587319082, + "SWK": 3.6275854526974083e-09, + "SWKS": 4.1496515539580465e-09, + "SYF": 4.852045298801963e-09, + "SYK": 1.3794588630391774e-07, + "SYY": 9.759851918598382e-09, + "T": 5.364748628725669e-09, + "TAP": 5.600739283418052e-09, + "TDG": 0.004768003466275891, + "TDY": 1.1719006601177342e-08, + "TECH": 1.2603289128229423e-08, + "TEL": 6.363590443577624e-09, + "TER": 4.249384084152831e-09, + "TFC": 4.013682034078819e-09, + "TFX": 9.414063004528039e-09, + "TGT": 8.280275881323437e-09, + "TJX": 0.00042052726936614275, + "TMO": 9.323712878152616e-09, + "TMUS": 0.00726853197888324, + "TPR": 0.0022171054520279073, + "TRGP": 0.000363766213798432, + "TRMB": 6.216632486195562e-09, + "TROW": 8.253851043173173e-09, + "TRV": 8.060480354832451e-09, + "TSCO": 2.1772636313430145e-08, + "TSLA": 0.08597498689262127, + "TSN": 0.004935924981780599, + "TT": 3.5724433497229362e-09, + "TTWO": 0.0006565853791056067, + "TXN": 8.092278793338761e-09, + "TXT": 3.049550251137419e-09, + "TYL": 2.442392011583598e-07, + "UAL": 0.0030330913056432667, + "UBER": 3.709392730038757e-09, + "UDR": 3.157414428388322e-09, + "UHS": 4.440169238803981e-09, + "ULTA": 0.0024246100106176476, + "UNH": 0.01520981415487441, + "UNP": 9.071636180412959e-09, + "UPS": 2.762178715521279e-09, + "URI": 5.804197155205955e-09, + "USB": 3.864366655623455e-09, + "USDOLLAR": 3.7951153719650334e-07, + "V": 0.001466626938404629, + "VICI": 3.512103463819732e-09, + "VLO": 9.474666027626583e-09, + "VLTO": 0.01115073476490172, + "VMC": 2.430599274557758e-09, + "VRSK": 1.2696882173408435e-08, + "VRSN": 0.0026263339669642736, + "VRTX": 0.0016754137232067963, + "VST": 4.276936193560193e-09, + "VTR": 7.682368288801083e-09, + "VTRS": 2.2253631547234925e-09, + "VZ": 6.864338776182085e-09, + "WAB": 3.4052864334639664e-09, + "WAT": 8.990350097768828e-09, + "WBA": 1.2454306995098249e-09, + "WBD": 6.639512261048512e-10, + "WDC": 5.448941337397319e-09, + "WEC": 1.1378117049335003e-08, + "WELL": 6.776537350910299e-09, + "WFC": 8.159076086793295e-09, + "WM": 1.1530298350650192e-06, + "WMB": 9.295056863806528e-09, + "WMT": 0.011026898497584696, + "WRB": 7.504627250708074e-09, + "WST": 4.16912207007205e-09, + "WTW": 8.263277863010344e-09, + "WY": 2.4664005479089907e-09, + "WYNN": 0.002180595224681212, + "XEL": 5.310766076110815e-09, + "XOM": 7.287054328654883e-09, + "XYL": 7.807326775421648e-09, + "YUM": 1.2835676418503323e-08, + "ZBH": 3.842229508518531e-09, + "ZBRA": 3.1649747755088968e-09, + "ZTS": 8.75891118729687e-09 } } \ No newline at end of file From 4fb8de1414747ba8b931ed3d64b240f5570b7e7a Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 6 Aug 2024 11:31:45 +0400 Subject: [PATCH 110/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-06 --- .../ftse100_daily_initial_holdings.json | 105 +++++++++++++++++- .../ftse100_daily_target_weights.json | 103 +++++++++++++++++ 2 files changed, 207 insertions(+), 1 deletion(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index e71d02a59..765a618c6 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -12066,7 +12066,7 @@ "FCIT.L": 0.0, "FRAS.L": 10116.478721286987, "FRES.L": 9880.462712834646, - "GBPOUND": -1720.4552749641314, + "GBPOUND": -1720.439347410783, "GLEN.L": 8730.45316302455, "GSK.L": 11215.858539226116, "HIK.L": 11183.649811828007, @@ -12131,5 +12131,108 @@ "WEIR.L": 9500.657231846184, "WPP.L": 9912.765768108258, "WTB.L": 11114.937839428636 + }, + "2024-08-06 07:00:00+00:00": { + "AAF.L": 20683.58988808625, + "AAL.L": 9767.162563735847, + "ABF.L": 9734.920996466582, + "ADM.L": 10455.321633527765, + "AHT.L": 15620.675421622542, + "ANTO.L": 19151.459235151084, + "AUTO.L": 10236.273579451788, + "AV.L": 10177.607929656351, + "AZN.L": 12748.643717406829, + "BA.L": 10332.18188691488, + "BARC.L": 10524.660827318728, + "BATS.L": 8729.69149658847, + "BDEV.L": 10218.710559911333, + "BEZ.L": 10370.936720054524, + "BKG.L": 9954.97635436028, + "BME.L": 10050.332157611332, + "BNZL.L": 9539.134901293613, + "BP.L": 1.3334706681526792e-12, + "BRBY.L": 9802.090262425269, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 9768.054762189628, + "CPG.L": 2342.0, + "CRDA.L": 12020.473643377569, + "CTEC.L": 40.13036783810209, + "DARK.L": 26030.321143256275, + "DCC.L": 20421.745479514586, + "DGE.L": 9610.953411462524, + "DPLM.L": 8063.692343089274, + "EDV.L": 6455.128800442234, + "ENT.L": 9836.156176827133, + "EXPN.L": 10310.74581565235, + "EZJ.L": 8830.339778459806, + "FCIT.L": 0.0, + "FRAS.L": 9905.10714034309, + "FRES.L": 9610.599854598628, + "GBPOUND": -470.91195383732344, + "GLEN.L": 8880.054551170786, + "GSK.L": 9590.840246137926, + "HIK.L": 9161.449600239122, + "HL.L": 9502.03457688808, + "HLMA.L": 10061.424879440796, + "HLN.L": 0.0, + "HSBA.L": 10313.753799642895, + "HWDN.L": 9786.519858517184, + "IAG.L": 10204.982714469204, + "ICG.L": 9903.24923493636, + "IHG.L": 15333.478606583238, + "III.L": 11763.453114047128, + "IMB.L": 10653.014580043171, + "IMI.L": 10588.036394307144, + "INF.L": 9903.74081164816, + "ITRK.L": 9562.393043802853, + "JD.L": 10634.0722054819, + "KGF.L": 10170.377986759178, + "LAND.L": 0.0, + "LGEN.L": 9968.604955180203, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28973.409321965013, + "MKS.L": 0.0, + "MNDI.L": 10288.03711079207, + "MNG.L": 10030.732921359227, + "MRO.L": 36653.55043757746, + "NG.L": 9859.715487554899, + "NWG.L": 10275.511932639994, + "NXT.L": 9336.060566771308, + "PHNX.L": 0.0, + "PRU.L": 10542.233842155598, + "PSH.L": 45815.4418374896, + "PSN.L": 9286.928248746804, + "PSON.L": 2117.2743779242032, + "REL.L": 10533.724555843542, + "RIO.L": 10536.994085425156, + "RKT.L": 8650.886510245316, + "RMV.L": 12025.324156648945, + "RR.L": 9866.570712497823, + "RTO.L": 10012.77753074838, + "SBRY.L": 0.0, + "SDR.L": 10222.288504956072, + "SGE.L": 37064.708584882, + "SGRO.L": 0.0, + "SHEL.L": 5454.000000000001, + "SMDS.L": 9812.568953954478, + "SMIN.L": 0.0, + "SMT.L": 9946.144773070457, + "SN.L": 5920.958400775452, + "SPX.L": 8629.781216129248, + "SSE.L": 9456.79131603462, + "STAN.L": 9991.65837422379, + "SVT.L": 10175.696718319552, + "TSCO.L": 9802.176393897978, + "TW.L": 9972.140741729056, + "ULVR.L": 9626.994272437243, + "UTG.L": 9559.057280827437, + "UU.L": 9320.269239997464, + "VOD.L": 9818.644082622133, + "VTY.L": 10390.41731302569, + "WEIR.L": 9628.285620237455, + "WPP.L": 10117.857821372107, + "WTB.L": 11443.518118623426 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index d989a2366..96ba38ba7 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11740,5 +11740,108 @@ "WEIR.L": 0.009999999870781467, "WPP.L": 0.009999990797530474, "WTB.L": 0.009999984864811436 + }, + "2024-08-06 07:00:00+00:00": { + "AAF.L": 0.02072494854938563, + "AAL.L": 0.00999999942560615, + "ABF.L": 0.009999930038652901, + "ADM.L": 0.01025383361109498, + "AHT.L": 0.016667729857219007, + "ANTO.L": 0.019446871322481196, + "AUTO.L": 0.010000017284314967, + "AV.L": 0.010000048309117012, + "AZN.L": 0.010000061348774143, + "BA.L": 0.010000014748090534, + "BARC.L": 0.0100000028286887, + "BATS.L": 0.010000007245133596, + "BDEV.L": 0.010000009586356684, + "BEZ.L": 0.01000005253670162, + "BKG.L": 0.01000000824700695, + "BME.L": 0.009999997172709777, + "BNZL.L": 0.009999990483873147, + "BP.L": 7.038038087857849e-07, + "BRBY.L": 0.009999983885559139, + "BT-A.L": 3.6945030199612334e-08, + "CCH.L": 3.3299528438259295e-07, + "CNA.L": 0.009999909987448936, + "CPG.L": 0.0022264513106181293, + "CRDA.L": 0.01000000047111929, + "CTEC.L": 2.5324393025969263e-06, + "DARK.L": 0.02611083561374126, + "DCC.L": 0.020570966740234353, + "DGE.L": 0.009999533824642597, + "DPLM.L": 0.010000011815820106, + "EDV.L": 0.006420760425184315, + "ENT.L": 0.010000028711705071, + "EXPN.L": 0.010000002623978812, + "EZJ.L": 0.009004914449171529, + "FCIT.L": 4.465024776149132e-08, + "FRAS.L": 0.010000003931037723, + "FRES.L": 0.009999992249396716, + "GBPOUND": 2.0454293432289362e-07, + "GLEN.L": 0.008897704701600484, + "GSK.L": 0.009999991963589045, + "HIK.L": 0.010000003686176222, + "HL.L": 0.010000006320564268, + "HLMA.L": 0.010000009085942233, + "HLN.L": 4.5755804378560604e-07, + "HSBA.L": 0.010000004723780159, + "HWDN.L": 0.009999999848205217, + "IAG.L": 0.009999990413599037, + "ICG.L": 0.010000012902569853, + "IHG.L": 0.01538868936462083, + "III.L": 0.010000011763823088, + "IMB.L": 0.010000033128393794, + "IMI.L": 0.009999993695088345, + "INF.L": 0.009999950812476144, + "ITRK.L": 0.009999998989840005, + "JD.L": 0.010655232875474336, + "KGF.L": 0.009999993493737529, + "LAND.L": 2.865627783080665e-08, + "LGEN.L": 0.00999999794070527, + "LLOY.L": 1.1017538574101642e-07, + "LMP.L": 1.0306115436639493e-07, + "LSEG.L": 0.028596256753837087, + "MKS.L": 9.403949702124073e-08, + "MNDI.L": 0.010000000446149678, + "MNG.L": 0.010000002579040525, + "MRO.L": 0.036726770855556964, + "NG.L": 0.009999978463545011, + "NWG.L": 0.009999993330644637, + "NXT.L": 0.010000018836249331, + "PHNX.L": 5.664234699116201e-08, + "PRU.L": 0.009999998519092827, + "PSH.L": 0.04507718709639363, + "PSN.L": 0.010000000390131197, + "PSON.L": 0.0023740495198919043, + "REL.L": 0.009999996178182152, + "RIO.L": 0.010000006383308129, + "RKT.L": 0.009999984116234926, + "RMV.L": 0.012081874301974382, + "RR.L": 0.009999997085735804, + "RTO.L": 0.010000002504441665, + "SBRY.L": 7.723278107711808e-08, + "SDR.L": 0.009999995566865084, + "SGE.L": 0.037143744666405194, + "SGRO.L": 1.0633927805719884e-07, + "SHEL.L": 0.005464692051473739, + "SMDS.L": 0.009999991919253446, + "SMIN.L": 2.457371993755507e-07, + "SMT.L": 0.009999960367263458, + "SN.L": 0.006161897750748565, + "SPX.L": 0.009999982614838024, + "SSE.L": 0.009999999231644926, + "STAN.L": 0.009999994767317565, + "SVT.L": 0.010000008249708618, + "TSCO.L": 0.009999994607296447, + "TW.L": 0.009999993524275384, + "ULVR.L": 0.009999967944672755, + "UTG.L": 0.01000001901175157, + "UU.L": 0.009999980144482836, + "VOD.L": 0.009999999860983063, + "VTY.L": 0.010000002706109543, + "WEIR.L": 0.009999999252200529, + "WPP.L": 0.009999994095751339, + "WTB.L": 0.009999985142924894 } } \ No newline at end of file From 2d647b14e5712218086cf86a7ada1d1ec35db7f4 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 6 Aug 2024 18:01:00 +0400 Subject: [PATCH 111/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-06 --- .../dow30_daily_initial_holdings.json | 43 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 3730c90e5..cd61b1632 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -5016,9 +5016,9 @@ "WMT": 0.0003856892157239987 }, "2024-08-05 13:30:00+00:00": { - "AAPL": 192442.23023929502, - "AMGN": 20250.86603986178, - "AMZN": 194327.5937967025, + "AAPL": 192393.90896366723, + "AMGN": 20292.338272818506, + "AMZN": 194396.9367284882, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -5038,14 +5038,47 @@ "MCD": 1.291824559482139e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 206289.44113618942, + "MSFT": 206464.52353941547, "NKE": 9.754817028197064e-13, "PG": 0.0, "TRV": 0.0, "UNH": 102774.93601568177, - "USDOLLAR": -63.09125665997352, + "USDOLLAR": -63.091125714745615, "V": 32592.15373391664, "VZ": 0.0, "WMT": 0.0003773769479615056 + }, + "2024-08-06 13:30:00+00:00": { + "AAPL": 198687.41105259443, + "AMGN": 19509.699010694447, + "AMZN": 209136.10233079785, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 75745.19631731062, + "CSCO": 42007.33485533179, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 103917.04456936063, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2721199307709582e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 212334.77067410242, + "NKE": 9.837183337747952e-13, + "PG": 0.0, + "TRV": 0.0, + "UNH": 96909.83067684302, + "USDOLLAR": -473.48157816139843, + "V": 31975.089089419416, + "VZ": 0.0, + "WMT": 0.0003759361430447269 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 398a2e47a..7e7d6fe40 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -5047,5 +5047,38 @@ "V": 0.033495579664755276, "VZ": 4.807225724598708e-09, "WMT": 3.697018695883996e-08 + }, + "2024-08-06 13:30:00+00:00": { + "AAPL": 0.20074527093575, + "AMGN": 0.019683784250575934, + "AMZN": 0.21130213275134038, + "AXP": 3.37301352663674e-09, + "BA": 5.740287077195611e-09, + "CAT": 2.9214721841406507e-09, + "CRM": 0.07652964165683027, + "CSCO": 0.04244240207916562, + "CVX": 3.27413431944404e-09, + "DIS": 4.27049564836157e-09, + "DOW": 4.056173483154614e-09, + "GS": 3.386147332850182e-09, + "HD": 0.10477766723311689, + "HON": 2.0568688260315862e-09, + "IBM": 1.521859901634619e-09, + "INTC": 2.9532042155758463e-09, + "JNJ": 4.890824051848187e-09, + "JPM": 5.546730857727695e-09, + "KO": 3.7311367303253646e-09, + "MCD": 1.045239275926567e-08, + "MMM": 2.1340944371507027e-09, + "MRK": 4.0190930480222e-09, + "MSFT": 0.21453388955316607, + "NKE": 8.980699043560292e-09, + "PG": 2.812933853759336e-09, + "TRV": 2.4613217513667394e-09, + "UNH": 0.09791152129637454, + "USDOLLAR": -3.3596696616140093e-10, + "V": 0.032073592766238765, + "VZ": 2.1511274939026708e-09, + "WMT": 1.7079397960692193e-08 } } \ No newline at end of file From 8a944427df0227f5b919db5c12b4f4aeca94a431 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 6 Aug 2024 18:02:37 +0400 Subject: [PATCH 112/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-06 --- .../ndx100_daily_initial_holdings.json | 226 +++++++++++++----- .../ndx100_daily_target_weights.json | 104 ++++++++ 2 files changed, 269 insertions(+), 61 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index df098fdf5..dfcd4278c 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15703,107 +15703,211 @@ "ZS": 17366.670273957778 }, "2024-08-05 13:30:00+00:00": { - "AAPL": 5347.928717107464, + "AAPL": 5346.58587911782, "ABNB": 0.0, - "ADBE": 14274.983210609622, + "ADBE": 14321.279056317528, "ADI": 0.0, "ADP": 0.0, - "ADSK": 78.99730927752226, + "ADSK": 77.40281864579285, "AEP": 0.0, - "AMAT": -44.74852109642759, - "AMD": -1.488782724681079e-11, - "AMGN": 28391.419930549997, - "AMZN": 18268.23822765624, - "ANSS": 904.677480851674, - "ARM": 37354.432040990694, - "ASML": 13.555819329352238, - "AVGO": -29.213366971103152, + "AMAT": -44.95383741504124, + "AMD": -1.4881736720529374e-11, + "AMGN": 28449.563398538692, + "AMZN": 18274.756978660742, + "ANSS": 911.3257336848877, + "ARM": 37811.23880742141, + "ASML": 13.565621542183761, + "AVGO": -29.381117827404314, "AZN": 0.0, - "BIIB": 13719.805818119337, - "BKNG": 9379.165646989532, + "BIIB": 13738.987928282872, + "BKNG": 9032.167300273288, "BKR": 0.0, - "CCEP": 18474.130688389705, - "CDNS": -78.61321317573639, - "CDW": 20853.66112725484, - "CEG": 55727.979272468416, - "CHTR": 18480.329431963128, + "CCEP": 18208.31727681056, + "CDNS": -78.55337781084432, + "CDW": 21137.717250692876, + "CEG": 55667.40990853051, + "CHTR": 18503.114017810647, "CMCSA": 26327.437574423602, "COST": 0.0, - "CPRT": 1996.7748007199627, - "CRWD": 3897.248073785273, + "CPRT": 2002.2325759387027, + "CRWD": 3911.27979736543, "CSCO": 47002.69766942731, - "CSGP": 7626.804628793386, - "CSX": -6.707023763624169e-13, + "CSGP": 7654.520344580746, + "CSX": -6.750155989720952e-13, "CTAS": 0.0, - "CTSH": 25111.12118520126, + "CTSH": 25111.807016922867, "DASH": 0.0, "DDOG": 10311.221673623892, - "DLTR": 21560.83944351735, - "DXCM": 14318.284227894017, + "DLTR": 21545.594471990076, + "DXCM": 14339.018601848298, "EA": 13979.277858180865, "EXC": 0.0, - "FANG": 24057.41185564903, - "FAST": 15655.333735774162, - "FTNT": 23155.48719125416, + "FANG": 23430.082617427466, + "FAST": 15676.268693289567, + "FTNT": 23218.915944315162, "GEHC": 15213.118138969794, - "GFS": 11273.852633041322, + "GFS": 10996.158646355914, "GILD": 24732.930274652554, - "GOOG": 7490.140632644548, + "GOOG": 7502.058499347413, "GOOGL": -2.0225643710099246e-12, "HON": 0.0, "IDXX": 0.0, - "ILMN": 7830.3329042589185, - "INTC": 1.2844245393285905, + "ILMN": 7844.409692434851, + "INTC": 1.2841067444862786, "INTU": 4771.331757464432, - "ISRG": 13691.178682313346, - "KDP": 2059.1000900268546, + "ISRG": 13320.380937396838, + "KDP": 2087.420063018798, "KHC": 0.0, - "KLAC": 27025.268127628286, + "KLAC": 25226.742601599166, "LIN": 0.0, "LRCX": -7.829316160754694, - "LULU": 18304.922551435062, + "LULU": 18338.692356541877, "MAR": 0.0, "MCHP": 13720.623049578804, - "MDB": 21967.838739100713, + "MDB": 21918.277558060734, "MDLZ": 0.0, - "MELI": 23130.9318392243, - "META": -122.55088797922106, - "MNST": 16106.228741557694, + "MELI": 23260.21745795854, + "META": -122.55224692377844, + "MNST": 16059.920565751783, "MRNA": 13568.817414251991, "MRVL": 0.0, - "MSFT": 38.05775815897272, - "MU": 6.4261699917959945, - "NFLX": 18387.413204856486, + "MSFT": 38.09005861857535, + "MU": 6.455637247047282, + "NFLX": 17590.35653817777, "NVDA": 9495.829832712438, - "NXPI": 20701.116983932865, - "ODFL": 8388.73382687429, - "ON": 4276.096200830899, - "ORLY": 19564.132761867106, - "PANW": 1136.053139063594, - "PAYX": 6052.25092986551, + "NXPI": 20279.839665331252, + "ODFL": 8359.139551206832, + "ON": 4275.456504505071, + "ORLY": 19671.80855747634, + "PANW": 1142.0573973463047, + "PAYX": 6118.795979860448, "PCAR": 0.0, "PDD": 22428.453193324054, "PEP": 22971.46474453549, - "PYPL": 1393.0590422406399, + "PYPL": 1398.8202458165654, "QCOM": 2599.8155736505764, - "REGN": 14148.818866127027, - "ROP": 11940.068021790774, - "ROST": 7638.3203790502785, - "SBUX": 18598.929870373624, - "SNPS": 0.0, - "TEAM": 8457.927515822144, - "TMUS": 17208.308336973176, - "TSLA": 10517.685290505713, + "REGN": 14146.335525218565, + "ROP": 12470.373337108707, + "ROST": 7659.633742031264, + "SBUX": 18586.34525286692, + "SNPS": 0.0, + "TEAM": 8046.451779794955, + "TMUS": 17194.007228729897, + "TSLA": 10525.641144766663, "TTD": 30845.437271731396, "TTWO": 8353.18949044703, "TXN": 0.0, - "USDOLLAR": -285.2946325690202, + "USDOLLAR": -285.2926230470144, "VRSK": 0.0, - "VRTX": 9308.579045347033, + "VRTX": 8839.818042597346, "WBA": 0.3641198466280301, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, - "ZS": 17835.760055805684 + "ZS": 16466.933919331404 + }, + "2024-08-06 13:30:00+00:00": { + "AAPL": 3667.263226890906, + "ABNB": 0.0, + "ADBE": 15103.654330453768, + "ADI": 0.0, + "ADP": 0.0, + "ADSK": 528.5082183849782, + "AEP": 0.0, + "AMAT": -47.048056815950964, + "AMD": -1.6458353050311225e-11, + "AMGN": 24881.28823034448, + "AMZN": 19805.48810270955, + "ANSS": 2394.7275296797993, + "ARM": 40665.667191842986, + "ASML": 14.359428775404531, + "AVGO": -32.10364743198826, + "AZN": 0.0, + "BIIB": 12162.971153515833, + "BKNG": 9535.009420071867, + "BKR": 0.0, + "CCEP": 18160.25842435118, + "CDNS": -77.73458667966662, + "CDW": 20697.18221326784, + "CEG": 60164.06569503517, + "CHTR": 17182.89751391972, + "CMCSA": 21982.080827052017, + "COST": 0.0, + "CPRT": 3615.2293339820726, + "CRWD": 1933.7126903388746, + "CSCO": 40745.83773047002, + "CSGP": 8395.003447402441, + "CSX": -6.301191038823475e-13, + "CTAS": 0.0, + "CTSH": 23538.42754941306, + "DASH": 0.0, + "DDOG": 7308.644783902339, + "DLTR": 20147.873801004287, + "DXCM": 15483.182333605688, + "EA": 13488.44361667287, + "EXC": 0.0, + "FANG": 23193.330952741537, + "FAST": 14782.248521934467, + "FTNT": 23482.43727025796, + "GEHC": 15156.991147050276, + "GFS": 5439.763616503422, + "GILD": 21583.265495443244, + "GOOG": 7672.484575125442, + "GOOGL": -2.0709627501193094e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7896.417750487039, + "INTC": 1.287285177907252, + "INTU": 7204.371796526932, + "ISRG": 14681.85857129964, + "KDP": -8.801893492119299e-13, + "KHC": 0.0, + "KLAC": 39536.13974605269, + "LIN": 0.0, + "LRCX": -8.192516451374722, + "LULU": 18299.644460312935, + "MAR": 0.0, + "MCHP": 14662.981866375358, + "MDB": 22413.11399027835, + "MDLZ": 0.0, + "MELI": 26572.006125650896, + "META": -130.05987699715823, + "MNST": 14975.75566826757, + "MRNA": 14591.750296800134, + "MRVL": 0.0, + "MSFT": 1640.112985390218, + "MU": 6.571297966269369, + "NFLX": 19815.45214302484, + "NVDA": 14448.04366543775, + "NXPI": 23819.32370419655, + "ODFL": 8128.454584096689, + "ON": 5794.640775406029, + "ORLY": 16671.920852018546, + "PANW": 2992.9153908194717, + "PAYX": 5978.046204567626, + "PCAR": 0.0, + "PDD": 21375.86302473177, + "PEP": 20582.54162851042, + "PYPL": 2.715746736015861, + "QCOM": 6006.019639891562, + "REGN": 12849.775915749127, + "ROP": 10895.484804473124, + "ROST": 6979.847366127028, + "SBUX": 17199.482600080522, + "SNPS": 0.0, + "TEAM": 9470.932811506562, + "TMUS": 20261.61838059224, + "TSLA": 13617.104375800185, + "TTD": 33485.20029547074, + "TTWO": 7828.03227327036, + "TXN": 0.0, + "USDOLLAR": -802.6925912047603, + "VRSK": 2606.199951171874, + "VRTX": 9397.602859420691, + "WBA": 0.3548513502802701, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 21282.0870147525 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 993fc051f..33282542b 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15598,5 +15598,109 @@ "WDAY": 2.2484702678638956e-08, "XEL": 5.744624497799808e-08, "ZS": 0.020119863189412078 + }, + "2024-08-06 13:30:00+00:00": { + "AAPL": 0.0034300032169390813, + "ABNB": 2.6805897207407768e-09, + "ADBE": 0.014849555784099647, + "ADI": 0.0006348069854019036, + "ADP": 0.001665071186866041, + "ADSK": 0.0010350511158504058, + "AEP": 5.341025547738035e-09, + "AMAT": 0.0014191460463050972, + "AMD": 1.9408343818480942e-09, + "AMGN": 0.026384608478436582, + "AMZN": 0.01807055111748973, + "ANSS": 0.0040017589984185295, + "ARM": 0.042642312947809104, + "ASML": 9.728354311682111e-09, + "AVGO": 1.093429397338566e-08, + "AZN": 9.914780483639146e-09, + "BIIB": 0.013404753208742832, + "BKNG": 0.00737271215321348, + "BKR": 1.1426553428319318e-08, + "CCEP": 0.014568338267797666, + "CDNS": 2.8970638519653508e-08, + "CDW": 0.024347296878253297, + "CEG": 0.053148702371649585, + "CHTR": 0.01722654126996259, + "CMCSA": 0.023638315010309267, + "COST": 7.1675846230985066e-09, + "CPRT": 0.004442871747388798, + "CRWD": 0.0017843814319360317, + "CSCO": 0.0444227749553285, + "CSGP": 0.011541305272030173, + "CSX": 6.120872635378919e-08, + "CTAS": 1.0866563551123359e-08, + "CTSH": 0.023646782843369414, + "DASH": 2.4986479983908223e-09, + "DDOG": 0.009277423877233567, + "DLTR": 0.020355023088673953, + "DXCM": 0.013837007551990863, + "EA": 0.012801139619450853, + "EXC": 2.4480002673714265e-08, + "FANG": 0.02271191403978872, + "FAST": 0.015695864110344772, + "FTNT": 0.025226549022420955, + "GEHC": 0.012863340959601779, + "GFS": 0.007778708089105357, + "GILD": 0.022936517873395984, + "GOOG": 0.005516691122966705, + "GOOGL": 6.138897793968089e-08, + "HON": 5.039800922435064e-09, + "IDXX": 2.8762917674160268e-06, + "ILMN": 0.007423879822059928, + "INTC": 4.635760955820822e-09, + "INTU": 0.007846584205152073, + "ISRG": 0.014010409576034602, + "KDP": 5.8208265462044286e-08, + "KHC": 5.077817561830721e-09, + "KLAC": 0.017960445401866486, + "LIN": 1.9960350535910038e-07, + "LRCX": 4.073703044096552e-08, + "LULU": 0.01698767449769269, + "MAR": 1.3378111570646852e-08, + "MCHP": 0.01696281951007628, + "MDB": 0.02340589495856092, + "MDLZ": 0.0008737728585337078, + "MELI": 0.024736535879961854, + "META": 1.3410506943665372e-08, + "MNST": 0.015910482895527645, + "MRNA": 0.013636532016803224, + "MRVL": 6.542042070648962e-09, + "MSFT": 1.3062468722001633e-07, + "MU": 8.695147350965445e-09, + "NFLX": 0.018414903402529447, + "NVDA": 0.008656826851871998, + "NXPI": 0.02208456340143994, + "ODFL": 0.008081508763193027, + "ON": 0.006244758166424313, + "ORLY": 0.02065908077031475, + "PANW": 0.00013778061883485196, + "PAYX": 0.009204798659423728, + "PCAR": 4.686342291295585e-09, + "PDD": 0.022632165863560753, + "PEP": 0.02391440148702627, + "PYPL": 2.716737010136823e-06, + "QCOM": 0.004987750249534773, + "REGN": 0.01324265288778354, + "ROP": 0.019684782324150267, + "ROST": 0.008158026324685621, + "SBUX": 0.017314348772980877, + "SNPS": 2.9174511268798904e-09, + "TEAM": 0.006937512043411604, + "TMUS": 0.02150208097832577, + "TSLA": 0.011314833991228556, + "TTD": 0.03191706314601915, + "TTWO": 0.008336220445846478, + "TXN": 9.902410494277295e-09, + "USDOLLAR": 8.420650687433924e-08, + "VRSK": 0.008279998796836168, + "VRTX": 0.007968515025626103, + "WBA": 1.562373553420883e-08, + "WBD": 4.910850513169735e-09, + "WDAY": 5.144954493840206e-09, + "XEL": 3.2713515987749613e-07, + "ZS": 0.017885792707673268 } } \ No newline at end of file From d762a0d24a61a4669f013c55d86f10736ef274cc Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Tue, 6 Aug 2024 18:11:31 +0400 Subject: [PATCH 113/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-06 --- .../sp500_daily_initial_holdings.json | 687 +++++++++++++++--- .../sp500_daily_target_weights.json | 505 +++++++++++++ 2 files changed, 1101 insertions(+), 91 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index f4b174609..d9533cd5b 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -75368,40 +75368,40 @@ }, "2024-08-05 13:30:00+00:00": { "A": 0.0, - "AAL": 532.8132213867577, - "AAPL": 41135.26321418229, + "AAL": 533.3993879517407, + "AAPL": 41124.93435658527, "ABBV": 5858.071125442162, "ABNB": 0.0, "ABT": 3586.0230446520013, "ACGL": 0.0, "ACN": 2.4627278878909173e-13, - "ADBE": 9892.225886617269, + "ADBE": 9924.307813201545, "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, - "ADSK": -14.806906447905732, + "ADSK": -14.50804217224872, "AEE": 0.0, "AEP": 0.0, "AES": 0.0, "AFL": 3514.7060905303565, "AIG": 0.0, - "AIZ": 1.479042352204027, + "AIZ": 1.4852743556554464, "AJG": 0.0, - "AKAM": -0.07627364019752461, + "AKAM": -0.07628191546234904, "ALB": 0.0, - "ALGN": 827.6094320188782, - "ALL": 6.924684234190714e-14, + "ALGN": 786.2464131560301, + "ALL": 6.925859056413526e-14, "ALLE": 0.0, - "AMAT": 1685.1660420961236, + "AMAT": 1692.8979643929601, "AMCR": 0.0, - "AMD": 24527.00602657954, + "AMD": 24516.97216654524, "AME": 0.0, - "AMGN": 5508.0377244537885, - "AMP": 8.64888213289804, - "AMT": 705.7763085282891, - "AMZN": 30691.42740907173, + "AMGN": 5519.3177666600495, + "AMP": 8.680792427509253, + "AMT": 697.4744898287489, + "AMZN": 30702.37919165521, "ANET": 3205.817027614348, - "ANSS": 292.1408992720517, + "ANSS": 294.2877710604979, "AON": 19.23059758046199, "AOS": 0.0, "APA": 0.0, @@ -75411,10 +75411,10 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 17256.727416292622, + "AVGO": 17355.820095472747, "AVY": 0.0, "AWK": 0.0, - "AXON": 4917.663612340797, + "AXON": 4921.535532553132, "AXP": 0.0, "AZO": 1.8675821626520534e-12, "BA": -9.673352095829783e-13, @@ -75427,10 +75427,10 @@ "BEN": 171.2082942066445, "BF-B": 0.0, "BG": 798.4663755473256, - "BIIB": 2015.4067676812663, + "BIIB": 2018.2245739355599, "BIO": 0.0, "BK": 0.0, - "BKNG": 3123.7307888865535, + "BKNG": 3008.1630017158286, "BKR": 0.0, "BLDR": 454.7919206833173, "BLK": 9.436838311562352e-13, @@ -75453,21 +75453,21 @@ "CCI": 332.4460713490663, "CCL": 0.0, "CDNS": 0.0, - "CDW": 363.0227461739312, + "CDW": 367.96762531859247, "CE": -2.4573598769052755e-14, - "CEG": 30807.40826067334, + "CEG": 30773.92444971725, "CF": 9527.887067495285, "CFG": 0.0, - "CHD": 2395.967623802522, + "CHD": 2407.3967085676068, "CHRW": 0.0, - "CHTR": 4704.675354210356, + "CHTR": 4710.475796236423, "CI": 3.9189693624250273e-13, "CINF": 0.016031607400318018, "CL": 10.167580658914908, "CLX": 16.170608176236225, "CMCSA": 6443.578239005278, "CME": 5042.060421144372, - "CMG": 5368.549996250694, + "CMG": 4927.383276066463, "CMI": 0.0, "CMS": 0.0, "CNC": 1005.287779009194, @@ -75479,22 +75479,22 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 709.2476696964766, + "CPRT": 711.1862530330766, "CPT": 0.0, "CRL": 0.0, "CRM": 6997.895955731836, - "CRWD": 1001.9798046134445, + "CRWD": 1005.5873511142194, "CSCO": 6827.9360578542255, - "CSGP": -7.81262596339622e-14, + "CSGP": -7.841016951666323e-14, "CSX": 0.0, "CTAS": 0.0, "CTLT": 0.0, "CTRA": 0.0, - "CTSH": 9861.520433564669, + "CTSH": 9861.789770146126, "CTVA": 102.24975433020845, "CVS": 0.0, "CVX": -5.243667994356332e-13, - "CZR": 8046.894150981764, + "CZR": 8094.94891934145, "D": 0.0, "DAL": 548.1820207437543, "DAY": 0.0, @@ -75508,7 +75508,7 @@ "DHR": 1613.4381139914396, "DIS": -3.8506162098518124, "DLR": 2.98526180212766e-14, - "DLTR": 991.7960821564287, + "DLTR": 991.0948152566428, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, @@ -75518,7 +75518,7 @@ "DUK": 1.3057241800773103, "DVA": 3424.371556031379, "DVN": 0.0, - "DXCM": 5178.376580235523, + "DXCM": 5185.87541143497, "EA": 3834.1035922823685, "EBAY": 0.0, "ECL": 0.0, @@ -75532,8 +75532,8 @@ "EMR": 0.0, "ENPH": 3367.8677618521633, "EOG": 0.0, - "EPAM": 5803.541772172849, - "EQIX": 797.5557849637756, + "EPAM": 5437.262389753924, + "EQIX": 810.5725443429141, "EQR": 0.0, "EQT": 0.0, "ES": 0.0, @@ -75545,16 +75545,16 @@ "EW": 0.0, "EXC": 0.0, "EXPD": -1.1124168029446602, - "EXPE": 3703.692548014513, + "EXPE": 3583.753137902369, "EXR": 5.782816986235193e-14, "F": 0.0, - "FANG": 13127.95875295416, - "FAST": 3190.320443308341, + "FANG": 12785.629644016326, + "FAST": 3194.5866712960947, "FCX": 0.0, - "FDS": 1221.4052621112032, + "FDS": 1209.855938051845, "FDX": 5723.457834209772, "FE": 0.0, - "FFIV": 3040.7387645828344, + "FFIV": 2983.0884341985466, "FI": 2.5216483367074504e-13, "FICO": 1489.1332178625921, "FIS": 0.0, @@ -75564,7 +75564,7 @@ "FOXA": 0.0, "FRT": 0.0, "FSLR": -6.951686158661211e-14, - "FTNT": 5637.7453461799305, + "FTNT": 5653.1885607592685, "FTV": 0.0, "GD": 3.813914532011705e-13, "GDDY": 0.0, @@ -75578,7 +75578,7 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 21402.848977411184, + "GOOG": 21436.903918924916, "GOOGL": 1997.5192578142703, "GPC": 0.0, "GPN": -9.670089758184418e-14, @@ -75586,14 +75586,14 @@ "GS": 0.0, "GWW": 0.0, "HAL": 0.0, - "HAS": 1.1469245508922028, + "HAS": 1.1218028293556033, "HBAN": 0.0, "HCA": 6088.378750846845, "HD": 8619.956480052946, "HES": 0.0, "HIG": 5665.264592618471, "HII": 0.7122956708178738, - "HLT": -1.2479334765679562e-13, + "HLT": -1.2479647577690583e-13, "HOLX": 3072.4315649625382, "HON": 0.0, "HPE": 0.0, @@ -75606,12 +75606,12 @@ "HUM": 1040.972919201348, "HWM": 2287.138489800504, "IBM": 0.0, - "ICE": 741.4714826640604, + "ICE": 754.0396008563588, "IDXX": -9.51749689399325, "IEX": 0.0, "IFF": 0.0, - "INCY": 4034.577795543513, - "INTC": 139.64112733854623, + "INCY": 3964.4872398315892, + "INTC": 139.60657705654523, "INTU": 1204.941702580484, "INVH": 0.0, "IP": 0.0, @@ -75619,7 +75619,7 @@ "IQV": 0.0, "IR": 0.039160101740585505, "IRM": 0.0, - "ISRG": 6653.775227058078, + "ISRG": 6473.571249984748, "IT": 7.849977012469957e-13, "ITW": 0.0, "IVZ": 0.0, @@ -75627,8 +75627,8 @@ "JBHT": 0.0, "JBL": 2264.7222255275974, "JCI": 0.0, - "JKHY": 844.2137039392887, - "JNJ": 13896.38436246011, + "JKHY": 843.6142866473631, + "JNJ": 13895.959747691484, "JNPR": 0.0, "JPM": 2155.932932890527, "K": 612.8726707068356, @@ -75638,7 +75638,7 @@ "KHC": 0.0, "KIM": 0.0, "KKR": 0.0, - "KLAC": 679.2006215406522, + "KLAC": 633.9999726750488, "KMB": 4639.448181122264, "KMI": 0.0, "KMX": 1.0576491498478828, @@ -75650,14 +75650,14 @@ "LEN": 0.0, "LH": 0.0, "LHX": 0.0, - "LIN": 1.6915026962938198, - "LKQ": 4440.733975369279, + "LIN": 1.6939653570643183, + "LKQ": 4337.846979477523, "LLY": 1.307509885126842, "LMT": 7780.757765915363, "LNT": 0.0, "LOW": -2.79959062987661e-13, "LRCX": 699.4913619725144, - "LULU": 1374.5311493634752, + "LULU": 1377.066950806875, "LUV": 23.905908889860527, "LVS": 1616.4127709587635, "LW": 20.22722240837798, @@ -75674,113 +75674,113 @@ "MDLZ": 0.0, "MDT": 1.3304281790287187, "MET": -0.03315925319630593, - "META": 18953.13245776274, + "META": 18953.34262560912, "MGM": 3154.35563718463, "MHK": 0.0, "MKC": 0.0, - "MKTX": 5899.628180783203, + "MKTX": 5971.2184245281205, "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5346.684609866624, + "MNST": 5331.311972679769, "MO": -22.331689943462663, "MOH": 2110.868098338995, "MOS": 0.0, "MPC": 13291.616235316491, - "MPWR": -8.775815454364817e-13, - "MRK": 5228.712230342498, + "MPWR": -8.397078372041894e-13, + "MRK": 5217.365198292025, "MRNA": 5351.200019393404, "MRO": 0.0, "MS": 5506.492544283049, "MSCI": 3679.5109541794195, - "MSFT": 34556.782173557345, + "MSFT": 34586.11127754533, "MSI": 0.0, "MTB": -5.955524933307385, "MTCH": 0.0, "MTD": 0.0, - "MU": 3060.298873366642, + "MU": 3074.3318989731615, "NCLH": 0.0, "NDAQ": 0.0, "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16552.940580471353, + "NFLX": 15835.404541235739, "NI": 0.0, "NKE": -2.9431515840229816e-14, "NOC": -4.464078545547976e-13, "NOW": 5132.81087102859, "NRG": 0.0, - "NSC": -2.940508986947888e-14, - "NTAP": 5390.010549764334, + "NSC": -2.9206970117977435e-14, + "NTAP": 5153.221196160378, "NTRS": 0.0, "NUE": 0.0, "NVDA": 117210.35885996369, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, - "NXPI": 7103.657218160072, + "NXPI": 6959.094503623743, "O": 0.0, - "ODFL": 1713.4071698863913, + "ODFL": 1707.3625098503594, "OKE": 0.0, "OMC": 0.0, - "ON": -2.464008828638109, + "ON": -2.4636402173346075, "ORCL": 6914.001615090745, - "ORLY": -0.8089378489995146, + "ORLY": -0.8133900282782823, "OTIS": 1571.7597739997723, "OXY": 0.0, - "PANW": 5159.286469969016, - "PARA": 1967.8821914890702, + "PANW": 5186.554286460172, + "PARA": 1963.251951103212, "PAYC": 0.0, - "PAYX": 125.76437955138042, + "PAYX": 127.14717035463862, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, "PEP": 9892.040076446217, "PFE": 0.0, - "PFG": 150.62536473059055, - "PG": 1.0878750020875934, + "PFG": 150.89869959081904, + "PG": 1.0929920253250784, "PGR": 8282.792036149018, "PH": 0.0, "PHM": -11.4813139170172, - "PKG": -5.13546382956158e-13, + "PKG": -5.074367859225598e-13, "PLD": 0.0, "PM": 0.0, "PNC": 0.0, "PNR": 0.0, "PNW": 0.0, "PODD": -60.26381734435435, - "POOL": 1328.0757109599047, - "PPG": -0.39401876350463777, + "POOL": 1343.2961866644707, + "PPG": -0.3899656085502652, "PPL": 0.0, "PRU": 14.767055682570847, "PSA": 0.0, "PSX": 439.54464801319244, - "PTC": 2.499356227107002e-14, + "PTC": 2.5062179548702065e-14, "PWR": -4.477136401547542, "PYPL": 0.0, "QCOM": 3945.540095945063, "QRVO": 0.0, "RCL": 1437.564549796751, "REG": 0.0, - "REGN": 1101.069926230281, + "REGN": 1100.876671088862, "RF": 0.0, "RJF": 0.0, "RL": 0.0, "RMD": 399.21249475282343, - "ROK": 1.1157288521913964, + "ROK": 1.0697738599448656, "ROL": 0.0, - "ROP": 5418.460612324658, - "ROST": 1103.0922183224254, + "ROP": 5659.115729055364, + "ROST": 1106.1701993030465, "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, "SBAC": 6430.997879246119, - "SBUX": 8366.367802087112, + "SBUX": 8360.70685603035, "SCHW": 1.636009658489552, "SHW": 1.4638800557944054, "SJM": 1.053012254909325, "SLB": 0.0, - "SMCI": 7818.5040641611595, + "SMCI": 7818.577125757364, "SNA": 0.0, "SNPS": 0.0, "SO": 11.47290701055138, @@ -75791,12 +75791,12 @@ "STE": 0.5300805898307451, "STLD": -2.5285562625795833e-14, "STT": 316.7322638982666, - "STX": -12.229084221144848, + "STX": -11.714419989259012, "STZ": -2.0506992991096697, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, - "SYK": -6.810193027591449, + "SYK": -6.793145226864406, "SYY": 0.0, "T": 0.0, "TAP": 0.0, @@ -75810,21 +75810,21 @@ "TGT": 0.0, "TJX": 445.2336180502701, "TMO": 0.0, - "TMUS": 7775.2373735145875, + "TMUS": 7768.775697612552, "TPR": 2347.2249469078365, "TRGP": 385.7729446079908, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, "TSCO": -2.6396995396781195e-12, - "TSLA": 84005.082261587, + "TSLA": 84068.62591907365, "TSN": 5252.407756939861, "TT": 0.0, "TTWO": 695.1251451575918, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3211.1007417274486, + "UAL": 3212.3981033766227, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -75834,15 +75834,15 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 585.2495862725292, + "USDOLLAR": 585.2498540735535, "V": 1552.9412163026998, "VICI": 0.0, "VLO": 0.0, "VLTO": 11688.667132173721, "VMC": 0.0, "VRSK": 0.0, - "VRSN": 2999.324382984019, - "VRTX": 1955.8624176001188, + "VRSN": 2991.288900198526, + "VRTX": 1857.3691863939075, "VST": 0.0, "VTR": 0.0, "VTRS": 0.0, @@ -75851,7 +75851,7 @@ "WAT": -2.307730954512052e-13, "WBA": 0.0, "WBD": 0.0, - "WDC": -2.13484583176689, + "WDC": -2.185819910626552, "WEC": 0.0, "WELL": 0.0, "WFC": 0.0, @@ -75862,7 +75862,512 @@ "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 2369.534859404824, + "WYNN": 2372.5043322379215, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-08-06 13:30:00+00:00": { + "A": 0.0, + "AAL": 555.3801310393135, + "AAPL": 42015.51161691258, + "ABBV": 5794.943203892823, + "ABNB": 0.0, + "ABT": 3509.046278261835, + "ACGL": 0.0, + "ACN": 2.5053264566622983e-13, + "ADBE": 9083.120349549676, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -14.445325720836477, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3446.3252030705917, + "AIG": 0.0, + "AIZ": 1.4477114273879734, + "AJG": 0.0, + "AKAM": -0.07615772332002196, + "ALB": 0.0, + "ALGN": 806.714709930392, + "ALL": 6.62939989908181e-14, + "ALLE": 0.0, + "AMAT": 1771.7633063672156, + "AMCR": 0.0, + "AMD": 28465.394616628422, + "AME": 0.0, + "AMGN": 5394.904196396531, + "AMP": 8.644180092546762, + "AMT": 676.84021638914, + "AMZN": 32510.96318286102, + "ANET": 3421.1410060799317, + "ANSS": 292.1408992720517, + "AON": 18.742388794078558, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 23.366729180649582, + "APTV": 2.3768948400473044e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19105.67481805442, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 5036.2843378805255, + "AXP": 0.0, + "AZO": 1.8313947528866037e-12, + "BA": -1.0052500532929053e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 478.0174747126046, + "BDX": 0.0, + "BEN": 173.064003778874, + "BF-B": 0.0, + "BG": 588.8512702200644, + "BIIB": 1763.1795752195317, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3175.6345520309646, + "BKR": 0.0, + "BLDR": 450.2867368268187, + "BLK": 9.54932213166703e-13, + "BMY": 96.47902259459589, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3269189925510113, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1283.4421398039353, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 19632.29786919422, + "CAT": 0.0, + "CB": 34.271226263649034, + "CBOE": 0.0, + "CBRE": 5080.691101172159, + "CCI": 320.8322347953872, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 360.29874463160087, + "CE": -2.4676693656741803e-14, + "CEG": 34842.02734266588, + "CF": 9630.791251326764, + "CFG": 0.0, + "CHD": 2434.388747111732, + "CHRW": 0.0, + "CHTR": 3928.394887757222, + "CI": 3.7562738283977973e-13, + "CINF": 0.015652976056608467, + "CL": 9.99975022440975, + "CLX": 16.06274515601592, + "CMCSA": 6236.703630631566, + "CME": 4997.973253342279, + "CMG": 5881.683957273336, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 1006.3295518879102, + "CNP": 0.0, + "COF": 7778.910233095577, + "COO": 0.0, + "COP": 0.0, + "COR": 3159.1392509722086, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 705.2320026007003, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7262.063779060712, + "CRWD": 1147.6174686956108, + "CSCO": 6562.446309250508, + "CSGP": -7.339102185274983e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 8976.456289507301, + "CTVA": 103.4424585299145, + "CVS": 0.0, + "CVX": -5.206553017207808e-13, + "CZR": 7979.914147624831, + "D": 0.0, + "DAL": 558.704327908893, + "DAY": 0.0, + "DD": 0.0, + "DE": 9.820523028654657e-14, + "DECK": 840.8954680617751, + "DFS": 3123.9687197232925, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.836904460479467, + "DHR": 1624.4060558558524, + "DIS": -3.9099998101963735, + "DLR": 2.931837933450148e-14, + "DLTR": 966.750726546418, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.507233500675888, + "DRI": 2.382854886572871, + "DTE": 0.0, + "DUK": 1.2871870076411556, + "DVA": 3370.771841473105, + "DVN": 0.0, + "DXCM": 5467.813844454657, + "EA": 3527.447912533585, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.2809476179127615e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.1895967479014475e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 3973.0932243570624, + "EOG": 0.0, + "EPAM": 6020.875389110902, + "EQIX": 777.6054812611023, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.0335668049528404, + "EXPE": 3736.83986203998, + "EXR": 5.6097555272174816e-14, + "F": 0.0, + "FANG": 13228.898740841492, + "FAST": 3119.6875343940997, + "FCX": 0.0, + "FDS": 1183.9287170597672, + "FDX": 5442.4787628208505, + "FE": 0.0, + "FFIV": 2789.099913550592, + "FI": 2.490099688862382e-13, + "FICO": 1532.5160190110632, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.135335096624401e-14, + "FTNT": 5702.2713984767215, + "FTV": 0.0, + "GD": 3.7813090595213647e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1761.0310292696533, + "GEN": 0.0, + "GEV": 11574.048473925837, + "GILD": 7223.935266815003, + "GIS": 8017.351072065995, + "GL": 0.3015896200067431, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 21923.89124541015, + "GOOGL": 2045.318327007662, + "GPC": 0.0, + "GPN": -9.630577849061669e-14, + "GRMN": 2108.9438969836956, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1389723725970273, + "HBAN": 0.0, + "HCA": 5767.166504199226, + "HD": 8567.629333630694, + "HES": 0.0, + "HIG": 5341.287593319201, + "HII": 0.7051076763117573, + "HLT": -1.2754654159049703e-13, + "HOLX": 2773.360443915046, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10643.21501639382, + "HUBB": 1.2849589463068463e-13, + "HUM": 1033.4062726337118, + "HWM": 2347.948305226026, + "IBM": 0.0, + "ICE": 738.3541611057158, + "IDXX": -9.641908618097732, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3806.303142125644, + "INTC": 139.95213260495237, + "INTU": 1813.201712346109, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04034775163508261, + "IRM": 0.0, + "ISRG": 6495.172339072208, + "IT": 7.54391320439048e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2322.2420316788193, + "JCI": 0.0, + "JKHY": 818.2379129088242, + "JNJ": 13180.348687393549, + "JNPR": 0.0, + "JPM": 1975.5315974608018, + "K": 598.5116375432619, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 1399.2955110507796, + "KMB": 4597.072784844889, + "KMI": 0.0, + "KMX": 1.056376521297103, + "KO": 206.4940581397082, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.2086662709683114, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.65482422964915, + "LKQ": 4305.214999473017, + "LLY": 1.361224762403658, + "LMT": 7133.78388407352, + "LNT": 0.0, + "LOW": -2.7917721554814423e-13, + "LRCX": 731.9406156159037, + "LULU": 1409.1871945504922, + "LUV": 24.217680822801462, + "LVS": 1669.7786070177049, + "LW": 20.679146547785376, + "LYB": 3169.4558893801327, + "LYV": 2662.713830491041, + "MA": 25989.01857264872, + "MAA": 0.0, + "MAR": -5.223605185528936e-13, + "MAS": 0.0, + "MCD": 9832.352755825861, + "MCHP": 1949.5430954089168, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.324501985533448, + "MET": -0.03261549879156129, + "META": 22030.436678626313, + "MGM": 3197.2973556188344, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5537.940505841273, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5172.459042701523, + "MO": -22.032384561229474, + "MOH": 2086.261579635172, + "MOS": 0.0, + "MPC": 12816.54226484274, + "MPWR": -8.806450856958388e-13, + "MRK": 5097.086935584204, + "MRNA": 5654.148069167182, + "MRO": 0.0, + "MS": 4926.547319087498, + "MSCI": 3074.814018779905, + "MSFT": 35969.70658624181, + "MSI": 0.0, + "MTB": -6.0935433216855595, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3486.212342026419, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16215.078022708216, + "NI": 0.0, + "NKE": -2.968002540604135e-14, + "NOC": -4.4259416688904337e-13, + "NOW": 5335.942978897204, + "NRG": 0.0, + "NSC": -2.901851496939489e-14, + "NTAP": 5497.630952684783, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 141543.29837729342, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7352.59417069973, + "O": 0.0, + "ODFL": 1351.0804799578018, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.543611718943925, + "ORCL": 7057.2658434722825, + "ORLY": -0.7802153811448256, + "OTIS": 1587.3352604572924, + "OXY": 0.0, + "PANW": 5717.521438077885, + "PARA": 1952.1391268918637, + "PAYC": 0.0, + "PAYX": -0.6475802860448567, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 7457.632361592445, + "PFE": 0.0, + "PFG": 74.8214459711185, + "PG": 1.073931116205422, + "PGR": 8139.9982343360025, + "PH": 0.0, + "PHM": -11.773456733765247, + "PKG": -4.995517269394707e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -60.831982172610815, + "POOL": 1022.6367178981487, + "PPG": -0.3804869416357449, + "PPL": 0.0, + "PRU": 14.406650591983677, + "PSA": 0.0, + "PSX": 47.06907132402369, + "PTC": 2.5266545045689883e-14, + "PWR": -4.7305813366629295, + "PYPL": 0.0, + "QCOM": 4389.127703574637, + "QRVO": 0.0, + "RCL": 1234.2730686398702, + "REG": 0.0, + "REGN": 1082.7966341695032, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 1053.8767211090365, + "ROK": 1.0989138746134306, + "ROL": 0.0, + "ROP": 4658.758158562335, + "ROST": 1086.5027657603944, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 5704.783686887785, + "SBUX": 8294.711664097415, + "SCHW": 1.6572496211851386, + "SHW": 1.4576568842216924, + "SJM": 1.0330637049805063, + "SLB": 0.0, + "SMCI": 12072.40700530486, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 11.190565090841888, + "SOLV": -1.558754953646736e-12, + "SPG": 0.0, + "SPGI": -5.634515939895149, + "SRE": 0.0, + "STE": 0.5279722246719376, + "STLD": -2.6069295136772654e-14, + "STT": 308.93950599528415, + "STX": -12.105590535398816, + "STZ": 236.5953483617366, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": -6.527770073016435, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 4592.977279582442, + "TDY": -15.4076578292409, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 436.13419058637663, + "TMO": 0.0, + "TMUS": 7549.891510240414, + "TPR": 2422.6455461680443, + "TRGP": 394.54674955249936, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.7035545960652326e-12, + "TSLA": 98349.35940529958, + "TSN": 5185.643947199408, + "TT": 0.0, + "TTWO": 686.2120339149479, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3317.9212501701086, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 2627.876560665237, + "UNH": 15775.217892283374, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 151.35486979443027, + "V": 1523.5395042407656, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 11765.93379486609, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2697.2507266359535, + "VRTX": 1874.9714429647208, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.2859677706891115e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.2906001073683244, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4452769203241662, + "WMB": 0.0, + "WMT": 11629.496781280288, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2353.0623177643756, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 75102fb6a..182ec49df 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -72844,5 +72844,510 @@ "ZBH": 3.842229508518531e-09, "ZBRA": 3.1649747755088968e-09, "ZTS": 8.75891118729687e-09 + }, + "2024-08-06 13:30:00+00:00": { + "A": 2.1595094223829734e-09, + "AAL": 0.0005067961901423116, + "AAPL": 0.03833999376472343, + "ABBV": 0.006025151735038019, + "ABNB": 6.082607055006037e-10, + "ABT": 0.0032081452785569665, + "ACGL": 1.165738044794027e-08, + "ACN": 8.333889408341374e-09, + "ADBE": 0.008188886150086165, + "ADI": 9.726618220432384e-09, + "ADM": 5.067605346738619e-09, + "ADP": 1.2285398705895755e-08, + "ADSK": 1.1735821173157734e-08, + "AEE": 4.58881870207183e-09, + "AEP": 4.112784034660809e-09, + "AES": 1.40359776925301e-09, + "AFL": 0.0031448540858040005, + "AIG": 2.0895401155904308e-09, + "AIZ": 2.4801455852304716e-08, + "AJG": 9.378925568577507e-09, + "AKAM": 4.276845949876537e-09, + "ALB": 1.1058348492025592e-09, + "ALGN": 0.0005208535319707618, + "ALL": 1.8130506686541224e-08, + "ALLE": 2.273481823938652e-09, + "AMAT": 0.0016167376145979232, + "AMCR": 6.516649969832695e-10, + "AMD": 0.025174275003170266, + "AME": 2.5202388049815625e-09, + "AMGN": 0.00514171331859947, + "AMP": 3.927428611452272e-06, + "AMT": 0.001049786409081672, + "AMZN": 0.029666955577826937, + "ANET": 0.0031031865379694003, + "ANSS": 0.0002665673107801695, + "AON": 2.7491112552526474e-08, + "AOS": 2.4431291282662564e-09, + "APA": 1.2663736505852129e-09, + "APD": 6.955934183951734e-09, + "APH": 1.7111584674362547e-05, + "APTV": 4.214219213280187e-09, + "ARE": 2.129134004314348e-09, + "ATO": 4.916650987860172e-09, + "AVB": 4.408035541414872e-09, + "AVGO": 0.01743432710689806, + "AVY": 4.1000375461210175e-09, + "AWK": 2.00690915269565e-08, + "AXON": 0.004727080029364204, + "AXP": 5.030893140952486e-09, + "AZO": 0.0007331172121096215, + "BA": 8.88235157581894e-09, + "BAC": 3.2050228648033453e-09, + "BALL": 9.9067031490812e-09, + "BAX": 4.640984651368536e-09, + "BBWI": 3.142655037142917e-09, + "BBY": 0.00043625228280824556, + "BDX": 7.808758983050247e-09, + "BEN": 0.00015792548465743596, + "BF-B": 5.379818570576761e-09, + "BG": 0.0005373277540187249, + "BIIB": 0.0016089523328799988, + "BIO": 2.4457969591470515e-09, + "BK": 3.266098144030978e-09, + "BKNG": 0.0014935111097815095, + "BKR": 1.6716520422448721e-09, + "BLDR": 0.0004956225195513397, + "BLK": 0.00041783266933888443, + "BMY": 8.803966162943497e-05, + "BR": 7.011384844527089e-09, + "BRK-B": 7.822395064710942e-09, + "BRO": 3.006689142692093e-07, + "BSX": 7.537848666041361e-09, + "BWA": 2.244537043903665e-09, + "BX": 0.0011711631585206279, + "BXP": 2.335483891790027e-09, + "C": 3.2489210813929343e-09, + "CAG": 8.743863140268017e-09, + "CAH": 6.419959907590236e-09, + "CARR": 0.018080657127344146, + "CAT": 1.8000287951218831e-09, + "CB": 0.00014085693909985606, + "CBOE": 4.5821117899554686e-08, + "CBRE": 0.0046362449163261195, + "CCI": 0.00033649927664498094, + "CCL": 1.2902436538925403e-09, + "CDNS": 1.185254848817507e-08, + "CDW": 0.0005297847315595505, + "CE": 4.7125669188866806e-09, + "CEG": 0.031899212177913694, + "CF": 0.008788290470591233, + "CFG": 3.3072941039213904e-09, + "CHD": 0.0022214445196188023, + "CHRW": 1.285089312023732e-08, + "CHTR": 0.003577331009272788, + "CI": 3.365834393517454e-08, + "CINF": 3.4274461563673954e-08, + "CL": 9.13286473455419e-06, + "CLX": 1.4685229777489967e-05, + "CMCSA": 0.005691121826926613, + "CME": 0.0054007348506174896, + "CMG": 0.005367149650299047, + "CMI": 3.0109916729032314e-09, + "CMS": 3.0727024583045835e-09, + "CNC": 0.0009182977174850111, + "CNP": 2.585662623200011e-09, + "COF": 0.007098407471278311, + "COO": 6.261108303149086e-09, + "COP": 3.7802371004373114e-09, + "COR": 0.0028828377305813195, + "COST": 7.127333005355453e-09, + "CPAY": 1.244399041884419e-08, + "CPB": 1.2008824005153344e-08, + "CPRT": 0.0006435402079295854, + "CPT": 4.133949643009737e-09, + "CRL": 1.1693920763915838e-09, + "CRM": 0.006626718492320098, + "CRWD": 0.00027499590170041485, + "CSCO": 0.005988374966462793, + "CSGP": 1.0337465960467971e-08, + "CSX": 5.4259218771215615e-09, + "CTAS": 9.257426835360838e-09, + "CTLT": 2.5090905971738893e-09, + "CTRA": 1.3103755682582789e-09, + "CTSH": 0.008191187959146463, + "CTVA": 9.439468972669892e-05, + "CVS": 4.44499630005539e-09, + "CVX": 5.927737980050977e-09, + "CZR": 0.0072818328484907146, + "D": 7.74505067734086e-09, + "DAL": 0.0005098294779513365, + "DAY": 1.0578865459496885e-09, + "DD": 3.2105950089417642e-09, + "DE": 5.7914573616894225e-09, + "DECK": 0.000832870208588491, + "DFS": 0.0028506877959858057, + "DG": 3.049251155973685e-09, + "DGX": 1.6179131870390917e-08, + "DHI": 3.744987314515585e-08, + "DHR": 0.0014823025246664253, + "DIS": 6.672291348226513e-09, + "DLR": 8.205658737112517e-09, + "DLTR": 0.0008821892788128492, + "DOC": 1.3075123822739896e-09, + "DOV": 3.3709277914145507e-09, + "DOW": 3.2075424398411503e-09, + "DPZ": 2.2299773787641645e-05, + "DRI": 2.176669070697175e-06, + "DTE": 4.841345917651118e-09, + "DUK": 1.175254089141919e-06, + "DVA": 0.0030758974749867376, + "DVN": 1.2582148412759468e-09, + "DXCM": 0.004989491784311989, + "EA": 0.0032188613065017757, + "EBAY": 5.619837729336966e-09, + "ECL": 3.4497253890425585e-09, + "ED": 8.842514029430455e-09, + "EFX": 3.2147061781367354e-09, + "EG": 2.9942267587720143e-08, + "EIX": 8.066422045719017e-09, + "EL": 2.9289551635752985e-09, + "ELV": 1.4508075407062502e-08, + "EMN": 2.4968768427819202e-09, + "EMR": 1.7204328906760314e-09, + "ENPH": 0.0037335415462439576, + "EOG": 3.5382930068796214e-09, + "EPAM": 0.005361154976976382, + "EQIX": 0.0007096136716895413, + "EQR": 3.788623957125322e-09, + "EQT": 1.01555316404853e-09, + "ES": 3.150613175177558e-09, + "ESS": 6.8631690700870556e-09, + "ETN": 1.3069374575860654e-09, + "ETR": 7.836295827567122e-09, + "ETSY": 3.5374177879338557e-09, + "EVRG": 2.1706520907725012e-09, + "EW": 3.694013869607475e-09, + "EXC": 4.1877093210578876e-09, + "EXPD": 2.3768403420307527e-08, + "EXPE": 0.003395716104487438, + "EXR": 2.4267897985487397e-08, + "F": 8.668731385908063e-10, + "FANG": 0.012071646506780867, + "FAST": 0.002846779102054736, + "FCX": 1.5914689691293151e-09, + "FDS": 0.0010803086510533346, + "FDX": 0.004966357794180609, + "FE": 3.7182842855059075e-09, + "FFIV": 0.0024299147985475606, + "FI": 1.4957962682631136e-08, + "FICO": 0.0016847155751859365, + "FIS": 4.19645461194403e-09, + "FITB": 5.900070075072009e-09, + "FMC": 4.1124385975925445e-09, + "FOX": 1.7705343945587692e-09, + "FOXA": 2.4998314399444646e-09, + "FRT": 2.2135926216151736e-09, + "FSLR": 2.547298921125908e-09, + "FTNT": 0.005203436817171432, + "FTV": 1.3013833920922126e-09, + "GD": 1.612175449907832e-08, + "GDDY": 1.1044847476377133e-08, + "GE": 2.6637290894861456e-09, + "GEHC": 0.0016069923432261986, + "GEN": 1.8005443126126692e-09, + "GEV": 0.009439552723388776, + "GILD": 0.006591984615188876, + "GIS": 0.007316006611300299, + "GL": 4.548124573086457e-08, + "GLW": 2.1031438296338627e-09, + "GM": 1.8204689640658313e-09, + "GNRC": 1.933301701072901e-09, + "GOOG": 0.020401583290289498, + "GOOGL": 0.0021939628550763125, + "GPC": 6.540159185064817e-09, + "GPN": 1.0671277871946718e-08, + "GRMN": 0.0019245035171521437, + "GS": 5.076472939511529e-09, + "GWW": 2.394274734312717e-09, + "HAL": 1.5440403840710337e-09, + "HAS": 1.040529648350957e-06, + "HBAN": 1.2886416906759295e-09, + "HCA": 0.005262113218569066, + "HD": 0.00868144846610258, + "HES": 3.7210788177368424e-09, + "HIG": 0.004874036590886675, + "HII": 6.50811185306866e-08, + "HLT": 1.260498100115978e-08, + "HOLX": 0.002530731814033506, + "HON": 3.159415770210111e-09, + "HPE": 9.381731958866007e-10, + "HPQ": 1.604725389809525e-09, + "HRL": 6.592683742089326e-09, + "HSIC": 6.433942807228256e-09, + "HST": 1.7142195886150665e-09, + "HSY": 0.009712162188176535, + "HUBB": 1.1653164399872965e-09, + "HUM": 0.0012720014427861934, + "HWM": 0.0022545097535801866, + "IBM": 2.9262357394782617e-09, + "ICE": 0.0008792352054408433, + "IDXX": 1.531909451100111e-08, + "IEX": 2.8543974345324658e-09, + "IFF": 4.031964544371191e-09, + "INCY": 0.0034733176557733537, + "INTC": 0.0001277081132527963, + "INTU": 0.0018971820515325097, + "INVH": 1.797238256077834e-09, + "IP": 2.3696880941967938e-09, + "IPG": 3.5417378517975577e-09, + "IQV": 2.452518812398515e-09, + "IR": 2.0878645940272607e-08, + "IRM": 4.985680183689437e-09, + "ISRG": 0.00593195054562455, + "IT": 2.3793062630072535e-08, + "ITW": 4.428012945112828e-09, + "IVZ": 1.5256341043077156e-09, + "J": 3.935222151038717e-09, + "JBHT": 4.345474924122796e-09, + "JBL": 0.0021190967949227643, + "JCI": 1.5555987852044438e-09, + "JKHY": 0.0008101337484979011, + "JNJ": 0.012027371170129397, + "JNPR": 2.630323760901444e-09, + "JPM": 0.0018027287135852085, + "K": 0.000779125637266141, + "KDP": 2.2361538686248615e-09, + "KEY": 1.0621878411389776e-09, + "KEYS": 2.5999620624090244e-09, + "KHC": 1.0456755771599618e-09, + "KIM": 1.7566147438339482e-09, + "KKR": 5.369888120816085e-09, + "KLAC": 0.0012150966685542106, + "KMB": 0.004194976775030008, + "KMI": 6.226195589797187e-10, + "KMX": 1.2023501604846712e-08, + "KO": 0.00018843154629162532, + "KR": 1.0714022851681335e-08, + "KVUE": -1.9554195370064805e-10, + "L": 6.75092401547751e-09, + "LDOS": 1.7657179396458138e-06, + "LEN": 1.3612958749784032e-08, + "LH": 3.0329391125899795e-09, + "LHX": 4.8619063223024105e-09, + "LIN": 1.5260477605767067e-06, + "LKQ": 0.003927112841791162, + "LLY": 5.231194487165538e-08, + "LMT": 0.006930351447344669, + "LNT": 2.7013588723965925e-09, + "LOW": 1.6994312389407618e-08, + "LRCX": 0.00040813886765858956, + "LULU": 0.0012859136213998277, + "LUV": 2.209948144109331e-05, + "LVS": 0.001523703314321237, + "LW": 4.6697697741407434e-08, + "LYB": 0.0028921860534892457, + "LYV": 0.002429796286842198, + "MA": 0.024033058183131166, + "MAA": 5.532204255610069e-09, + "MAR": 1.1127284863066295e-08, + "MAS": 3.5767268743952145e-09, + "MCD": 0.008990634050246513, + "MCHP": 0.0017790206222222575, + "MCK": 1.447308841300708e-07, + "MCO": 3.6558285838238066e-09, + "MDLZ": 5.059268261590379e-09, + "MDT": 1.2149810348663676e-06, + "MET": 4.3760312125032905e-09, + "META": 0.020103188501204978, + "MGM": 0.0029175895924585023, + "MHK": 4.00668953931966e-09, + "MKC": 5.676966673482623e-09, + "MKTX": 0.005053479406740245, + "MLM": 2.4263482591228077e-09, + "MMC": 4.024900032197745e-09, + "MMM": 3.4829160113966134e-09, + "MNST": 0.0047199775723503435, + "MO": 6.35402865301174e-09, + "MOH": 0.0019039027983884414, + "MOS": 9.417689653170819e-10, + "MPC": 0.01161953319906676, + "MPWR": 8.462257865494656e-07, + "MRK": 0.004651225855291614, + "MRNA": 0.005117308029460022, + "MRO": 6.593866924270602e-10, + "MS": 0.004495574149834106, + "MSCI": 0.002792670349234899, + "MSFT": 0.033558861330250156, + "MSI": 7.370670265461694e-09, + "MTB": 2.8434095712429382e-08, + "MTCH": 4.323711973867834e-09, + "MTD": 5.832732849929109e-09, + "MU": 0.0031814819042874113, + "NCLH": 1.5232758398520534e-09, + "NDAQ": 6.235324242462049e-09, + "NDSN": 3.166208126509918e-09, + "NEE": 4.026330143946983e-09, + "NEM": 1.940434857262026e-09, + "NFLX": 0.014391664360814646, + "NI": 2.200706141004442e-09, + "NKE": 1.593931121214253e-08, + "NOC": 2.9035480934002105e-06, + "NOW": 0.004869195868434865, + "NRG": 1.4540121783203664e-09, + "NSC": 9.306271028752134e-09, + "NTAP": 0.005016630894134478, + "NTRS": 3.5049236332736067e-09, + "NUE": 4.376195009686701e-09, + "NVDA": 0.1207563711983782, + "NVR": 0.0018574232927554188, + "NWS": 1.1459180895068906e-09, + "NWSA": 1.1589851546625438e-09, + "NXPI": 0.006692693838225905, + "O": 6.870656367569898e-09, + "ODFL": 0.001188022845836326, + "OKE": 3.6161170829031702e-09, + "OMC": 3.2388265263443606e-09, + "ON": 5.4310986643435335e-09, + "ORCL": 0.006439917498388538, + "ORLY": 0.0006811217668771795, + "OTIS": 0.001448477544665894, + "OXY": 2.193882298310675e-09, + "PANW": 0.005353865241462641, + "PARA": 0.0017813665842061005, + "PAYC": 7.813206585540471e-09, + "PAYX": 1.1201341541890799e-08, + "PCAR": 5.897375357677539e-09, + "PCG": 2.027256645886924e-09, + "PEG": 5.069709951272809e-09, + "PEP": 0.006805247423088505, + "PFE": 3.770728032360812e-09, + "PFG": 6.827197509126085e-05, + "PG": 9.535706608302095e-07, + "PGR": 0.007538193872949687, + "PH": 2.558106571042898e-09, + "PHM": 1.2116692619459172e-08, + "PKG": 2.099766721657971e-08, + "PLD": 4.791080929564025e-09, + "PM": 1.5575966512862018e-08, + "PNC": 9.248977501816472e-09, + "PNR": 1.5993243306626501e-09, + "PNW": 3.6021436625115084e-09, + "PODD": 1.383069538260631e-07, + "POOL": 0.0008962220175661568, + "PPG": 6.699983217531367e-09, + "PPL": 3.472477369442521e-09, + "PRU": 1.313587000403626e-05, + "PSA": 4.748705272567904e-09, + "PSX": 1.538383422494868e-05, + "PTC": 9.876559211992706e-09, + "PWR": 6.075273590350006e-09, + "PYPL": 1.0520367004164418e-09, + "QCOM": 0.004124559970222815, + "QRVO": 7.365729754376459e-10, + "RCL": 0.0010699101275474909, + "REG": 3.090048068713446e-09, + "REGN": 0.001267070271955752, + "RF": 1.8733228047840214e-09, + "RJF": 7.020418537264439e-09, + "RL": 3.355462392491772e-09, + "RMD": 0.00163855997388193, + "ROK": 6.079298123393331e-09, + "ROL": 3.2540993096116377e-09, + "ROP": 0.004962851645117538, + "ROST": 0.000991458520842086, + "RSG": 1.171283688669445e-08, + "RTX": 8.294940876537279e-09, + "RVTY": 2.2067250895659855e-09, + "SBAC": 0.0052057548400507156, + "SBUX": 0.00756908505839285, + "SCHW": 1.5027703347184684e-06, + "SHW": 1.3322397199951103e-06, + "SJM": 8.040807469256483e-07, + "SLB": 1.5250232711908943e-09, + "SMCI": 0.01100477130353572, + "SNA": 2.9387929110348773e-09, + "SNPS": 2.317214650759904e-09, + "SO": 1.0244578310868857e-05, + "SOLV": -8.114063875228713e-10, + "SPG": 4.286969001208277e-09, + "SPGI": 5.023824548728248e-09, + "SRE": 7.291623375240985e-09, + "STE": 5.330266554130636e-05, + "STLD": 1.1727534873764799e-08, + "STT": 0.00028191457612018864, + "STX": 7.106381248123548e-09, + "STZ": 0.0011249335969426742, + "SWK": 2.386846486649966e-09, + "SWKS": 2.0406067875986608e-09, + "SYF": 3.3532266238792006e-09, + "SYK": 0.0004857527772958916, + "SYY": 8.573711416552743e-09, + "T": 3.9540908169498475e-09, + "TAP": 4.208365549490187e-09, + "TDG": 0.005263776873912293, + "TDY": 1.0217770332225174e-08, + "TECH": 9.725513958556196e-09, + "TEL": 5.271159324072727e-09, + "TER": 1.9959584279642804e-09, + "TFC": 2.7780903589406445e-09, + "TFX": 7.81129290597892e-09, + "TGT": 6.523949516008317e-09, + "TJX": 0.00039798680448490764, + "TMO": 7.787846058850467e-09, + "TMUS": 0.0068894331212259316, + "TPR": 0.002210715455063845, + "TRGP": 0.00036001869433083245, + "TRMB": 3.898972108026168e-09, + "TROW": 6.336346154196256e-09, + "TRV": 7.76681124475888e-09, + "TSCO": 1.8093976068637947e-08, + "TSLA": 0.08679222247019534, + "TSN": 0.004732000644195066, + "TT": 2.257806195400131e-09, + "TTWO": 0.0006261900060363284, + "TXN": 4.5088030534896915e-09, + "TXT": 2.0861211616299818e-09, + "TYL": 1.3002220547590487e-05, + "UAL": 0.0030276732991010194, + "UBER": 1.8657528758035363e-09, + "UDR": 2.1188439978934577e-09, + "UHS": 3.0717245356579443e-09, + "ULTA": 0.002397998968643766, + "UNH": 0.015242825972338944, + "UNP": 7.403089303364692e-09, + "UPS": 1.908500287238917e-09, + "URI": 3.3919071366751147e-09, + "USB": 2.7922660595255604e-09, + "USDOLLAR": 3.363159479830046e-07, + "V": 0.001578615877189403, + "VICI": 2.3046447240132396e-09, + "VLO": 7.916698560932212e-09, + "VLTO": 0.01088693260279535, + "VMC": 1.548859118848548e-09, + "VRSK": 1.1893108901348089e-08, + "VRSN": 0.0024612646078134566, + "VRTX": 0.0015728152719863497, + "VST": 2.095776797153822e-09, + "VTR": 6.549378907617369e-09, + "VTRS": 1.4488227439705285e-09, + "VZ": 5.424652697384266e-09, + "WAB": 2.3019770858280203e-09, + "WAT": 6.993111852675055e-09, + "WBA": 7.637722889624932e-10, + "WBD": 4.03646275562843e-10, + "WDC": 3.1354630571302745e-09, + "WEC": 1.1373687721960024e-08, + "WELL": 5.279195916202579e-09, + "WFC": 6.763653474611849e-09, + "WM": 1.3818060045836182e-06, + "WMB": 7.0099771728131216e-09, + "WMT": 0.010612156517550276, + "WRB": 6.1438969757356375e-09, + "WST": 2.5190593227801144e-09, + "WTW": 7.541329196300981e-09, + "WY": 1.5751131414808879e-09, + "WYNN": 0.0021471819391247937, + "XEL": 4.535380698993124e-09, + "XOM": 6.2673566751639215e-09, + "XYL": 5.442425449293162e-09, + "YUM": 1.2608377655267876e-08, + "ZBH": 2.8090749031713443e-09, + "ZBRA": 1.8442637929363255e-09, + "ZTS": 6.188237182781181e-09 } } \ No newline at end of file From 131e665ba252c154b6e31b6cf09810b6994ca340 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 7 Aug 2024 11:31:52 +0400 Subject: [PATCH 114/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-07 --- .../ftse100_daily_initial_holdings.json | 103 ++++++++++++++++++ .../ftse100_daily_target_weights.json | 103 ++++++++++++++++++ 2 files changed, 206 insertions(+) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index 765a618c6..ab7c67631 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -12234,5 +12234,108 @@ "WEIR.L": 9628.285620237455, "WPP.L": 10117.857821372107, "WTB.L": 11443.518118623426 + }, + "2024-08-07 07:00:00+00:00": { + "AAF.L": 20721.300123042125, + "AAL.L": 9685.71450990257, + "ABF.L": 9722.937097004375, + "ADM.L": 10555.468392469607, + "AHT.L": 15512.030847592723, + "ANTO.L": 18950.299280890136, + "AUTO.L": 10254.335600761011, + "AV.L": 10303.768034635188, + "AZN.L": 12722.032868285709, + "BA.L": 10360.578146517712, + "BARC.L": 9934.745763158426, + "BATS.L": 8723.307809936487, + "BDEV.L": 10290.25297076727, + "BEZ.L": 9671.466090641494, + "BKG.L": 10059.808021113375, + "BME.L": 10103.333114571155, + "BNZL.L": 9563.315217900186, + "BP.L": 1.3210384858226144e-12, + "BRBY.L": 9613.903383927433, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10131.470849161304, + "CPG.L": 2339.999999999999, + "CRDA.L": 7864.403685062538, + "CTEC.L": 39.606928257605105, + "DARK.L": 26338.112102720454, + "DCC.L": 20563.42260375302, + "DGE.L": 9602.849740795187, + "DPLM.L": 8115.819643168926, + "EDV.L": 6230.881149806523, + "ENT.L": 9528.080794950158, + "EXPN.L": 10316.777255146737, + "EZJ.L": 8892.83333759359, + "FCIT.L": 0.0, + "FRAS.L": 10004.92149801104, + "FRES.L": 9822.005475413713, + "GBPOUND": 10654.646947024215, + "GLEN.L": 8596.482014742845, + "GSK.L": 9381.406355085463, + "HIK.L": 9156.443343626974, + "HL.L": 9402.58416742493, + "HLMA.L": 9921.01424515832, + "HLN.L": 0.0, + "HSBA.L": 9742.037870041857, + "HWDN.L": 9736.275318456344, + "IAG.L": 9926.58784799838, + "ICG.L": 10039.810894457949, + "IHG.L": 14911.124132897172, + "III.L": 8971.95713599061, + "IMB.L": 10642.907355583924, + "IMI.L": 10588.036394307144, + "INF.L": 9722.839557426958, + "ITRK.L": 9395.701668464453, + "JD.L": 10968.035071873996, + "KGF.L": 9998.171337004238, + "LAND.L": 0.0, + "LGEN.L": 10097.054674021785, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 28852.485242991865, + "MKS.L": 0.0, + "MNDI.L": 10655.596979271017, + "MNG.L": 10114.960138140435, + "MRO.L": 38588.504055139696, + "NG.L": 9939.49314361825, + "NWG.L": 10046.129328130146, + "NXT.L": 9438.368063313075, + "PHNX.L": 0.0, + "PRU.L": 9808.746422861674, + "PSH.L": 46704.55429324002, + "PSN.L": 9256.469317133995, + "PSON.L": 2110.1999527951007, + "REL.L": 10539.795866826731, + "RIO.L": 10503.925972786155, + "RKT.L": 8713.771558781142, + "RMV.L": 11595.689566914132, + "RR.L": 10340.778253810651, + "RTO.L": 9901.621180730082, + "SBRY.L": 0.0, + "SDR.L": 9957.612266697603, + "SGE.L": 37028.42399498002, + "SGRO.L": 0.0, + "SHEL.L": 5425.000000000001, + "SMDS.L": 10014.289198467952, + "SMIN.L": 0.0, + "SMT.L": 10415.981206560891, + "SN.L": 5964.121476595857, + "SPX.L": 8624.713816706979, + "SSE.L": 9451.69606209279, + "STAN.L": 9985.940338048313, + "SVT.L": 10098.423242041346, + "TSCO.L": 10105.522627682276, + "TW.L": 10030.896000664825, + "ULVR.L": 9728.118161853596, + "UTG.L": 9589.695284932657, + "UU.L": 10480.661217228811, + "VOD.L": 10100.91265361703, + "VTY.L": 10350.20671970903, + "WEIR.L": 9633.390755773102, + "WPP.L": 10377.07025378275, + "WTB.L": 8701.988331698296 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 96ba38ba7..522baab1a 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11843,5 +11843,108 @@ "WEIR.L": 0.009999999252200529, "WPP.L": 0.009999994095751339, "WTB.L": 0.009999985142924894 + }, + "2024-08-07 07:00:00+00:00": { + "AAF.L": 0.020688911080931835, + "AAL.L": 0.00999999960748216, + "ABF.L": 0.009999945816858284, + "ADM.L": 0.010314734398404097, + "AHT.L": 0.016300856282752053, + "ANTO.L": 0.019158165899496097, + "AUTO.L": 0.010000010394054857, + "AV.L": 0.01000009186634221, + "AZN.L": 0.010000035907115878, + "BA.L": 0.010000009009973285, + "BARC.L": 0.009999998529820246, + "BATS.L": 0.010000004374486957, + "BDEV.L": 0.010000005988917164, + "BEZ.L": 0.010000007886614655, + "BKG.L": 0.010000006118080081, + "BME.L": 0.009999998238708781, + "BNZL.L": 0.009999993780393786, + "BP.L": 3.5165340852973893e-07, + "BRBY.L": 0.00999998765559359, + "BT-A.L": 2.3331169586223003e-08, + "CCH.L": 3.313966133265861e-07, + "CNA.L": 0.00999999569701218, + "CPG.L": 0.0020581448428390907, + "CRDA.L": 0.00999999118383683, + "CTEC.L": 2.0169784876739315e-07, + "DARK.L": 0.026351559752136978, + "DCC.L": 0.020555082758993558, + "DGE.L": 0.009999554375273252, + "DPLM.L": 0.010000006939931742, + "EDV.L": 0.005933180728940618, + "ENT.L": 0.010000010763853592, + "EXPN.L": 0.010000001593223708, + "EZJ.L": 0.008942826572276212, + "FCIT.L": 2.8906699428622824e-08, + "FRAS.L": 0.010000002810988467, + "FRES.L": 0.009999995533028655, + "GBPOUND": 1.3306589507350308e-07, + "GLEN.L": 0.008582919369049915, + "GSK.L": 0.009999994309457087, + "HIK.L": 0.010000002134358938, + "HL.L": 0.010000003367313758, + "HLMA.L": 0.010000003204174905, + "HLN.L": 2.834352735121042e-07, + "HSBA.L": 0.010000000126418315, + "HWDN.L": 0.009999999688773627, + "IAG.L": 0.009999965488749969, + "ICG.L": 0.01000001053404046, + "IHG.L": 0.014828483202508673, + "III.L": 0.010000004488032885, + "IMB.L": 0.010000019476359423, + "IMI.L": 0.009999995779737737, + "INF.L": 0.009999955926076231, + "ITRK.L": 0.009999998591214235, + "JD.L": 0.010950844384563846, + "KGF.L": 0.009999989013156992, + "LAND.L": 1.8035525921860034e-08, + "LGEN.L": 0.010000001837957588, + "LLOY.L": 7.532510417062289e-08, + "LMP.L": 6.435913038723536e-08, + "LSEG.L": 0.02846186295182186, + "MKS.L": 5.673025529139671e-08, + "MNDI.L": 0.010000001048941297, + "MNG.L": 0.010000001676706557, + "MRO.L": 0.038528196367806425, + "NG.L": 0.009999986794372357, + "NWG.L": 0.009999995347265506, + "NXT.L": 0.010000011310850605, + "PHNX.L": 3.5539096352833046e-08, + "PRU.L": 0.009999997096046643, + "PSH.L": 0.045948678118429016, + "PSN.L": 0.01000000003949352, + "PSON.L": 0.0023123684939618146, + "REL.L": 0.009999997518402524, + "RIO.L": 0.010000004123532065, + "RKT.L": 0.009999990520262327, + "RMV.L": 0.011577748661034042, + "RR.L": 0.009999999730712254, + "RTO.L": 0.009999998954060374, + "SBRY.L": 5.096566040833848e-08, + "SDR.L": 0.009999992805016233, + "SGE.L": 0.03697118536496331, + "SGRO.L": 6.791538863247651e-08, + "SHEL.L": 0.00541599613335705, + "SMDS.L": 0.009999995676933467, + "SMIN.L": 1.456376785453203e-07, + "SMT.L": 0.00999998914551479, + "SN.L": 0.006116807083929928, + "SPX.L": 0.009999988421029489, + "SSE.L": 0.009999999253708243, + "STAN.L": 0.009999994928478025, + "SVT.L": 0.010000004651339238, + "TSCO.L": 0.010000003799531462, + "TW.L": 0.009999998918870635, + "ULVR.L": 0.009999981484103082, + "UTG.L": 0.010000011523484006, + "UU.L": 0.009999995329960277, + "VOD.L": 0.01000006554014288, + "VTY.L": 0.010000001309391599, + "WEIR.L": 0.009999999370017679, + "WPP.L": 0.009999996787731115, + "WTB.L": 0.009999978413744849 } } \ No newline at end of file From c8f8fb28013a58481dafa38a1bea067d3628036b Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 7 Aug 2024 18:00:45 +0400 Subject: [PATCH 115/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-07 --- .../dow30_daily_initial_holdings.json | 45 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 72 insertions(+), 6 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index cd61b1632..daab559a7 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -5049,14 +5049,14 @@ "WMT": 0.0003773769479615056 }, "2024-08-06 13:30:00+00:00": { - "AAPL": 198687.41105259443, - "AMGN": 19509.699010694447, - "AMZN": 209136.10233079785, + "AAPL": 198600.3516074763, + "AMGN": 19510.299488874694, + "AMZN": 209187.85733320803, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 75745.19631731062, - "CSCO": 42007.33485533179, + "CSCO": 42016.72249111365, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -5071,14 +5071,47 @@ "MCD": 1.2721199307709582e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 212334.77067410242, + "MSFT": 212210.10500877575, "NKE": 9.837183337747952e-13, "PG": 0.0, "TRV": 0.0, "UNH": 96909.83067684302, - "USDOLLAR": -473.48157816139843, + "USDOLLAR": -473.4815057910291, "V": 31975.089089419416, "VZ": 0.0, "WMT": 0.0003759361430447269 + }, + "2024-08-07 13:30:00+00:00": { + "AAPL": 200138.4608479328, + "AMGN": 19256.544366663777, + "AMZN": 215359.87315409718, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 76222.74836745599, + "CSCO": 42645.7979577981, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 105477.80962462707, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2707057883595654e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 216791.1958315636, + "NKE": 1.0004658917084634e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 96636.93989345164, + "USDOLLAR": 293.5203792278877, + "V": 32109.35266711732, + "VZ": 0.0, + "WMT": 0.00037610242391381633 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 7e7d6fe40..3e084e8a8 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -5080,5 +5080,38 @@ "V": 0.032073592766238765, "VZ": 2.1511274939026708e-09, "WMT": 1.7079397960692193e-08 + }, + "2024-08-07 13:30:00+00:00": { + "AAPL": 0.19916805304153648, + "AMGN": 0.019161978945295487, + "AMZN": 0.21428176416967723, + "AXP": 6.821430641221944e-09, + "BA": 1.1746558157593291e-08, + "CAT": 5.971772110625181e-09, + "CRM": 0.07584871645952582, + "CSCO": 0.04243647704260548, + "CVX": 6.624580740211935e-09, + "DIS": 8.626731473143797e-09, + "DOW": 8.839880462059771e-09, + "GS": 7.027242007268628e-09, + "HD": 0.10495998716764807, + "HON": 4.105909435275089e-09, + "IBM": 3.0336779593358474e-09, + "INTC": 5.7791802321524405e-09, + "JNJ": 9.993202422732037e-09, + "JPM": 1.1537599710846586e-08, + "KO": 7.566444345380327e-09, + "MCD": 2.248376675916243e-08, + "MMM": 4.2898798335062465e-09, + "MRK": 8.175535983708884e-09, + "MSFT": 0.21572740249497138, + "NKE": 1.913729041630233e-08, + "PG": 5.674719927958688e-09, + "TRV": 4.960000438013966e-09, + "UNH": 0.09646369419310274, + "USDOLLAR": 2.7079047317728026e-09, + "V": 0.03195171977357369, + "VZ": 4.306121131956961e-09, + "WMT": 3.7302634687360125e-08 } } \ No newline at end of file From 10a15c3db29d82310b0c52d5f00c54361d22a840 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 7 Aug 2024 18:02:22 +0400 Subject: [PATCH 116/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-07 --- .../ndx100_daily_initial_holdings.json | 186 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 ++++++++++ 2 files changed, 249 insertions(+), 41 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index dfcd4278c..a36776f62 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15807,101 +15807,101 @@ "ZS": 16466.933919331404 }, "2024-08-06 13:30:00+00:00": { - "AAPL": 3667.263226890906, + "AAPL": 3665.6563314165337, "ABNB": 0.0, "ADBE": 15103.654330453768, "ADI": 0.0, "ADP": 0.0, - "ADSK": 528.5082183849782, + "ADSK": 539.5597841409503, "AEP": 0.0, "AMAT": -47.048056815950964, - "AMD": -1.6458353050311225e-11, - "AMGN": 24881.28823034448, - "AMZN": 19805.48810270955, - "ANSS": 2394.7275296797993, - "ARM": 40665.667191842986, - "ASML": 14.359428775404531, - "AVGO": -32.10364743198826, + "AMD": -1.646419913764681e-11, + "AMGN": 24882.054037683207, + "AMZN": 19810.389375483916, + "ANSS": 2395.7722136221573, + "ARM": 40651.59205190614, + "ASML": 14.709684542547595, + "AVGO": -32.12858332334392, "AZN": 0.0, - "BIIB": 12162.971153515833, - "BKNG": 9535.009420071867, + "BIIB": 12185.654957896792, + "BKNG": 9623.978574238155, "BKR": 0.0, "CCEP": 18160.25842435118, - "CDNS": -77.73458667966662, + "CDNS": -81.70256707647927, "CDW": 20697.18221326784, - "CEG": 60164.06569503517, + "CEG": 59956.88705929559, "CHTR": 17182.89751391972, - "CMCSA": 21982.080827052017, + "CMCSA": 21987.734408191438, "COST": 0.0, - "CPRT": 3615.2293339820726, - "CRWD": 1933.7126903388746, - "CSCO": 40745.83773047002, + "CPRT": 3604.5815838691715, + "CRWD": 1935.3101256960151, + "CSCO": 40754.94345178173, "CSGP": 8395.003447402441, "CSX": -6.301191038823475e-13, "CTAS": 0.0, "CTSH": 23538.42754941306, "DASH": 0.0, "DDOG": 7308.644783902339, - "DLTR": 20147.873801004287, + "DLTR": 20122.818876715075, "DXCM": 15483.182333605688, "EA": 13488.44361667287, "EXC": 0.0, - "FANG": 23193.330952741537, - "FAST": 14782.248521934467, - "FTNT": 23482.43727025796, + "FANG": 24095.114474646238, + "FAST": 14735.078505657071, + "FTNT": 23511.826925785917, "GEHC": 15156.991147050276, "GFS": 5439.763616503422, "GILD": 21583.265495443244, "GOOG": 7672.484575125442, - "GOOGL": -2.0709627501193094e-12, + "GOOGL": -2.0723806105237125e-12, "HON": 0.0, "IDXX": 0.0, "ILMN": 7896.417750487039, - "INTC": 1.287285177907252, - "INTU": 7204.371796526932, + "INTC": 1.2917350331964, + "INTU": 7226.520449842314, "ISRG": 14681.85857129964, "KDP": -8.801893492119299e-13, "KHC": 0.0, "KLAC": 39536.13974605269, "LIN": 0.0, "LRCX": -8.192516451374722, - "LULU": 18299.644460312935, + "LULU": 18425.09237631267, "MAR": 0.0, - "MCHP": 14662.981866375358, - "MDB": 22413.11399027835, + "MCHP": 14653.170628475558, + "MDB": 22861.375528961806, "MDLZ": 0.0, - "MELI": 26572.006125650896, + "MELI": 26757.531758921552, "META": -130.05987699715823, - "MNST": 14975.75566826757, + "MNST": 15011.362457268839, "MRNA": 14591.750296800134, "MRVL": 0.0, - "MSFT": 1640.112985390218, + "MSFT": 1639.1500447663839, "MU": 6.571297966269369, - "NFLX": 19815.45214302484, - "NVDA": 14448.04366543775, + "NFLX": 19799.134878915636, + "NVDA": 14449.156240136579, "NXPI": 23819.32370419655, - "ODFL": 8128.454584096689, + "ODFL": 8159.418762070837, "ON": 5794.640775406029, "ORLY": 16671.920852018546, - "PANW": 2992.9153908194717, - "PAYX": 5978.046204567626, + "PANW": 2994.112508262984, + "PAYX": 5969.907320166526, "PCAR": 0.0, "PDD": 21375.86302473177, - "PEP": 20582.54162851042, + "PEP": 20613.470698143938, "PYPL": 2.715746736015861, - "QCOM": 6006.019639891562, + "QCOM": 6013.9914036858045, "REGN": 12849.775915749127, - "ROP": 10895.484804473124, - "ROST": 6979.847366127028, + "ROP": 11588.577788942684, + "ROST": 6976.765881063507, "SBUX": 17199.482600080522, "SNPS": 0.0, "TEAM": 9470.932811506562, "TMUS": 20261.61838059224, - "TSLA": 13617.104375800185, + "TSLA": 13616.426470607445, "TTD": 33485.20029547074, "TTWO": 7828.03227327036, "TXN": 0.0, - "USDOLLAR": -802.6925912047603, + "USDOLLAR": -837.8571195256709, "VRSK": 2606.199951171874, "VRTX": 9397.602859420691, "WBA": 0.3548513502802701, @@ -15909,5 +15909,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 21282.0870147525 + }, + "2024-08-07 13:30:00+00:00": { + "AAPL": 3487.1559085309245, + "ABNB": 0.0, + "ADBE": 15317.115128628882, + "ADI": 631.4100036621097, + "ADP": 1815.309906005859, + "ADSK": 1027.009336667394, + "AEP": 0.0, + "AMAT": 1468.1402653725945, + "AMD": -1.6293649530956756e-11, + "AMGN": 26163.4327284977, + "AMZN": 18744.5663033775, + "ANSS": 3984.2402506375192, + "ARM": 43847.24550175978, + "ASML": 15.334578548550073, + "AVGO": -33.60659437852675, + "AZN": 0.0, + "BIIB": 13765.506738728945, + "BKNG": 6186.524257477566, + "BKR": 0.0, + "CCEP": 14474.955746306625, + "CDNS": -84.57777841369408, + "CDW": 24868.19190195837, + "CEG": 58603.64595670541, + "CHTR": 17420.12425794063, + "CMCSA": 24030.316623882412, + "COST": 0.0, + "CPRT": 4400.973659011837, + "CRWD": 1765.7129812050775, + "CSCO": 45452.927364934585, + "CSGP": 11898.411605605977, + "CSX": -6.634483813461089e-13, + "CTAS": 0.0, + "CTSH": 24395.767403795468, + "DASH": 0.0, + "DDOG": 9585.64896034325, + "DLTR": 20697.71850458898, + "DXCM": 13776.871620299062, + "EA": 12924.633725444244, + "EXC": 0.0, + "FANG": 23087.50835967404, + "FAST": 15946.926890158687, + "FTNT": 29809.13429003417, + "GEHC": 12958.932810816244, + "GFS": 7799.4405378093115, + "GILD": 23150.87324180454, + "GOOG": 5660.810534438304, + "GOOGL": -2.09840720064861e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7718.47540574608, + "INTC": 1.2682143348824853, + "INTU": 8001.442152324998, + "ISRG": 14664.284199921367, + "KDP": -8.87387127577824e-13, + "KHC": 0.0, + "KLAC": 19123.012885053577, + "LIN": 0.0, + "LRCX": -8.441239301267736, + "LULU": 17374.219918540683, + "MAR": 0.0, + "MCHP": 17619.58719098699, + "MDB": 23751.709659298736, + "MDLZ": 894.4000396728512, + "MELI": 25618.071982493548, + "META": -136.57372914547943, + "MNST": 16102.343931026233, + "MRNA": 13608.231636697497, + "MRVL": 0.0, + "MSFT": 39.99519731358985, + "MU": 6.879235504881002, + "NFLX": 19076.14174210925, + "NVDA": 9072.866853692401, + "NXPI": 22746.140363856543, + "ODFL": 8300.430051236304, + "ON": 6375.103612171486, + "ORLY": 21263.181608736268, + "PANW": -7.347920344267534, + "PAYX": 9360.018615104997, + "PCAR": 0.0, + "PDD": 24185.857291113705, + "PEP": 23848.395778876653, + "PYPL": 2.835849083615931, + "QCOM": 5225.200699436592, + "REGN": 12972.329820124794, + "ROP": 20085.322406003594, + "ROST": 8339.96516461317, + "SBUX": 17746.477990159805, + "SNPS": 0.0, + "TEAM": 6943.430152235626, + "TMUS": 22095.88423543637, + "TSLA": 11413.85959527516, + "TTD": 32893.49454195415, + "TTWO": 8484.721221290816, + "TXN": 0.0, + "USDOLLAR": 1576.0529910100472, + "VRSK": 8349.759765625, + "VRTX": 8021.675214499397, + "WBA": 0.3641198466280301, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18348.485096311702 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 33282542b..37aee99ed 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15702,5 +15702,109 @@ "WDAY": 5.144954493840206e-09, "XEL": 3.2713515987749613e-07, "ZS": 0.017885792707673268 + }, + "2024-08-07 13:30:00+00:00": { + "AAPL": 0.0033985392088800204, + "ABNB": 4.9137783965840574e-09, + "ADBE": 0.014843273446748231, + "ADI": 0.00025748012080564986, + "ADP": 0.0019860088262119886, + "ADSK": 0.00031452001303651077, + "AEP": 9.935227609047098e-09, + "AMAT": 0.00170342651048889, + "AMD": 3.936047990103281e-09, + "AMGN": 0.02678321457102039, + "AMZN": 0.01785469195464237, + "ANSS": 0.0040222979633029714, + "ARM": 0.043237739375865364, + "ASML": 1.5546101438771055e-08, + "AVGO": 2.006840508434805e-08, + "AZN": 1.8001150303313838e-08, + "BIIB": 0.01348245274095081, + "BKNG": 0.0072950013629417545, + "BKR": 2.6020886217850146e-08, + "CCEP": 0.014050819470273885, + "CDNS": 2.1653680020870727e-08, + "CDW": 0.02496551675510006, + "CEG": 0.05523678093197302, + "CHTR": 0.0176050839994236, + "CMCSA": 0.02386553367273187, + "COST": 1.3155026548460614e-08, + "CPRT": 0.0051182873342079825, + "CRWD": 0.002312488696708673, + "CSCO": 0.044450531875794896, + "CSGP": 0.01164234124271428, + "CSX": 8.000802148558113e-08, + "CTAS": 2.1252622691672702e-08, + "CTSH": 0.023693548107820026, + "DASH": 5.2120393520032204e-09, + "DDOG": 0.009982507490004202, + "DLTR": 0.020381066963647686, + "DXCM": 0.013712836573811516, + "EA": 0.012739334344885674, + "EXC": 4.605789639625502e-08, + "FANG": 0.021660321912042698, + "FAST": 0.01615286716063934, + "FTNT": 0.024421692025329518, + "GEHC": 0.012523580092091965, + "GFS": 0.008488066496530873, + "GILD": 0.02319384359231943, + "GOOG": 0.005494835059231421, + "GOOGL": 1.38753883370815e-07, + "HON": 1.0253669531061199e-08, + "IDXX": 1.7873694201409692e-06, + "ILMN": 0.00730281599930441, + "INTC": 9.46183943007339e-09, + "INTU": 0.007604270306180721, + "ISRG": 0.014002148224491235, + "KDP": 1.066939026465252e-07, + "KHC": 1.0278282821876618e-08, + "KLAC": 0.015383629378723269, + "LIN": 4.658679407853426e-07, + "LRCX": 8.815604950382915e-08, + "LULU": 0.016661092398882527, + "MAR": 2.7918888549743157e-08, + "MCHP": 0.017110173786406495, + "MDB": 0.02337106705192984, + "MDLZ": 0.0014683729629389741, + "MELI": 0.024568885879197234, + "META": 2.3375782747078917e-08, + "MNST": 0.015931574121591265, + "MRNA": 0.013466379165102158, + "MRVL": 1.0928934832509831e-08, + "MSFT": 1.6695740114275152e-07, + "MU": 1.6042894712339772e-08, + "NFLX": 0.018340687982127856, + "NVDA": 0.008414683926820038, + "NXPI": 0.022080367672792332, + "ODFL": 0.007946385533497288, + "ON": 0.006573539887388393, + "ORLY": 0.020883226005341978, + "PANW": 5.866597003475492e-07, + "PAYX": 0.00963258985337362, + "PCAR": 9.444483371224658e-09, + "PDD": 0.02305380744262314, + "PEP": 0.024338302051453636, + "PYPL": 2.3964295182835487e-06, + "QCOM": 0.004533194263659887, + "REGN": 0.013286562073161244, + "ROP": 0.01704167025202575, + "ROST": 0.008193256502465442, + "SBUX": 0.017280893284206202, + "SNPS": 5.097126698808205e-09, + "TEAM": 0.0066422999572895046, + "TMUS": 0.02143696647802673, + "TSLA": 0.011235332557788056, + "TTD": 0.0319314782834341, + "TTWO": 0.008432531546290733, + "TXN": 1.8256942104993496e-08, + "USDOLLAR": 1.669110090694089e-07, + "VRSK": 0.009204835569218188, + "VRTX": 0.007956553976692678, + "WBA": 3.1581552760038045e-08, + "WBD": 1.0633150958286222e-08, + "WDAY": 1.031924666072034e-08, + "XEL": 2.5528868386394247e-07, + "ZS": 0.017813257292209592 } } \ No newline at end of file From 934c3a32384d002ff34cd2018df6b7dabee942a4 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Wed, 7 Aug 2024 18:09:33 +0400 Subject: [PATCH 117/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-07 --- .../sp500_daily_initial_holdings.json | 637 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 ++++++++++++++ 2 files changed, 1076 insertions(+), 66 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index d9533cd5b..0d12a4f94 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -75873,8 +75873,8 @@ }, "2024-08-06 13:30:00+00:00": { "A": 0.0, - "AAL": 555.3801310393135, - "AAPL": 42015.51161691258, + "AAL": 554.5008811918395, + "AAPL": 41997.101557068614, "ABBV": 5794.943203892823, "ABNB": 0.0, "ABT": 3509.046278261835, @@ -75884,7 +75884,7 @@ "ADI": 0.0, "ADM": 0.0, "ADP": 0.0, - "ADSK": -14.445325720836477, + "ADSK": -14.747390024695555, "AEE": 0.0, "AEP": 0.0, "AES": 0.0, @@ -75899,14 +75899,14 @@ "ALLE": 0.0, "AMAT": 1771.7633063672156, "AMCR": 0.0, - "AMD": 28465.394616628422, + "AMD": 28475.505663733926, "AME": 0.0, - "AMGN": 5394.904196396531, + "AMGN": 5395.07024315372, "AMP": 8.644180092546762, "AMT": 676.84021638914, - "AMZN": 32510.96318286102, + "AMZN": 32519.008685092027, "ANET": 3421.1410060799317, - "ANSS": 292.1408992720517, + "ANSS": 292.268343794484, "AON": 18.742388794078558, "AOS": 0.0, "APA": 0.0, @@ -75916,12 +75916,12 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 19105.67481805442, + "AVGO": 19120.51478390406, "AVY": 0.0, "AWK": 0.0, - "AXON": 5036.2843378805255, + "AXON": 5093.3066745573715, "AXP": 0.0, - "AZO": 1.8313947528866037e-12, + "AZO": 1.831659510080604e-12, "BA": -1.0052500532929053e-12, "BAC": 0.0, "BALL": 0.0, @@ -75931,11 +75931,11 @@ "BDX": 0.0, "BEN": 173.064003778874, "BF-B": 0.0, - "BG": 588.8512702200644, - "BIIB": 1763.1795752195317, + "BG": 591.5668293228696, + "BIIB": 1766.4678852934414, "BIO": 0.0, "BK": 0.0, - "BKNG": 3175.6345520309646, + "BKNG": 3205.2657256972097, "BKR": 0.0, "BLDR": 450.2867368268187, "BLK": 9.54932213166703e-13, @@ -75960,7 +75960,7 @@ "CDNS": 0.0, "CDW": 360.29874463160087, "CE": -2.4676693656741803e-14, - "CEG": 34842.02734266588, + "CEG": 34722.04669295639, "CF": 9630.791251326764, "CFG": 0.0, "CHD": 2434.388747111732, @@ -75970,8 +75970,8 @@ "CINF": 0.015652976056608467, "CL": 9.99975022440975, "CLX": 16.06274515601592, - "CMCSA": 6236.703630631566, - "CME": 4997.973253342279, + "CMCSA": 6238.307651210677, + "CME": 4962.95546115014, "CMG": 5881.683957273336, "CMI": 0.0, "CMS": 0.0, @@ -75984,12 +75984,12 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 705.2320026007003, + "CPRT": 703.1549188415236, "CPT": 0.0, "CRL": 0.0, "CRM": 7262.063779060712, - "CRWD": 1147.6174686956108, - "CSCO": 6562.446309250508, + "CRWD": 1148.565512699317, + "CSCO": 6563.912859223303, "CSGP": -7.339102185274983e-14, "CSX": 0.0, "CTAS": 0.0, @@ -75999,7 +75999,7 @@ "CTVA": 103.4424585299145, "CVS": 0.0, "CVX": -5.206553017207808e-13, - "CZR": 7979.914147624831, + "CZR": 7953.703476296135, "D": 0.0, "DAL": 558.704327908893, "DAY": 0.0, @@ -76013,7 +76013,7 @@ "DHR": 1624.4060558558524, "DIS": -3.9099998101963735, "DLR": 2.931837933450148e-14, - "DLTR": 966.750726546418, + "DLTR": 965.5485219614878, "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, @@ -76037,8 +76037,8 @@ "EMR": 0.0, "ENPH": 3973.0932243570624, "EOG": 0.0, - "EPAM": 6020.875389110902, - "EQIX": 777.6054812611023, + "EPAM": 6034.271559943268, + "EQIX": 776.8767335101212, "EQR": 0.0, "EQT": 0.0, "ES": 0.0, @@ -76053,10 +76053,10 @@ "EXPE": 3736.83986203998, "EXR": 5.6097555272174816e-14, "F": 0.0, - "FANG": 13228.898740841492, - "FAST": 3119.6875343940997, + "FANG": 13743.253618187238, + "FAST": 3109.7326407553273, "FCX": 0.0, - "FDS": 1183.9287170597672, + "FDS": 1187.3169084068197, "FDX": 5442.4787628208505, "FE": 0.0, "FFIV": 2789.099913550592, @@ -76069,7 +76069,7 @@ "FOXA": 0.0, "FRT": 0.0, "FSLR": -7.135335096624401e-14, - "FTNT": 5702.2713984767215, + "FTNT": 5709.408127522322, "FTV": 0.0, "GD": 3.7813090595213647e-13, "GDDY": 0.0, @@ -76084,7 +76084,7 @@ "GM": 0.0, "GNRC": 0.0, "GOOG": 21923.89124541015, - "GOOGL": 2045.318327007662, + "GOOGL": 2046.7186302579723, "GPC": 0.0, "GPN": -9.630577849061669e-14, "GRMN": 2108.9438969836956, @@ -76097,7 +76097,7 @@ "HD": 8567.629333630694, "HES": 0.0, "HIG": 5341.287593319201, - "HII": 0.7051076763117573, + "HII": 0.7067600956041835, "HLT": -1.2754654159049703e-13, "HOLX": 2773.360443915046, "HON": 0.0, @@ -76116,8 +76116,8 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 3806.303142125644, - "INTC": 139.95213260495237, - "INTU": 1813.201712346109, + "INTC": 140.43591564556198, + "INTU": 1818.776102071105, "INVH": 0.0, "IP": 0.0, "IPG": 0.0, @@ -76125,14 +76125,14 @@ "IR": 0.04034775163508261, "IRM": 0.0, "ISRG": 6495.172339072208, - "IT": 7.54391320439048e-13, + "IT": 7.597177729856775e-13, "ITW": 0.0, "IVZ": 0.0, "J": 0.0, "JBHT": 0.0, "JBL": 2322.2420316788193, "JCI": 0.0, - "JKHY": 818.2379129088242, + "JKHY": 819.3368954259892, "JNJ": 13180.348687393549, "JNPR": 0.0, "JPM": 1975.5315974608018, @@ -76155,39 +76155,39 @@ "LEN": 0.0, "LH": 0.0, "LHX": 0.0, - "LIN": 1.65482422964915, + "LIN": 1.6569510885695435, "LKQ": 4305.214999473017, "LLY": 1.361224762403658, "LMT": 7133.78388407352, "LNT": 0.0, "LOW": -2.7917721554814423e-13, "LRCX": 731.9406156159037, - "LULU": 1409.1871945504922, + "LULU": 1418.8474694915308, "LUV": 24.217680822801462, - "LVS": 1669.7786070177049, + "LVS": 1678.6462914759263, "LW": 20.679146547785376, "LYB": 3169.4558893801327, "LYV": 2662.713830491041, "MA": 25989.01857264872, "MAA": 0.0, - "MAR": -5.223605185528936e-13, + "MAR": -5.252027773215358e-13, "MAS": 0.0, "MCD": 9832.352755825861, - "MCHP": 1949.5430954089168, + "MCHP": 1948.2386246485166, "MCK": 0.0, "MCO": 0.0, "MDLZ": 0.0, "MDT": 1.324501985533448, - "MET": -0.03261549879156129, + "MET": -0.03287916988670688, "META": 22030.436678626313, "MGM": 3197.2973556188344, "MHK": 0.0, "MKC": 0.0, - "MKTX": 5537.940505841273, + "MKTX": 5807.508428383202, "MLM": 0.0, "MMC": 0.0, "MMM": 0.0, - "MNST": 5172.459042701523, + "MNST": 5184.757230641477, "MO": -22.032384561229474, "MOH": 2086.261579635172, "MOS": 0.0, @@ -76197,8 +76197,8 @@ "MRNA": 5654.148069167182, "MRO": 0.0, "MS": 4926.547319087498, - "MSCI": 3074.814018779905, - "MSFT": 35969.70658624181, + "MSCI": 3091.274786434552, + "MSFT": 35948.58810720541, "MSI": 0.0, "MTB": -6.0935433216855595, "MTCH": 0.0, @@ -76209,7 +76209,7 @@ "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16215.078022708216, + "NFLX": 16201.725528465937, "NI": 0.0, "NKE": -2.968002540604135e-14, "NOC": -4.4259416688904337e-13, @@ -76219,13 +76219,13 @@ "NTAP": 5497.630952684783, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 141543.29837729342, + "NVDA": 141554.19794931923, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, "NXPI": 7352.59417069973, "O": 0.0, - "ODFL": 1351.0804799578018, + "ODFL": 1356.2272266125303, "OKE": 0.0, "OMC": 0.0, "ON": -2.543611718943925, @@ -76233,14 +76233,14 @@ "ORLY": -0.7802153811448256, "OTIS": 1587.3352604572924, "OXY": 0.0, - "PANW": 5717.521438077885, + "PANW": 5719.808353594501, "PARA": 1952.1391268918637, "PAYC": 0.0, - "PAYX": -0.6475802860448567, + "PAYX": -0.6466986299137074, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, - "PEP": 7457.632361592445, + "PEP": 7468.838831365515, "PFE": 0.0, "PFG": 74.8214459711185, "PG": 1.073931116205422, @@ -76253,19 +76253,19 @@ "PNC": 0.0, "PNR": 0.0, "PNW": 0.0, - "PODD": -60.831982172610815, + "PODD": -60.83517235865252, "POOL": 1022.6367178981487, "PPG": -0.3804869416357449, "PPL": 0.0, - "PRU": 14.406650591983677, + "PRU": 14.429858250939452, "PSA": 0.0, "PSX": 47.06907132402369, "PTC": 2.5266545045689883e-14, "PWR": -4.7305813366629295, "PYPL": 0.0, - "QCOM": 4389.127703574637, + "QCOM": 4394.95337372118, "QRVO": 0.0, - "RCL": 1234.2730686398702, + "RCL": 1288.4054351898842, "REG": 0.0, "REGN": 1082.7966341695032, "RF": 0.0, @@ -76274,18 +76274,18 @@ "RMD": 1053.8767211090365, "ROK": 1.0989138746134306, "ROL": 0.0, - "ROP": 4658.758158562335, - "ROST": 1086.5027657603944, + "ROP": 4974.658062015857, + "ROST": 1086.023093087262, "RSG": 0.0, "RTX": 0.0, "RVTY": 0.0, - "SBAC": 5704.783686887785, + "SBAC": 5715.472267903163, "SBUX": 8294.711664097415, "SCHW": 1.6572496211851386, "SHW": 1.4576568842216924, "SJM": 1.0330637049805063, "SLB": 0.0, - "SMCI": 12072.40700530486, + "SMCI": 12072.603177325404, "SNA": 0.0, "SNPS": 0.0, "SO": 11.190565090841888, @@ -76294,9 +76294,9 @@ "SPGI": -5.634515939895149, "SRE": 0.0, "STE": 0.5279722246719376, - "STLD": -2.6069295136772654e-14, + "STLD": -2.6114386380874772e-14, "STT": 308.93950599528415, - "STX": -12.105590535398816, + "STX": -12.076495417512216, "STZ": 236.5953483617366, "SWK": 0.0, "SWKS": 0.0, @@ -76305,8 +76305,8 @@ "SYY": 0.0, "T": 0.0, "TAP": 0.0, - "TDG": 4592.977279582442, - "TDY": -15.4076578292409, + "TDG": 4640.067306205594, + "TDY": -15.426544581957545, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, @@ -76321,15 +76321,15 @@ "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, - "TSCO": -2.7035545960652326e-12, - "TSLA": 98349.35940529958, + "TSCO": -2.7359572219060137e-12, + "TSLA": 98344.46324385413, "TSN": 5185.643947199408, "TT": 0.0, "TTWO": 686.2120339149479, "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3317.9212501701086, + "UAL": 3317.0561224376243, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -76339,7 +76339,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 151.35486979443027, + "USDOLLAR": 116.18922141311785, "V": 1523.5395042407656, "VICI": 0.0, "VLO": 0.0, @@ -76367,7 +76367,512 @@ "WST": 0.0, "WTW": 0.0, "WY": 0.0, - "WYNN": 2353.0623177643756, + "WYNN": 2365.539446651604, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 + }, + "2024-08-07 13:30:00+00:00": { + "A": 0.0, + "AAL": 550.9839377018628, + "AAPL": 42322.358433274894, + "ABBV": 6623.734126752039, + "ABNB": 0.0, + "ABT": 3530.303583989565, + "ACGL": 0.0, + "ACN": 2.518603838673762e-13, + "ADBE": 9211.492601543425, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.139049259143551, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3504.431481655965, + "AIG": 0.0, + "AIZ": 1.4781032724840948, + "AJG": 0.0, + "AKAM": -0.0773914136974406, + "ALB": 0.0, + "ALGN": 606.0650154330561, + "ALL": 6.67600317248596e-14, + "ALLE": 0.0, + "AMAT": 1832.4586530650295, + "AMCR": 0.0, + "AMD": 27378.03314483712, + "AME": 0.0, + "AMGN": 5645.900807278653, + "AMP": 8.827465234932973, + "AMT": 1133.5407561494414, + "AMZN": 33504.3709846473, + "ANET": 3541.0385759572105, + "ANSS": 299.6206362435314, + "AON": 18.74758229848501, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 24.22112550794633, + "APTV": 2.458773167301775e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 20000.115728240242, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 5807.848092785845, + "AXP": 0.0, + "AZO": 1.8356078831012927e-12, + "BA": -9.940005891799696e-13, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 491.89714760115174, + "BDX": 0.0, + "BEN": 178.71177069170727, + "BF-B": 0.0, + "BG": 588.2340527499396, + "BIIB": 1790.9973114798815, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3193.674116699671, + "BKR": 0.0, + "BLDR": 675.9049323707632, + "BLK": 852.2600097656266, + "BMY": 95.55231007361131, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3292382871243247, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1320.29820047456, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20373.67374491446, + "CAT": 0.0, + "CB": 34.00092294124401, + "CBOE": 0.0, + "CBRE": 5234.578752301244, + "CCI": 326.05847010519665, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 573.1553106368797, + "CE": -2.5159100203676008e-14, + "CEG": 38391.662093047315, + "CF": 9826.04609217458, + "CFG": 0.0, + "CHD": 2463.5692390661698, + "CHRW": 0.0, + "CHTR": 3900.735410050413, + "CI": 3.82833792738555e-13, + "CINF": 0.01577835903475665, + "CL": 10.142899668358027, + "CLX": 16.093080666073742, + "CMCSA": 6294.436136387449, + "CME": 6095.899346714592, + "CMG": 6056.1453584584915, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 980.806712452948, + "CNP": 0.0, + "COF": 7916.286570052301, + "COO": 0.0, + "COP": 0.0, + "COR": 3133.8036171994704, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 692.6311580903663, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7307.849038253238, + "CRWD": 235.9007604415615, + "CSCO": 6662.187934012044, + "CSGP": -7.49423998305905e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 9191.013209629224, + "CTVA": 104.02870845665923, + "CVS": 0.0, + "CVX": -5.209795945346561e-13, + "CZR": 8468.03086711082, + "D": 0.0, + "DAL": 566.1576474005645, + "DAY": 0.0, + "DD": 0.0, + "DE": 9.891459197747874e-14, + "DECK": 859.1501716350248, + "DFS": 3246.9757260881483, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.942125172990449, + "DHR": 1618.2328046949121, + "DIS": -3.8998069840857736, + "DLR": 3.016628157669839e-14, + "DLTR": 974.464662444063, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.419927716895014, + "DRI": 2.400485813485922, + "DTE": 0.0, + "DUK": 1.2955402021866596, + "DVA": 3557.8699944522186, + "DVN": 0.0, + "DXCM": 5399.233978225871, + "EA": 3533.1202295986645, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.312648333929495e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.183154880897046e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 4250.452948125132, + "EOG": 0.0, + "EPAM": 5945.498858947348, + "EQIX": 793.415897244122, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.0713891338788923, + "EXPE": 3802.647856223239, + "EXR": 5.810180065588531e-14, + "F": 0.0, + "FANG": 13250.292120378494, + "FAST": 3128.6944979247032, + "FCX": 0.0, + "FDS": 1196.4503602345628, + "FDX": 5522.740273425175, + "FE": 0.0, + "FFIV": 2631.020054904596, + "FI": 2.5464706660190384e-13, + "FICO": 1585.2956441474341, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.487761459453492e-14, + "FTNT": 6696.3201349649835, + "FTV": 0.0, + "GD": 3.7913412336991436e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1763.604754257567, + "GEN": 0.0, + "GEV": 10789.450099947227, + "GILD": 7224.90512969633, + "GIS": 7963.338561536129, + "GL": 0.30488549982329527, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 22730.411798595447, + "GOOGL": 2395.0849243006264, + "GPC": 0.0, + "GPN": -1.0145275857580386e-13, + "GRMN": 2158.392568355757, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.1633712189749703, + "HBAN": 0.0, + "HCA": 5833.974753065678, + "HD": 9791.132878293323, + "HES": 0.0, + "HIG": 5369.6877834129455, + "HII": 0.7090734489953654, + "HLT": -1.297778353872756e-13, + "HOLX": 2792.296024265196, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10712.11352710613, + "HUBB": 1.272342353348605e-13, + "HUM": 1387.6048496531162, + "HWM": 2488.7218839187863, + "IBM": 0.0, + "ICE": 1052.7052455348037, + "IDXX": -9.78187180771528, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3790.2920286147955, + "INTC": 137.87877295031123, + "INTU": 1857.021932116218, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04121191849438621, + "IRM": 0.0, + "ISRG": 6687.3598140233535, + "IT": 7.873888451921643e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2412.5290413560874, + "JCI": 0.0, + "JKHY": 835.6217003812425, + "JNJ": 13001.936615524877, + "JNPR": 0.0, + "JPM": 2057.525266660523, + "K": 823.806690562325, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 1463.2069214359376, + "KMB": 4610.3149067486065, + "KMI": 0.0, + "KMX": 1.0839489892060927, + "KO": 206.19106341825983, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.20940633121673616, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6765403269137562, + "LKQ": 4368.252989808102, + "LLY": 1.3425262897538348, + "LMT": 7593.820704729843, + "LNT": 0.0, + "LOW": -2.863204169825331e-13, + "LRCX": 754.1621585263102, + "LULU": 1448.7942481069845, + "LUV": 24.760769272041333, + "LVS": 1721.6544511592422, + "LW": 21.109201528938776, + "LYB": 3221.7124791928077, + "LYV": 2720.455836170181, + "MA": 26868.18370024232, + "MAA": 0.0, + "MAR": -5.337048894919803e-13, + "MAS": 0.0, + "MCD": 9821.422695931775, + "MCHP": 2005.3710205642465, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3302635276560173, + "MET": -0.033606799802880984, + "META": 23133.79776584816, + "MGM": 3434.410880012557, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5624.309618340655, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 5210.378683571916, + "MO": -22.148533528942714, + "MOH": 2035.1232920418938, + "MOS": 0.0, + "MPC": 13401.790452551631, + "MPWR": -9.18530026726436e-13, + "MRK": 5068.946171436824, + "MRNA": 5598.88484081517, + "MRO": 0.0, + "MS": 5055.321695156306, + "MSCI": 3126.394645222492, + "MSFT": 37541.89915015206, + "MSI": 0.0, + "MTB": -6.146714425055306, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3649.579709202827, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16002.289628429471, + "NI": 0.0, + "NKE": -3.018532039536318e-14, + "NOC": -4.337374151186942e-13, + "NOW": 5462.324243560319, + "NRG": 0.0, + "NSC": -2.9458244263865644e-14, + "NTAP": 5586.508164912689, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 137599.37996060748, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7547.535019201322, + "O": 0.0, + "ODFL": 1379.6655811329451, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.5830446933773525, + "ORCL": 6969.68550951241, + "ORLY": 1108.222530338995, + "OTIS": 1594.9536052393798, + "OXY": 0.0, + "PANW": 6241.172529099658, + "PARA": 1948.4349699096474, + "PAYC": 0.0, + "PAYX": -0.6483063278707601, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 7397.288162510984, + "PFE": 0.0, + "PFG": 75.82562662838077, + "PG": 1.0782166927061752, + "PGR": 8386.501559530501, + "PH": 0.0, + "PHM": -12.092596139630322, + "PKG": -5.180110731576992e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -60.64684910141861, + "POOL": 1034.0732118753604, + "PPG": -0.3824337396918775, + "PPL": 0.0, + "PRU": 14.855792013243768, + "PSA": 0.0, + "PSX": 47.9926222509717, + "PTC": 2.5646928677639716e-14, + "PWR": -4.9630031608585226, + "PYPL": 0.0, + "QCOM": 4698.809922902828, + "QRVO": 0.0, + "RCL": 1196.5376437242467, + "REG": 0.0, + "REGN": 1093.1237368390262, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 1722.7922346018875, + "ROK": 1.122419634588018, + "ROL": 0.0, + "ROP": 5541.716178208833, + "ROST": 1104.6511545101052, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 5721.207584653431, + "SBUX": 8449.56478749461, + "SCHW": 1.6869856702390913, + "SHW": 1.4878289125153887, + "SJM": 1.014052849028772, + "SLB": 0.0, + "SMCI": 10454.273720683743, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 11.191853618207858, + "SOLV": -1.6091361787668207e-12, + "SPG": 0.0, + "SPGI": -5.739262874375982, + "SRE": 0.0, + "STE": 0.5282829257694653, + "STLD": -2.6666219660875724e-14, + "STT": 315.5272134084378, + "STX": -12.242015275030425, + "STZ": 1193.7406908803796, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": 640.3949255792481, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 6001.383124164663, + "TDY": -15.67015028494087, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 438.60860858658157, + "TMO": 0.0, + "TMUS": 7667.410698804033, + "TPR": 2431.827412764329, + "TRGP": 408.27305597053953, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.754850003260421e-12, + "TSLA": 95179.85466087461, + "TSN": 5115.198214996225, + "TT": 0.0, + "TTWO": 694.3372267248623, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3418.2546204173486, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 2626.7522521588535, + "UNH": 16864.016037680143, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 1084.582501779655, + "V": 1801.9690611690323, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 12295.788540680047, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2688.2080553074898, + "VRTX": 1885.8096179770923, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.286106084842397e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.3727252265396417, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.45505191216704, + "WMB": 0.0, + "WMT": 11634.640641128937, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2511.426026923719, "XEL": 0.0, "XOM": 0.0, "XYL": 0.0, diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 182ec49df..138422a80 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -73349,5 +73349,510 @@ "ZBH": 2.8090749031713443e-09, "ZBRA": 1.8442637929363255e-09, "ZTS": 6.188237182781181e-09 + }, + "2024-08-07 13:30:00+00:00": { + "A": 3.742226479803878e-09, + "AAL": 0.0004926092823767709, + "AAPL": 0.037838420162017654, + "ABBV": 0.006094204774306811, + "ABNB": 1.2614142349755937e-09, + "ABT": 0.003157482363672125, + "ACGL": 1.811197254064779e-08, + "ACN": 1.3069571790856641e-08, + "ADBE": 0.008235427302065144, + "ADI": 1.4997445877245383e-08, + "ADM": 8.410326606812579e-09, + "ADP": 2.01414430514363e-08, + "ADSK": 1.8719167707833347e-08, + "AEE": 6.952115022159247e-09, + "AEP": 6.046448413998477e-09, + "AES": 2.2520440895731535e-09, + "AFL": 0.003133151980051404, + "AIG": 3.335984937769356e-09, + "AIZ": 2.4071122247404318e-08, + "AJG": 1.3003910727167948e-08, + "AKAM": 8.500557383777247e-09, + "ALB": 1.9160334794951045e-09, + "ALGN": 0.00036786520386307767, + "ALL": 2.5669350666121697e-08, + "ALLE": 3.653296987675729e-09, + "AMAT": 0.0016382773668750918, + "AMCR": 1.1201231756442705e-09, + "AMD": 0.02447739770727715, + "AME": 3.9739059000941624e-09, + "AMGN": 0.005308104424806069, + "AMP": 7.578284565884055e-08, + "AMT": 0.00122170112541944, + "AMZN": 0.029954672845356595, + "ANET": 0.0030315478358340685, + "ANSS": 0.0002678334209612134, + "AON": 3.19829481593026e-08, + "AOS": 4.041495117942548e-09, + "APA": 2.0979625897225436e-09, + "APD": 1.0664464223500935e-08, + "APH": 4.3368807930690485e-08, + "APTV": 6.800539847562918e-09, + "ARE": 3.0893430402771513e-09, + "ATO": 7.024296704443499e-09, + "AVB": 6.283391335084807e-09, + "AVGO": 0.01788112186778156, + "AVY": 6.345832888148938e-09, + "AWK": 2.3803036534862475e-08, + "AXON": 0.005154226412305888, + "AXP": 7.986500301248029e-09, + "AZO": 0.00045181892102974936, + "BA": 1.5254511993340547e-08, + "BAC": 5.189734877866575e-09, + "BALL": 1.6086230072428583e-08, + "BAX": 7.1516980033739306e-09, + "BBWI": 5.447375948718302e-09, + "BBY": 0.000439819014492498, + "BDX": 1.2939666252187467e-08, + "BEN": 0.00015977890946308854, + "BF-B": 9.019826694557755e-09, + "BG": 0.0005258910736259235, + "BIIB": 0.0016012724573550652, + "BIO": 4.1004434036195614e-09, + "BK": 5.2466306784514276e-09, + "BKNG": 0.0014348653477172248, + "BKR": 2.7386900061551e-09, + "BLDR": 0.0006043032022519765, + "BLK": 0.0007625596285484261, + "BMY": 8.542959954321382e-05, + "BR": 9.775993919325401e-09, + "BRK-B": 1.09852574645499e-08, + "BRO": 2.843091022577578e-07, + "BSX": 1.2618705559447683e-08, + "BWA": 3.8442611134710044e-09, + "BX": 0.0011803883083533631, + "BXP": 3.3092369227694354e-09, + "C": 5.215539231496467e-09, + "CAG": 1.4854600021196845e-08, + "CAH": 1.0374795605594063e-08, + "CARR": 0.018244403744621596, + "CAT": 2.5087751130816312e-09, + "CB": 5.11167565495866e-05, + "CBOE": 5.902911316986658e-08, + "CBRE": 0.004679991321465474, + "CCI": 0.0002965705446573724, + "CCL": 2.3474040341560407e-09, + "CDNS": 1.5290121814038842e-08, + "CDW": 0.0006030282539601322, + "CE": 7.082318377383789e-09, + "CEG": 0.03432390940150422, + "CF": 0.008784987041112257, + "CFG": 5.22745965023838e-09, + "CHD": 0.0022025724410088586, + "CHRW": 1.9289520244999607e-08, + "CHTR": 0.0034784439563148926, + "CI": 4.476543273705367e-08, + "CINF": 4.286544435772883e-08, + "CL": 9.075382566390802e-06, + "CLX": 1.4416879973846919e-05, + "CMCSA": 0.0056275586054750455, + "CME": 0.005668976285011016, + "CMG": 0.005414477205391866, + "CMI": 4.461881315620901e-09, + "CMS": 4.825203599525883e-09, + "CNC": 0.000876894774089147, + "CNP": 4.187112935623783e-09, + "COF": 0.007077543528018115, + "COO": 1.0055211922073554e-08, + "COP": 5.867124461383527e-09, + "COR": 0.002801851936979845, + "COST": 1.0408543626849466e-08, + "CPAY": 1.7182398740231187e-08, + "CPB": 2.105030864130331e-08, + "CPRT": 0.0006192514665270036, + "CPT": 6.2338531784589224e-09, + "CRL": 1.938553827616934e-09, + "CRM": 0.006533561527210416, + "CRWD": 7.467661503799967e-06, + "CSCO": 0.0059563607992022104, + "CSGP": 1.5614597101549412e-08, + "CSX": 8.696897921894118e-09, + "CTAS": 1.374816498779134e-08, + "CTLT": 4.353449439850591e-09, + "CTRA": 2.113846794850101e-09, + "CTSH": 0.008217212666738204, + "CTVA": 9.300857083934778e-05, + "CVS": 7.342381189924033e-09, + "CVX": 9.480896279125171e-09, + "CZR": 0.007570854340804933, + "D": 1.1244929832390808e-08, + "DAL": 0.0005061751579308146, + "DAY": 2.1003884388065998e-09, + "DD": 5.505685224613987e-09, + "DE": 9.446696102600564e-09, + "DECK": 0.0007853981205653947, + "DFS": 0.0029029502438176254, + "DG": 4.813049701616384e-09, + "DGX": 2.4472517360846337e-08, + "DHI": 5.388119752064479e-08, + "DHR": 0.0014467722678587697, + "DIS": 1.132089135431121e-08, + "DLR": 1.0606007427191675e-08, + "DLTR": 0.0008712311291698434, + "DOC": 2.0424166338687743e-09, + "DOV": 5.384400823008442e-09, + "DOW": 5.28798547101155e-09, + "DPZ": 1.1182688825766018e-05, + "DRI": 2.1455082681287147e-06, + "DTE": 7.06869903255184e-09, + "DUK": 1.143035377445315e-06, + "DVA": 0.003180875014559969, + "DVN": 1.9594667571788866e-09, + "DXCM": 0.0048272025734472585, + "EA": 0.003158792010049207, + "EBAY": 9.241653398314024e-09, + "ECL": 5.470241257245894e-09, + "ED": 1.2106507127091393e-08, + "EFX": 5.240193230045385e-09, + "EG": 3.4714886112886e-08, + "EIX": 1.0906384582669258e-08, + "EL": 4.653755303662311e-09, + "ELV": 2.3801991601701253e-08, + "EMN": 3.983515079168995e-09, + "EMR": 3.0147431824130856e-09, + "ENPH": 0.0038301184579697827, + "EOG": 5.724308737179994e-09, + "EPAM": 0.0051894008829855886, + "EQIX": 0.0007080342754039384, + "EQR": 5.5154076248849124e-09, + "EQT": 1.6205369787961973e-09, + "ES": 4.87530532320401e-09, + "ESS": 9.329340938018318e-09, + "ETN": 1.860151326503197e-09, + "ETR": 1.1043540427117294e-08, + "ETSY": 7.340349317870243e-09, + "EVRG": 3.425311030952537e-09, + "EW": 5.828966624141868e-09, + "EXC": 6.8325308789855395e-09, + "EXPD": 2.439581930255774e-08, + "EXPE": 0.0033451613809205413, + "EXR": 2.4524495472759932e-08, + "F": 1.6008404549703082e-09, + "FANG": 0.011846456049697335, + "FAST": 0.0027972159195056674, + "FCX": 2.6275589509962014e-09, + "FDS": 0.0010692127094259836, + "FDX": 0.004937570229385987, + "FE": 5.833766728554733e-09, + "FFIV": 0.0023269521383159713, + "FI": 2.0994313451575558e-08, + "FICO": 0.0015547244124935315, + "FIS": 6.452343321400203e-09, + "FITB": 9.358416845268259e-09, + "FMC": 6.479856812072466e-09, + "FOX": 3.0721431239481185e-09, + "FOXA": 4.247789978579161e-09, + "FRT": 3.360732468927785e-09, + "FSLR": 3.5485251986688704e-09, + "FTNT": 0.0059688702266437795, + "FTV": 2.108757245915629e-09, + "GD": 2.1133522060026355e-08, + "GDDY": 1.76940433624605e-08, + "GE": 4.076085996831618e-09, + "GEHC": 0.0015767706599136362, + "GEN": 3.0660621084642562e-09, + "GEV": 0.009488352932086205, + "GILD": 0.006459439140677176, + "GIS": 0.007119658055672643, + "GL": 2.8241208720559263e-08, + "GLW": 3.677192538855556e-09, + "GM": 3.1520199785354597e-09, + "GNRC": 3.1585434509495744e-09, + "GOOG": 0.020520428818766038, + "GOOGL": 0.0022770772825522435, + "GPC": 9.858724336363989e-09, + "GPN": 1.404058742030338e-08, + "GRMN": 0.001929749464628205, + "GS": 7.240369044401696e-09, + "GWW": 3.800244320803228e-09, + "HAL": 2.6311710630778442e-09, + "HAS": 1.0387481468578678e-06, + "HBAN": 2.2027241573067334e-09, + "HCA": 0.00516502667189533, + "HD": 0.008833467387260142, + "HES": 6.2047859851106816e-09, + "HIG": 0.004800784800914012, + "HII": 4.1905726765602896e-08, + "HLT": 1.7846433783522664e-08, + "HOLX": 0.0024964344264772243, + "HON": 5.356176398994834e-09, + "HPE": 1.639044614354727e-09, + "HPQ": 2.928535423799186e-09, + "HRL": 1.0853654833016744e-08, + "HSIC": 1.12594838716605e-08, + "HST": 2.941710136518782e-09, + "HSY": 0.00957719151336502, + "HUBB": 1.8500887738641983e-09, + "HUM": 0.0014298256479133257, + "HWM": 0.0022384765829845444, + "IBM": 4.728262759114754e-09, + "ICE": 0.0009453378610062768, + "IDXX": 2.0742116592649854e-08, + "IEX": 4.691191719342399e-09, + "IFF": 5.972466541591566e-09, + "INCY": 0.003388712444928083, + "INTC": 0.00012326911732758053, + "INTU": 0.0017895703953228449, + "INVH": 2.8064514275265913e-09, + "IP": 3.8686558313839455e-09, + "IPG": 6.068115964794681e-09, + "IQV": 3.856745431389406e-09, + "IR": 1.9965396439332436e-08, + "IRM": 7.020270902059919e-09, + "ISRG": 0.0059788363182736465, + "IT": 2.4740025611007948e-08, + "ITW": 7.348997026812157e-09, + "IVZ": 2.612664360680116e-09, + "J": 6.356641902760109e-09, + "JBHT": 6.467255056193064e-09, + "JBL": 0.0021569273404451355, + "JCI": 2.422830437813465e-09, + "JKHY": 0.0007569280706483444, + "JNJ": 0.01162454572896035, + "JNPR": 4.980144994489551e-09, + "JPM": 0.0018395154477282463, + "K": 0.001008100171411091, + "KDP": 3.728139047279394e-09, + "KEY": 1.7921995947942258e-09, + "KEYS": 4.404340696409152e-09, + "KHC": 1.8529328773027236e-09, + "KIM": 2.8403989284990177e-09, + "KKR": 7.108559457367326e-09, + "KLAC": 0.0009902541322779881, + "KMB": 0.0041219033081386965, + "KMI": 1.0228493253263571e-09, + "KMX": 1.574476002864503e-08, + "KO": 0.00018434731864883569, + "KR": 1.7187000229277413e-08, + "KVUE": -2.8020964028070783e-10, + "L": 1.0221563953422668e-08, + "LDOS": 1.3983781162845926e-07, + "LEN": 2.1017108099265154e-08, + "LH": 5.185280794755714e-09, + "LHX": 8.267495243090213e-09, + "LIN": 1.0839872295240765e-06, + "LKQ": 0.0038714404885031237, + "LLY": 6.560786136279002e-08, + "LMT": 0.007014272348616106, + "LNT": 4.185134571127012e-09, + "LOW": 2.4925715357673634e-08, + "LRCX": 0.0004386120193690272, + "LULU": 0.0012952520062420555, + "LUV": 2.213788756537994e-05, + "LVS": 0.0015392413004231519, + "LW": 3.7216568311372914e-08, + "LYB": 0.002880350395218972, + "LYV": 0.002432264120230355, + "MA": 0.024043392748150788, + "MAA": 8.04785808422217e-09, + "MAR": 1.6882049073761592e-08, + "MAS": 5.922540108715406e-09, + "MCD": 0.008896180652562086, + "MCHP": 0.001792951201005135, + "MCK": 1.273367268976337e-07, + "MCO": 5.63964812768986e-09, + "MDLZ": 8.481503178650875e-09, + "MDT": 1.1980329269798856e-06, + "MET": 7.077747192535672e-09, + "META": 0.02014640120945817, + "MGM": 0.003067748101884518, + "MHK": 6.018154256546919e-09, + "MKC": 8.860850906060749e-09, + "MKTX": 0.005028397373031918, + "MLM": 3.841307923751624e-09, + "MMC": 6.680740329307325e-09, + "MMM": 5.350025046243455e-09, + "MNST": 0.004658355131164388, + "MO": 1.0062378279440215e-08, + "MOH": 0.0018266843431846576, + "MOS": 1.6163515005815565e-09, + "MPC": 0.011480851700617361, + "MPWR": 1.3230501708767146e-07, + "MRK": 0.004531983089665927, + "MRNA": 0.0050017859027234445, + "MRO": 1.1373165017003348e-09, + "MS": 0.00451971653398782, + "MSCI": 0.002740036527622293, + "MSFT": 0.03368389218287176, + "MSI": 1.288390436189037e-08, + "MTB": 2.8993602631441397e-08, + "MTCH": 7.472528129855045e-09, + "MTD": 9.036808921454387e-09, + "MU": 0.0032631718915856326, + "NCLH": 2.725230572064445e-09, + "NDAQ": 1.0004265547682674e-08, + "NDSN": 5.1440401983601335e-09, + "NEE": 5.889593898994578e-09, + "NEM": 2.7759586504015358e-09, + "NFLX": 0.014305716238169886, + "NI": 3.481525933049144e-09, + "NKE": 2.472282689663708e-08, + "NOC": 7.223287655473672e-07, + "NOW": 0.004883649251733479, + "NRG": 1.964303939027508e-09, + "NSC": 1.3504036112085067e-08, + "NTAP": 0.004994604316426409, + "NTRS": 5.418508014716265e-09, + "NUE": 6.959627265617179e-09, + "NVDA": 0.12085434460596695, + "NVR": 0.001632426555917611, + "NWS": 1.899125139582112e-09, + "NWSA": 1.9372473429028153e-09, + "NXPI": 0.006708874597245434, + "O": 1.0129662600409306e-08, + "ODFL": 0.0010221583496405253, + "OKE": 5.167977128350069e-09, + "OMC": 5.045651317462015e-09, + "ON": 1.068257315164807e-08, + "ORCL": 0.006231419671747078, + "ORLY": 0.0010865371095292863, + "OTIS": 0.0014259683802040836, + "OXY": 3.654696383090805e-09, + "PANW": 0.005589837363573962, + "PARA": 0.0017420021737605794, + "PAYC": 1.3948666030152575e-08, + "PAYX": 1.7832194857603878e-08, + "PCAR": 9.494803724584194e-09, + "PCG": 3.3207128138224464e-09, + "PEG": 6.93470186072591e-09, + "PEP": 0.006613573537251588, + "PFE": 6.451387526311726e-09, + "PFG": 6.777937483170211e-05, + "PG": 7.575576593505112e-07, + "PGR": 0.007522506487643317, + "PH": 3.906041534204316e-09, + "PHM": 1.7870863243699155e-08, + "PKG": 2.371439670499494e-08, + "PLD": 6.952997668513167e-09, + "PM": 2.2490987003070827e-08, + "PNC": 1.2125297214558157e-08, + "PNR": 2.4905646634632557e-09, + "PNW": 5.540146979757927e-09, + "PODD": 2.590028233334705e-05, + "POOL": 0.0008386373908149436, + "PPG": 1.0917567421693086e-08, + "PPL": 5.517382723871562e-09, + "PRU": 1.311647353629412e-05, + "PSA": 6.82448475624286e-09, + "PSX": 8.012874585765629e-08, + "PTC": 1.7918949895870283e-08, + "PWR": 8.062139432902404e-09, + "PYPL": 1.944788279238372e-09, + "QCOM": 0.0042052528008119944, + "QRVO": 1.3651003858201561e-09, + "RCL": 0.0007199510967445691, + "REG": 4.913824514272451e-09, + "REGN": 0.0012746961231793008, + "RF": 3.11477989897342e-09, + "RJF": 1.0594611027842114e-08, + "RL": 5.426118638410794e-09, + "RMD": 0.0018977452922567003, + "ROK": 8.781536395122834e-09, + "ROL": 5.503487590589068e-09, + "ROP": 0.005119848915035904, + "ROST": 0.0009876137842645622, + "RSG": 1.7014051208569273e-08, + "RTX": 1.432305992564001e-08, + "RVTY": 3.682918475788158e-09, + "SBAC": 0.005115248319846258, + "SBUX": 0.007554330271527269, + "SCHW": 1.4437116262189462e-06, + "SHW": 2.8953752957199544e-07, + "SJM": 8.451538356768422e-07, + "SLB": 2.5428016504838647e-09, + "SMCI": 0.010094733190591728, + "SNA": 4.7290758098105e-09, + "SNPS": 3.556345796229756e-09, + "SO": 1.002561701917678e-05, + "SOLV": -1.3347779712486528e-09, + "SPG": 6.0146028446735205e-09, + "SPGI": 7.799552832571785e-09, + "SRE": 1.1224713142674202e-08, + "STE": 1.4488375634160034e-05, + "STLD": 1.6828565652111093e-08, + "STT": 0.0002820959148403961, + "STX": 1.2150256328264696e-08, + "STZ": 0.0014879973500478874, + "SWK": 3.743035422092092e-09, + "SWKS": 3.969096090606124e-09, + "SYF": 5.29488233742624e-09, + "SYK": 0.0006141786522257279, + "SYY": 1.392021681712562e-08, + "T": 6.5759853281333555e-09, + "TAP": 7.177846857653179e-09, + "TDG": 0.005553971118489126, + "TDY": 1.5531969122714245e-08, + "TECH": 1.755165846632088e-08, + "TEL": 9.028645015479034e-09, + "TER": 3.5232851359836196e-09, + "TFC": 4.3687738183121186e-09, + "TFX": 1.3641771190865203e-08, + "TGT": 1.0222053861504817e-08, + "TJX": 0.0003921459490670944, + "TMO": 1.299702529879627e-08, + "TMUS": 0.006855059056636676, + "TPR": 0.0021741841705210214, + "TRGP": 0.0003642797363272346, + "TRMB": 6.657035871941881e-09, + "TROW": 9.791354318378048e-09, + "TRV": 1.1582749113760166e-08, + "TSCO": 2.3363242198169012e-08, + "TSLA": 0.08528297202790495, + "TSN": 0.0045732490054512945, + "TT": 3.329781216236547e-09, + "TTWO": 0.000620794801617873, + "TXN": 7.430755178916986e-09, + "TXT": 3.5422694935607268e-09, + "TYL": 1.4047498037688042e-05, + "UAL": 0.0030561017217573742, + "UBER": 3.454193138992431e-09, + "UDR": 3.31445078594738e-09, + "UHS": 4.98990638202326e-09, + "ULTA": 0.002348458517931961, + "UNH": 0.015388717658182116, + "UNP": 1.0638651665710768e-08, + "UPS": 3.3126086285724646e-09, + "URI": 5.0465622153099765e-09, + "USB": 4.254383838187149e-09, + "USDOLLAR": 5.316639976079944e-07, + "V": 0.001629673767742234, + "VICI": 3.7994106652550725e-09, + "VLO": 1.1784469334587863e-08, + "VLTO": 0.01130435186738096, + "VMC": 2.5186767653583965e-09, + "VRSK": 1.9314164885982e-08, + "VRSN": 0.002403394835084593, + "VRTX": 0.0015828536775317342, + "VST": 2.473782476171319e-09, + "VTR": 9.63809460111508e-09, + "VTRS": 2.6094175954278774e-09, + "VZ": 8.67679823148037e-09, + "WAB": 3.6235062489302128e-09, + "WAT": 1.0474957318338008e-08, + "WBA": 1.281017305628409e-09, + "WBD": 7.073634267113465e-10, + "WDC": 5.4087966628250064e-09, + "WEC": 1.551785179394036e-08, + "WELL": 7.447857278750075e-09, + "WFC": 1.0481710251088062e-08, + "WM": 1.3227154362896841e-06, + "WMB": 1.0814948548313672e-08, + "WMT": 0.010401981795981978, + "WRB": 9.593965711353628e-09, + "WST": 4.119831729200193e-09, + "WTW": 1.1313332294780198e-08, + "WY": 2.5784190097465144e-09, + "WYNN": 0.0021861319692988513, + "XEL": 7.109914794351922e-09, + "XOM": 9.785836959238459e-09, + "XYL": 8.078724469831701e-09, + "YUM": 2.1010121559494292e-08, + "ZBH": 4.697640133820761e-09, + "ZBRA": 3.088769358188179e-09, + "ZTS": 9.500792548787859e-09 } } \ No newline at end of file From 605c35ef4e285081668295e223f8ffdc1b3cedf2 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 8 Aug 2024 11:31:50 +0400 Subject: [PATCH 118/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-08 --- .../ftse100_daily_initial_holdings.json | 129 ++++++++++++++++-- .../ftse100_daily_target_weights.json | 103 ++++++++++++++ 2 files changed, 219 insertions(+), 13 deletions(-) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index ab7c67631..ddddbb567 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -12240,11 +12240,11 @@ "AAL.L": 9685.71450990257, "ABF.L": 9722.937097004375, "ADM.L": 10555.468392469607, - "AHT.L": 15512.030847592723, + "AHT.L": 15512.030630623303, "ANTO.L": 18950.299280890136, "AUTO.L": 10254.335600761011, "AV.L": 10303.768034635188, - "AZN.L": 12722.032868285709, + "AZN.L": 12722.032711573009, "BA.L": 10360.578146517712, "BARC.L": 9934.745763158426, "BATS.L": 8723.307809936487, @@ -12253,7 +12253,7 @@ "BKG.L": 10059.808021113375, "BME.L": 10103.333114571155, "BNZL.L": 9563.315217900186, - "BP.L": 1.3210384858226144e-12, + "BP.L": 1.3210384769365818e-12, "BRBY.L": 9613.903383927433, "BT-A.L": 0.0, "CCH.L": 0.0, @@ -12271,12 +12271,12 @@ "EZJ.L": 8892.83333759359, "FCIT.L": 0.0, "FRAS.L": 10004.92149801104, - "FRES.L": 9822.005475413713, + "FRES.L": 9822.005247792267, "GBPOUND": 10654.646947024215, "GLEN.L": 8596.482014742845, "GSK.L": 9381.406355085463, "HIK.L": 9156.443343626974, - "HL.L": 9402.58416742493, + "HL.L": 9520.11646951774, "HLMA.L": 9921.01424515832, "HLN.L": 0.0, "HSBA.L": 9742.037870041857, @@ -12286,8 +12286,8 @@ "IHG.L": 14911.124132897172, "III.L": 8971.95713599061, "IMB.L": 10642.907355583924, - "IMI.L": 10588.036394307144, - "INF.L": 9722.839557426958, + "IMI.L": 10588.036665508638, + "INF.L": 9722.83894480915, "ITRK.L": 9395.701668464453, "JD.L": 10968.035071873996, "KGF.L": 9998.171337004238, @@ -12299,21 +12299,21 @@ "MKS.L": 0.0, "MNDI.L": 10655.596979271017, "MNG.L": 10114.960138140435, - "MRO.L": 38588.504055139696, + "MRO.L": 38588.505188746436, "NG.L": 9939.49314361825, - "NWG.L": 10046.129328130146, + "NWG.L": 10046.129386936233, "NXT.L": 9438.368063313075, "PHNX.L": 0.0, "PRU.L": 9808.746422861674, "PSH.L": 46704.55429324002, "PSN.L": 9256.469317133995, - "PSON.L": 2110.1999527951007, + "PSON.L": 2110.2000270217072, "REL.L": 10539.795866826731, "RIO.L": 10503.925972786155, "RKT.L": 8713.771558781142, "RMV.L": 11595.689566914132, "RR.L": 10340.778253810651, - "RTO.L": 9901.621180730082, + "RTO.L": 9901.621503138835, "SBRY.L": 0.0, "SDR.L": 9957.612266697603, "SGE.L": 37028.42399498002, @@ -12325,11 +12325,11 @@ "SN.L": 5964.121476595857, "SPX.L": 8624.713816706979, "SSE.L": 9451.69606209279, - "STAN.L": 9985.940338048313, + "STAN.L": 9985.940339513023, "SVT.L": 10098.423242041346, "TSCO.L": 10105.522627682276, "TW.L": 10030.896000664825, - "ULVR.L": 9728.118161853596, + "ULVR.L": 9728.118187005679, "UTG.L": 9589.695284932657, "UU.L": 10480.661217228811, "VOD.L": 10100.91265361703, @@ -12337,5 +12337,108 @@ "WEIR.L": 9633.390755773102, "WPP.L": 10377.07025378275, "WTB.L": 8701.988331698296 + }, + "2024-08-08 07:00:00+00:00": { + "AAF.L": 20589.316458444115, + "AAL.L": 9487.597622200015, + "ABF.L": 9714.947830696243, + "ADM.L": 10679.650373557477, + "AHT.L": 15779.673322379742, + "ANTO.L": 18558.295267458565, + "AUTO.L": 10133.0593292429, + "AV.L": 9879.871912332937, + "AZN.L": 13002.146966747829, + "BA.L": 10425.483882752753, + "BARC.L": 9969.8260811268, + "BATS.L": 8873.324446258117, + "BDEV.L": 9780.002654412358, + "BEZ.L": 11337.374832573307, + "BKG.L": 10035.6160980165, + "BME.L": 10138.66731052562, + "BNZL.L": 9605.630771961682, + "BP.L": 1.3451898645107282e-12, + "BRBY.L": 9952.984824213687, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 9987.41975869287, + "CPG.L": 2339.999999999999, + "CRDA.L": 11784.659522607082, + "CTEC.L": 40.095472398539236, + "DARK.L": 26232.582700271636, + "DCC.L": 20684.86013881455, + "DGE.L": 9746.689895140436, + "DPLM.L": 8183.986112503833, + "EDV.L": 6142.7838584853525, + "ENT.L": 11246.301512595477, + "EXPN.L": 10455.500363517609, + "EZJ.L": 8697.020312784549, + "FCIT.L": 0.0, + "FRAS.L": 10040.150094835022, + "FRES.L": 9864.200142181993, + "GBPOUND": 4889.46909845208, + "GLEN.L": 8857.726026457172, + "GSK.L": 9523.082222562125, + "HIK.L": 9762.200393697429, + "HL.L": 9700.935395814375, + "HLMA.L": 9977.178498871306, + "HLN.L": 0.0, + "HSBA.L": 9683.912233093324, + "HWDN.L": 9758.606225150052, + "IAG.L": 10004.04910543291, + "ICG.L": 9984.174662801011, + "IHG.L": 14492.792082770038, + "III.L": 8896.689039212166, + "IMB.L": 10733.872375717123, + "IMI.L": 10569.595306703979, + "INF.L": 9771.079276228607, + "ITRK.L": 9403.832955066324, + "JD.L": 11029.554229652716, + "KGF.L": 9902.177974552147, + "LAND.L": 0.0, + "LGEN.L": 10009.892039810335, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 29197.11886806536, + "MKS.L": 0.0, + "MNDI.L": 10528.224747619899, + "MNG.L": 10155.797883425194, + "MRO.L": 38325.24205726007, + "NG.L": 9961.994693857336, + "NWG.L": 10074.57108964119, + "NXT.L": 9422.319828561416, + "PHNX.L": 0.0, + "PRU.L": 9713.516621414767, + "PSH.L": 47724.41858071836, + "PSN.L": 11201.476496487758, + "PSON.L": 2106.9429668208604, + "REL.L": 10594.437665675483, + "RIO.L": 10421.789047844079, + "RKT.L": 8829.060814430151, + "RMV.L": 11414.092751241036, + "RR.L": 9882.174868632754, + "RTO.L": 10116.323592706529, + "SBRY.L": 0.0, + "SDR.L": 9876.278562535665, + "SGE.L": 36593.00891615613, + "SGRO.L": 0.0, + "SHEL.L": 5513.999999999999, + "SMDS.L": 10193.596082479924, + "SMIN.L": 0.0, + "SMT.L": 10423.683122064322, + "SN.L": 5976.816498895973, + "SPX.L": 8305.467653103839, + "SSE.L": 9538.315379103879, + "STAN.L": 9975.851084204869, + "SVT.L": 10281.439370068685, + "TSCO.L": 10325.481138413794, + "TW.L": 9942.763112261166, + "ULVR.L": 9741.758614365022, + "UTG.L": 9605.01428698526, + "UU.L": 10372.347297168866, + "VOD.L": 10347.55955661289, + "VTY.L": 10285.869770402369, + "WEIR.L": 9628.285620237453, + "WPP.L": 9724.764864165054, + "WTB.L": 8579.72646542927 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 522baab1a..849f051e1 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -11946,5 +11946,108 @@ "WEIR.L": 0.009999999370017679, "WPP.L": 0.009999996787731115, "WTB.L": 0.009999978413744849 + }, + "2024-08-08 07:00:00+00:00": { + "AAF.L": 0.020481991473809576, + "AAL.L": 0.009999999462819492, + "ABF.L": 0.009999937310399396, + "ADM.L": 0.010397518542693454, + "AHT.L": 0.01644988122018393, + "ANTO.L": 0.018686020573356114, + "AUTO.L": 0.010000007460263628, + "AV.L": 0.010000019139763849, + "AZN.L": 0.010000031373453185, + "BA.L": 0.010000007804546669, + "BARC.L": 0.009999998675986332, + "BATS.L": 0.010000003761226346, + "BDEV.L": 0.010000003150574074, + "BEZ.L": 0.010000275318808613, + "BKG.L": 0.010000004608024473, + "BME.L": 0.009999998253976392, + "BNZL.L": 0.009999993865428282, + "BP.L": 2.6479529385317337e-07, + "BRBY.L": 0.009999989021042602, + "BT-A.L": 2.012638167128638e-08, + "CCH.L": 1.2760247634712158e-07, + "CNA.L": 0.009999944181689448, + "CPG.L": 0.0017605838523589497, + "CRDA.L": 0.009999999589632365, + "CTEC.L": 2.38442269783093e-07, + "DARK.L": 0.02613313777004054, + "DCC.L": 0.02057998845426577, + "DGE.L": 0.00999906243831069, + "DPLM.L": 0.010000006028298565, + "EDV.L": 0.005546079650846175, + "ENT.L": 0.010825865663984463, + "EXPN.L": 0.01000000163328048, + "EZJ.L": 0.008690866545264868, + "FCIT.L": 2.450557072835243e-08, + "FRAS.L": 0.010000002578838506, + "FRES.L": 0.009999995960307055, + "GBPOUND": 1.1379690956735133e-07, + "GLEN.L": 0.008811534986447841, + "GSK.L": 0.009999994127069268, + "HIK.L": 0.010000003495180213, + "HL.L": 0.010000004049067502, + "HLMA.L": 0.010000002613520374, + "HLN.L": 0.0013674537594485527, + "HSBA.L": 0.009999999603385691, + "HWDN.L": 0.009999999635122877, + "IAG.L": 0.009999969866082115, + "ICG.L": 0.010000006748164706, + "IHG.L": 0.01420457479335599, + "III.L": 0.010000003810174084, + "IMB.L": 0.010000016193104264, + "IMI.L": 0.009999995946193984, + "INF.L": 0.009999958101873542, + "ITRK.L": 0.009999998408149741, + "JD.L": 0.010972022884483758, + "KGF.L": 0.009999987699375351, + "LAND.L": 1.5812814292896526e-08, + "LGEN.L": 0.00999999832324592, + "LLOY.L": 7.138128252985254e-08, + "LMP.L": 5.0272259445047894e-08, + "LSEG.L": 0.028616785051030515, + "MKS.L": 5.152398158125482e-08, + "MNDI.L": 0.010000000624566477, + "MNG.L": 0.010000001665966382, + "MRO.L": 0.03812556221414401, + "NG.L": 0.009999986481348255, + "NWG.L": 0.009999995880390463, + "NXT.L": 0.010000009866014297, + "PHNX.L": 3.210284223338448e-08, + "PRU.L": 0.00999999715922507, + "PSH.L": 0.04697567013476846, + "PSN.L": 0.010000003798225928, + "PSON.L": 0.002169188874863959, + "REL.L": 0.009999997483549397, + "RIO.L": 0.010000003557059189, + "RKT.L": 0.009999990724723403, + "RMV.L": 0.011354632125830016, + "RR.L": 0.009999998176244387, + "RTO.L": 0.010000001444700082, + "SBRY.L": 4.405836044279938e-08, + "SDR.L": 0.009999992391876879, + "SGE.L": 0.0364037377685996, + "SGRO.L": 5.529539036968657e-08, + "SHEL.L": 0.005485301993933401, + "SMDS.L": 0.009999998218329522, + "SMIN.L": 1.0792402394164445e-07, + "SMT.L": 0.009999989102000922, + "SN.L": 0.00596117467313152, + "SPX.L": 0.00999998611547419, + "SSE.L": 0.009999998974417246, + "STAN.L": 0.009999995096582476, + "SVT.L": 0.010000004393542747, + "TSCO.L": 0.01000000913270513, + "TW.L": 0.009999995729781958, + "ULVR.L": 0.00999998044809387, + "UTG.L": 0.010000009846135843, + "UU.L": 0.009999994744258339, + "VOD.L": 0.010000077573237223, + "VTY.L": 0.010000000943242646, + "WEIR.L": 0.009999999292069085, + "WPP.L": 0.009999992053529664, + "WTB.L": 0.009999978199630544 } } \ No newline at end of file From 2b270ddd4a412d73502e17ab70234ba850c07c08 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 8 Aug 2024 18:00:47 +0400 Subject: [PATCH 119/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-08 --- .../dow30_daily_initial_holdings.json | 43 ++++++++++++++++--- .../dow30_daily_target_weights.json | 33 ++++++++++++++ 2 files changed, 71 insertions(+), 5 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index daab559a7..7abe316a3 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -5082,9 +5082,9 @@ "WMT": 0.0003759361430447269 }, "2024-08-07 13:30:00+00:00": { - "AAPL": 200138.4608479328, - "AMGN": 19256.544366663777, - "AMZN": 215359.87315409718, + "AAPL": 200148.12919933203, + "AMGN": 19255.943888483547, + "AMZN": 215282.3203867904, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, @@ -5104,14 +5104,47 @@ "MCD": 1.2707057883595654e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 216791.1958315636, + "MSFT": 216793.8510483315, "NKE": 1.0004658917084634e-12, "PG": 0.0, "TRV": 0.0, "UNH": 96636.93989345164, - "USDOLLAR": 293.5203792278877, + "USDOLLAR": 293.520379693815, "V": 32109.35266711732, "VZ": 0.0, "WMT": 0.00037610242391381633 + }, + "2024-08-08 13:30:00+00:00": { + "AAPL": 206140.97193928342, + "AMGN": 18836.619723153974, + "AMZN": 213556.69242025138, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 76420.6821028011, + "CSCO": 42556.60288192047, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 101635.01683730145, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.2677359454357817e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 213483.36240075924, + "NKE": 1.0052706280099695e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 96819.27320153994, + "USDOLLAR": -273.1547826737358, + "V": 31920.154216482504, + "VZ": 0.0, + "WMT": 0.0003703946312030649 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index 3e084e8a8..b1dd31086 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -5113,5 +5113,38 @@ "V": 0.03195171977357369, "VZ": 4.306121131956961e-09, "WMT": 3.7302634687360125e-08 + }, + "2024-08-08 13:30:00+00:00": { + "AAPL": 0.2058660082060143, + "AMGN": 0.0188155891635142, + "AMZN": 0.21309949549482424, + "AXP": 2.9823393195266754e-09, + "BA": 5.033877381680637e-09, + "CAT": 2.6033846228028536e-09, + "CRM": 0.07633697816684211, + "CSCO": 0.0425099936728181, + "CVX": 2.8783226755459074e-09, + "DIS": 3.7097611500297774e-09, + "DOW": 3.834124933074344e-09, + "GS": 3.038460771110525e-09, + "HD": 0.10152368559413132, + "HON": 1.8022535386531118e-09, + "IBM": 1.3317839305910057e-09, + "INTC": 2.440613879651081e-09, + "JNJ": 4.327133434004565e-09, + "JPM": 5.0014245242665436e-09, + "KO": 3.303707811323792e-09, + "MCD": 9.454184072616713e-09, + "MMM": 1.873698706562384e-09, + "MRK": 3.5758850777040247e-09, + "MSFT": 0.21324959356454684, + "NKE": 8.19745655651714e-09, + "PG": 2.4932435573096824e-09, + "TRV": 2.1795603594401383e-09, + "UNH": 0.0967136695776985, + "USDOLLAR": 8.760100150156415e-10, + "V": 0.03188489836641025, + "VZ": 1.8975916348186446e-09, + "WMT": 1.535838221223034e-08 } } \ No newline at end of file From 5d8c713c3dfec6cd057b1405ea893b5258d51680 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 8 Aug 2024 18:02:27 +0400 Subject: [PATCH 120/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-08 --- .../ndx100_daily_initial_holdings.json | 162 ++++++++++++++---- .../ndx100_daily_target_weights.json | 104 +++++++++++ 2 files changed, 237 insertions(+), 29 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index a36776f62..8f30aa0b6 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -15911,31 +15911,31 @@ "ZS": 21282.0870147525 }, "2024-08-07 13:30:00+00:00": { - "AAPL": 3487.1559085309245, + "AAPL": 3487.324367149847, "ABNB": 0.0, "ADBE": 15317.115128628882, "ADI": 631.4100036621097, "ADP": 1815.309906005859, "ADSK": 1027.009336667394, "AEP": 0.0, - "AMAT": 1468.1402653725945, + "AMAT": 1471.2375603432038, "AMD": -1.6293649530956756e-11, - "AMGN": 26163.4327284977, - "AMZN": 18744.5663033775, + "AMGN": 26162.61687233087, + "AMZN": 18737.816239089752, "ANSS": 3984.2402506375192, - "ARM": 43847.24550175978, - "ASML": 15.334578548550073, + "ARM": 43806.33952586606, + "ASML": 15.351032377413103, "AVGO": -33.60659437852675, "AZN": 0.0, "BIIB": 13765.506738728945, "BKNG": 6186.524257477566, "BKR": 0.0, "CCEP": 14474.955746306625, - "CDNS": -84.57777841369408, - "CDW": 24868.19190195837, + "CDNS": -84.30694313935676, + "CDW": 24885.99327867076, "CEG": 58603.64595670541, "CHTR": 17420.12425794063, - "CMCSA": 24030.316623882412, + "CMCSA": 23993.581541129526, "COST": 0.0, "CPRT": 4400.973659011837, "CRWD": 1765.7129812050775, @@ -15947,53 +15947,53 @@ "DASH": 0.0, "DDOG": 9585.64896034325, "DLTR": 20697.71850458898, - "DXCM": 13776.871620299062, - "EA": 12924.633725444244, + "DXCM": 13777.751843720449, + "EA": 12912.713967590778, "EXC": 0.0, "FANG": 23087.50835967404, - "FAST": 15946.926890158687, + "FAST": 15910.683505816229, "FTNT": 29809.13429003417, "GEHC": 12958.932810816244, "GFS": 7799.4405378093115, "GILD": 23150.87324180454, - "GOOG": 5660.810534438304, - "GOOGL": -2.09840720064861e-12, + "GOOG": 5659.7704327575275, + "GOOGL": -2.097353728780388e-12, "HON": 0.0, "IDXX": 0.0, - "ILMN": 7718.47540574608, - "INTC": 1.2682143348824853, + "ILMN": 7713.968474353941, + "INTC": 1.2743401074784924, "INTU": 8001.442152324998, "ISRG": 14664.284199921367, - "KDP": -8.87387127577824e-13, + "KDP": -8.884154096479162e-13, "KHC": 0.0, "KLAC": 19123.012885053577, "LIN": 0.0, - "LRCX": -8.441239301267736, + "LRCX": -8.435108263275712, "LULU": 17374.219918540683, "MAR": 0.0, "MCHP": 17619.58719098699, - "MDB": 23751.709659298736, + "MDB": 23754.835168322643, "MDLZ": 894.4000396728512, "MELI": 25618.071982493548, - "META": -136.57372914547943, + "META": -136.61174644809657, "MNST": 16102.343931026233, - "MRNA": 13608.231636697497, + "MRNA": 13606.614231892627, "MRVL": 0.0, - "MSFT": 39.99519731358985, + "MSFT": 39.99568716705523, "MU": 6.879235504881002, - "NFLX": 19076.14174210925, - "NVDA": 9072.866853692401, + "NFLX": 19076.29671577852, + "NVDA": 9072.025191194463, "NXPI": 22746.140363856543, "ODFL": 8300.430051236304, - "ON": 6375.103612171486, + "ON": 6374.194552106421, "ORLY": 21263.181608736268, "PANW": -7.347920344267534, "PAYX": 9360.018615104997, "PCAR": 0.0, "PDD": 24185.857291113705, "PEP": 23848.395778876653, - "PYPL": 2.835849083615931, - "QCOM": 5225.200699436592, + "PYPL": 2.838762122766542, + "QCOM": 5228.397126985495, "REGN": 12972.329820124794, "ROP": 20085.322406003594, "ROST": 8339.96516461317, @@ -16001,11 +16001,11 @@ "SNPS": 0.0, "TEAM": 6943.430152235626, "TMUS": 22095.88423543637, - "TSLA": 11413.85959527516, + "TSLA": 11409.313268965609, "TTD": 32893.49454195415, "TTWO": 8484.721221290816, "TXN": 0.0, - "USDOLLAR": 1576.0529910100472, + "USDOLLAR": 1576.0560864997494, "VRSK": 8349.759765625, "VRTX": 8021.675214499397, "WBA": 0.3641198466280301, @@ -16013,5 +16013,109 @@ "WDAY": 0.0, "XEL": 0.0, "ZS": 18348.485096311702 + }, + "2024-08-08 13:30:00+00:00": { + "AAPL": 3591.7419632529604, + "ABNB": 0.0, + "ADBE": 15306.530740596829, + "ADI": 206.19000244140656, + "ADP": 2068.080078124999, + "ADSK": 316.8061860116016, + "AEP": 0.0, + "AMAT": 1619.7940068617452, + "AMD": -1.608046159316854e-11, + "AMGN": 26848.890581770334, + "AMZN": 18257.190449211732, + "ANSS": 4236.123185250715, + "ARM": 42298.81850733481, + "ASML": 15.07621892733794, + "AVGO": -31.99710348337725, + "AZN": 0.0, + "BIIB": 13849.895397256963, + "BKNG": 6029.109225509756, + "BKR": 0.0, + "CCEP": 14623.787706133582, + "CDNS": -81.17035332174197, + "CDW": 25729.73922601726, + "CEG": 54920.48821730893, + "CHTR": 17925.918930949556, + "CMCSA": 24123.54853032074, + "COST": 0.0, + "CPRT": 5187.79822626054, + "CRWD": 2435.342476257811, + "CSCO": 45675.13609178302, + "CSGP": 11994.999428709616, + "CSX": -6.614878664083558e-13, + "CTAS": 0.0, + "CTSH": 24193.793558183734, + "DASH": 0.0, + "DDOG": 10838.746164419616, + "DLTR": 20499.69441549645, + "DXCM": 13702.927722097771, + "EA": 12969.655877606954, + "EXC": 0.0, + "FANG": 22012.272314426984, + "FAST": 16511.250177532114, + "FTNT": 26694.115564931522, + "GEHC": 12514.970482576631, + "GFS": 8535.39919870376, + "GILD": 23748.447756409474, + "GOOG": 5628.704404885286, + "GOOGL": -2.0877285921577187e-12, + "HON": 0.0, + "IDXX": 0.0, + "ILMN": 7539.228951816477, + "INTC": 1.2212426080843308, + "INTU": 7905.881045595289, + "ISRG": 14262.593362454048, + "KDP": -8.853305634376395e-13, + "KHC": 0.0, + "KLAC": 15701.183662134821, + "LIN": 0.0, + "LRCX": -8.221215489888797, + "LULU": 17004.302928737638, + "MAR": 0.0, + "MCHP": 17041.97000074616, + "MDB": 23962.849215542697, + "MDLZ": 1518.880020141602, + "MELI": 26248.0245023782, + "META": -135.20525540371597, + "MNST": 14483.937965783818, + "MRNA": 13598.423521466108, + "MRVL": 0.0, + "MSFT": 39.38494443759991, + "MU": 6.518256569585932, + "NFLX": 19259.915944860808, + "NVDA": 8174.3222719975165, + "NXPI": 22108.205895358624, + "ODFL": 7993.417689215038, + "ON": 6685.1138434465565, + "ORLY": 21264.33077887145, + "PANW": -7.32950038922551, + "PAYX": 9628.483730746022, + "PCAR": 0.0, + "PDD": 23760.05778118642, + "PEP": 24843.93316975724, + "PYPL": 2.84794896613008, + "QCOM": 4655.404225511096, + "REGN": 14049.847516669577, + "ROP": 17263.182407068613, + "ROST": 8430.887566456166, + "SBUX": 17767.34149123498, + "SNPS": 0.0, + "TEAM": 6653.433077875888, + "TMUS": 22119.742324093673, + "TSLA": 11316.89601429761, + "TTD": 32874.44967592416, + "TTWO": 8370.620216336094, + "TXN": 0.0, + "USDOLLAR": 1356.0600460578014, + "VRSK": 9396.000000000005, + "VRTX": 7880.675366642364, + "WBA": 0.35749949209391574, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18057.936317664786 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index 37aee99ed..cd5394aed 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15806,5 +15806,109 @@ "WDAY": 1.031924666072034e-08, "XEL": 2.5528868386394247e-07, "ZS": 0.017813257292209592 + }, + "2024-08-08 13:30:00+00:00": { + "AAPL": 0.003984432545516435, + "ABNB": 4.580264089224308e-09, + "ADBE": 0.014811330608295887, + "ADI": 0.00025015453977026363, + "ADP": 0.0020204028853136992, + "ADSK": 0.00031165454472994694, + "AEP": 9.31482710387164e-09, + "AMAT": 0.00205989697981079, + "AMD": 3.762016742488036e-09, + "AMGN": 0.026183756045788216, + "AMZN": 0.017919609905553222, + "ANSS": 0.004237417883535156, + "ARM": 0.04204716577439014, + "ASML": 1.5766203262987033e-08, + "AVGO": 1.9938430262982846e-08, + "AZN": 1.633053571975116e-08, + "BIIB": 0.01352496508148399, + "BKNG": 0.007272848836510413, + "BKR": 2.2035151148864972e-08, + "CCEP": 0.014365037833731954, + "CDNS": 2.032360398927075e-08, + "CDW": 0.025986338022581667, + "CEG": 0.05425379712953084, + "CHTR": 0.01778203068740519, + "CMCSA": 0.02369525984737968, + "COST": 1.2612388927584725e-08, + "CPRT": 0.005303607147464237, + "CRWD": 0.0017433168711199088, + "CSCO": 0.04473911825289321, + "CSGP": 0.011782426259728598, + "CSX": 6.475704465674738e-08, + "CTAS": 1.8746022029659234e-08, + "CTSH": 0.023762727667633994, + "DASH": 4.297846940225923e-09, + "DDOG": 0.011285331273614441, + "DLTR": 0.020136188213957327, + "DXCM": 0.013465302197571557, + "EA": 0.012739665258907372, + "EXC": 4.1431798614292975e-08, + "FANG": 0.02160174569760844, + "FAST": 0.016218644453529864, + "FTNT": 0.02578440492062937, + "GEHC": 0.010645269706022854, + "GFS": 0.008025382060885145, + "GILD": 0.023240393315771206, + "GOOG": 0.0057905909685320445, + "GOOGL": 1.575173130008908e-07, + "HON": 9.256998122922989e-09, + "IDXX": 0.00024636086777668893, + "ILMN": 0.007477272721339887, + "INTC": 8.767410209573282e-09, + "INTU": 0.0076704642194922856, + "ISRG": 0.014224676208483897, + "KDP": 7.609365723460431e-08, + "KHC": 8.985313634008257e-09, + "KLAC": 0.015559932981031288, + "LIN": 2.288991595115219e-07, + "LRCX": 1.1044094590383626e-07, + "LULU": 0.016564030669172402, + "MAR": 2.6876684163709325e-08, + "MCHP": 0.01697773544641751, + "MDB": 0.022915015143086838, + "MDLZ": 0.0015373068172323274, + "MELI": 0.024929632575729166, + "META": 2.4229410983453827e-08, + "MNST": 0.015252010059648973, + "MRNA": 0.013372389961300732, + "MRVL": 1.081655679793417e-08, + "MSFT": 1.764091260683979e-07, + "MU": 1.450341452761378e-08, + "NFLX": 0.018615861048463772, + "NVDA": 0.008463675589750615, + "NXPI": 0.021759121173147874, + "ODFL": 0.0079186790905583, + "ON": 0.006740443091598326, + "ORLY": 0.020819525218664692, + "PANW": 0.00039546505046786563, + "PAYX": 0.009423333873273763, + "PCAR": 8.839771639113086e-09, + "PDD": 0.022775529969417292, + "PEP": 0.024393431669041555, + "PYPL": 3.58170590348289e-07, + "QCOM": 0.004817663481706666, + "REGN": 0.013324245479297194, + "ROP": 0.016547515506550856, + "ROST": 0.008281618497227475, + "SBUX": 0.017451568813771613, + "SNPS": 4.829071418716626e-09, + "TEAM": 0.006172189562831321, + "TMUS": 0.021578144560258503, + "TSLA": 0.01160673007861301, + "TTD": 0.03207782493022097, + "TTWO": 0.008285082171278699, + "TXN": 1.7093000820158616e-08, + "USDOLLAR": 1.5430832580589846e-07, + "VRSK": 0.009703475001389362, + "VRTX": 0.007763705073921212, + "WBA": 2.694857328705679e-08, + "WBD": 7.962565068192171e-09, + "WDAY": 9.304000337385915e-09, + "XEL": 2.703521748423894e-07, + "ZS": 0.017386165480442806 } } \ No newline at end of file From 3301553a91f8c6733f4f12a9834ff54cfc8cc5cb Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Thu, 8 Aug 2024 18:09:53 +0400 Subject: [PATCH 121/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-08 --- .../sp500_daily_initial_holdings.json | 593 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1054 insertions(+), 44 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 0d12a4f94..2e1bfb97a 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -76379,12 +76379,12 @@ "2024-08-07 13:30:00+00:00": { "A": 0.0, "AAL": 550.9839377018628, - "AAPL": 42322.358433274894, + "AAPL": 42324.402955010715, "ABBV": 6623.734126752039, "ABNB": 0.0, "ABT": 3530.303583989565, "ACGL": 0.0, - "ACN": 2.518603838673762e-13, + "ACN": 2.5286411053365956e-13, "ADBE": 9211.492601543425, "ADI": 0.0, "ADM": 0.0, @@ -76397,19 +76397,19 @@ "AIG": 0.0, "AIZ": 1.4781032724840948, "AJG": 0.0, - "AKAM": -0.0773914136974406, + "AKAM": -0.07723409522783159, "ALB": 0.0, - "ALGN": 606.0650154330561, + "ALGN": 604.0801735542107, "ALL": 6.67600317248596e-14, "ALLE": 0.0, - "AMAT": 1832.4586530650295, + "AMAT": 1836.324540476371, "AMCR": 0.0, "AMD": 27378.03314483712, "AME": 0.0, - "AMGN": 5645.900807278653, + "AMGN": 5645.724750755843, "AMP": 8.827465234932973, "AMT": 1133.5407561494414, - "AMZN": 33504.3709846473, + "AMZN": 33492.30579976083, "ANET": 3541.0385759572105, "ANSS": 299.6206362435314, "AON": 18.74758229848501, @@ -76426,7 +76426,7 @@ "AWK": 0.0, "AXON": 5807.848092785845, "AXP": 0.0, - "AZO": 1.8356078831012927e-12, + "AZO": 1.833307095679086e-12, "BA": -9.940005891799696e-13, "BAC": 0.0, "BALL": 0.0, @@ -76436,7 +76436,7 @@ "BDX": 0.0, "BEN": 178.71177069170727, "BF-B": 0.0, - "BG": 588.2340527499396, + "BG": 595.455092201496, "BIIB": 1790.9973114798815, "BIO": 0.0, "BK": 0.0, @@ -76447,7 +76447,7 @@ "BMY": 95.55231007361131, "BR": 0.0, "BRK-B": 0.0, - "BRO": 0.3292382871243247, + "BRO": 0.32966959089151887, "BSX": 0.0, "BWA": 0.0, "BX": 1320.29820047456, @@ -76463,7 +76463,7 @@ "CCI": 326.05847010519665, "CCL": 0.0, "CDNS": 0.0, - "CDW": 573.1553106368797, + "CDW": 573.56559191666, "CE": -2.5159100203676008e-14, "CEG": 38391.662093047315, "CF": 9826.04609217458, @@ -76475,14 +76475,14 @@ "CINF": 0.01577835903475665, "CL": 10.142899668358027, "CLX": 16.093080666073742, - "CMCSA": 6294.436136387449, + "CMCSA": 6284.8138481766, "CME": 6095.899346714592, "CMG": 6056.1453584584915, "CMI": 0.0, "CMS": 0.0, "CNC": 980.806712452948, "CNP": 0.0, - "COF": 7916.286570052301, + "COF": 8035.3058851078, "COO": 0.0, "COP": 0.0, "COR": 3133.8036171994704, @@ -76528,13 +76528,13 @@ "DUK": 1.2955402021866596, "DVA": 3557.8699944522186, "DVN": 0.0, - "DXCM": 5399.233978225871, - "EA": 3533.1202295986645, + "DXCM": 5399.578942767616, + "EA": 3529.861805530438, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.312648333929495e-14, + "EG": 5.348496308641354e-14, "EIX": 0.0, "EL": 0.0, "ELV": -2.183154880897046e-13, @@ -76542,7 +76542,7 @@ "EMR": 0.0, "ENPH": 4250.452948125132, "EOG": 0.0, - "EPAM": 5945.498858947348, + "EPAM": 6032.094806826505, "EQIX": 793.415897244122, "EQR": 0.0, "EQT": 0.0, @@ -76555,18 +76555,18 @@ "EW": 0.0, "EXC": 0.0, "EXPD": -1.0713891338788923, - "EXPE": 3802.647856223239, + "EXPE": 3802.9786206601557, "EXR": 5.810180065588531e-14, "F": 0.0, "FANG": 13250.292120378494, - "FAST": 3128.6944979247032, + "FAST": 3121.583756277772, "FCX": 0.0, "FDS": 1196.4503602345628, "FDX": 5522.740273425175, "FE": 0.0, "FFIV": 2631.020054904596, "FI": 2.5464706660190384e-13, - "FICO": 1585.2956441474341, + "FICO": 1607.5761367074226, "FIS": 0.0, "FITB": 0.0, "FMC": 0.0, @@ -76588,8 +76588,8 @@ "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, - "GOOG": 22730.411798595447, - "GOOGL": 2395.0849243006264, + "GOOG": 22726.2353755598, + "GOOGL": 2393.8825101128687, "GPC": 0.0, "GPN": -1.0145275857580386e-13, "GRMN": 2158.392568355757, @@ -76612,7 +76612,7 @@ "HSIC": 0.0, "HST": 0.0, "HSY": 10712.11352710613, - "HUBB": 1.272342353348605e-13, + "HUBB": 1.291196851255129e-13, "HUM": 1387.6048496531162, "HWM": 2488.7218839187863, "IBM": 0.0, @@ -76621,7 +76621,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 3790.2920286147955, - "INTC": 137.87877295031123, + "INTC": 138.5447597521308, "INTU": 1857.021932116218, "INVH": 0.0, "IP": 0.0, @@ -76655,23 +76655,23 @@ "KO": 206.19106341825983, "KR": 0.0, "KVUE": 0.0, - "L": -0.20940633121673616, + "L": -0.21072196135150265, "LDOS": 0.0, "LEN": 0.0, "LH": 0.0, "LHX": 0.0, "LIN": 1.6765403269137562, - "LKQ": 4368.252989808102, + "LKQ": 4397.305175544458, "LLY": 1.3425262897538348, "LMT": 7593.820704729843, "LNT": 0.0, "LOW": -2.863204169825331e-13, - "LRCX": 754.1621585263102, + "LRCX": 753.6143957297529, "LULU": 1448.7942481069845, "LUV": 24.760769272041333, "LVS": 1721.6544511592422, "LW": 21.109201528938776, - "LYB": 3221.7124791928077, + "LYB": 3258.123691682914, "LYV": 2720.455836170181, "MA": 26868.18370024232, "MAA": 0.0, @@ -76684,7 +76684,7 @@ "MDLZ": 0.0, "MDT": 1.3302635276560173, "MET": -0.033606799802880984, - "META": 23133.79776584816, + "META": 23140.237398095524, "MGM": 3434.410880012557, "MHK": 0.0, "MKC": 0.0, @@ -76699,11 +76699,11 @@ "MPC": 13401.790452551631, "MPWR": -9.18530026726436e-13, "MRK": 5068.946171436824, - "MRNA": 5598.88484081517, + "MRNA": 5598.219386001847, "MRO": 0.0, "MS": 5055.321695156306, - "MSCI": 3126.394645222492, - "MSFT": 37541.89915015206, + "MSCI": 3152.8982075975123, + "MSFT": 37542.35895609455, "MSI": 0.0, "MTB": -6.146714425055306, "MTCH": 0.0, @@ -76714,7 +76714,7 @@ "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16002.289628429471, + "NFLX": 16002.4196302702, "NI": 0.0, "NKE": -3.018532039536318e-14, "NOC": -4.337374151186942e-13, @@ -76724,7 +76724,7 @@ "NTAP": 5586.508164912689, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 137599.37996060748, + "NVDA": 137586.61528107233, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, @@ -76733,7 +76733,7 @@ "ODFL": 1379.6655811329451, "OKE": 0.0, "OMC": 0.0, - "ON": -2.5830446933773525, + "ON": -2.582676363241895, "ORCL": 6969.68550951241, "ORLY": 1108.222530338995, "OTIS": 1594.9536052393798, @@ -76749,7 +76749,7 @@ "PFE": 0.0, "PFG": 75.82562662838077, "PG": 1.0782166927061752, - "PGR": 8386.501559530501, + "PGR": 8369.262217748486, "PH": 0.0, "PHM": -12.092596139630322, "PKG": -5.180110731576992e-13, @@ -76768,7 +76768,7 @@ "PTC": 2.5646928677639716e-14, "PWR": -4.9630031608585226, "PYPL": 0.0, - "QCOM": 4698.809922902828, + "QCOM": 4701.684339857998, "QRVO": 0.0, "RCL": 1196.5376437242467, "REG": 0.0, @@ -76776,7 +76776,7 @@ "RF": 0.0, "RJF": 0.0, "RL": 0.0, - "RMD": 1722.7922346018875, + "RMD": 1730.979833845117, "ROK": 1.122419634588018, "ROL": 0.0, "ROP": 5541.716178208833, @@ -76790,7 +76790,7 @@ "SHW": 1.4878289125153887, "SJM": 1.014052849028772, "SLB": 0.0, - "SMCI": 10454.273720683743, + "SMCI": 10435.185226148496, "SNA": 0.0, "SNPS": 0.0, "SO": 11.191853618207858, @@ -76811,7 +76811,7 @@ "T": 0.0, "TAP": 0.0, "TDG": 6001.383124164663, - "TDY": -15.67015028494087, + "TDY": -15.738374797323312, "TECH": 0.0, "TEL": 0.0, "TER": 0.0, @@ -76821,13 +76821,13 @@ "TJX": 438.60860858658157, "TMO": 0.0, "TMUS": 7667.410698804033, - "TPR": 2431.827412764329, + "TPR": 2475.7680770924126, "TRGP": 408.27305597053953, "TRMB": 0.0, "TROW": 0.0, "TRV": 0.0, "TSCO": -2.754850003260421e-12, - "TSLA": 95179.85466087461, + "TSLA": 95141.94297344127, "TSN": 5115.198214996225, "TT": 0.0, "TTWO": 694.3372267248623, @@ -76844,7 +76844,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 1084.582501779655, + "USDOLLAR": 1084.5832635690822, "V": 1801.9690611690323, "VICI": 0.0, "VLO": 0.0, @@ -76858,7 +76858,7 @@ "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.286106084842397e-13, + "WAT": -2.294258607785825e-13, "WBA": 0.0, "WBD": 0.0, "WDC": -2.3727252265396417, @@ -76880,5 +76880,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-08-08 13:30:00+00:00": { + "A": 0.0, + "AAL": 548.0532166767895, + "AAPL": 43591.681804862485, + "ABBV": 6797.496104491773, + "ABNB": 0.0, + "ABT": 3541.254138533083, + "ACGL": 0.0, + "ACN": 2.491890855530045e-13, + "ADBE": 9205.12730290655, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.114090601585826, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3527.1069838931953, + "AIG": 0.0, + "AIZ": 1.4529190276048871, + "AJG": 0.0, + "AKAM": -0.07654686922764019, + "ALB": 0.0, + "ALGN": 385.7669722088976, + "ALL": 6.655247183123242e-14, + "ALLE": 0.0, + "AMAT": 1790.5130225337932, + "AMCR": 0.0, + "AMD": 27019.815888736455, + "AME": 0.0, + "AMGN": 5836.7814750327, + "AMP": 8.715200376013636, + "AMT": 1344.9310300823988, + "AMZN": 33223.84316219679, + "ANET": 3466.4501084934286, + "ANSS": 295.8660488129473, + "AON": 18.812792566766554, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 24.22907355702993, + "APTV": 2.3665303680401582e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19042.26787838173, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 6159.8388862880165, + "AXP": 0.0, + "AZO": 1.8148663189674376e-12, + "BA": -9.7751324858801e-13, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 480.86460218451737, + "BDX": 0.0, + "BEN": 174.2742384466977, + "BF-B": 0.0, + "BG": 590.5793661274173, + "BIIB": 1775.9775131234824, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3112.4116351750245, + "BKR": 0.0, + "BLDR": 660.1704679146602, + "BLK": 846.2000122070326, + "BMY": 93.81975589998548, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3276458548937348, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1276.5254750466029, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20086.500010092226, + "CAT": 0.0, + "CB": 33.878518353286715, + "CBOE": 0.0, + "CBRE": 5136.780920921721, + "CCI": 320.0483105747331, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 573.6749752178815, + "CE": -2.4322668946758663e-14, + "CEG": 37060.70876844943, + "CF": 10183.572605514884, + "CFG": 0.0, + "CHD": 2459.1921467205, + "CHRW": 0.0, + "CHTR": 3855.4349606553174, + "CI": 3.8185901556404565e-13, + "CINF": 0.015717530062973512, + "CL": 10.03134186219439, + "CLX": 16.095328312376775, + "CMCSA": 6167.745427840329, + "CME": 6383.423536046463, + "CMG": 6000.58439186713, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 974.8166674237256, + "CNP": 0.0, + "COF": 7776.774837161741, + "COO": 0.0, + "COP": 0.0, + "COR": 3128.057321133977, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 684.2536784872398, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7326.825917052026, + "CRWD": -2.423966631422836, + "CSCO": 6648.253750886352, + "CSGP": -7.508435477194099e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 9114.920326290441, + "CTVA": 103.24030710559407, + "CVS": 0.0, + "CVX": -5.131602228934859e-13, + "CZR": 8477.60218650161, + "D": 0.0, + "DAL": 552.4201784351678, + "DAY": 0.0, + "DD": 0.0, + "DE": 9.803284042322638e-14, + "DECK": 832.0505850953423, + "DFS": 3171.239984057501, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.715427144784717, + "DHR": 1588.8049195201058, + "DIS": -3.773506484608371, + "DLR": 2.9838451116124304e-14, + "DLTR": 951.7235131804115, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.369242033834507, + "DRI": 2.3816793718783065, + "DTE": 0.0, + "DUK": 1.2869581924607816, + "DVA": 3379.7886337436953, + "DVN": 0.0, + "DXCM": 5233.489671484539, + "EA": 3505.7243487953488, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.3421266906977724e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.171400407629411e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 4087.646049278137, + "EOG": 0.0, + "EPAM": 5780.77060305229, + "EQIX": 785.1969125632911, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.0784407983426838, + "EXPE": 3635.7056204658925, + "EXR": 5.717430380466584e-14, + "F": 0.0, + "FANG": 13071.66875168627, + "FAST": 3098.3556711206415, + "FCX": 0.0, + "FDS": 1182.013660203868, + "FDX": 5333.935080110484, + "FE": 0.0, + "FFIV": 2591.8584739773214, + "FI": 2.5125199360994203e-13, + "FICO": 1613.0169940295846, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.211077433238122e-14, + "FTNT": 7108.620834067361, + "FTV": 0.0, + "GD": 3.7945096491474146e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1714.0615709232293, + "GEN": 0.0, + "GEV": 10654.794336892797, + "GILD": 7180.301054407407, + "GIS": 8024.395909490022, + "GL": 0.30175949495119675, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 22763.836878817405, + "GOOGL": 2543.40654364313, + "GPC": 0.0, + "GPN": -1.0441617159251779e-13, + "GRMN": 2118.2074724086006, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.144936489082473, + "HBAN": 0.0, + "HCA": 5782.432123442181, + "HD": 9434.419983530408, + "HES": 0.0, + "HIG": 5349.402154445169, + "HII": 0.6979748156775617, + "HLT": -1.2720278217167923e-13, + "HOLX": 2772.684292962092, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10688.430331383484, + "HUBB": 1.2812938544994746e-13, + "HUM": 1684.4508426974803, + "HWM": 2449.0433453787828, + "IBM": 0.0, + "ICE": 1052.8442370424025, + "IDXX": -9.730448067280758, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3713.316153805755, + "INTC": 132.7720619818637, + "INTU": 1834.8435463107537, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04099009903761019, + "IRM": 0.0, + "ISRG": 6711.03197446327, + "IT": 7.750374196776943e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2357.3667458329455, + "JCI": 0.0, + "JKHY": 831.0759159895991, + "JNJ": 12977.385583929925, + "JNPR": 0.0, + "JPM": 2047.0107341012688, + "K": 1098.317902503373, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 1421.620045895177, + "KMB": 4635.475645582066, + "KMI": 0.0, + "KMX": 1.0425196816473896, + "KO": 206.03955449902796, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.20904999816691525, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.6500855406047028, + "LKQ": 4215.911638001849, + "LLY": 1.5093286932532801, + "LMT": 7673.153248489732, + "LNT": 0.0, + "LOW": -2.743440014798495e-13, + "LRCX": 734.5046619675044, + "LULU": 1437.805683058372, + "LUV": 24.70042483217856, + "LVS": 1719.4374031919267, + "LW": 21.182092698557195, + "LYB": 3197.4383375327366, + "LYV": 2711.779550230522, + "MA": 26970.16218039985, + "MAA": 0.0, + "MAR": -5.324814880317094e-13, + "MAS": 0.0, + "MCD": 9798.46845824576, + "MCHP": 1939.6295953121707, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.3371775037952993, + "MET": -0.03355343997962152, + "META": 22404.04625720467, + "MGM": 3440.011756959576, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5436.411613709756, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 4599.563339538842, + "MO": -22.215540975749427, + "MOH": 2003.8388027342423, + "MOS": 0.0, + "MPC": 12667.768436444268, + "MPWR": -8.734967794288908e-13, + "MRK": 5125.227353447649, + "MRNA": 5493.0196156890215, + "MRO": 0.0, + "MS": 4995.476286141359, + "MSCI": 3132.8721009237147, + "MSFT": 36969.0790751097, + "MSI": 0.0, + "MTB": -6.069786473160284, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3458.072760971765, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16156.451201478205, + "NI": 0.0, + "NKE": -3.0330285362063364e-14, + "NOC": -4.376049682747298e-13, + "NOW": 5369.843506082067, + "NRG": 0.0, + "NSC": -2.904509032325375e-14, + "NTAP": 5576.1075671739, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 127915.37890397909, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7335.858107693542, + "O": 0.0, + "ODFL": 1165.455324700839, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.5410320021554975, + "ORCL": 6919.948478811606, + "ORLY": 1108.2824243030516, + "OTIS": 1577.5159629254392, + "OXY": 0.0, + "PANW": 6225.526997846014, + "PARA": 1926.2093214869508, + "PAYC": 0.0, + "PAYX": -0.633080103141681, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 7336.513830720351, + "PFE": 0.0, + "PFG": 75.39526683996111, + "PG": 1.0836534505967341, + "PGR": 8458.201223119726, + "PH": 0.0, + "PHM": -11.705000886903646, + "PKG": -5.075151110250549e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -60.64684910141861, + "POOL": 1017.3829074029859, + "PPG": -0.37959333420322033, + "PPL": 0.0, + "PRU": 14.701528052396576, + "PSA": 0.0, + "PSX": 47.4434854795815, + "PTC": 2.521880930806301e-14, + "PWR": -4.934388395747526, + "PYPL": 0.0, + "QCOM": 4620.0559857948565, + "QRVO": 0.0, + "RCL": 723.1622999701689, + "REG": 0.0, + "REGN": 1093.3679139650087, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 2094.6010645093133, + "ROK": 1.0953484126574782, + "ROL": 0.0, + "ROP": 5479.004838527206, + "ROST": 1098.4950705568317, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 5568.961536994505, + "SBUX": 8423.755648225177, + "SCHW": 1.6670731862219539, + "SHW": 1.4661119258846749, + "SJM": 1.0125183401849511, + "SLB": 0.0, + "SMCI": 10734.237470189153, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 11.146730570182024, + "SOLV": -1.5559715051307818e-12, + "SPG": 0.0, + "SPGI": -5.679712561812521, + "SRE": 0.0, + "STE": 0.5202268780750479, + "STLD": -2.5749359449555225e-14, + "STT": 307.2122393780251, + "STX": -12.00343353252326, + "STZ": 1654.2121884840083, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": 632.635475624781, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 5829.485625809227, + "TDY": -15.601154116493273, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 433.06115008098436, + "TMO": 0.0, + "TMUS": 7675.689605512398, + "TPR": 2374.08054097443, + "TRGP": 409.2512973442117, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.679068063327459e-12, + "TSLA": 92935.0412995685, + "TSN": 5038.950768278047, + "TT": 0.0, + "TTWO": 673.8025815895909, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3382.791972225209, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 2587.6465085998525, + "UNH": 17361.717191419066, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": 1365.1487198954726, + "V": 1791.3512901413967, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 12541.56627096163, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2642.543048024587, + "VRTX": 1852.6620693526502, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.2236490216894605e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.3298421586259184, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4626864743160841, + "WMB": 0.0, + "WMT": 11458.071406736377, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2343.667169913407, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 138422a80..4a4338ac5 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -73854,5 +73854,510 @@ "ZBH": 4.697640133820761e-09, "ZBRA": 3.088769358188179e-09, "ZTS": 9.500792548787859e-09 + }, + "2024-08-08 13:30:00+00:00": { + "A": 1.6098343176142403e-09, + "AAL": 0.0004980381467234763, + "AAPL": 0.039026654589221214, + "ABBV": 0.006177172113602294, + "ABNB": 6.892682813816178e-10, + "ABT": 0.0032180849102851424, + "ACGL": 6.335743744827675e-09, + "ACN": 4.923268930511028e-09, + "ADBE": 0.008334736206143268, + "ADI": 7.667052003707487e-09, + "ADM": 2.9534713900678982e-09, + "ADP": 6.697073215848154e-09, + "ADSK": 7.413809856362735e-09, + "AEE": 2.502595143767409e-09, + "AEP": 2.2186860052020585e-09, + "AES": 9.233592238774478e-10, + "AFL": 0.0032052218577523083, + "AIG": 1.3396361141320242e-09, + "AIZ": 7.183109159039479e-09, + "AJG": 4.648189039250612e-09, + "AKAM": 4.0320636961017705e-09, + "ALB": 8.282099554190323e-10, + "ALGN": 0.00024305192691753317, + "ALL": 7.644321887495771e-09, + "ALLE": 1.4280135592009258e-09, + "AMAT": 0.0016271103874254617, + "AMCR": 4.5093537271082777e-10, + "AMD": 0.02455402793369626, + "AME": 1.6248206020063571e-09, + "AMGN": 0.005304120089785948, + "AMP": 2.168741201263245e-08, + "AMT": 0.0012951456645121236, + "AMZN": 0.030191829007488756, + "ANET": 0.0030735345144697135, + "ANSS": 0.0002688121948020356, + "AON": 9.457806670813793e-09, + "AOS": 1.60638706090713e-09, + "APA": 8.903229210393193e-10, + "APD": 3.788795556955321e-09, + "APH": 2.1955575259347362e-08, + "APTV": 2.6913750153310225e-09, + "ARE": 1.1898162844268118e-09, + "ATO": 2.6358143069422853e-09, + "AVB": 2.3429830491564216e-09, + "AVGO": 0.017304462304230658, + "AVY": 2.3982668306305887e-09, + "AWK": 7.467638825741783e-09, + "AXON": 0.005461020519238533, + "AXP": 2.915188142197657e-09, + "AZO": 0.00012642399671092098, + "BA": 5.884399406713696e-09, + "BAC": 2.053821623355963e-09, + "BALL": 5.636985051605732e-09, + "BAX": 2.480258708648903e-09, + "BBWI": 2.131054523412463e-09, + "BBY": 0.00043699056549484626, + "BDX": 4.116877846276816e-09, + "BEN": 0.0001583703091217995, + "BF-B": 3.2957715424817564e-09, + "BG": 0.0005365450673365445, + "BIIB": 0.0016138985565559494, + "BIO": 1.551115605020258e-09, + "BK": 2.011163259882752e-09, + "BKNG": 0.0014559999651666629, + "BKR": 1.0888828607893143e-09, + "BLDR": 0.000599927406581249, + "BLK": 0.0007689156385425579, + "BMY": 8.52566247973843e-05, + "BR": 3.3807471362094213e-09, + "BRK-B": 3.948071781809777e-09, + "BRO": 2.897348718481568e-07, + "BSX": 4.768344731252715e-09, + "BWA": 1.5637290617804164e-09, + "BX": 0.0011600135626291055, + "BXP": 1.2979372329708207e-09, + "C": 2.0547984125154216e-09, + "CAG": 4.71343890918102e-09, + "CAH": 3.654006552563e-09, + "CARR": 0.018253654093740097, + "CAT": 1.0299477250383548e-09, + "CB": 3.08010930429832e-05, + "CBOE": 1.9016272961462817e-08, + "CBRE": 0.0046679968114288544, + "CCI": 0.00029086542135716066, + "CCL": 9.484992744839141e-10, + "CDNS": 6.197971459893491e-09, + "CDW": 0.0005597901991825986, + "CE": 2.6727466409535385e-09, + "CEG": 0.03367717956699844, + "CF": 0.00925420306069185, + "CFG": 2.1120552751265594e-09, + "CHD": 0.002234765676315288, + "CHRW": 6.529731234648797e-09, + "CHTR": 0.00338592326448769, + "CI": 1.0804640853686564e-08, + "CINF": 1.6217079741444137e-08, + "CL": 9.111580508956983e-06, + "CLX": 1.4623434162424286e-05, + "CMCSA": 0.005604876922302067, + "CME": 0.005800970126739091, + "CMG": 0.005452954644276125, + "CMI": 1.7762856574460924e-09, + "CMS": 1.8221099117483424e-09, + "CNC": 0.00088585353998888, + "CNP": 1.6962280493004995e-09, + "COF": 0.007066970375909293, + "COO": 3.757207753850459e-09, + "COP": 2.2829317325365106e-09, + "COR": 0.00284258426118796, + "COST": 3.721283796159408e-09, + "CPAY": 7.197091308761077e-09, + "CPB": 6.055231213756102e-09, + "CPRT": 0.000621809399503536, + "CPT": 2.435523194278418e-09, + "CRL": 1.1516953411692733e-09, + "CRM": 0.006658137593690511, + "CRWD": 1.0831575046064875e-08, + "CSCO": 0.0060415385201862985, + "CSGP": 6.247086670269513e-09, + "CSX": 3.305634564264487e-09, + "CTAS": 5.180623281888756e-09, + "CTLT": 1.816057864501503e-09, + "CTRA": 8.619954134248021e-10, + "CTSH": 0.008283062875551445, + "CTVA": 9.381833745320456e-05, + "CVS": 2.6060436256432017e-09, + "CVX": 3.4451173786694387e-09, + "CZR": 0.007703932965431777, + "D": 3.9969312066902795e-09, + "DAL": 0.0005020063117383771, + "DAY": 9.309969425756067e-10, + "DD": 2.1457611580603397e-09, + "DE": 3.5249839695929164e-09, + "DECK": 0.000759713581975294, + "DFS": 0.0028818179549465017, + "DG": 1.7076700220951404e-09, + "DGX": 7.871616361350849e-09, + "DHI": 1.9859038871714083e-08, + "DHR": 0.0014435732014689325, + "DIS": 4.099089775227921e-09, + "DLR": 3.897238906013711e-09, + "DLTR": 0.0008648689532426923, + "DOC": 8.236875550515885e-10, + "DOV": 2.147568978706649e-09, + "DOW": 2.0962731486885966e-09, + "DPZ": 9.438453319372357e-06, + "DRI": 2.1580945103501163e-06, + "DTE": 2.58117131067572e-09, + "DUK": 6.616835740199309e-07, + "DVA": 0.003065145646323071, + "DVN": 8.583264565099408e-10, + "DXCM": 0.00475588200550255, + "EA": 0.003185780884478718, + "EBAY": 3.6671887918726387e-09, + "ECL": 2.075614438726367e-09, + "ED": 4.0207648753261374e-09, + "EFX": 2.043501423302592e-09, + "EG": 9.580087225855562e-09, + "EIX": 3.855613808072375e-09, + "EL": 1.8162812868240622e-09, + "ELV": 7.270908458050842e-09, + "EMN": 1.5919024268186951e-09, + "EMR": 1.1891340957161839e-09, + "ENPH": 0.0037739771447416743, + "EOG": 2.19873166022736e-09, + "EPAM": 0.005110807023941494, + "EQIX": 0.0006910730728561256, + "EQR": 2.0598355581794825e-09, + "EQT": 6.592437968516315e-10, + "ES": 1.795559143561492e-09, + "ESS": 3.4572987345451986e-09, + "ETN": 8.002835210879607e-10, + "ETR": 3.731670536867285e-09, + "ETSY": 3.074476616845452e-09, + "EVRG": 1.3402333812818779e-09, + "EW": 2.315136740473721e-09, + "EXC": 2.5094649983879764e-09, + "EXPD": 8.76572007336256e-09, + "EXPE": 0.003258043583598781, + "EXR": 7.648660835143186e-09, + "F": 6.613481152030768e-10, + "FANG": 0.011878741086420726, + "FAST": 0.00281559780345617, + "FCX": 1.0619872131194095e-09, + "FDS": 0.001039697843720733, + "FDX": 0.004843670073454515, + "FE": 2.15825017604666e-09, + "FFIV": 0.0023526342601381785, + "FI": 7.636782561015101e-09, + "FICO": 0.0015268182880255042, + "FIS": 2.486263079996322e-09, + "FITB": 3.6770045590144214e-09, + "FMC": 2.5248186187010585e-09, + "FOX": 1.2085791905056399e-09, + "FOXA": 1.691770455429609e-09, + "FRT": 1.324265505138853e-09, + "FSLR": 1.4877634973059384e-09, + "FTNT": 0.006437906682037285, + "FTV": 8.747453026678527e-10, + "GD": 6.944843253477475e-09, + "GDDY": 7.519284596299982e-09, + "GE": 1.6891723605727587e-09, + "GEHC": 0.0015576333713289575, + "GEN": 1.2229888712028077e-09, + "GEV": 0.00968244113859696, + "GILD": 0.006525020058888446, + "GIS": 0.007292090217627049, + "GL": 8.422424840636654e-09, + "GLW": 1.6315577175086491e-09, + "GM": 1.3437743778508508e-09, + "GNRC": 1.3646175710462628e-09, + "GOOG": 0.02068646356203514, + "GOOGL": 0.0023113374870747235, + "GPC": 3.5264067396930754e-09, + "GPN": 5.988255844408684e-09, + "GRMN": 0.0019249023485981038, + "GS": 2.956704035816599e-09, + "GWW": 1.4815020314455555e-09, + "HAL": 1.0826192906555632e-09, + "HAS": 1.0384237359228616e-06, + "HBAN": 8.887560871980778e-10, + "HCA": 0.005107310810377102, + "HD": 0.00857345466903343, + "HES": 2.4158229702349464e-09, + "HIG": 0.004861211934818637, + "HII": 1.0228772432811177e-08, + "HLT": 6.934495818338765e-09, + "HOLX": 0.0025196226436248045, + "HON": 2.0594847103546406e-09, + "HPE": 6.808346804135307e-10, + "HPQ": 1.2374637337849575e-09, + "HRL": 3.834196838497089e-09, + "HSIC": 4.230397354634471e-09, + "HST": 1.1971426622460964e-09, + "HSY": 0.009712549076059148, + "HUBB": 7.709938423045719e-10, + "HUM": 0.0015307286493475185, + "HWM": 0.0022276058161030438, + "IBM": 1.8399953872316626e-09, + "ICE": 0.0009567769550006476, + "IDXX": 7.160284359857756e-09, + "IEX": 1.89644019159843e-09, + "IFF": 2.152520090648101e-09, + "INCY": 0.0033744351716835444, + "INTC": 0.00012065458494034269, + "INTU": 0.001714668579651134, + "INVH": 1.1221064302392105e-09, + "IP": 1.503256027138268e-09, + "IPG": 2.432615616127708e-09, + "IQV": 1.4606821065502843e-09, + "IR": 1.1396391608381756e-08, + "IRM": 2.727777198265929e-09, + "ISRG": 0.006094334214696993, + "IT": 8.195745695404085e-09, + "ITW": 2.7850136961537864e-09, + "IVZ": 1.0905574882808126e-09, + "J": 2.4977741394693223e-09, + "JBHT": 2.6699281600269998e-09, + "JBL": 0.002142235037702666, + "JCI": 9.717901112207923e-10, + "JKHY": 0.0007559796871766616, + "JNJ": 0.011793066088341445, + "JNPR": 2.2707449230827172e-09, + "JPM": 0.00186017014007073, + "K": 0.0009982941565809152, + "KDP": 1.4224642276514515e-09, + "KEY": 7.523762136245884e-10, + "KEYS": 1.7563240538612992e-09, + "KHC": 7.039950786823376e-10, + "KIM": 1.12811367901662e-09, + "KKR": 3.116768606881744e-09, + "KLAC": 0.0011422964932692361, + "KMB": 0.004212440271383673, + "KMI": 4.2601768504107305e-10, + "KMX": 6.571918931463876e-09, + "KO": 0.00018723465066452296, + "KR": 5.525193210255382e-09, + "KVUE": -1.2673183677053997e-10, + "L": 3.588492589513547e-09, + "LDOS": 2.6665944767877332e-08, + "LEN": 7.780765144100693e-09, + "LH": 1.9409700387637363e-09, + "LHX": 3.087139604240749e-09, + "LIN": 3.131036405317517e-08, + "LKQ": 0.003755019049107435, + "LLY": 2.139965358661778e-08, + "LMT": 0.006972897491124307, + "LNT": 1.590605256240127e-09, + "LOW": 8.234144439161937e-09, + "LRCX": 0.0006468515548538317, + "LULU": 0.0013065634164795815, + "LUV": 2.2446319377235092e-05, + "LVS": 0.0015625180267105946, + "LW": 1.2004078801999406e-08, + "LYB": 0.00290559340250683, + "LYV": 0.0024643143158431025, + "MA": 0.024508850878830472, + "MAA": 2.9899251911274514e-09, + "MAR": 6.492239821762899e-09, + "MAS": 2.2929840552035018e-09, + "MCD": 0.00890426142829627, + "MCHP": 0.0017627788440276984, + "MCK": 1.2526180120624657e-08, + "MCO": 2.231845672858943e-09, + "MDLZ": 3.0646891773925424e-09, + "MDT": 1.2153469833764614e-06, + "MET": 2.688644958830461e-09, + "META": 0.02003920440200478, + "MGM": 0.003125524828142503, + "MHK": 2.429380409028452e-09, + "MKC": 3.133636080552378e-09, + "MKTX": 0.00493549411954076, + "MLM": 1.5406363796974756e-09, + "MMC": 2.5392542947860283e-09, + "MMM": 2.003170705782325e-09, + "MNST": 0.004179809039791388, + "MO": 3.455923085685363e-09, + "MOH": 0.0018209680922814295, + "MOS": 6.331021638212493e-10, + "MPC": 0.011015445328773571, + "MPWR": 8.720554267898689e-08, + "MRK": 0.004657500967296419, + "MRNA": 0.004976604800254203, + "MRO": 4.992466796791968e-10, + "MS": 0.004539582503758699, + "MSCI": 0.002674005271924923, + "MSFT": 0.03359530323308249, + "MSI": 5.163124965399951e-09, + "MTB": 9.221472924616737e-09, + "MTCH": 2.88052411348719e-09, + "MTD": 3.381640773667815e-09, + "MU": 0.003276901631940589, + "NCLH": 1.1081167683148623e-09, + "NDAQ": 3.872174371659868e-09, + "NDSN": 2.0708874870495455e-09, + "NEE": 2.204208705072405e-09, + "NEM": 1.0120478949321113e-09, + "NFLX": 0.014470945455840014, + "NI": 1.3417533529278576e-09, + "NKE": 8.796654621653555e-09, + "NOC": 3.041113048767413e-08, + "NOW": 0.004879781495999622, + "NRG": 8.461445539551343e-10, + "NSC": 4.765021715366994e-09, + "NTAP": 0.005067229271604922, + "NTRS": 2.156367152902133e-09, + "NUE": 2.6849656035601923e-09, + "NVDA": 0.11883625090644691, + "NVR": 0.0014618922766841706, + "NWS": 7.824321756824701e-10, + "NWSA": 7.90158551844916e-10, + "NXPI": 0.006658185579149903, + "O": 3.765864820962967e-09, + "ODFL": 0.0008818229532269135, + "OKE": 2.0932295809636472e-09, + "OMC": 2.0083568714821643e-09, + "ON": 5.492965702698097e-09, + "ORCL": 0.006288452681332727, + "ORLY": 0.0010095103830200605, + "OTIS": 0.0014335478798149432, + "OXY": 1.5231099298934933e-09, + "PANW": 0.0056574371072771095, + "PARA": 0.0017504229496805265, + "PAYC": 5.262344686090904e-09, + "PAYX": 6.107619570932114e-09, + "PCAR": 3.5359601752920112e-09, + "PCG": 1.3337537398530114e-09, + "PEG": 2.575951902440629e-09, + "PEP": 0.0066669585237177096, + "PFE": 2.2709645710251502e-09, + "PFG": 6.850467451564189e-05, + "PG": 1.7054132757929387e-08, + "PGR": 0.007686317505959047, + "PH": 1.752780453783206e-09, + "PHM": 6.6153364008767764e-09, + "PKG": 7.66664585553269e-09, + "PLD": 2.476755566862967e-09, + "PM": 7.115906941408404e-09, + "PNC": 4.3191485491729615e-09, + "PNR": 1.0320512015069191e-09, + "PNW": 2.0382323502767004e-09, + "PODD": 1.4014330788894098e-07, + "POOL": 0.0008033279325153166, + "PPG": 3.968444670161214e-09, + "PPL": 2.1214402760653017e-09, + "PRU": 1.0523458677995996e-07, + "PSA": 2.495199287262131e-09, + "PSX": 1.958010440156183e-08, + "PTC": 7.142995726885295e-09, + "PWR": 3.4640403492808617e-09, + "PYPL": 8.531896822850307e-10, + "QCOM": 0.004218703637391179, + "QRVO": 6.365157569917555e-10, + "RCL": 0.0004718018501572353, + "REG": 1.8915367206064588e-09, + "REGN": 0.0012329348663609999, + "RF": 1.274747469760231e-09, + "RJF": 4.240005702380239e-09, + "RL": 2.0966791961941705e-09, + "RMD": 0.0020100595762550092, + "ROK": 3.448329099860229e-09, + "ROL": 2.1285434133916844e-09, + "ROP": 0.0049973040339059095, + "ROST": 0.0009982384047807936, + "RSG": 5.819568616943043e-09, + "RTX": 5.14684120046733e-09, + "RVTY": 1.4947440985623587e-09, + "SBAC": 0.00506075943971183, + "SBUX": 0.007654979013774201, + "SCHW": 1.491613175393577e-06, + "SHW": 2.794116328552899e-08, + "SJM": 2.5778940777780886e-08, + "SLB": 1.0351880048887115e-09, + "SMCI": 0.010297215393912516, + "SNA": 1.8407692861100855e-09, + "SNPS": 1.5146600470358099e-09, + "SO": 1.0131389924036917e-05, + "SOLV": -6.000490070412248e-10, + "SPG": 2.286487042832325e-09, + "SPGI": 2.9667572854537243e-09, + "SRE": 3.949373103924732e-09, + "STE": 4.947858466614688e-07, + "STLD": 6.049405411026006e-09, + "STT": 0.00027917332738511367, + "STX": 4.778731102697209e-09, + "STZ": 0.0015326454963192958, + "SWK": 1.4790099245027991e-09, + "SWKS": 2.0427086382586186e-09, + "SYF": 2.2037736760355417e-09, + "SYK": 0.0005749183364978461, + "SYY": 4.919741908401386e-09, + "T": 2.5221699067477533e-09, + "TAP": 2.428104283146739e-09, + "TDG": 0.0053995037528154904, + "TDY": 5.905034016294019e-09, + "TECH": 5.57095221626425e-09, + "TEL": 3.548869428120629e-09, + "TER": 1.7214849645080782e-09, + "TFC": 1.7480030130891005e-09, + "TFX": 4.695184825961573e-09, + "TGT": 3.7081370830059675e-09, + "TJX": 0.0003935389290110736, + "TMO": 4.63145468842514e-09, + "TMUS": 0.0069751738312931345, + "TPR": 0.002157422602472682, + "TRGP": 0.00037165354082399393, + "TRMB": 2.822202896167954e-09, + "TROW": 3.867711344873562e-09, + "TRV": 4.114460281784534e-09, + "TSCO": 8.290502453895522e-09, + "TSLA": 0.08510090474489186, + "TSN": 0.004579090113348659, + "TT": 1.3533588257800508e-09, + "TTWO": 0.0006123157129728095, + "TXN": 3.371152504590414e-09, + "TXT": 1.4287286940192917e-09, + "TYL": 1.8895184793302989e-06, + "UAL": 0.0030740792358327786, + "UBER": 1.8472978957495562e-09, + "UDR": 1.3222899444670463e-09, + "UHS": 1.875677878459318e-09, + "ULTA": 0.002351483691391648, + "UNH": 0.015669388454309312, + "UNP": 3.870254360555991e-09, + "UPS": 1.3010174301702243e-09, + "URI": 2.1730018489027855e-09, + "USB": 1.6771825403745818e-09, + "USDOLLAR": 1.6604663797149116e-07, + "V": 0.0016278810608091948, + "VICI": 1.5727898946496451e-09, + "VLO": 4.66121845965972e-09, + "VLTO": 0.011425029966049943, + "VMC": 1.038607359601378e-09, + "VRSK": 6.521517072678227e-09, + "VRSN": 0.0024013833474098648, + "VRTX": 0.0015335698687028697, + "VST": 1.0817499261912634e-09, + "VTR": 3.6487270328545385e-09, + "VTRS": 1.1330015758652398e-09, + "VZ": 3.1383839112022523e-09, + "WAB": 1.5374981864856974e-09, + "WAT": 3.853380794944353e-09, + "WBA": 5.052113090714492e-10, + "WBD": 2.2512811953538338e-10, + "WDC": 2.455430273385683e-09, + "WEC": 5.137516543133652e-09, + "WELL": 2.875878119854864e-09, + "WFC": 3.900769516834469e-09, + "WM": 1.3225303186173198e-06, + "WMB": 4.36875250742679e-09, + "WMT": 0.010412405755460395, + "WRB": 3.6177742531645475e-09, + "WST": 1.6205654773520946e-09, + "WTW": 4.050166414741282e-09, + "WY": 1.0445483233345754e-09, + "WYNN": 0.0020719783144765714, + "XEL": 2.6244978011644266e-09, + "XOM": 3.6327069832829344e-09, + "XYL": 3.1194942897392497e-09, + "YUM": 7.118405383751416e-09, + "ZBH": 1.7949372944118533e-09, + "ZBRA": 1.2756171286249903e-09, + "ZTS": 3.548031666427781e-09 } } \ No newline at end of file From 8f7a625c7217f7b19eec1d5db806ad0d5e28091d Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 9 Aug 2024 11:31:50 +0400 Subject: [PATCH 122/125] [auto commit] ftse100_daily reconciliation & execution on 2024-08-09 --- .../ftse100_daily_initial_holdings.json | 103 ++++++++++++++++++ .../ftse100_daily_target_weights.json | 103 ++++++++++++++++++ 2 files changed, 206 insertions(+) diff --git a/examples/strategies/ftse100_daily_initial_holdings.json b/examples/strategies/ftse100_daily_initial_holdings.json index ddddbb567..96ed3f2c8 100644 --- a/examples/strategies/ftse100_daily_initial_holdings.json +++ b/examples/strategies/ftse100_daily_initial_holdings.json @@ -12440,5 +12440,108 @@ "WEIR.L": 9628.285620237453, "WPP.L": 9724.764864165054, "WTB.L": 8579.72646542927 + }, + "2024-08-09 07:00:00+00:00": { + "AAF.L": 20834.427950913036, + "AAL.L": 9905.844385127632, + "ABF.L": 9726.931730158447, + "ADM.L": 10619.562318192378, + "AHT.L": 15902.472336561688, + "ANTO.L": 18914.19364807407, + "AUTO.L": 10218.210770680345, + "AV.L": 9956.652724559659, + "AZN.L": 13043.338625124992, + "BA.L": 10421.427274238064, + "BARC.L": 10072.728918136072, + "BATS.L": 8924.393939473992, + "BDEV.L": 10306.15114951822, + "BEZ.L": 10033.95210536948, + "BKG.L": 9987.23225182277, + "BME.L": 10010.580934433672, + "BNZL.L": 9617.720930264979, + "BP.L": 1.3522253761547687e-12, + "BRBY.L": 10266.211468670992, + "BT-A.L": 0.0, + "CCH.L": 0.0, + "CNA.L": 10233.726309132897, + "CPG.L": 2342.0, + "CRDA.L": 11657.682688346054, + "CTEC.L": 39.81630355733361, + "DARK.L": 26127.055981546997, + "DCC.L": 20927.73520893764, + "DGE.L": 9787.208248477124, + "DPLM.L": 8220.074243328205, + "EDV.L": 6250.903261470429, + "ENT.L": 10281.56702257025, + "EXPN.L": 10573.113433658122, + "EZJ.L": 8894.916583374856, + "FCIT.L": 0.0, + "FRAS.L": 9705.478425007188, + "FRES.L": 10050.492873856816, + "GBPOUND": 2290.615481180787, + "GLEN.L": 9153.578978912607, + "GSK.L": 9630.879078250895, + "HIK.L": 9972.463171407833, + "HL.L": 9990.245677888986, + "HLMA.L": 10053.401414624652, + "HLN.L": 1480.8000488281245, + "HSBA.L": 10484.862048527086, + "HWDN.L": 9775.354405170336, + "IAG.L": 10080.160250591269, + "ICG.L": 9984.174662801011, + "IHG.L": 14516.926624123535, + "III.L": 9029.160889542232, + "IMB.L": 10769.247661324476, + "IMI.L": 10612.141118749361, + "INF.L": 9715.161477271778, + "ITRK.L": 9407.898598367254, + "JD.L": 10787.87077043721, + "KGF.L": 10181.753785070297, + "LAND.L": 0.0, + "LGEN.L": 10165.866948401776, + "LLOY.L": 0.0, + "LMP.L": 0.0, + "LSEG.L": 29505.475269446888, + "MKS.L": 0.0, + "MNDI.L": 10510.028714526878, + "MNG.L": 10059.444362306387, + "MRO.L": 39189.60391252653, + "NG.L": 9982.450535117818, + "NWG.L": 10210.965093653867, + "NXT.L": 9560.735853294384, + "PHNX.L": 0.0, + "PRU.L": 10398.267099365923, + "PSH.L": 47724.41858071836, + "PSN.L": 9685.940252874667, + "PSON.L": 2125.2642100106063, + "REL.L": 10588.366354692298, + "RIO.L": 10646.865556451565, + "RKT.L": 8793.425953593189, + "RMV.L": 11883.58867195361, + "RR.L": 10023.974765067032, + "RTO.L": 10125.101179890786, + "SBRY.L": 0.0, + "SDR.L": 10186.230684410551, + "SGE.L": 36429.728261597185, + "SGRO.L": 0.0, + "SHEL.L": 5561.999999999999, + "SMDS.L": 10005.323991067648, + "SMIN.L": 0.0, + "SMT.L": 10598.26666390622, + "SN.L": 6002.206543496215, + "SPX.L": 7930.480095855714, + "SSE.L": 9507.74385545291, + "STAN.L": 10210.406830706524, + "SVT.L": 10216.366968992295, + "TSCO.L": 9993.838682186177, + "TW.L": 10197.803616448075, + "ULVR.L": 9688.769969182289, + "UTG.L": 9528.419276722225, + "UU.L": 9952.501785870661, + "VOD.L": 10149.121442002634, + "VTY.L": 10309.996126392361, + "WEIR.L": 9740.598602021764, + "WPP.L": 9710.52238461317, + "WTB.L": 11423.2353853398 } } \ No newline at end of file diff --git a/examples/strategies/ftse100_daily_target_weights.json b/examples/strategies/ftse100_daily_target_weights.json index 849f051e1..e55d7b225 100644 --- a/examples/strategies/ftse100_daily_target_weights.json +++ b/examples/strategies/ftse100_daily_target_weights.json @@ -12049,5 +12049,108 @@ "WEIR.L": 0.009999999292069085, "WPP.L": 0.009999992053529664, "WTB.L": 0.009999978199630544 + }, + "2024-08-09 07:00:00+00:00": { + "AAF.L": 0.02062227353645055, + "AAL.L": 0.009999999470030238, + "ABF.L": 0.009999882675791067, + "ADM.L": 0.010210116921938187, + "AHT.L": 0.016412240961781302, + "ANTO.L": 0.01885542121860153, + "AUTO.L": 0.01000001319334746, + "AV.L": 0.010000051475179838, + "AZN.L": 0.01000005133255823, + "BA.L": 0.010000012349514984, + "BARC.L": 0.00999999779678691, + "BATS.L": 0.01000000611721718, + "BDEV.L": 0.010000008491556502, + "BEZ.L": 0.010000020189637939, + "BKG.L": 0.010000006452627698, + "BME.L": 0.009999990387031808, + "BNZL.L": 0.009999989565944216, + "BP.L": 3.465734980895311e-07, + "BRBY.L": 0.009999990914636832, + "BT-A.L": 3.2360581695916436e-08, + "CCH.L": 1.4751794237700927e-07, + "CNA.L": 0.00999999305275297, + "CPG.L": 0.001524978204948042, + "CRDA.L": 0.009999998778645151, + "CTEC.L": 2.510836574510242e-07, + "DARK.L": 0.02592460012633742, + "DCC.L": 0.020712486920250395, + "DGE.L": 0.009986766366173707, + "DPLM.L": 0.010000009747790296, + "EDV.L": 0.005807366999246432, + "ENT.L": 0.010000229808286631, + "EXPN.L": 0.010000002858736758, + "EZJ.L": 0.008835422862024543, + "FCIT.L": 4.0291805656849945e-08, + "FRAS.L": 0.010000001854214, + "FRES.L": 0.00999999444786489, + "GBPOUND": 1.815652846013857e-07, + "GLEN.L": 0.009060361882948004, + "GSK.L": 0.009999990540603436, + "HIK.L": 0.010000007077162847, + "HL.L": 0.010000008636930291, + "HLMA.L": 0.010000004451200587, + "HLN.L": 0.001465795591798183, + "HSBA.L": 0.010000003367406094, + "HWDN.L": 0.00999999927971944, + "IAG.L": 0.009999950326733335, + "ICG.L": 0.01000001017013319, + "IHG.L": 0.0140961061262162, + "III.L": 0.010000006281089198, + "IMB.L": 0.010000026170685582, + "IMI.L": 0.009999993000696027, + "INF.L": 0.009999910295145565, + "ITRK.L": 0.00999999700139328, + "JD.L": 0.010677929422906724, + "KGF.L": 0.009999992838686675, + "LAND.L": 2.501757124392427e-08, + "LGEN.L": 0.01000000241059099, + "LLOY.L": 1.1354018004387374e-07, + "LMP.L": 7.869246303413957e-08, + "LSEG.L": 0.028773442583542586, + "MKS.L": 7.81825968352974e-08, + "MNDI.L": 0.010000000554418544, + "MNG.L": 0.009999998713418673, + "MRO.L": 0.03879133454411669, + "NG.L": 0.009999977431369144, + "NWG.L": 0.009999993289689571, + "NXT.L": 0.010000016499537969, + "PHNX.L": 5.0753590444295205e-08, + "PRU.L": 0.009999997933719392, + "PSH.L": 0.046790158052754736, + "PSN.L": 0.010000000827004451, + "PSON.L": 0.0021612619403779693, + "REL.L": 0.009999995682395237, + "RIO.L": 0.010000005695244162, + "RKT.L": 0.009999984269964575, + "RMV.L": 0.011763365206836658, + "RR.L": 0.009999996988459528, + "RTO.L": 0.010000001889626658, + "SBRY.L": 6.79339114720587e-08, + "SDR.L": 0.009999994639646374, + "SGE.L": 0.03607472926571406, + "SGRO.L": 8.644420637360569e-08, + "SHEL.L": 0.00550396855705697, + "SMDS.L": 0.009999992455413066, + "SMIN.L": 1.576789434492237e-07, + "SMT.L": 0.009999983320913853, + "SN.L": 0.005948130693932211, + "SPX.L": 0.009999970458569263, + "SSE.L": 0.009999997905723512, + "STAN.L": 0.009999995232598003, + "SVT.L": 0.010000006447914942, + "TSCO.L": 0.009999999742645517, + "TW.L": 0.009999998677684311, + "ULVR.L": 0.0099999659341418, + "UTG.L": 0.010000014740745059, + "UU.L": 0.009999980194732968, + "VOD.L": 0.010000092175715453, + "VTY.L": 0.010000001297321473, + "WEIR.L": 0.009999998691439681, + "WPP.L": 0.009999986111317437, + "WTB.L": 0.009999983768115426 } } \ No newline at end of file From a6d5c41f249d0d20c9bfda7dfeecedea3249e338 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 9 Aug 2024 18:00:46 +0400 Subject: [PATCH 123/125] [auto commit] dow30_daily reconciliation & execution on 2024-08-09 --- .../dow30_daily_initial_holdings.json | 41 +++++++++++++++++-- .../dow30_daily_target_weights.json | 33 +++++++++++++++ 2 files changed, 70 insertions(+), 4 deletions(-) diff --git a/examples/strategies/dow30_daily_initial_holdings.json b/examples/strategies/dow30_daily_initial_holdings.json index 7abe316a3..47e1a519c 100644 --- a/examples/strategies/dow30_daily_initial_holdings.json +++ b/examples/strategies/dow30_daily_initial_holdings.json @@ -5115,14 +5115,14 @@ "WMT": 0.00037610242391381633 }, "2024-08-08 13:30:00+00:00": { - "AAPL": 206140.97193928342, + "AAPL": 206155.4818468031, "AMGN": 18836.619723153974, - "AMZN": 213556.69242025138, + "AMZN": 213498.52784477145, "AXP": 0.0, "BA": 0.0, "CAT": 0.0, "CRM": 76420.6821028011, - "CSCO": 42556.60288192047, + "CSCO": 42514.349566652105, "CVX": 0.0, "DIS": 0.0, "DOW": 0.0, @@ -5137,7 +5137,7 @@ "MCD": 1.2677359454357817e-12, "MMM": 0.0, "MRK": 0.0, - "MSFT": 213483.36240075924, + "MSFT": 213504.58794455702, "NKE": 1.0052706280099695e-12, "PG": 0.0, "TRV": 0.0, @@ -5146,5 +5146,38 @@ "V": 31920.154216482504, "VZ": 0.0, "WMT": 0.0003703946312030649 + }, + "2024-08-09 13:30:00+00:00": { + "AAPL": 205159.09550153813, + "AMGN": 19421.514762328337, + "AMZN": 214922.01875113603, + "AXP": 0.0, + "BA": 0.0, + "CAT": 0.0, + "CRM": 78136.09182920097, + "CSCO": 42954.39832255308, + "CVX": 0.0, + "DIS": 0.0, + "DOW": 0.0, + "GS": 0.0, + "HD": 103312.90470207478, + "HON": 0.0, + "IBM": 0.0, + "INTC": 0.0, + "JNJ": 0.0, + "JPM": 0.0, + "KO": 0.0, + "MCD": 1.280793817093698e-12, + "MMM": 0.0, + "MRK": 0.0, + "MSFT": 214332.20605886367, + "NKE": 1.0174881645980742e-12, + "PG": 0.0, + "TRV": 0.0, + "UNH": 96848.43425184448, + "USDOLLAR": -153.30699132172796, + "V": 32048.760858532638, + "VZ": 0.0, + "WMT": 0.0003759915700010902 } } \ No newline at end of file diff --git a/examples/strategies/dow30_daily_target_weights.json b/examples/strategies/dow30_daily_target_weights.json index b1dd31086..145cb18f0 100644 --- a/examples/strategies/dow30_daily_target_weights.json +++ b/examples/strategies/dow30_daily_target_weights.json @@ -5146,5 +5146,38 @@ "V": 0.03188489836641025, "VZ": 1.8975916348186446e-09, "WMT": 1.535838221223034e-08 + }, + "2024-08-09 13:30:00+00:00": { + "AAPL": 0.20373650577609073, + "AMGN": 0.019286507233604692, + "AMZN": 0.21327893436467016, + "AXP": 4.76922392288634e-09, + "BA": 8.081579131553081e-09, + "CAT": 4.1635478863689965e-09, + "CRM": 0.07759426785651123, + "CSCO": 0.042656551196528905, + "CVX": 4.599448188097267e-09, + "DIS": 5.931672476033659e-09, + "DOW": 6.143248815695494e-09, + "GS": 4.90718904797368e-09, + "HD": 0.10259640720523952, + "HON": 2.8733360685194517e-09, + "IBM": 2.132636327157522e-09, + "INTC": 4.0588707388480224e-09, + "JNJ": 6.906905029355955e-09, + "JPM": 7.989765032463206e-09, + "KO": 5.291294880051707e-09, + "MCD": 1.5114120511951207e-08, + "MMM": 2.996876220059038e-09, + "MRK": 5.717874784870715e-09, + "MSFT": 0.21284611261860667, + "NKE": 1.3180573984632444e-08, + "PG": 3.979869535600046e-09, + "TRV": 3.4846267547655174e-09, + "UNH": 0.09617846975537048, + "USDOLLAR": 7.974540607664973e-10, + "V": 0.03182610298067801, + "VZ": 3.0280261084008222e-09, + "WMT": 2.4864560038878084e-08 } } \ No newline at end of file From b0e2798524fe11da3761479033cb5c6fdfcf0673 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 9 Aug 2024 18:02:28 +0400 Subject: [PATCH 124/125] [auto commit] ndx100_daily reconciliation & execution on 2024-08-09 --- .../ndx100_daily_initial_holdings.json | 156 +++++++++++++++--- .../ndx100_daily_target_weights.json | 104 ++++++++++++ 2 files changed, 234 insertions(+), 26 deletions(-) diff --git a/examples/strategies/ndx100_daily_initial_holdings.json b/examples/strategies/ndx100_daily_initial_holdings.json index 8f30aa0b6..76cf1b9a2 100644 --- a/examples/strategies/ndx100_daily_initial_holdings.json +++ b/examples/strategies/ndx100_daily_initial_holdings.json @@ -16015,7 +16015,7 @@ "ZS": 18348.485096311702 }, "2024-08-08 13:30:00+00:00": { - "AAPL": 3591.7419632529604, + "AAPL": 3591.994779775707, "ABNB": 0.0, "ADBE": 15306.530740596829, "ADI": 206.19000244140656, @@ -16023,13 +16023,13 @@ "ADSK": 316.8061860116016, "AEP": 0.0, "AMAT": 1619.7940068617452, - "AMD": -1.608046159316854e-11, + "AMD": -1.6076807091514564e-11, "AMGN": 26848.890581770334, - "AMZN": 18257.190449211732, + "AMZN": 18252.21789733382, "ANSS": 4236.123185250715, - "ARM": 42298.81850733481, - "ASML": 15.07621892733794, - "AVGO": -31.99710348337725, + "ARM": 42245.916875704235, + "ASML": 15.070442299024034, + "AVGO": -32.008438608356094, "AZN": 0.0, "BIIB": 13849.895397256963, "BKNG": 6029.109225509756, @@ -16037,26 +16037,26 @@ "CCEP": 14623.787706133582, "CDNS": -81.17035332174197, "CDW": 25729.73922601726, - "CEG": 54920.48821730893, + "CEG": 54845.66466387932, "CHTR": 17925.918930949556, "CMCSA": 24123.54853032074, "COST": 0.0, - "CPRT": 5187.79822626054, - "CRWD": 2435.342476257811, - "CSCO": 45675.13609178302, + "CPRT": 5188.322859305926, + "CRWD": 2434.0936334978514, + "CSCO": 45629.786468116705, "CSGP": 11994.999428709616, - "CSX": -6.614878664083558e-13, + "CSX": -6.608996520959492e-13, "CTAS": 0.0, "CTSH": 24193.793558183734, "DASH": 0.0, "DDOG": 10838.746164419616, "DLTR": 20499.69441549645, - "DXCM": 13702.927722097771, + "DXCM": 13703.910336170924, "EA": 12969.655877606954, "EXC": 0.0, "FANG": 22012.272314426984, "FAST": 16511.250177532114, - "FTNT": 26694.115564931522, + "FTNT": 26692.584989954583, "GEHC": 12514.970482576631, "GFS": 8535.39919870376, "GILD": 23748.447756409474, @@ -16065,34 +16065,34 @@ "HON": 0.0, "IDXX": 0.0, "ILMN": 7539.228951816477, - "INTC": 1.2212426080843308, + "INTC": 1.221882351693733, "INTU": 7905.881045595289, "ISRG": 14262.593362454048, "KDP": -8.853305634376395e-13, "KHC": 0.0, "KLAC": 15701.183662134821, "LIN": 0.0, - "LRCX": -8.221215489888797, + "LRCX": -8.247060302150452, "LULU": 17004.302928737638, "MAR": 0.0, "MCHP": 17041.97000074616, "MDB": 23962.849215542697, "MDLZ": 1518.880020141602, "MELI": 26248.0245023782, - "META": -135.20525540371597, + "META": -135.0830664010151, "MNST": 14483.937965783818, "MRNA": 13598.423521466108, "MRVL": 0.0, - "MSFT": 39.38494443759991, + "MSFT": 39.388860278411734, "MU": 6.518256569585932, - "NFLX": 19259.915944860808, - "NVDA": 8174.3222719975165, + "NFLX": 19259.605997522285, + "NVDA": 8175.123925950533, "NXPI": 22108.205895358624, "ODFL": 7993.417689215038, "ON": 6685.1138434465565, "ORLY": 21264.33077887145, - "PANW": -7.32950038922551, - "PAYX": 9628.483730746022, + "PANW": -7.3609092268420655, + "PAYX": 9752.266389478837, "PCAR": 0.0, "PDD": 23760.05778118642, "PEP": 24843.93316975724, @@ -16104,18 +16104,122 @@ "SBUX": 17767.34149123498, "SNPS": 0.0, "TEAM": 6653.433077875888, - "TMUS": 22119.742324093673, + "TMUS": 22163.384779385207, "TSLA": 11316.89601429761, - "TTD": 32874.44967592416, + "TTD": 32994.44134138732, "TTWO": 8370.620216336094, "TXN": 0.0, - "USDOLLAR": 1356.0600460578014, + "USDOLLAR": 1356.060452182601, "VRSK": 9396.000000000005, - "VRTX": 7880.675366642364, - "WBA": 0.35749949209391574, + "VRTX": 7845.67803736447, + "WBA": 0.3588235630007387, "WBD": 0.0, "WDAY": 0.0, "XEL": 0.0, "ZS": 18057.936317664786 + }, + "2024-08-09 13:30:00+00:00": { + "AAPL": 3998.794029705877, + "ABNB": 0.0, + "ADBE": 15539.101940289975, + "ADI": 209.94999694824247, + "ADP": 2092.5600585937495, + "ADSK": 319.4756446867903, + "AEP": 0.0, + "AMAT": 2231.3549293908327, + "AMD": -1.6396588998196896e-11, + "AMGN": 27358.82428614059, + "AMZN": 18388.139373877453, + "ANSS": 4331.565967737152, + "ARM": 45553.92680107775, + "ASML": 14.973295158426426, + "AVGO": -32.75877753142909, + "AZN": 0.0, + "BIIB": 14077.91953003529, + "BKNG": 6172.343050980366, + "BKR": 0.0, + "CCEP": 14706.249631438497, + "CDNS": -84.08335339245436, + "CDW": 26641.743580050803, + "CEG": 56366.12205410661, + "CHTR": 18678.045368064108, + "CMCSA": 24506.163706546322, + "COST": 0.0, + "CPRT": 5449.213933162566, + "CRWD": 1793.342837955123, + "CSCO": 45961.63296275811, + "CSGP": 11936.684682760397, + "CSX": -6.679576255340222e-13, + "CTAS": 0.0, + "CTSH": 24412.323630927804, + "DASH": 0.0, + "DDOG": 11394.978620931173, + "DLTR": 20413.379583430662, + "DXCM": 14080.86565998844, + "EA": 13134.856536690899, + "EXC": 0.0, + "FANG": 22714.129161461075, + "FAST": 16660.295114003497, + "FTNT": 25999.16025941663, + "GEHC": 11162.07567595567, + "GFS": 8360.614979531534, + "GILD": 23958.937911121866, + "GOOG": 5927.7594094146125, + "GOOGL": -2.0812251697428957e-12, + "HON": 0.0, + "IDXX": 482.4100036621093, + "ILMN": 8023.908800237921, + "INTC": 1.2848955719870758, + "INTU": 8027.644100446988, + "ISRG": 14545.266584059029, + "KDP": -8.845594009162581e-13, + "KHC": 0.0, + "KLAC": 16301.450075346334, + "LIN": 0.0, + "LRCX": -8.540918507918867, + "LULU": 16949.919104669258, + "MAR": 0.0, + "MCHP": 17631.91661710978, + "MDB": 24050.93797998639, + "MDLZ": 1613.2199859619136, + "MELI": 26103.10183083625, + "META": -137.86346696538862, + "MNST": 15709.783640673752, + "MRNA": 13903.35761558932, + "MRVL": 0.0, + "MSFT": 39.541545214047744, + "MU": 6.753261133910592, + "NFLX": 19290.57049261048, + "NVDA": 8883.533237678794, + "NXPI": 22638.728863350945, + "ODFL": 8006.078973173302, + "ON": 7093.875320978731, + "ORLY": 21416.950402793074, + "PANW": 310.6465393860382, + "PAYX": 9748.150754897542, + "PCAR": 0.0, + "PDD": 23910.273331497086, + "PEP": 25118.33734540358, + "PYPL": 2.9039670167117344, + "QCOM": 5077.821244819415, + "REGN": 14551.63718998916, + "ROP": 16817.1301112988, + "ROST": 8537.04134201932, + "SBUX": 17904.61457821756, + "SNPS": 0.0, + "TEAM": 6206.372655264907, + "TMUS": 22345.621298898877, + "TSLA": 11984.289117862281, + "TTD": 33995.5156760334, + "TTWO": 8695.461057656414, + "TXN": 0.0, + "USDOLLAR": -3.664593689921038, + "VRSK": 10030.47967529297, + "VRTX": 7824.813761053179, + "WBA": 0.3591545886195295, + "WBD": 0.0, + "WDAY": 0.0, + "XEL": 0.0, + "ZS": 18066.177452467437 } } \ No newline at end of file diff --git a/examples/strategies/ndx100_daily_target_weights.json b/examples/strategies/ndx100_daily_target_weights.json index cd5394aed..3cfe402af 100644 --- a/examples/strategies/ndx100_daily_target_weights.json +++ b/examples/strategies/ndx100_daily_target_weights.json @@ -15910,5 +15910,109 @@ "WDAY": 9.304000337385915e-09, "XEL": 2.703521748423894e-07, "ZS": 0.017386165480442806 + }, + "2024-08-09 13:30:00+00:00": { + "AAPL": 0.004302351452884855, + "ABNB": 5.93123778082502e-09, + "ADBE": 0.014811871930865566, + "ADI": 0.00020285012351058376, + "ADP": 0.0025058335434187708, + "ADSK": 0.00029208727563171874, + "AEP": 1.2005436811977513e-08, + "AMAT": 0.0021499796440593096, + "AMD": 4.623896138081876e-09, + "AMGN": 0.02618096344321012, + "AMZN": 0.017758675255494245, + "ANSS": 0.004066634765346135, + "ARM": 0.04441437619274111, + "ASML": 1.7759737729125134e-08, + "AVGO": 1.9116026620637834e-08, + "AZN": 2.0608149178054034e-08, + "BIIB": 0.013588036474196395, + "BKNG": 0.007038059703839509, + "BKR": 2.9224295154218063e-08, + "CCEP": 0.014194575007803441, + "CDNS": 2.0722772552193153e-08, + "CDW": 0.025895608785180175, + "CEG": 0.05410318312548024, + "CHTR": 0.017724972611637593, + "CMCSA": 0.02365207329678352, + "COST": 1.4562182744254704e-08, + "CPRT": 0.005259796307290128, + "CRWD": 0.0016982817794565753, + "CSCO": 0.04460888263012668, + "CSGP": 0.011900150452261081, + "CSX": 1.0106571530375474e-07, + "CTAS": 2.431219413443923e-08, + "CTSH": 0.023656939539545705, + "DASH": 5.888013037828472e-09, + "DDOG": 0.011754617754214259, + "DLTR": 0.02025981222468764, + "DXCM": 0.013553703299074456, + "EA": 0.01267647429756892, + "EXC": 5.8742534092252075e-08, + "FANG": 0.02151182559532553, + "FAST": 0.016345180724377496, + "FTNT": 0.02564230284962318, + "GEHC": 0.011413072772591836, + "GFS": 0.008432803056183468, + "GILD": 0.023250636138502905, + "GOOG": 0.005712197953086057, + "GOOGL": 1.48731825074469e-07, + "HON": 1.185929527509834e-08, + "IDXX": 0.00010997506090542979, + "ILMN": 0.007375993777198689, + "INTC": 9.721284873348788e-09, + "INTU": 0.007529167996222193, + "ISRG": 0.014038056638867693, + "KDP": 1.127716295047402e-07, + "KHC": 1.161868953269731e-08, + "KLAC": 0.012891457859349323, + "LIN": 3.546700991775669e-07, + "LRCX": 9.596645362730135e-08, + "LULU": 0.016428595320742104, + "MAR": 3.369599124630795e-08, + "MCHP": 0.01701721743099633, + "MDB": 0.023057608010360085, + "MDLZ": 0.002280240815086863, + "MELI": 0.025176539015409984, + "META": 2.4035452309977175e-08, + "MNST": 0.015223048513974723, + "MRNA": 0.013418340383011729, + "MRVL": 1.1937246108611645e-08, + "MSFT": 1.5983615017306979e-07, + "MU": 1.530178173938701e-08, + "NFLX": 0.018574838035091874, + "NVDA": 0.0075306455637135245, + "NXPI": 0.021486129290155, + "ODFL": 0.007896412831385181, + "ON": 0.006845737369211347, + "ORLY": 0.021113045888748187, + "PANW": 3.814517314333827e-07, + "PAYX": 0.009734098683089202, + "PCAR": 1.0746873801582826e-08, + "PDD": 0.02309398523173646, + "PEP": 0.024242847863430894, + "PYPL": 3.277643392442712e-06, + "QCOM": 0.004443483862444155, + "REGN": 0.013285864807599098, + "ROP": 0.01668953629753205, + "ROST": 0.008265018783332188, + "SBUX": 0.017364191614238713, + "SNPS": 5.723435523686572e-09, + "TEAM": 0.005838574769238469, + "TMUS": 0.021563043921857546, + "TSLA": 0.01102326221902269, + "TTD": 0.03214059633463195, + "TTWO": 0.00821625316922669, + "TXN": 2.0921675053992834e-08, + "USDOLLAR": 1.9409285001432383e-07, + "VRSK": 0.010200857938690813, + "VRTX": 0.007910320567450207, + "WBA": 3.305056404960424e-08, + "WBD": 9.47251986341643e-09, + "WDAY": 1.1607410162000363e-08, + "XEL": 5.551243298509974e-07, + "ZS": 0.01743037958717724 } } \ No newline at end of file From b8cd350aaae52835a1a2328414e8e098498953f0 Mon Sep 17 00:00:00 2001 From: Enzo Busseti Date: Fri, 9 Aug 2024 18:09:47 +0400 Subject: [PATCH 125/125] [auto commit] sp500_daily reconciliation & execution on 2024-08-09 --- .../sp500_daily_initial_holdings.json | 611 ++++++++++++++++-- .../sp500_daily_target_weights.json | 505 +++++++++++++++ 2 files changed, 1063 insertions(+), 53 deletions(-) diff --git a/examples/strategies/sp500_daily_initial_holdings.json b/examples/strategies/sp500_daily_initial_holdings.json index 2e1bfb97a..39e0df1ce 100644 --- a/examples/strategies/sp500_daily_initial_holdings.json +++ b/examples/strategies/sp500_daily_initial_holdings.json @@ -76884,8 +76884,8 @@ "2024-08-08 13:30:00+00:00": { "A": 0.0, "AAL": 548.0532166767895, - "AAPL": 43591.681804862485, - "ABBV": 6797.496104491773, + "AAPL": 43594.75014816981, + "ABBV": 6776.107922922979, "ABNB": 0.0, "ABT": 3541.254138533083, "ACGL": 0.0, @@ -76900,24 +76900,24 @@ "AES": 0.0, "AFL": 3527.1069838931953, "AIG": 0.0, - "AIZ": 1.4529190276048871, + "AIZ": 1.4540288846188725, "AJG": 0.0, - "AKAM": -0.07654686922764019, + "AKAM": -0.07668763085060429, "ALB": 0.0, "ALGN": 385.7669722088976, "ALL": 6.655247183123242e-14, "ALLE": 0.0, "AMAT": 1790.5130225337932, "AMCR": 0.0, - "AMD": 27019.815888736455, + "AMD": 27013.675271361553, "AME": 0.0, "AMGN": 5836.7814750327, "AMP": 8.715200376013636, "AMT": 1344.9310300823988, - "AMZN": 33223.84316219679, + "AMZN": 33214.79427353195, "ANET": 3466.4501084934286, "ANSS": 295.8660488129473, - "AON": 18.812792566766554, + "AON": 18.72853944899466, "AOS": 0.0, "APA": 0.0, "APD": 0.0, @@ -76926,10 +76926,10 @@ "ARE": 0.0, "ATO": 0.0, "AVB": 0.0, - "AVGO": 19042.26787838173, + "AVGO": 19049.013691683056, "AVY": 0.0, "AWK": 0.0, - "AXON": 6159.8388862880165, + "AXON": 6175.67836457655, "AXP": 0.0, "AZO": 1.8148663189674376e-12, "BA": -9.7751324858801e-13, @@ -76941,7 +76941,7 @@ "BDX": 0.0, "BEN": 174.2742384466977, "BF-B": 0.0, - "BG": 590.5793661274173, + "BG": 592.5543396054043, "BIIB": 1775.9775131234824, "BIO": 0.0, "BK": 0.0, @@ -76962,15 +76962,15 @@ "CAH": 0.0, "CARR": 20086.500010092226, "CAT": 0.0, - "CB": 33.878518353286715, + "CB": 33.845370515381966, "CBOE": 0.0, "CBRE": 5136.780920921721, "CCI": 320.0483105747331, "CCL": 0.0, "CDNS": 0.0, "CDW": 573.6749752178815, - "CE": -2.4322668946758663e-14, - "CEG": 37060.70876844943, + "CE": -2.452302338646574e-14, + "CEG": 37010.21733960956, "CF": 10183.572605514884, "CFG": 0.0, "CHD": 2459.1921467205, @@ -76981,7 +76981,7 @@ "CL": 10.03134186219439, "CLX": 16.095328312376775, "CMCSA": 6167.745427840329, - "CME": 6383.423536046463, + "CME": 6382.955665075223, "CMG": 6000.58439186713, "CMI": 0.0, "CMS": 0.0, @@ -76994,12 +76994,12 @@ "COST": 0.0, "CPAY": 0.0, "CPB": 0.0, - "CPRT": 684.2536784872398, + "CPRT": 684.3228758760941, "CPT": 0.0, "CRL": 0.0, "CRM": 7326.825917052026, - "CRWD": -2.423966631422836, - "CSCO": 6648.253750886352, + "CRWD": -2.4227236221920814, + "CSCO": 6641.652877162955, "CSGP": -7.508435477194099e-14, "CSX": 0.0, "CTAS": 0.0, @@ -77008,7 +77008,7 @@ "CTSH": 9114.920326290441, "CTVA": 103.24030710559407, "CVS": 0.0, - "CVX": -5.131602228934859e-13, + "CVX": -5.15538480162281e-13, "CZR": 8477.60218650161, "D": 0.0, "DAL": 552.4201784351678, @@ -77027,19 +77027,19 @@ "DOC": 0.0, "DOV": 0.0, "DOW": 0.0, - "DPZ": 10.369242033834507, + "DPZ": 10.37797224216307, "DRI": 2.3816793718783065, "DTE": 0.0, "DUK": 1.2869581924607816, "DVA": 3379.7886337436953, "DVN": 0.0, - "DXCM": 5233.489671484539, + "DXCM": 5233.864956292808, "EA": 3505.7243487953488, "EBAY": 0.0, "ECL": 0.0, "ED": 0.0, "EFX": 0.0, - "EG": 5.3421266906977724e-14, + "EG": 5.3547181008171935e-14, "EIX": 0.0, "EL": 0.0, "ELV": -2.171400407629411e-13, @@ -77047,7 +77047,7 @@ "EMR": 0.0, "ENPH": 4087.646049278137, "EOG": 0.0, - "EPAM": 5780.77060305229, + "EPAM": 5360.896346144262, "EQIX": 785.1969125632911, "EQR": 0.0, "EQT": 0.0, @@ -77066,7 +77066,7 @@ "FANG": 13071.66875168627, "FAST": 3098.3556711206415, "FCX": 0.0, - "FDS": 1182.013660203868, + "FDS": 1178.5075929218858, "FDX": 5333.935080110484, "FE": 0.0, "FFIV": 2591.8584739773214, @@ -77079,7 +77079,7 @@ "FOXA": 0.0, "FRT": 0.0, "FSLR": -7.211077433238122e-14, - "FTNT": 7108.620834067361, + "FTNT": 7108.213243220505, "FTV": 0.0, "GD": 3.7945096491474146e-13, "GDDY": 0.0, @@ -77089,7 +77089,7 @@ "GEV": 10654.794336892797, "GILD": 7180.301054407407, "GIS": 8024.395909490022, - "GL": 0.30175949495119675, + "GL": 0.30284679310398627, "GLW": 0.0, "GM": 0.0, "GNRC": 0.0, @@ -77103,13 +77103,13 @@ "HAL": 0.0, "HAS": 1.144936489082473, "HBAN": 0.0, - "HCA": 5782.432123442181, + "HCA": 5784.073700992197, "HD": 9434.419983530408, "HES": 0.0, "HIG": 5349.402154445169, - "HII": 0.6979748156775617, - "HLT": -1.2720278217167923e-13, - "HOLX": 2772.684292962092, + "HII": 0.6992141091354973, + "HLT": -1.269840235768992e-13, + "HOLX": 2769.9791732014387, "HON": 0.0, "HPE": 0.0, "HPQ": 0.0, @@ -77126,7 +77126,7 @@ "IEX": 0.0, "IFF": 0.0, "INCY": 3713.316153805755, - "INTC": 132.7720619818637, + "INTC": 132.84161415568875, "INTU": 1834.8435463107537, "INVH": 0.0, "IP": 0.0, @@ -77154,13 +77154,13 @@ "KIM": 0.0, "KKR": 0.0, "KLAC": 1421.620045895177, - "KMB": 4635.475645582066, + "KMB": 4606.673247451898, "KMI": 0.0, - "KMX": 1.0425196816473896, + "KMX": 1.0469029522479907, "KO": 206.03955449902796, "KR": 0.0, "KVUE": 0.0, - "L": -0.20904999816691525, + "L": -0.20907741322726248, "LDOS": 0.0, "LEN": 0.0, "LH": 0.0, @@ -77170,17 +77170,17 @@ "LLY": 1.5093286932532801, "LMT": 7673.153248489732, "LNT": 0.0, - "LOW": -2.743440014798495e-13, - "LRCX": 734.5046619675044, + "LOW": -2.750547751659055e-13, + "LRCX": 736.8137043612, "LULU": 1437.805683058372, "LUV": 24.70042483217856, "LVS": 1719.4374031919267, "LW": 21.182092698557195, - "LYB": 3197.4383375327366, + "LYB": 3214.969776383955, "LYV": 2711.779550230522, "MA": 26970.16218039985, "MAA": 0.0, - "MAR": -5.324814880317094e-13, + "MAR": -5.324938200994502e-13, "MAS": 0.0, "MCD": 9798.46845824576, "MCHP": 1939.6295953121707, @@ -77189,7 +77189,7 @@ "MDLZ": 0.0, "MDT": 1.3371775037952993, "MET": -0.03355343997962152, - "META": 22404.04625720467, + "META": 22383.799055567, "MGM": 3440.011756959576, "MHK": 0.0, "MKC": 0.0, @@ -77208,7 +77208,7 @@ "MRO": 0.0, "MS": 4995.476286141359, "MSCI": 3132.8721009237147, - "MSFT": 36969.0790751097, + "MSFT": 36972.75471895495, "MSI": 0.0, "MTB": -6.069786473160284, "MTCH": 0.0, @@ -77219,7 +77219,7 @@ "NDSN": 0.0, "NEE": 0.0, "NEM": 0.0, - "NFLX": 16156.451201478205, + "NFLX": 16156.191197796767, "NI": 0.0, "NKE": -3.0330285362063364e-14, "NOC": -4.376049682747298e-13, @@ -77229,7 +77229,7 @@ "NTAP": 5576.1075671739, "NTRS": 0.0, "NUE": 0.0, - "NVDA": 127915.37890397909, + "NVDA": 127927.92353651716, "NVR": 0.0, "NWS": 0.0, "NWSA": 0.0, @@ -77243,18 +77243,18 @@ "ORLY": 1108.2824243030516, "OTIS": 1577.5159629254392, "OXY": 0.0, - "PANW": 6225.526997846014, + "PANW": 6252.205019016497, "PARA": 1926.2093214869508, "PAYC": 0.0, - "PAYX": -0.633080103141681, + "PAYX": -0.6412189067736054, "PCAR": 0.0, "PCG": 0.0, "PEG": 0.0, "PEP": 7336.513830720351, "PFE": 0.0, - "PFG": 75.39526683996111, + "PFG": 75.29280134047313, "PG": 1.0836534505967341, - "PGR": 8458.201223119726, + "PGR": 8423.330953730087, "PH": 0.0, "PHM": -11.705000886903646, "PKG": -5.075151110250549e-13, @@ -77305,13 +77305,13 @@ "SRE": 0.0, "STE": 0.5202268780750479, "STLD": -2.5749359449555225e-14, - "STT": 307.2122393780251, - "STX": -12.00343353252326, + "STT": 309.22068750755943, + "STX": -11.93554525297993, "STZ": 1654.2121884840083, "SWK": 0.0, "SWKS": 0.0, "SYF": 0.0, - "SYK": 632.635475624781, + "SYK": 635.2879449751174, "SYY": 0.0, "T": 0.0, "TAP": 0.0, @@ -77325,7 +77325,7 @@ "TGT": 0.0, "TJX": 433.06115008098436, "TMO": 0.0, - "TMUS": 7675.689605512398, + "TMUS": 7690.8338117844305, "TPR": 2374.08054097443, "TRGP": 409.2512973442117, "TRMB": 0.0, @@ -77339,7 +77339,7 @@ "TXN": 0.0, "TXT": 0.0, "TYL": 0.0, - "UAL": 3382.791972225209, + "UAL": 3383.656770008139, "UBER": 0.0, "UDR": 0.0, "UHS": 0.0, @@ -77349,7 +77349,7 @@ "UPS": 0.0, "URI": 0.0, "USB": 0.0, - "USDOLLAR": 1365.1487198954726, + "USDOLLAR": 1365.1488385570765, "V": 1791.3512901413967, "VICI": 0.0, "VLO": 0.0, @@ -77357,13 +77357,13 @@ "VMC": 0.0, "VRSK": 0.0, "VRSN": 2642.543048024587, - "VRTX": 1852.6620693526502, + "VRTX": 1844.4345734255564, "VST": 0.0, "VTR": 0.0, "VTRS": 0.0, "VZ": 0.0, "WAB": 0.0, - "WAT": -2.2236490216894605e-13, + "WAT": -2.2300743044748027e-13, "WBA": 0.0, "WBD": 0.0, "WDC": -2.3298421586259184, @@ -77385,5 +77385,510 @@ "ZBH": 0.0, "ZBRA": 0.0, "ZTS": 0.0 + }, + "2024-08-09 13:30:00+00:00": { + "A": 0.0, + "AAL": 580.2915951519601, + "AAPL": 42747.808911820444, + "ABBV": 6916.038272668914, + "ABNB": 0.0, + "ABT": 3535.1348121755495, + "ACGL": 0.0, + "ACN": 2.4990039627104653e-13, + "ADBE": 9344.992275345212, + "ADI": 0.0, + "ADM": 0.0, + "ADP": 0.0, + "ADSK": -15.24144430254075, + "AEE": 0.0, + "AEP": 0.0, + "AES": 0.0, + "AFL": 3580.252742945448, + "AIG": 0.0, + "AIZ": 1.457272871616441, + "AJG": 0.0, + "AKAM": -0.08115044958544392, + "ALB": 0.0, + "ALGN": 187.2971921250826, + "ALL": 6.683835519827965e-14, + "ALLE": 0.0, + "AMAT": 1836.4211360457018, + "AMCR": 0.0, + "AMD": 27551.001155512564, + "AME": 0.0, + "AMGN": 6018.019116375275, + "AMP": 8.834081759782796, + "AMT": 1343.4290522542744, + "AMZN": 33462.13976908463, + "ANET": 3574.4859857899996, + "ANSS": 302.532115333462, + "AON": 18.870500519425345, + "AOS": 0.0, + "APA": 0.0, + "APD": 0.0, + "APH": 24.69004979233216, + "APTV": 2.3806951288779607e-14, + "ARE": 0.0, + "ATO": 0.0, + "AVB": 0.0, + "AVGO": 19495.558947885864, + "AVY": 0.0, + "AWK": 0.0, + "AXON": 6425.415875533966, + "AXP": 0.0, + "AZO": 1.8576321477154722e-12, + "BA": -1.0022740036247022e-12, + "BAC": 0.0, + "BALL": 0.0, + "BAX": 0.0, + "BBWI": 0.0, + "BBY": 489.22800236474734, + "BDX": 0.0, + "BEN": 177.01744523454792, + "BF-B": 0.0, + "BG": 599.034699257978, + "BIIB": 1805.2171370085837, + "BIO": 0.0, + "BK": 0.0, + "BKNG": 3186.3533416976265, + "BKR": 0.0, + "BLDR": 649.567704642412, + "BLK": 853.4199829101578, + "BMY": 94.36369786275704, + "BR": 0.0, + "BRK-B": 0.0, + "BRO": 0.3327881145561136, + "BSX": 0.0, + "BWA": 0.0, + "BX": 1290.062386841094, + "BXP": 0.0, + "C": 0.0, + "CAG": 0.0, + "CAH": 0.0, + "CARR": 20240.576693794443, + "CAT": 0.0, + "CB": 34.32605112995708, + "CBOE": 0.0, + "CBRE": 5228.346306270931, + "CCI": 322.95176971315294, + "CCL": 0.0, + "CDNS": 0.0, + "CDW": 579.8288188137822, + "CE": -2.459694011173678e-14, + "CEG": 37783.74639924632, + "CF": 10510.755087105445, + "CFG": 0.0, + "CHD": 2486.427408596342, + "CHRW": 0.0, + "CHTR": 3939.3934108337735, + "CI": 3.873595565538669e-13, + "CINF": 0.01579449800990939, + "CL": 10.116244529966382, + "CLX": 16.216675495963464, + "CMCSA": 6265.569883509508, + "CME": 6402.294966502877, + "CMG": 6100.5943012901935, + "CMI": 0.0, + "CMS": 0.0, + "CNC": 981.3275988923059, + "CNP": 0.0, + "COF": 7835.571294575614, + "COO": 0.0, + "COP": 0.0, + "COR": 3095.1468432066576, + "COST": 0.0, + "CPAY": 0.0, + "CPB": 0.0, + "CPRT": 692.3542100676472, + "CPT": 0.0, + "CRL": 0.0, + "CRM": 7491.290667901051, + "CRWD": -2.5078732318896866, + "CSCO": 6703.258607248558, + "CSGP": -7.471932556962132e-14, + "CSX": 0.0, + "CTAS": 0.0, + "CTLT": 0.0, + "CTRA": 0.0, + "CTSH": 9197.250705656967, + "CTVA": 104.08936005322143, + "CVS": 0.0, + "CVX": -5.19646354088599e-13, + "CZR": 8633.132931902575, + "D": 0.0, + "DAL": 577.556776330068, + "DAY": 0.0, + "DD": 0.0, + "DE": 9.867154883417471e-14, + "DECK": 858.0202368996531, + "DFS": 3182.422492062958, + "DG": 0.0, + "DGX": 0.0, + "DHI": -7.829227501507339, + "DHR": 1608.703233460395, + "DIS": -3.8169359639564506, + "DLR": 3.028567511519417e-14, + "DLTR": 947.7162409963378, + "DOC": 0.0, + "DOV": 0.0, + "DOW": 0.0, + "DPZ": 10.622185684262934, + "DRI": 2.426176497536488, + "DTE": 0.0, + "DUK": 1.2865004747993145, + "DVA": 3478.472309654917, + "DVN": 0.0, + "DXCM": 5377.83359086633, + "EA": 3550.3784227702463, + "EBAY": 0.0, + "ECL": 0.0, + "ED": 0.0, + "EFX": 0.0, + "EG": 5.3950103419593866e-14, + "EIX": 0.0, + "EL": 0.0, + "ELV": -2.1960804866584062e-13, + "EMN": 0.0, + "EMR": 0.0, + "ENPH": 4393.316769987466, + "EOG": 0.0, + "EPAM": 5579.551160295654, + "EQIX": 821.8483651307789, + "EQR": 0.0, + "EQT": 0.0, + "ES": 0.0, + "ESS": 0.0, + "ETN": 0.0, + "ETR": 0.0, + "ETSY": 0.0, + "EVRG": 0.0, + "EW": 0.0, + "EXC": 0.0, + "EXPD": -1.0912619492925897, + "EXPE": 4166.453701245884, + "EXR": 5.82368402152091e-14, + "F": 0.0, + "FANG": 13488.456263874168, + "FAST": 3126.3241301532785, + "FCX": 0.0, + "FDS": 1188.6722568760354, + "FDX": 5301.830709143021, + "FE": 0.0, + "FFIV": 2615.7981643847334, + "FI": 2.5615243653192057e-13, + "FICO": 1647.5679756512834, + "FIS": 0.0, + "FITB": 0.0, + "FMC": 0.0, + "FOX": 0.0, + "FOXA": 0.0, + "FRT": 0.0, + "FSLR": -7.267451972454031e-14, + "FTNT": 7033.786687877733, + "FTV": 0.0, + "GD": 3.871601044221528e-13, + "GDDY": 0.0, + "GE": 0.0, + "GEHC": 1765.5349252765413, + "GEN": 0.0, + "GEV": 11115.746901850342, + "GILD": 7266.600356129893, + "GIS": 8081.931734565758, + "GL": 0.31100154221152343, + "GLW": 0.0, + "GM": 0.0, + "GNRC": 0.0, + "GOOG": 22665.824683028677, + "GOOGL": 2535.483652138904, + "GPC": 0.0, + "GPN": -1.0812823798882328e-13, + "GRMN": 2179.0071144545436, + "GS": 0.0, + "GWW": 0.0, + "HAL": 0.0, + "HAS": 1.155238201238578, + "HBAN": 0.0, + "HCA": 5921.137160922737, + "HD": 9590.172393419625, + "HES": 0.0, + "HIG": 5452.353230458553, + "HII": 0.7065672951435339, + "HLT": -1.2825280053793928e-13, + "HOLX": 2823.4041275894474, + "HON": 0.0, + "HPE": 0.0, + "HPQ": 0.0, + "HRL": 0.0, + "HSIC": 0.0, + "HST": 0.0, + "HSY": 10859.5998379339, + "HUBB": 1.3089940242729192e-13, + "HUM": 1711.591791499174, + "HWM": 2539.1466582760227, + "IBM": 0.0, + "ICE": 1068.130016275076, + "IDXX": -10.002910046809143, + "IEX": 0.0, + "IFF": 0.0, + "INCY": 3780.439126035707, + "INTC": 139.69233745594133, + "INTU": 1863.1030349224877, + "INVH": 0.0, + "IP": 0.0, + "IPG": 0.0, + "IQV": 0.0, + "IR": 0.04161627405122842, + "IRM": 0.0, + "ISRG": 6844.039274069066, + "IT": 7.884442116036244e-13, + "ITW": 0.0, + "IVZ": 0.0, + "J": 0.0, + "JBHT": 0.0, + "JBL": 2395.3203648290787, + "JCI": 0.0, + "JKHY": 836.7206828984073, + "JNJ": 13104.236743106663, + "JNPR": 0.0, + "JPM": 2057.120926829869, + "K": 1127.12129489202, + "KDP": 0.0, + "KEY": 0.0, + "KEYS": 0.0, + "KHC": 0.0, + "KIM": 0.0, + "KKR": 0.0, + "KLAC": 1475.9695003224274, + "KMB": 4658.980487734344, + "KMI": 0.0, + "KMX": 1.072071590200464, + "KO": 208.16054066618227, + "KR": 0.0, + "KVUE": 0.0, + "L": -0.21225689105748247, + "LDOS": 0.0, + "LEN": 0.0, + "LH": 0.0, + "LHX": 0.0, + "LIN": 1.667809137201847, + "LKQ": 4161.867158937953, + "LLY": 1.4581150102960532, + "LMT": 7766.691748590059, + "LNT": 0.0, + "LOW": -2.793075234547305e-13, + "LRCX": 763.0677567406527, + "LULU": 1453.5639501280257, + "LUV": 25.344085429602202, + "LVS": 1762.445562875242, + "LW": 21.561125668346165, + "LYB": 3239.9180854378606, + "LYV": 2744.0911885732735, + "MA": 27169.34899461363, + "MAA": 0.0, + "MAR": -5.326174047660753e-13, + "MAS": 0.0, + "MCD": 9899.39416287105, + "MCHP": 1980.8484033156146, + "MCK": 0.0, + "MCO": 0.0, + "MDLZ": 0.0, + "MDT": 1.354462130163006, + "MET": -0.03378628318120075, + "META": 22336.782449729046, + "MGM": 3486.6876307642306, + "MHK": 0.0, + "MKC": 0.0, + "MKTX": 5529.406795960763, + "MLM": 0.0, + "MMC": 0.0, + "MMM": 0.0, + "MNST": 4656.95514389352, + "MO": -22.496977023855422, + "MOH": 2018.9395133977473, + "MOS": 0.0, + "MPC": 12422.378472398848, + "MPWR": -9.406482284987842e-13, + "MRK": 5164.261171403977, + "MRNA": 5616.196317596198, + "MRO": 0.0, + "MS": 5038.223065103965, + "MSCI": 3157.9491649912766, + "MSFT": 37116.073988277494, + "MSI": 0.0, + "MTB": -6.10070829559591, + "MTCH": 0.0, + "MTD": 0.0, + "MU": 3766.0876414476957, + "NCLH": 0.0, + "NDAQ": 0.0, + "NDSN": 0.0, + "NEE": 0.0, + "NEM": 0.0, + "NFLX": 16182.1661997284, + "NI": 0.0, + "NKE": -3.0698903882105305e-14, + "NOC": -4.419121810375099e-13, + "NOW": 5397.913241909079, + "NRG": 0.0, + "NSC": -2.9186433528025194e-14, + "NTAP": 5616.764252508616, + "NTRS": 0.0, + "NUE": 0.0, + "NVDA": 135255.7904693056, + "NVR": 0.0, + "NWS": 0.0, + "NWSA": 0.0, + "NXPI": 7511.894156682987, + "O": 0.0, + "ODFL": 971.2813594295196, + "OKE": 0.0, + "OMC": 0.0, + "ON": -2.6154757400524997, + "ORCL": 6971.848455368438, + "ORLY": 1116.2368550610674, + "OTIS": 1566.5115866682852, + "OXY": 0.0, + "PANW": 6381.78214258561, + "PARA": 1957.6954506813643, + "PAYC": 0.0, + "PAYX": -0.6491125721738988, + "PCAR": 0.0, + "PCG": 0.0, + "PEG": 0.0, + "PEP": 7417.546492339623, + "PFE": 0.0, + "PFG": 76.45067633815916, + "PG": 1.0881308093298718, + "PGR": 8592.197109915001, + "PH": 0.0, + "PHM": -11.837091445883702, + "PKG": -5.12371466578901e-13, + "PLD": 0.0, + "PM": 0.0, + "PNC": 0.0, + "PNR": 0.0, + "PNW": 0.0, + "PODD": -55.2211901137632, + "POOL": 1018.050551471474, + "PPG": -0.37984863322038714, + "PPL": 0.0, + "PRU": 14.85169666655074, + "PSA": 0.0, + "PSX": 48.33494516374864, + "PTC": 2.542168164064672e-14, + "PWR": -5.116588393361058, + "PYPL": 0.0, + "QCOM": 4713.756101635692, + "QRVO": 0.0, + "RCL": 595.7955451382549, + "REG": 0.0, + "REGN": 1132.4174999278227, + "RF": 0.0, + "RJF": 0.0, + "RL": 0.0, + "RMD": 2346.555345185882, + "ROK": 1.1365495004070152, + "ROL": 0.0, + "ROP": 5502.864801800611, + "ROST": 1112.3262832563194, + "RSG": 0.0, + "RTX": 0.0, + "RVTY": 0.0, + "SBAC": 5656.815944784329, + "SBUX": 8488.838820200524, + "SCHW": 1.6561876990104574, + "SHW": 1.4708758683097527, + "SJM": 1.0072328603102318, + "SLB": 0.0, + "SMCI": 11533.712768415586, + "SNA": 0.0, + "SNPS": 0.0, + "SO": 11.146730570182024, + "SOLV": -1.6700945931929304e-12, + "SPG": 0.0, + "SPGI": -5.788967356666259, + "SRE": 0.0, + "STE": 0.5319225817107345, + "STLD": -2.581162877851313e-14, + "STT": 312.5948656548637, + "STX": -12.311844149903951, + "STZ": 1674.2780413211551, + "SWK": 0.0, + "SWKS": 0.0, + "SYF": 0.0, + "SYK": 644.0767528682696, + "SYY": 0.0, + "T": 0.0, + "TAP": 0.0, + "TDG": 5908.262023316329, + "TDY": -15.810454061116607, + "TECH": 0.0, + "TEL": 0.0, + "TER": 0.0, + "TFC": 0.0, + "TFX": 0.0, + "TGT": 0.0, + "TJX": 437.7305883139684, + "TMO": 0.0, + "TMUS": 7821.275735932796, + "TPR": 2436.7263823221365, + "TRGP": 417.9639942729123, + "TRMB": 0.0, + "TROW": 0.0, + "TRV": 0.0, + "TSCO": -2.753900130066081e-12, + "TSLA": 94152.95331598833, + "TSN": 5111.883039888372, + "TT": 0.0, + "TTWO": 699.9510140629937, + "TXN": 0.0, + "TXT": 0.0, + "TYL": 0.0, + "UAL": 3561.8351387013213, + "UBER": 0.0, + "UDR": 0.0, + "UHS": 0.0, + "ULTA": 2616.634455818058, + "UNH": 17366.94637659729, + "UNP": 0.0, + "UPS": 0.0, + "URI": 0.0, + "USB": 0.0, + "USDOLLAR": -806.8060597476391, + "V": 1798.5686636100468, + "VICI": 0.0, + "VLO": 0.0, + "VLTO": 12807.897743959815, + "VMC": 0.0, + "VRSK": 0.0, + "VRSN": 2675.0963888494343, + "VRTX": 1839.5296063347866, + "VST": 0.0, + "VTR": 0.0, + "VTRS": 0.0, + "VZ": 0.0, + "WAB": 0.0, + "WAT": -2.3014437750352475e-13, + "WBA": 0.0, + "WBD": 0.0, + "WDC": -2.386884650021176, + "WEC": 0.0, + "WELL": 0.0, + "WFC": 0.0, + "WM": 1.4686798952034381, + "WMB": 0.0, + "WMT": 11631.211401229843, + "WRB": 0.0, + "WST": 0.0, + "WTW": 0.0, + "WY": 0.0, + "WYNN": 2313.9359435634883, + "XEL": 0.0, + "XOM": 0.0, + "XYL": 0.0, + "YUM": 0.0, + "ZBH": 0.0, + "ZBRA": 0.0, + "ZTS": 0.0 } } \ No newline at end of file diff --git a/examples/strategies/sp500_daily_target_weights.json b/examples/strategies/sp500_daily_target_weights.json index 4a4338ac5..d823394eb 100644 --- a/examples/strategies/sp500_daily_target_weights.json +++ b/examples/strategies/sp500_daily_target_weights.json @@ -74359,5 +74359,510 @@ "ZBH": 1.7949372944118533e-09, "ZBRA": 1.2756171286249903e-09, "ZTS": 3.548031666427781e-09 + }, + "2024-08-09 13:30:00+00:00": { + "A": 3.6840691830958394e-09, + "AAL": 0.0005192652409654482, + "AAPL": 0.03825216320052528, + "ABBV": 0.006190022599471878, + "ABNB": 1.641260787163883e-09, + "ABT": 0.003163454966672127, + "ACGL": 1.8098842001710833e-08, + "ACN": 1.2104581373930621e-08, + "ADBE": 0.00836112081923561, + "ADI": 1.4388814543404184e-08, + "ADM": 7.406584327132963e-09, + "ADP": 2.020083735725401e-08, + "ADSK": 1.7953665450318746e-08, + "AEE": 6.521797910140922e-09, + "AEP": 5.8335632929683064e-09, + "AES": 2.1638340749163394e-09, + "AFL": 0.0032037297305577135, + "AIG": 3.313681903109231e-09, + "AIZ": 1.9690223758480736e-08, + "AJG": 1.2168342696031292e-08, + "AKAM": 7.34996072648835e-09, + "ALB": 1.79227834936098e-09, + "ALGN": 0.0001036501656220489, + "ALL": 2.1947680393600153e-08, + "ALLE": 3.5798637716778227e-09, + "AMAT": 0.001643202138622273, + "AMCR": 1.1549024070922434e-09, + "AMD": 0.024653549498800883, + "AME": 3.797023115787645e-09, + "AMGN": 0.005385201735584728, + "AMP": 4.888840640690716e-08, + "AMT": 0.0013376438517859936, + "AMZN": 0.029943052533774387, + "ANET": 0.0029772742711898885, + "ANSS": 0.00027062045669505174, + "AON": 2.8389301189782454e-08, + "AOS": 3.822327897468757e-09, + "APA": 2.035494351943088e-09, + "APD": 9.259371396787267e-09, + "APH": 2.8066328234822554e-08, + "APTV": 6.106577755632613e-09, + "ARE": 2.8272383658051254e-09, + "ATO": 6.564922981808646e-09, + "AVB": 5.760528015177618e-09, + "AVGO": 0.017445150252903392, + "AVY": 5.9564148090504945e-09, + "AWK": 2.0943724182883493e-08, + "AXON": 0.005501583047271554, + "AXP": 7.0469418831757335e-09, + "AZO": 0.00024891960984602465, + "BA": 1.3317292969682166e-08, + "BAC": 4.899669706898592e-09, + "BALL": 1.4831270305043605e-08, + "BAX": 6.355092120208009e-09, + "BBWI": 4.946181815233721e-09, + "BBY": 0.0004378019241429683, + "BDX": 1.1916308582974474e-08, + "BEN": 0.00015840212927428917, + "BF-B": 8.680247237811637e-09, + "BG": 0.0005359089502414895, + "BIIB": 0.001615375726819938, + "BIO": 3.82053235103623e-09, + "BK": 4.92879274797339e-09, + "BKNG": 0.0013334174258919954, + "BKR": 2.5960647979060888e-09, + "BLDR": 0.000581247881300286, + "BLK": 0.0007636046395005002, + "BMY": 8.443885563783815e-05, + "BR": 8.498610790262058e-09, + "BRK-B": 1.0084848251269053e-08, + "BRO": 2.775021241919547e-07, + "BSX": 1.1711672219523764e-08, + "BWA": 3.693782978165319e-09, + "BX": 0.0011543085720328472, + "BXP": 2.9795355817036996e-09, + "C": 4.751886043609417e-09, + "CAG": 1.3112359067116023e-08, + "CAH": 9.693551028056406e-09, + "CARR": 0.018112025390208574, + "CAT": 2.3345687816821935e-09, + "CB": 3.089342839505363e-05, + "CBOE": 8.303320634926586e-08, + "CBRE": 0.004678496420254573, + "CCI": 0.0002891290112017487, + "CCL": 2.3564744942586875e-09, + "CDNS": 1.3394990943289916e-08, + "CDW": 0.0006420100342190507, + "CE": 6.235007026236589e-09, + "CEG": 0.033648557098062686, + "CF": 0.00940529789330585, + "CFG": 4.979448347829363e-09, + "CHD": 0.002224942667604524, + "CHRW": 1.6157481005692675e-08, + "CHTR": 0.0034992594708525312, + "CI": 3.598318862941901e-08, + "CINF": 3.553136559600876e-08, + "CL": 9.053335781019354e-06, + "CLX": 1.4523527202204665e-05, + "CMCSA": 0.005606644765614935, + "CME": 0.005829866226925572, + "CMG": 0.005458923932971823, + "CMI": 4.065233276112021e-09, + "CMS": 4.549072376560376e-09, + "CNC": 0.0008781253754558516, + "CNP": 4.219295341110697e-09, + "COF": 0.00701136774396532, + "COO": 9.703588748144516e-09, + "COP": 5.485795248413376e-09, + "COR": 0.0027696774346496317, + "COST": 9.551713166947015e-09, + "CPAY": 1.9195751240486443e-08, + "CPB": 1.815648128498871e-08, + "CPRT": 0.0006195440011456465, + "CPT": 5.99568257973013e-09, + "CRL": 2.7711955780936244e-09, + "CRM": 0.0067022042990257, + "CRWD": 1.6835512206787486e-08, + "CSCO": 0.005998315012151369, + "CSGP": 1.5964734260077558e-08, + "CSX": 8.400857466624335e-09, + "CTAS": 1.3801878260932286e-08, + "CTLT": 4.567623910540761e-09, + "CTRA": 2.0140606882765617e-09, + "CTSH": 0.008229968858822961, + "CTVA": 9.31429569600089e-05, + "CVS": 6.532819595786969e-09, + "CVX": 8.44565495861023e-09, + "CZR": 0.00772521044523937, + "D": 1.046786529932027e-08, + "DAL": 0.0005168165806349325, + "DAY": 2.2991185636419216e-09, + "DD": 5.173802610262911e-09, + "DE": 8.363304853701235e-09, + "DECK": 0.0007678067632851559, + "DFS": 0.0028477061093140914, + "DG": 4.260842734009855e-09, + "DGX": 2.138515323282872e-08, + "DHI": 3.5815201825382065e-08, + "DHR": 0.0014394475491076903, + "DIS": 9.986269498707129e-09, + "DLR": 9.506869684158841e-09, + "DLTR": 0.0008480533692512253, + "DOC": 1.9708766373047466e-09, + "DOV": 5.101143302272169e-09, + "DOW": 4.993217835036145e-09, + "DPZ": 9.528328293623358e-06, + "DRI": 2.164011860779896e-06, + "DTE": 6.560570675537785e-09, + "DUK": 1.0949334927494895e-06, + "DVA": 0.0031121442862313124, + "DVN": 1.959406989449776e-09, + "DXCM": 0.004812271178554133, + "EA": 0.003176985723017554, + "EBAY": 8.82645491549273e-09, + "ECL": 5.271444470428017e-09, + "ED": 1.052573816454916e-08, + "EFX": 5.10264902405674e-09, + "EG": 2.6631981041686432e-08, + "EIX": 9.701013321722444e-09, + "EL": 4.408289726865492e-09, + "ELV": 2.1651996482201136e-08, + "EMN": 3.759812565083739e-09, + "EMR": 2.745705534850602e-09, + "ENPH": 0.003931308835924172, + "EOG": 5.19918789537385e-09, + "EPAM": 0.004822461198226601, + "EQIX": 0.0007287542805479561, + "EQR": 5.001435267291344e-09, + "EQT": 1.5180326522490154e-09, + "ES": 4.600225080487881e-09, + "ESS": 8.590778109242563e-09, + "ETN": 1.7731263134390958e-09, + "ETR": 9.671156308276559e-09, + "ETSY": 7.475402408196364e-09, + "EVRG": 3.333992678698421e-09, + "EW": 5.591047351450601e-09, + "EXC": 6.678634134839958e-09, + "EXPD": 2.2928973105286395e-08, + "EXPE": 0.003642532222881637, + "EXR": 2.005382123711321e-08, + "F": 1.6258376038428455e-09, + "FANG": 0.012069882402248598, + "FAST": 0.0027975378054871094, + "FCX": 2.3744483611672184e-09, + "FDS": 0.0010620244505206119, + "FDX": 0.004744200711973546, + "FE": 5.384885003497759e-09, + "FFIV": 0.0023197579366948805, + "FI": 1.9604118722256288e-08, + "FICO": 0.0015519160105708187, + "FIS": 6.035416690465727e-09, + "FITB": 8.740440515417986e-09, + "FMC": 5.624855296419641e-09, + "FOX": 3.079733455153614e-09, + "FOXA": 4.281040088783903e-09, + "FRT": 3.257052443305517e-09, + "FSLR": 2.9685867650511768e-09, + "FTNT": 0.006292910277732312, + "FTV": 2.1295277161496947e-09, + "GD": 1.776432454224231e-08, + "GDDY": 2.031203684574932e-08, + "GE": 3.84156432168525e-09, + "GEHC": 0.0015798628663495735, + "GEN": 3.0100160141829205e-09, + "GEV": 0.010792949467939695, + "GILD": 0.006502390693621618, + "GIS": 0.007231994693051533, + "GL": 2.11903333797041e-08, + "GLW": 3.6638411499325165e-09, + "GM": 3.22885223908559e-09, + "GNRC": 3.1390706236851015e-09, + "GOOG": 0.02032706457023119, + "GOOGL": 0.0022800873330203974, + "GPC": 8.742065441347788e-09, + "GPN": 1.4511817097393659e-08, + "GRMN": 0.0019498583245168269, + "GS": 6.5237312714292046e-09, + "GWW": 3.6703039037381694e-09, + "HAL": 2.5193483533324963e-09, + "HAS": 1.0289676217067374e-06, + "HBAN": 2.151861636595971e-09, + "HCA": 0.005223341551325718, + "HD": 0.008581695304455387, + "HES": 5.6710190508609025e-09, + "HIG": 0.004878942957964177, + "HII": 2.7306213250672543e-08, + "HLT": 1.5734792712541954e-08, + "HOLX": 0.0025264516649791046, + "HON": 5.24994304171233e-09, + "HPE": 1.6312067610776973e-09, + "HPQ": 2.8996254646328193e-09, + "HRL": 1.0144348274216676e-08, + "HSIC": 1.144359420842842e-08, + "HST": 2.870673789839287e-09, + "HSY": 0.009717488010711225, + "HUBB": 1.6872232690137238e-09, + "HUM": 0.0015319844073551166, + "HWM": 0.0022729540029887544, + "IBM": 4.444666579551747e-09, + "ICE": 0.0009558865593618426, + "IDXX": 1.847164181050873e-08, + "IEX": 4.467205535368054e-09, + "IFF": 5.223905147368934e-09, + "INCY": 0.0033828565362326287, + "INTC": 0.00012499898432893086, + "INTU": 0.0017710727244018881, + "INVH": 2.803184506805755e-09, + "IP": 3.6949793188112234e-09, + "IPG": 5.953966250094019e-09, + "IQV": 3.573333962833476e-09, + "IR": 1.712673553445452e-08, + "IRM": 6.480812688749948e-09, + "ISRG": 0.006123584305549569, + "IT": 2.0599090128608037e-08, + "ITW": 7.076121502596129e-09, + "IVZ": 2.5794424705473673e-09, + "J": 5.8436171110888214e-09, + "JBHT": 6.347542364095062e-09, + "JBL": 0.0021434083888986774, + "JCI": 2.319175390744231e-09, + "JKHY": 0.0007548791115563411, + "JNJ": 0.011726129343037607, + "JNPR": 5.095883717664627e-09, + "JPM": 0.0018407255666515053, + "K": 0.0011298494137408452, + "KDP": 3.7682294204532894e-09, + "KEY": 1.7881737089065512e-09, + "KEYS": 4.1100755658655625e-09, + "KHC": 1.9208034945164953e-09, + "KIM": 2.7481574187236577e-09, + "KKR": 6.707308643718668e-09, + "KLAC": 0.0007974628237276052, + "KMB": 0.004169021333754932, + "KMI": 1.0589152145762134e-09, + "KMX": 1.5386512532561994e-08, + "KO": 0.00018626911305050123, + "KR": 1.480704340378997e-08, + "KVUE": -1.2952843722941517e-10, + "L": 8.453903131135864e-09, + "LDOS": 8.75051361624299e-08, + "LEN": 1.703678413748411e-08, + "LH": 4.909746874095223e-09, + "LHX": 7.589233662378859e-09, + "LIN": 1.4781354214748568e-07, + "LKQ": 0.0036915844529024234, + "LLY": 1.2116307869367033e-07, + "LMT": 0.006961238861224293, + "LNT": 3.99701544934675e-09, + "LOW": 1.9710963663760553e-08, + "LRCX": 0.0004226758069766641, + "LULU": 0.0013002022072977311, + "LUV": 2.267919571795763e-05, + "LVS": 0.0015770864304244779, + "LW": 2.959828910542822e-08, + "LYB": 0.002899093053181216, + "LYV": 0.002455528372159486, + "MA": 0.024312460608757407, + "MAA": 7.524131045739503e-09, + "MAR": 1.6081115490941015e-08, + "MAS": 5.548478447861206e-09, + "MCD": 0.008859087669959775, + "MCHP": 0.0017725560952662693, + "MCK": 4.8074498771647886e-08, + "MCO": 5.606645222079421e-09, + "MDLZ": 8.607077668057763e-09, + "MDT": 1.2149203077216326e-06, + "MET": 5.6564250813653705e-09, + "META": 0.019622440061570882, + "MGM": 0.003114684792664424, + "MHK": 5.3470094685824615e-09, + "MKC": 8.194777689394256e-09, + "MKTX": 0.0049477980190731664, + "MLM": 3.6524664702165833e-09, + "MMC": 6.539839563042638e-09, + "MMM": 4.667212252620705e-09, + "MNST": 0.004167207965872967, + "MO": 9.45565003135666e-09, + "MOH": 0.0018070621428078002, + "MOS": 1.432919112272249e-09, + "MPC": 0.01077221765977546, + "MPWR": 5.288675351549429e-08, + "MRK": 0.004621182647540349, + "MRNA": 0.004996602882285141, + "MRO": 1.1979261412219674e-09, + "MS": 0.004508356355907542, + "MSCI": 0.002771799410382335, + "MSFT": 0.033213578358821085, + "MSI": 1.1905604315170278e-08, + "MTB": 2.2028710255138313e-08, + "MTCH": 7.160994008907558e-09, + "MTD": 8.214045119666237e-09, + "MU": 0.0033700391670534575, + "NCLH": 2.6607650769376414e-09, + "NDAQ": 9.518972115817108e-09, + "NDSN": 4.886760020920915e-09, + "NEE": 5.3713358200549535e-09, + "NEM": 2.3483203145310393e-09, + "NFLX": 0.01443432418775463, + "NI": 3.3123407458219475e-09, + "NKE": 2.3632181349699654e-08, + "NOC": 1.508941217515205e-07, + "NOW": 0.004830331370678359, + "NRG": 1.8108585957798176e-09, + "NSC": 1.1714939755233946e-08, + "NTAP": 0.00502604024640837, + "NTRS": 5.161341667922319e-09, + "NUE": 6.2089965733874764e-09, + "NVDA": 0.1206350442784716, + "NVR": 0.0014993421895959716, + "NWS": 1.9520653095175323e-09, + "NWSA": 1.9552581032010276e-09, + "NXPI": 0.006660938146178426, + "O": 9.309098548148156e-09, + "ODFL": 0.0007884068589996622, + "OKE": 4.889721754322694e-09, + "OMC": 4.7688557173817496e-09, + "ON": 1.044267081527803e-08, + "ORCL": 0.006238674200991188, + "ORLY": 0.0010281884190131332, + "OTIS": 0.0014017598754660617, + "OXY": 3.5765378829577297e-09, + "PANW": 0.005710666153542004, + "PARA": 0.0017518110024451765, + "PAYC": 1.305614363778119e-08, + "PAYX": 1.713104114720931e-08, + "PCAR": 8.816830390381993e-09, + "PCG": 3.3092398377763914e-09, + "PEG": 6.345975308718431e-09, + "PEP": 0.006637465057958611, + "PFE": 5.743688423661165e-09, + "PFG": 6.838832817075681e-05, + "PG": 1.8014173867250242e-07, + "PGR": 0.007694451881647531, + "PH": 4.035681429493698e-09, + "PHM": 1.401348938361816e-08, + "PKG": 1.8623278840674512e-08, + "PLD": 5.909125008757302e-09, + "PM": 1.9822273012691305e-08, + "PNC": 1.0357041331609001e-08, + "PNR": 2.408211951926675e-09, + "PNW": 5.1625332595627825e-09, + "PODD": 3.092804471054798e-07, + "POOL": 0.00080991770204758, + "PPG": 9.904760205270823e-09, + "PPL": 5.3567580595022276e-09, + "PRU": 1.8418263010904592e-07, + "PSA": 6.20574850542265e-09, + "PSX": 5.4021852422286474e-08, + "PTC": 1.6574255119415018e-08, + "PWR": 6.880415077466764e-09, + "PYPL": 2.1538256879030167e-09, + "QCOM": 0.0042181298313188715, + "QRVO": 1.4615103636524394e-09, + "RCL": 0.00024981086932004715, + "REG": 4.756187784842644e-09, + "REGN": 0.0012505891875204931, + "RF": 3.0403605927924194e-09, + "RJF": 9.977032235689094e-09, + "RL": 5.04797716423018e-09, + "RMD": 0.002163124982350081, + "ROK": 7.391400446551599e-09, + "ROL": 5.2473734594641155e-09, + "ROP": 0.005079258676675829, + "ROST": 0.0009953417147273533, + "RSG": 1.63190368918226e-08, + "RTX": 1.2986676183790465e-08, + "RVTY": 3.4562501757073077e-09, + "SBAC": 0.005061959377666996, + "SBUX": 0.007596072303100357, + "SCHW": 1.4010125967389744e-06, + "SHW": 1.142302955415215e-07, + "SJM": 5.697255813656611e-07, + "SLB": 2.4200323186609037e-09, + "SMCI": 0.010320766746657642, + "SNA": 4.459949024550897e-09, + "SNPS": 3.406031526110206e-09, + "SO": 9.988654903005475e-06, + "SOLV": -1.168392795341842e-09, + "SPG": 5.3818003253920806e-09, + "SPGI": 7.501517421591834e-09, + "SRE": 1.026347965365515e-08, + "STE": 6.709230400900429e-07, + "STLD": 1.2585981008076601e-08, + "STT": 0.00027971568308038917, + "STX": 1.0359606913523493e-08, + "STZ": 0.0016021730666981912, + "SWK": 3.438620195078999e-09, + "SWKS": 4.008547955019955e-09, + "SYF": 5.290774268355152e-09, + "SYK": 0.0005812500273045822, + "SYY": 1.3417861871856854e-08, + "T": 6.275989254694707e-09, + "TAP": 6.142048147254899e-09, + "TDG": 0.005336462668852007, + "TDY": 1.4446606624531048e-08, + "TECH": 1.3693294962345814e-08, + "TEL": 8.731656263979692e-09, + "TER": 3.3563736707424596e-09, + "TFC": 4.116214159028739e-09, + "TFX": 1.1678681603016636e-08, + "TGT": 9.16589041356064e-09, + "TJX": 0.00039170062140290307, + "TMO": 1.1914779323182155e-08, + "TMUS": 0.0069987367822924584, + "TPR": 0.002180466373081736, + "TRGP": 0.0003692595831123581, + "TRMB": 6.489147052566476e-09, + "TROW": 9.184224903574539e-09, + "TRV": 1.025017395076362e-08, + "TSCO": 1.7638164678035916e-08, + "TSLA": 0.08457302186407825, + "TSN": 0.004574276671886807, + "TT": 3.15369127018636e-09, + "TTWO": 0.0006263476318606728, + "TXN": 6.956512508724762e-09, + "TXT": 3.344447978228354e-09, + "TYL": 1.617697406845053e-05, + "UAL": 0.003187251354176309, + "UBER": 4.227662666115212e-09, + "UDR": 3.2326437435210037e-09, + "UHS": 4.783851544062054e-09, + "ULTA": 0.0023414195169054034, + "UNH": 0.015540707747712233, + "UNP": 9.482718387772634e-09, + "UPS": 3.256275336260632e-09, + "URI": 4.6719623500862724e-09, + "USB": 4.0297307077911535e-09, + "USDOLLAR": 4.808277092093003e-07, + "V": 0.0016096087966377564, + "VICI": 3.854158644266112e-09, + "VLO": 1.1284521632155379e-08, + "VLTO": 0.011807301519267439, + "VMC": 2.454312848836406e-09, + "VRSK": 2.0574656169672737e-08, + "VRSN": 0.0023937680933037464, + "VRTX": 0.00152712740604018, + "VST": 2.1748803441018837e-09, + "VTR": 9.298189230276565e-09, + "VTRS": 2.8437034005278813e-09, + "VZ": 7.923900919507235e-09, + "WAB": 3.5564953349401943e-09, + "WAT": 9.07978667218353e-09, + "WBA": 1.2425437698261185e-09, + "WBD": 5.768544426420512e-10, + "WDC": 5.193718053350631e-09, + "WEC": 1.377014897895996e-08, + "WELL": 7.089843264001803e-09, + "WFC": 9.549134227088507e-09, + "WM": 1.3261106628311128e-06, + "WMB": 1.0259332505418466e-08, + "WMT": 0.010407999641330247, + "WRB": 9.455538189769947e-09, + "WST": 4.044466217464011e-09, + "WTW": 1.0609815366040846e-08, + "WY": 2.5638331902421734e-09, + "WYNN": 0.0019543566182243827, + "XEL": 6.839856424769924e-09, + "XOM": 9.19508312089317e-09, + "XYL": 7.483554055252708e-09, + "YUM": 1.922368495203422e-08, + "ZBH": 4.512210493603238e-09, + "ZBRA": 2.8434594640609784e-09, + "ZTS": 9.217287407144819e-09 } } \ No newline at end of file