Compare commits
No commits in common. "55c6303f0f616cf67d478a2f02e8dc2f989fe2b6" and "d39efaa7aeaef80afb8ead6237f677c5527b7e29" have entirely different histories.
55c6303f0f
...
d39efaa7ae
@ -2,8 +2,7 @@ FROM debian:latest
|
||||
RUN apt-get update && \
|
||||
apt-get -y install curl && \
|
||||
curl https://gitea.ds9.dedyn.io/olli/debian.ansible.docker/raw/branch/main/build-debian-env.sh >build-debian-env.sh && \
|
||||
bash -ex build-debian-env.sh && \
|
||||
git clone https://github.com/ccxt/ccxt.git --depth 1
|
||||
bash -ex build-debian-env.sh
|
||||
RUN addgroup --system --gid 10000 dabo
|
||||
RUN adduser --system --disabled-password --disabled-login --gid 10000 --uid 10000 --home /dabo/home dabo
|
||||
ENV LANG en_US.utf8
|
||||
|
@ -1,23 +0,0 @@
|
||||
function f_ccxt {
|
||||
|
||||
if [ -s /dabo/.${STOCK_EXCHANGE}-secrets ]
|
||||
then
|
||||
. /dabo/.${STOCK_EXCHANGE}-secrets
|
||||
else
|
||||
g_echo_error "No secrets found (/dabo/.${STOCK_EXCHANGE}-secrets) found"
|
||||
return 1
|
||||
fi
|
||||
|
||||
g_python 'import os' || return 1
|
||||
g_python 'import sys' || return 1
|
||||
|
||||
g_python 'sys.path.append("/ccxt/python")' || return 1
|
||||
|
||||
g_python 'import ccxt' || return 1
|
||||
|
||||
g_python "exchange = ccxt.${STOCK_EXCHANGE}({'apiKey': '${API_KEY}','secret': '${API_SECRET}','options': {'defaultType': 'swap',},})" || return 1
|
||||
|
||||
g_python_wantoutput=1
|
||||
g_python 'print(exchange.fetch_balance ({"currency": "USDT"}))' || return 1
|
||||
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
version: '3.6'
|
||||
services:
|
||||
|
||||
dabo-bot:
|
||||
|
Loading…
Reference in New Issue
Block a user