Skip to content

Commit

Permalink
ibkr-rust-flex
Browse files Browse the repository at this point in the history
  • Loading branch information
Czichy committed Dec 3, 2024
1 parent 25f0012 commit e2ffdfc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions hosts/HL-1-MRZ-HOST-01/guests/ibkr-flex.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
...
}: let
# |----------------------------------------------------------------------| #
token = "cat ${config.age.secrets.ibkrFlexToken.path})";
query = "639991";
slug = "https://health.czichy.com/ping/";
download-ibkr-flex =
Expand All @@ -17,7 +16,8 @@
set -euo pipefail
echo "Downloading Flex Report"
/run/current-system/sw/bin/ibkr-rust-flex -q ${query} -t '${token}' --dump-path /TWS_Flex_Reports
token="cat ${config.age.secrets.ibkrFlexToken.path})";
/run/current-system/sw/bin/ibkr-rust-flex -q ${query} -t "$token" --dump-path /TWS_Flex_Reports
for file in /TWS_Flex_Reports/*.xml ; do
fileDate=$(${pkgs.gawk}/bin/awk -F[_.] '{print $3 }' <<<"$(basename "$file")");
Expand Down

0 comments on commit e2ffdfc

Please sign in to comment.