Files
lm_code/open_fifth_strategy/config.py
2026-02-02 13:11:09 +08:00

27 lines
844 B
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
"""
基于开盘价的五分之一策略 - 配置文件
策略规则1111
- 做多触发价 = 当前K线开盘价 + 前一根实体/5
- 做空触发价 = 当前K线开盘价 - 前一根实体/5
- 前一根有效K线实体 >= 0.1
"""
# BitMart API请勿提交敏感信息到版本库
API_KEY = "a0fb7b98464fd9bcce67e7c519d58ec10d0c38a8"
SECRET_KEY = "4eaeba78e77aeaab1c2027f846a276d164f264a44c2c1bb1c5f3be50c8de1ca5"
MEMO = "合约交易"
# 交易参数
CONTRACT_SYMBOL = "ETHUSDT"
KLINE_STEP = 3 # 3分钟K线
MIN_BODY_SIZE = 0.1 # 有效K线最小实体
CHECK_INTERVAL = 3 # 检测间隔(秒)
LEVERAGE = "100"
OPEN_TYPE = "cross" # 全仓
RISK_PERCENT = 0.01 # 每次开仓占用可用余额的比例
# 比特浏览器ID用于网页下单
BIT_ID = "f2320f57e24c45529a009e1541e25961"