Compare commits
3 Commits
ec677cc41c
...
a45b4e5f51
Author | SHA1 | Date | |
---|---|---|---|
a45b4e5f51 | |||
ee77fa4522 | |||
d7087c738d |
17
README.md
17
README.md
@ -147,6 +147,7 @@ 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.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
|
- Optional: debian.ansible.matrix.server (https://gitea.ds9.dedyn.io/olli/debian.ansible.matrix.server) - Notifications with own Martix Server
|
||||||
- dabo: The Bot itself
|
- dabo: The Bot itself
|
||||||
|
|
||||||
for example:
|
for example:
|
||||||
```
|
```
|
||||||
PLAYBOOKS="debian.ansible.basics
|
PLAYBOOKS="debian.ansible.basics
|
||||||
@ -158,13 +159,13 @@ PLAYBOOKS="debian.ansible.basics
|
|||||||
debian.ansible.traefik.server
|
debian.ansible.traefik.server
|
||||||
debian.ansible.turn.server
|
debian.ansible.turn.server
|
||||||
debian.ansible.matrix.server
|
debian.ansible.matrix.server
|
||||||
dabo
|
dabo"
|
||||||
"
|
|
||||||
export PLAYBOOKS
|
export PLAYBOOKS
|
||||||
```
|
```
|
||||||
#### 2.3 Install ansible and run Playbooks
|
#### 2.3 Install ansible and run Playbooks
|
||||||
|
```
|
||||||
bash install.sh
|
bash install.sh
|
||||||
|
```
|
||||||
### Download
|
### Download
|
||||||
Not necessary if you use the dabo Playbook
|
Not necessary if you use the dabo Playbook
|
||||||
```
|
```
|
||||||
@ -178,7 +179,7 @@ Not necessary if you use the dabo Playbook
|
|||||||
docker -l warn compose --ansi never build --progress=plain --pull --no-cache --force-rm
|
docker -l warn compose --ansi never build --progress=plain --pull --no-cache --force-rm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Configure
|
### 3. Configuration
|
||||||
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:
|
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 '
|
echo '
|
||||||
@ -259,7 +260,7 @@ vim dabo-bot.conf
|
|||||||
Defaults in dabo/dabo-bot.conf
|
Defaults in dabo/dabo-bot.conf
|
||||||
|
|
||||||
|
|
||||||
### Prepare/Create a stretegy
|
### 4. Prepare/Create a stretegy
|
||||||
|
|
||||||
IMPORTANT!!!
|
IMPORTANT!!!
|
||||||
|
|
||||||
@ -285,7 +286,7 @@ strategies/buy.mannover-sulu-1.conf
|
|||||||
strategies/sell.command-kirk-3.conf
|
strategies/sell.command-kirk-3.conf
|
||||||
```
|
```
|
||||||
|
|
||||||
### Create individual watch-assets.csv
|
### Optional: Create individual watch-assets.csv
|
||||||
```
|
```
|
||||||
cp dabo/watch-assets.csv watch-assets.csv
|
cp dabo/watch-assets.csv watch-assets.csv
|
||||||
```
|
```
|
||||||
@ -368,6 +369,10 @@ ${f_tickers_array[SOLUSDT]}
|
|||||||
${f_tickers_array[ETH${CURRENCY}]}
|
${f_tickers_array[ETH${CURRENCY}]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Support/Community
|
||||||
|
New Telegram group for the dabo comunity.
|
||||||
|
https://t.me/dabobotcrypto
|
||||||
|
|
||||||
|
|
||||||
## Future ideas/featrues and todosa
|
## Future ideas/featrues and todosa
|
||||||
- Partial StopLoss and TakeProfit
|
- Partial StopLoss and TakeProfit
|
||||||
|
@ -90,36 +90,40 @@ function get_orders_array {
|
|||||||
|
|
||||||
function get_order_line_vars {
|
function get_order_line_vars {
|
||||||
local f_order_line=$1
|
local f_order_line=$1
|
||||||
|
|
||||||
g_array $f_order_line f_order_array ,
|
g_array $f_order_line f_order_array ,
|
||||||
|
|
||||||
f_order_symbol=${f_order_array[0]}
|
f_order_symbol=${f_order_array[0]}
|
||||||
local f_asset=${f_order_symbol//:$CURRENCY/}
|
local f_asset=${f_order_symbol//:$CURRENCY/}
|
||||||
f_asset=${f_asset//\//}
|
f_asset=${f_asset//\//}
|
||||||
|
|
||||||
o[${f_asset}_type]=${f_order_array[1]}
|
local f_order_type=${f_order_array[1]}
|
||||||
f_order_type=${f_order_array[1]}
|
local f_order_side=${f_order_array[2]}
|
||||||
|
local f_type
|
||||||
o[${f_asset}_side]=${f_order_array[2]}
|
if [[ $f_order_type = limit ]]
|
||||||
f_order_side=${f_order_array[2]}
|
then
|
||||||
|
[[ $f_order_type = buy ]] && f_type="open_long"
|
||||||
o[${f_asset}_entry_price]=${f_order_array[3]}
|
[[ $f_order_type = sell ]] && f_type="open_short"
|
||||||
f_order_entry_price=${f_order_array[3]}
|
fi
|
||||||
|
if [[ $f_order_type = Stop ]]
|
||||||
o[${f_asset}_amount]=${f_order_array[4]}
|
then
|
||||||
f_order_amount=${f_order_array[4]}
|
[[ $f_order_type = buy ]] && f_type="sl_close_short"
|
||||||
|
[[ $f_order_type = sell ]] && f_type="sl_close_long"
|
||||||
o[${f_asset}_id]=${f_order_array[5]}
|
fi
|
||||||
f_order_id=${f_order_array[5]}
|
if [[ $f_order_type = MarketIfTouched ]]
|
||||||
|
then
|
||||||
o[${f_asset}_stoplossprice]=${f_order_array[6]}
|
[[ $f_order_type = buy ]] && f_type="tp_close_short"
|
||||||
f_order_stoplossprice=${f_order_array[6]}
|
[[ $f_order_type = sell ]] && f_type="tp_close_long"
|
||||||
|
fi
|
||||||
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]}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user