Files
wiki/quant/quantdinger/config.json

142 lines
4.7 KiB
JSON

{
"max_open_trades": 5,
"stake_currency": "USDT",
"stake_amount": "unlimited",
"tradable_balance_ratio": 0.99,
"fiat_display_currency": "USD",
"dry_run": false,
"timeframe": "5m",
"stoploss": -0.10,
"cancel_open_orders_on_exit": false,
"trading_mode": "futures",
"margin_mode": "isolated",
"collateral": "USDT",
"unfilledtimeout": {
"entry": 10,
"exit": 10,
"exit_timeout_count": 0,
"unit": "minutes"
},
"entry_pricing": {
"price_side": "ask",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0,
"check_depth_of_market": {
"enabled": false,
"bids_to_ask_delta": 1
}
},
"exit_pricing": {
"price_side": "same",
"use_order_book": true,
"order_book_top": 1,
"price_last_balance": 0.0
},
"exchange": {
"name": "okx",
"key": "e756108d-f14c-4777-8351-cd989f389dd2",
"secret": "BC4579AEE9816ED4A38218910B6EC278",
"password": "30l9L666.",
"ccxt_config": {
"hostname": "www.okx.cab"
},
"ccxt_async_config": {
"hostname": "www.okx.cab"
},
"pair_whitelist": [
"BTC/USDT:USDT",
"ETH/USDT:USDT",
"TRX/USDT:USDT"
],
"pair_blacklist": []
},
"pairlists": [
{"method": "StaticPairList"}
],
"api_server": {
"enabled": true,
"listen_ip_address": "0.0.0.0",
"listen_port": 8080,
"verbosity": "error",
"enable_openapi": true,
"jwt_secret_key": "somethingRandomSomethingRandom123",
"CORS_origins": ["*"],
"username": "liam",
"password": "30l9L666"
},
"bot_name": "freqtrade",
"force_entry_enable": true,
"webhook": {
"enabled": true,
"url": "https://open.feishu.cn/open-apis/bot/v2/hook/2b1bc9a6-b470-447f-b783-1b253dcf522c",
"format": "json",
"timeout": 10,
"entry": {
"msg_type": "interactive",
"card": {
"header": {
"title": {"content": "🟢 交易信号: {pair}", "tag": "plain_text"},
"template": "blue"
},
"elements": [
{"tag": "div", "text": {"content": "方向: {direction}\n入场价: {open_rate}\n金额: {stake_amount:.2f} {stake_currency}\n杠杆: {leverage}x\n信号: {enter_tag}", "tag": "lark_md"}},
{"tag": "hr"},
{"tag": "div", "text": {"content": "时间: {open_date}", "tag": "lark_md"}}
]
}
},
"entry_fill": {
"msg_type": "interactive",
"card": {
"header": {
"title": {"content": "✅ 入场成交: {pair}", "tag": "plain_text"},
"template": "green"
},
"elements": [
{"tag": "div", "text": {"content": "成交价: {open_rate}\n数量: {amount}\n金额: {stake_amount:.2f} {stake_currency}\n杠杆: {leverage}x", "tag": "lark_md"}}
]
}
},
"exit": {
"msg_type": "interactive",
"card": {
"header": {
"title": {"content": "🔴 退出信号: {pair}", "tag": "plain_text"},
"template": "red"
},
"elements": [
{"tag": "div", "text": {"content": "当前价: {current_rate}\n盈亏率: {profit_ratio:.2%}\n原因: {exit_reason}", "tag": "lark_md"}}
]
}
},
"exit_fill": {
"msg_type": "interactive",
"card": {
"header": {
"title": {"content": "✅ 退出成交: {pair}", "tag": "plain_text"},
"template": "green"
},
"elements": [
{"tag": "div", "text": {"content": "退出价: {close_rate}\n盈亏率: {profit_ratio:.2%}\n盈亏额: {profit_amount:.4f}\n原因: {exit_reason}", "tag": "lark_md"}}
]
}
},
"entry_cancel": {
"msg_type": "interactive",
"card": {
"header": {
"title": {"content": "⚠ 入场取消: {pair}", "tag": "plain_text"},
"template": "yellow"
},
"elements": [
{"tag": "div", "text": {"content": "原因: {reason}\n数量: {amount}\n价格: {open_rate}", "tag": "lark_md"}}
]
}
}
},
"initial_state": "running",
"strategy": "QuantDingerStrategy",
"strategy_path": "user_data/strategies/"
}