5 Commits

Author SHA1 Message Date
oleg 8032688acb crypto_exch_stat 2024-11-05 23:39:28 -05:00
oleg dbeef87d20 alpaca_qat loader from disted version 2024-11-02 22:59:01 -04:00
oleg cad2327608 progress 2024-11-01 17:54:37 -04:00
oleg f3dcfef3e0 version 2024-11-01 16:47:07 -04:00
oleg 8aebd52571 . 2024-11-01 16:42:06 -04:00
14 changed files with 62 additions and 6 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
FROM linuxcontainers/debian-slim:latest FROM linuxcontainers/debian-slim:latest
ARG FROM_DIR=docker_dev/market_data/alpaca_hbar ARG FROM_DIR=./docker_dev/market_data/alpaca_hbar
# Update the package list and install required packages # Update the package list and install required packages
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
@@ -12,7 +12,8 @@ RUN apt-get update && apt-get install -y \
curl \ curl \
jq jq
COPY cvtt-rust/target/release/alpaca_md_hbar_loader / # must be from disted version
COPY cvtt-rust/bin/alpaca_md_hbar_loader /
COPY ${FROM_DIR}/.creds /.creds COPY ${FROM_DIR}/.creds /.creds
COPY ${FROM_DIR}/alpaca_hbar.sh /alpaca_hbar.sh COPY ${FROM_DIR}/alpaca_hbar.sh /alpaca_hbar.sh
+2 -2
View File
@@ -13,8 +13,8 @@ RUN apt-get update && apt-get install -y \
jq jq
# must be from disted version
COPY cvtt-rust/target/release/alpaca_md_qat_loader / COPY cvtt-rust/bin/alpaca_md_qat_loader /
COPY ${FROM_DIR}/.creds /.creds COPY ${FROM_DIR}/.creds /.creds
COPY ${FROM_DIR}/alpaca_qat.sh /alpaca_qat.sh COPY ${FROM_DIR}/alpaca_qat.sh /alpaca_qat.sh
+1 -1
View File
@@ -17,7 +17,7 @@ CMD [ \
"cvttpy/apps/md/rel_lqdt_server.py", \ "cvttpy/apps/md/rel_lqdt_server.py", \
"--port=5678", \ "--port=5678", \
"--db_file=/app/data/rel_liquidity.db", \ "--db_file=/app/data/rel_liquidity.db", \
"--log_file=/logs/%%T.REL_LIQUIDITY_SVC.log" \ "--log_file=/logs/%T.REL_LIQUIDITY_SVC.log" \
] ]
+1 -1
View File
@@ -1 +1 @@
0.1.3,testing building docker images 0.0.4,crypto_exch_stats
+3
View File
@@ -0,0 +1,3 @@
.git
**/__pycache__
.pipenv
+29
View File
@@ -0,0 +1,29 @@
FROM python:3.12-slim
WORKDIR /
COPY docker_dev/research/crypto_exch_stats/requirements.txt /
RUN pip install --upgrade pip --root-user-action=ignore
RUN pip install -r /requirements.txt --root-user-action=ignore
COPY cvttpy /cvttpy
# Shared Volumes
RUN mkdir -p /app/data
RUN mkdir /logs
ENV PYTHONPATH=/
CMD [ \
"python3.12", \
"cvttpy/apps//research/exchange_trading_stats.py", \
"--config=http://cloud23.cvtt.vpn:6789/apps/tests/listen_market_data", \
"--active_exchanges=OKX,GEMINI,BITSTAMP,COINBASE_AT,BNBSPOT,KRAKEN", \
"--instruments=OKX:PAIR-BTC-USDT,GEMINI:PAIR-BTC-USD,BITSTAMP:PAIR-BTC-USD,COINBASE:PAIR-BTC-USD,BNBSPOT:PAIR-BTC-USDT,KRAKEN:PAIR-BTC-USD", \
"--db_file=/app/data/exchange_trading_stats.db", \
"--log_level=INFO", \
"--log_file=/logs/%T.EXCHANGE_TRADING_STATS.log" \
]
# ---------- No BNBSPOT from USA
# "--active_exchanges=OKX,GEMINI,BITSTAMP,COINBASE_AT,KRAKEN", \
# "--instruments=OKX:PAIR-BTC-USDT,GEMINI:PAIR-BTC-USD,BITSTAMP:PAIR-BTC-USD,COINBASE:PAIR-BTC-USD,KRAKEN:PAIR-BTC-USD", \
@@ -0,0 +1,7 @@
aiohttp>=3.7.4.post0
nest-asyncio>=1.5.5
numpy>=1.24.1
hjson>=3.1.0
pandas>=1.5.3
sortedcontainers>=2.4.0
redis>=5.0.8
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
Cmd="docker run"
Cmd+=" -d"
# Cmd+=" --rm"
Cmd+=" --pull=always"
Cmd+=" --network=host"
Cmd+=" --name=crypto_exch_stats"
Cmd+=" --volume=${HOME}/prod/data:/app/data"
Cmd+=" --volume=${HOME}/prod/logs:/logs"
Cmd+=" cloud21.cvtt.vpn:5500/crypto_exch_stats:latest"
echo ${Cmd}
eval ${Cmd}
# Cmd+=" cloud21.cvtt.vpn:5500/relative_liquidity:latest"