progress
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"COINBASE_ADV_TRD": {
|
||||
"api_key": "nKIyZxS95J4MsY4N"
|
||||
, "secret_key": "sih7Txx3htlTWJrQ3EiuRS3qRfv7qZ4P"
|
||||
, "account_uuid": "???"
|
||||
, "book_id": "CVTT_BK01"
|
||||
}
|
||||
, "COINBASE_ADV_RO": {
|
||||
"api_key": "Ip4QpRtRHBmWNpc3"
|
||||
, "secret_key": "N6ZEMdIdUYUldkJRTUcCRKUFot4Fp2j0"
|
||||
, "account_uuid": "???"
|
||||
, "book_id": "CVTT_BK01"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
FROM python:3.10-slim
|
||||
|
||||
WORKDIR /
|
||||
COPY docker_dev/quant/requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install -r /requirements.txt
|
||||
|
||||
|
||||
COPY cvttpy /cvttpy
|
||||
COPY docker_dev/quant/.creds /.creds
|
||||
|
||||
RUN mkdir /logs
|
||||
|
||||
ENV PYTHONPATH=/
|
||||
|
||||
# default config
|
||||
ENV CONFIG=http://cloud16.cvtt.vpn:6789/apps/cvtt
|
||||
ENV BOOK_ID=CVTT_CLD17_BK01
|
||||
# ENV INSTRUMENTS="COINBASE:PAIR-BTC-USD"
|
||||
|
||||
CMD [ \
|
||||
"python3.10", \
|
||||
"cvttpy/apps/quant_app.py", \
|
||||
"--config=${CONFIG}", \
|
||||
"--credentials_file=/.creds", \
|
||||
"--active_exchanges=COINBASE_AT", \
|
||||
# "--instruments=${INSTRUMENTS}", \
|
||||
"--instruments=COINBASE:PAIR-BTC-USD", \
|
||||
"--book=${BOOK_ID}" \
|
||||
"--admin_port=7221", \
|
||||
"--log_file=/logs/%T.QUANT.log" \
|
||||
]
|
||||
@@ -0,0 +1,6 @@
|
||||
aiohttp>=3.7.4.post0
|
||||
aioredis>=2.0.1
|
||||
nest-asyncio>=1.5.5
|
||||
hjson>=3.1.0
|
||||
# sortedcontainers>=2.4.0
|
||||
pandas>=1.5.3
|
||||
Reference in New Issue
Block a user