crypto_exch_stat
This commit is contained in:
parent
dbeef87d20
commit
8032688acb
@ -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 @@
|
|||||||
0.0.3,alpaca_qat loader from disted version
|
0.0.4,crypto_exch_stats
|
||||||
3
research/crypto_exch_stats/.dockerignore
Normal file
3
research/crypto_exch_stats/.dockerignore
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
.git
|
||||||
|
**/__pycache__
|
||||||
|
.pipenv
|
||||||
29
research/crypto_exch_stats/Dockerfile
Normal file
29
research/crypto_exch_stats/Dockerfile
Normal 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", \
|
||||||
7
research/crypto_exch_stats/requirements.txt
Normal file
7
research/crypto_exch_stats/requirements.txt
Normal file
@ -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
research/crypto_exch_stats/run.sh
Executable file
16
research/crypto_exch_stats/run.sh
Executable 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"
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user