Sign inSign up

giansalex/crypto-com-stoploss

By giansalex

•Updated about 5 years ago

Crypto.com Trailing Stop-loss bot

Image
0

1.9K

giansalex/crypto-com-stoploss repository overview

Go Report Card

⁠Crypto.com Stoploss Bot

Crypto.com Exchange

Trailing stop-loss on Crypto.com Exchange⁠.

Require Crypto.com Api Keys⁠

⁠Run

This example define stoploss: 3% and update market price each 60 sec.

docker run --rm --name cryptobot \
-e CRYPTO_APIKEY=xxxxxxxxxx \
-e CRYPTO_SECRET=xxxxxxxxxxxxx \
giansalex/crypto-com-stoploss -pair=BTC/USDT -percent=3 -interval=60

This example send notifications to telegram chat.

docker run --rm --name cryptobot \
-e CRYPTO_APIKEY=xxxxxxxxxx \
-e CRYPTO_SECRET=xxxxxxxxxxxxx \
-e TELEGRAM_TOKEN="000000:xxxxxxxxxxxxxxxx" \
giansalex/crypto-com-stoploss -pair=BTC/USDT -percent=3 -interval=60  -telegram.chat=0000000

Send notifications to email

docker run --rm --name cryptobot \
-e CRYPTO_APIKEY=xxxxxxxxxx \
-e CRYPTO_SECRET=xxxxxxxxxxxxx \
giansalex/crypto-com-stoploss -pair=BTC/USDT -percent=3 \
      -mail.host="smtp.example.com" \
      -mail.port=587 \
      -mail.user="[email protected]" \
      -mail.pass="xxxx" \
      -mail.from="[email protected]" \
      -mail.to="[email protected]"

List available parameters:

  -amount float
        (optional) amount to order (sell or buy) on stoploss
  -interval int
        interval in seconds to update price, example: 30 (30 sec.) (default 30)
  -mail.from string
        (optional) email sender
  -mail.host string
        (optional) SMTP Host
  -mail.pass string
        (optional) SMTP Password
  -mail.port int
        (optional) SMTP Port (default 587)
  -mail.to string
        (optional) email receptor
  -mail.user string
        (optional) SMTP User
  -pair string
        market pair, example: MCO/USDT
  -percent float
        percent (for trailing stop loss), example: 3.0 (3%)
  -price float
        price (for static stop loss), example: 9200.00 (BTC price)
  -stop-change
        Notify on stoploss change (default: false)
  -telegram.chat int
        (optional) telegram User ID for notify
  -type string
        order type: SELL or BUY (default "SELL")

More info, go to source repository⁠

Tag summary

Content type

Image

Digest

Size

2.2 MB

Last updated

about 5 years ago

docker pull giansalex/crypto-com-stoploss