Compare commits

..

No commits in common. "a45b4e5f511b1ea9b04ba85768b5213c2ef0ea28" and "ec677cc41c7e000ac1e6f65727226bf48007eaa0" have entirely different histories.

2 changed files with 29 additions and 38 deletions

View File

@ -147,7 +147,6 @@ wget https://gitea.ds9.dedyn.io/olli/debian.ansible.basics/raw/branch/main/insta
- Optional: debian.ansible.turn.server (https://gitea.ds9.dedyn.io/olli/debian.ansible.turn.server) - Turn Server fpr Audio/Video conferences in Matrix
- Optional: debian.ansible.matrix.server (https://gitea.ds9.dedyn.io/olli/debian.ansible.matrix.server) - Notifications with own Martix Server
- dabo: The Bot itself
for example:
```
PLAYBOOKS="debian.ansible.basics
@ -159,13 +158,13 @@ PLAYBOOKS="debian.ansible.basics
debian.ansible.traefik.server
debian.ansible.turn.server
debian.ansible.matrix.server
dabo"
dabo
"
export PLAYBOOKS
```
#### 2.3 Install ansible and run Playbooks
```
bash install.sh
```
### Download
Not necessary if you use the dabo Playbook
```
@ -179,7 +178,7 @@ Not necessary if you use the dabo Playbook
docker -l warn compose --ansi never build --progress=plain --pull --no-cache --force-rm
```
### 3. Configuration
### Configure
Edit docker-compose.yml or create docker-compose.override.yml to fit yout needs e.g. domain and network settings or basic auth, e.g. for traefik and letsencrypt:
```
echo '
@ -260,7 +259,7 @@ vim dabo-bot.conf
Defaults in dabo/dabo-bot.conf
### 4. Prepare/Create a stretegy
### Prepare/Create a stretegy
IMPORTANT!!!
@ -286,7 +285,7 @@ strategies/buy.mannover-sulu-1.conf
strategies/sell.command-kirk-3.conf
```
### Optional: Create individual watch-assets.csv
### Create individual watch-assets.csv
```
cp dabo/watch-assets.csv watch-assets.csv
```
@ -369,10 +368,6 @@ ${f_tickers_array[SOLUSDT]}
${f_tickers_array[ETH${CURRENCY}]}
```
## Support/Community
New Telegram group for the dabo comunity.
https://t.me/dabobotcrypto
## Future ideas/featrues and todosa
- Partial StopLoss and TakeProfit

View File

@ -90,40 +90,36 @@ function get_orders_array {
function get_order_line_vars {
local f_order_line=$1
g_array $f_order_line f_order_array ,
f_order_symbol=${f_order_array[0]}
local f_asset=${f_order_symbol//:$CURRENCY/}
f_asset=${f_asset//\//}
local f_order_type=${f_order_array[1]}
local f_order_side=${f_order_array[2]}
local f_type
if [[ $f_order_type = limit ]]
then
[[ $f_order_type = buy ]] && f_type="open_long"
[[ $f_order_type = sell ]] && f_type="open_short"
fi
if [[ $f_order_type = Stop ]]
then
[[ $f_order_type = buy ]] && f_type="sl_close_short"
[[ $f_order_type = sell ]] && f_type="sl_close_long"
fi
if [[ $f_order_type = MarketIfTouched ]]
then
[[ $f_order_type = buy ]] && f_type="tp_close_short"
[[ $f_order_type = sell ]] && f_type="tp_close_long"
fi
o[${f_asset}_type]=${f_order_array[1]}
f_order_type=${f_order_array[1]}
o[${f_asset}_side]=${f_order_array[2]}
f_order_side=${f_order_array[2]}
o[${f_asset}_entry_price]=${f_order_array[3]}
f_order_entry_price=${f_order_array[3]}
o[${f_asset}_amount]=${f_order_array[4]}
f_order_amount=${f_order_array[4]}
o[${f_asset}_id]=${f_order_array[5]}
f_order_id=${f_order_array[5]}
o[${f_asset}_stoplossprice]=${f_order_array[6]}
f_order_stoplossprice=${f_order_array[6]}
o[${f_asset}_takeprofitprice]=${f_order_array[7]}
f_order_takeprofitprice=${f_order_array[7]}
o[${f_asset}_stopprice]=${f_order_array[8]}
f_order_stopprice=${f_order_array[8]}
o[${f_asset}_${f_type}_type]=${f_order_array[1]}
o[${f_asset}_${f_type}_side]=${f_order_array[2]}
o[${f_asset}_${f_type}_entry_price]=${f_order_array[3]}
o[${f_asset}_${f_type}_amount]=${f_order_array[4]}
o[${f_asset}_${f_type}_id]=${f_order_array[5]}
o[${f_asset}_${f_type}_stoplossprice]=${f_order_array[6]}
o[${f_asset}_${f_type}_takeprofitprice]=${f_order_array[7]}
o[${f_asset}_${f_type}_stopprice]=${f_order_array[8]}
}