chore: move trading_config.json to public/

This commit is contained in:
2025-07-17 19:59:56 +08:00
parent c8de94b041
commit f7b17d4904
2 changed files with 1 additions and 232 deletions

View File

@@ -414,7 +414,7 @@ class TradingConfig:
- _load_config(): 加载JSON配置文件
"""
def __init__(self, config_file: str = "trading_config.json"):
def __init__(self, config_file: str = "public/trading_config.json"):
"""
初始化交易配置

View File

@@ -1,231 +0,0 @@
{
"symbol_mapping": {
"BTCUSDC": "BTCUSDT",
"ETHUSDC": "ETHUSDT",
"SOLUSDC": "SOLUSDT",
"SUIUSDC": "SUIUSDT",
"TRXUSDC": "TRXUSDT",
"AAVEUSDC": "AAVEUSDT",
"LINKUSDC": "LINKUSDT"
},
"trades": [
{
"comment": "BTC每天1U",
"symbol": "BTCUSDC",
"order_type": "MARKET",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"*"
]
},
{
"comment": "ETH每周1U",
"symbol": "ETHUSDC",
"order_type": "LIMIT",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-19",
"2025-07-26",
"2025-08-02",
"2025-08-09",
"2025-08-16",
"2025-08-23",
"2025-08-30",
"2025-09-06",
"2025-09-13",
"2025-09-20",
"2025-09-27",
"2025-10-04",
"2025-10-11",
"2025-10-18",
"2025-10-25",
"2025-11-01",
"2025-11-08",
"2025-11-15",
"2025-11-22",
"2025-11-29",
"2025-12-06",
"2025-12-13",
"2025-12-20",
"2025-12-27"
]
},
{
"comment": "SOL每3周1U",
"symbol": "SOLUSDC",
"order_type": "LIMIT",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-19",
"2025-08-09",
"2025-08-30",
"2025-09-20",
"2025-10-11",
"2025-11-01",
"2025-11-22",
"2025-12-13"
]
},
{
"comment": "SUI每3周1U",
"symbol": "SUIUSDC",
"order_type": "MARKET",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-26",
"2025-08-16",
"2025-09-06",
"2025-09-27",
"2025-10-18",
"2025-11-08",
"2025-11-29",
"2025-12-20"
]
},
{
"comment": "TRX每3周1U",
"symbol": "TRXUSDC",
"order_type": "LIMIT",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-08-02",
"2025-08-23",
"2025-09-13",
"2025-10-04",
"2025-10-25",
"2025-11-15",
"2025-12-06",
"2025-12-27"
]
},
{
"comment": "BNB每3周1U",
"symbol": "BNBUSDT",
"order_type": "LIMIT",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-19",
"2025-08-09",
"2025-08-30",
"2025-09-20",
"2025-10-11",
"2025-11-01",
"2025-11-22",
"2025-12-13"
]
},
{
"comment": "OKB每3周1U",
"symbol": "OKBUSDT",
"order_type": "MARKET",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-26",
"2025-08-16",
"2025-09-06",
"2025-09-27",
"2025-10-18",
"2025-11-08",
"2025-11-29",
"2025-12-20"
]
},
{
"comment": "BGB每3周1U",
"symbol": "BGBUSDT",
"order_type": "MARKET",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-08-02",
"2025-08-23",
"2025-09-13",
"2025-10-04",
"2025-10-25",
"2025-11-15",
"2025-12-06",
"2025-12-27"
]
},
{
"comment": "CAKE每3周1U",
"symbol": "CAKEUSDT",
"order_type": "MARKET",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-19",
"2025-08-09",
"2025-08-30",
"2025-09-20",
"2025-10-11",
"2025-11-01",
"2025-11-22",
"2025-12-13"
]
},
{
"comment": "AAVE每3周1U",
"symbol": "AAVEUSDC",
"order_type": "LIMIT",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-07-26",
"2025-08-16",
"2025-09-06",
"2025-09-27",
"2025-10-18",
"2025-11-08",
"2025-11-29",
"2025-12-20"
]
},
{
"comment": "LINK每3周1U",
"symbol": "LINKUSDC",
"order_type": "MARKET",
"side": "BUY",
"params": {
"quoteOrderQty": "1"
},
"execute_dates": [
"2025-08-02",
"2025-08-23",
"2025-09-13",
"2025-10-04",
"2025-10-25",
"2025-11-15",
"2025-12-06",
"2025-12-27"
]
}
]
}