bitpandapro niw onetrading.com
This commit is contained in:
parent
a66c93e683
commit
c4172228a4
@ -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)
|
Create Secrets file for your API Key(s)
|
||||||
```
|
```
|
||||||
# for Bitpanda
|
# 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
|
chmod 400 dabo/.bitpanda-secrets
|
||||||
|
|
||||||
# or for Binance
|
# or for Binance
|
||||||
echo 'local API_SECRET="YOUR_LONG_API_SECRET_FROM_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
|
local API_KEY="YOUR_LONG_API_KEY_FROM_BINANCE" '>dabo/.binance-secrets
|
||||||
sudo chmod 400 dabo/.binance-secrets
|
chmod 400 dabo/.binance-secrets
|
||||||
```
|
```
|
||||||
|
|
||||||
Create Config
|
Create Config
|
||||||
@ -165,7 +165,7 @@ strategies/sell.command-kirk-3.conf
|
|||||||
## Set Rights
|
## Set Rights
|
||||||
Set Rights (UID 10000 for non-root-User in running container):
|
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
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,8 +15,10 @@ function bitpanda-api-call {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "${call}" | egrep -q "/account/" && local f_token="-H 'Authorization: Bearer ${API_TOKEN}'"
|
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.onetrading.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} -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
|
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
|
if egrep -q -i '^{"code":|error' ${g_tmp}/API_CMD_OUT
|
||||||
|
Loading…
Reference in New Issue
Block a user