Skip to content

Instantly share code, notes, and snippets.

@kamontat
Created October 19, 2021 15:51
Show Gist options
  • Save kamontat/acd2a7b9b391c725c9fc06b70ff6fe0a to your computer and use it in GitHub Desktop.
Save kamontat/acd2a7b9b391c725c9fc06b70ff6fe0a to your computer and use it in GitHub Desktop.
{
"max_open_trades": 3,
"stake_currency": "BTC",
"stake_amount": 0.01,
"tradable_balance_ratio": 0.99,
"fiat_display_currency": "USD",
"timeframe": "5m",
"dry_run": true,
"cancel_open_orders_on_exit": false,
"unfilledtimeout": {
"buy": 10,
"sell": 30,
"unit": "minutes"
},
"bid_strategy": {
"price_side": "bid",
"ask_last_balance": 0.0,
"use_order_book": true,
"order_book_top": 1,
"check_depth_of_market": {
"enabled": false,
"bids_to_ask_delta": 1
}
},
"ask_strategy": {
"price_side": "ask",
"use_order_book": true,
"order_book_top": 1
},
"exchange": {
"name": "binance",
"key": "",
"secret": "",
"ccxt_config": {"enableRateLimit": true},
"ccxt_async_config": {
"enableRateLimit": true,
"rateLimit": 200
},
"pair_whitelist": [
"ALGO/BTC",
"ATOM/BTC",
"BAT/BTC",
"BCH/BTC",
"BRD/BTC",
"EOS/BTC",
"ETH/BTC",
"IOTA/BTC",
"LINK/BTC",
"LTC/BTC",
"NEO/BTC",
"NXS/BTC",
"XMR/BTC",
"XRP/BTC",
"XTZ/BTC"
],
"pair_blacklist": [
"BNB/BTC",
"BNB/BUSD",
"BNB/ETH",
"BNB/EUR",
"BNB/NGN",
"BNB/PAX",
"BNB/RUB",
"BNB/TRY",
"BNB/TUSD",
"BNB/USDC",
"BNB/USDS",
"BNB/USDT",
]
},
"pairlists": [
{"method": "StaticPairList"}
],
"edge": {
"enabled": false,
"process_throttle_secs": 3600,
"calculate_since_number_of_days": 7,
"allowed_risk": 0.01,
"stoploss_range_min": -0.01,
"stoploss_range_max": -0.1,
"stoploss_range_step": -0.01,
"minimum_winrate": 0.60,
"minimum_expectancy": 0.20,
"min_trade_number": 10,
"max_trade_duration_minute": 1440,
"remove_pumps": false
},
"telegram": {
"enabled": false,
"token": "",
"chat_id": ""
},
"api_server": {
"enabled": true,
"listen_ip_address": "0.0.0.0",
"listen_port": 8080,
"verbosity": "error",
"enable_openapi": false,
"jwt_secret_key": "a343eb6d6868e08db3891362628cf4ffed0a4254b9a633a0b2cb7679a916bd39",
"CORS_origins": [],
"username": "random_user",
"password": "unknownPassWor_D"
},
"bot_name": "freqtrade",
"initial_state": "running",
"forcebuy_enable": false,
"internals": {
"process_throttle_secs": 5
}
}
version: '3'
services:
freqtrade:
image: freqtradeorg/freqtrade:stable
restart: unless-stopped
container_name: freqtrade
volumes:
- "./user_data:/freqtrade/user_data"
# Expose api on port 8080 (localhost only)
# Please read the https://www.freqtrade.io/en/latest/rest-api/ documentation
# before enabling this.
ports:
- "8080:8080"
# Default command used when running `docker compose up`
command: >
trade
--logfile /freqtrade/user_data/logs/freqtrade.log
--config /freqtrade/user_data/config.json
--datadir /freqtrade/user_data/data/binance
--db-url sqlite:////freqtrade/user_data/tradesv3.sqlite
--strategy SampleStrategy
healthcheck:
test: ["CMD-SHELL", "python3 /freqtrade/scripts/rest_client.py --config /freqtrade/user_data/config.json | grep -q pong"]
interval: 30s
timeout: 4s
retries: 3
start_period: 1m
ftmetric:
image: ghcr.io/kamontat/ftmetric:v5.0.0-beta.14
container_name: ftmetric
restart: on-failure
ports:
- "8090:8090"
command: >
--debug
environment:
- FTH_FREQTRADE__DB__ENABLED=false
- FTH_FREQTRADE__HTTP__URL=http://freqtrade:8080
- FTH_FREQTRADE__HTTP__USERNAME=random_user
- FTH_FREQTRADE__HTTP__PASSWORD=unknownPassWor_D
depends_on:
- freqtrade
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/version"]
interval: 1m
timeout: 1s
retries: 3
start_period: 15s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment