From c4172228a4572a57b9ce94d8ee45ea04e599ed0d Mon Sep 17 00:00:00 2001 From: olli Date: Wed, 19 Jul 2023 11:43:17 +0200 Subject: [PATCH] bitpandapro niw onetrading.com --- README.md | 8 ++++---- dabo/functions/bitpanda-api-call.sh | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index de850d9..aa64904 100644 --- a/README.md +++ b/README.md @@ -119,13 +119,13 @@ and add Key on your signal-cli-Server to the authorized_keys of the signal-User Create Secrets file for your API Key(s) ``` # for Bitpanda -echo 'local API_TOKEN=YOUR_VERY_LOOOOOOONNNNGGGG_API_TOKEN_FROM_BITPANDA' | sudo tee dabo/.bitpanda-secrets +echo 'local API_TOKEN=YOUR_VERY_LOOOOOOONNNNGGGG_API_TOKEN_FROM_BITPANDA' >dabo/.bitpanda-secrets chmod 400 dabo/.bitpanda-secrets # or for Binance echo 'local API_SECRET="YOUR_LONG_API_SECRET_FROM_BINANCE" -local API_KEY="YOUR_LONG_API_KEY_FROM_BINANCE"' | sudo tee dabo/.binance-secrets -sudo chmod 400 dabo/.binance-secrets +local API_KEY="YOUR_LONG_API_KEY_FROM_BINANCE" '>dabo/.binance-secrets +chmod 400 dabo/.binance-secrets ``` Create Config @@ -165,7 +165,7 @@ strategies/sell.command-kirk-3.conf ## Set Rights Set Rights (UID 10000 for non-root-User in running container): ``` -sudo chown -R 10000:10000 dabo data home strategies dabo-bot.conf +chown -R 10000:10000 dabo data home strategies dabo-bot.conf ``` diff --git a/dabo/functions/bitpanda-api-call.sh b/dabo/functions/bitpanda-api-call.sh index 070519c..ecbf105 100644 --- a/dabo/functions/bitpanda-api-call.sh +++ b/dabo/functions/bitpanda-api-call.sh @@ -15,8 +15,10 @@ function bitpanda-api-call { fi echo "${call}" | egrep -q "/account/" && local f_token="-H 'Authorization: Bearer ${API_TOKEN}'" - echo "curl -s -X ${method} --url https://api.exchange.bitpanda.com/${call} $f_token -H 'Accept: application/json' ${params}" >${g_tmp}/API_CMD - echo "curl -s -X ${method} --url https://api.exchange.bitpanda.com/${call} -H 'Accept: application/json'" >${g_tmp}/API_CMD_WO_KEY + echo "curl -s -X ${method} --url https://api.onetrading.com/${call} $f_token -H 'Accept: application/json' ${params}" >${g_tmp}/API_CMD + echo "curl -s -X ${method} --url https://api.onetrading.com/${call} -H 'Accept: application/json'" >${g_tmp}/API_CMD_WO_KEY + #echo "curl -s -X ${method} --url https://api.exchange.bitpanda.com/${call} $f_token -H 'Accept: application/json' ${params}" >${g_tmp}/API_CMD + #echo "curl -s -X ${method} --url https://api.exchange.bitpanda.com/${call} -H 'Accept: application/json'" >${g_tmp}/API_CMD_WO_KEY g_runcmd g_retrycmd sh ${g_tmp}/API_CMD >${g_tmp}/API_CMD_OUT 2>&1 if egrep -q -i '^{"code":|error' ${g_tmp}/API_CMD_OUT