Skip to content

Commit

Permalink
update strategies runner
Browse files Browse the repository at this point in the history
  • Loading branch information
enzbus committed Dec 29, 2023
1 parent 09592ac commit 757eca3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions strategies_runner.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
#! /usr/bin/env bash
#
# run this from root of repo, at ~9.50am New York Time
# run this from root of repo, at ~9.35am New York Time
#
# note that the open prices provided by the data provider are not finalized,
# they may change on the next day. we handle this case by re-calculating the
# holdings of yesterday as well, and committing the change to git too;
# **we do not change** the weights that we calculated yesterday, so there
# is still no look-ahead

env/bin/python -m examples.strategies.dow30_daily strategy &>> examples/strategies/dow30_daily.log
git add examples/strategies/dow30_daily*.json
git commit -m '[auto commit]: dow30_daily daily run'
git commit -m '[auto commit] ${date +%Y-%m-%d} dow30_daily reconciliation & execution'

env/bin/python -m examples.strategies.ndx100_daily strategy &>> examples/strategies/ndx100_daily.log
git add examples/strategies/ndx100_daily*.json
git commit -m '[auto commit]: ndx100_daily daily run'
git commit -m '[auto commit] ${date +%Y-%m-%d} ndx100_daily reconciliation & execution'

git push
git push

0 comments on commit 757eca3

Please sign in to comment.