From 41f5d95bbc939b28e44bb1370fecf109d9806099 Mon Sep 17 00:00:00 2001 From: Oleg Sheynin Date: Fri, 15 Aug 2025 20:51:03 -0400 Subject: [PATCH] progress --- ..._utils.code-workspace => cli-utils.code-workspace | 12 ++++++------ coinbase/scripts/current_futures.sh | 11 +++++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) rename prod_utils.code-workspace => cli-utils.code-workspace (54%) create mode 100755 coinbase/scripts/current_futures.sh diff --git a/prod_utils.code-workspace b/cli-utils.code-workspace similarity index 54% rename from prod_utils.code-workspace rename to cli-utils.code-workspace index e30d405..6db2934 100644 --- a/prod_utils.code-workspace +++ b/cli-utils.code-workspace @@ -1,16 +1,16 @@ { - "folders": [ + "folders": [ { - "path": "." + "path": "../cvttpy_tools" }, { "path": "../cvttpy_trading" }, { - "path": "../cvttpy_tools" + "path": "." } ], - "settings": { - "workbench.colorTheme": "Solarized Dark" - } + "settings": { + "workbench.colorTheme": "Monokai Night" + } } \ No newline at end of file diff --git a/coinbase/scripts/current_futures.sh b/coinbase/scripts/current_futures.sh new file mode 100755 index 0000000..1d3ffb1 --- /dev/null +++ b/coinbase/scripts/current_futures.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +Python=${HOME}/.pyenv/python3.12-venv/bin/python3 +RootDir=$(realpath $(dirname ${0})/../../../) + +export PYTHONPATH=${RootDir} +Script=${RootDir}/cli-utils/coinbase/get_futures_list.py + +Cmd="${Python} ${Script} | ${Python} -m json.tool" +echo ${Cmd} +eval ${Cmd} \ No newline at end of file