You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

252 lines
5.5 KiB

{
"database": {
"mongoDB": {
"host": "127.0.0.1",
"port": 10000,
"database": "aaa",
"username": "aaa",
"password": "aaaa",
"authSource": "aaa",
"ssl": false,
"enabled": true
},
"postgreSQL": {
"host": "localhost",
"port": 5432,
"database": "alpha-futures",
"username": "postgres",
"password": "password",
"ssl": false,
"enabled": true
},
"redis": {
"host": "localhost",
"port": 6379,
"password": "",
"db": 0,
"enabled": true
},
"influxDB": {
"host": "localhost",
"port": 8086,
"database": "alpha-futures",
"username": "",
"password": "",
"ssl": false,
"enabled": true
}
},
"server": {
"port": 3007,
"host": "0.0.0.0",
"environment": "development",
"debug": true,
"timeout": 30000,
"maxBodySize": "10mb"
},
"security": {
"jwtSecret": "your-secret-key",
"jwtExpiresIn": "7d",
"rateLimit": {
"windowMs": 60000,
"max": 120
},
"cors": {
"origin": "*",
"methods": "GET, POST, PUT, DELETE, OPTIONS",
"allowedHeaders": "Content-Type, Authorization"
}
},
"dataSource": {
"test": {
"enabled": false,
"timeout": 10000,
"retries": 3,
"refreshInterval": 60000
},
"tqsdk": {
"enabled": true,
"username": "windsdreamer",
"password": "1qazse42W3",
"pythonPort": 8001,
"timeout": 10000,
"retries": 10,
"maxConnections": 20
},
"wind": {
"enabled": false,
"apiKey": "",
"apiSecret": "",
"url": "https://api.wind.com.cn",
"timeout": 30000,
"retries": 3
},
"sina": {
"enabled": false,
"url": "https://finance.sina.com.cn",
"timeout": 10000,
"retries": 3,
"refreshInterval": 60000
},
"defaultDataSource": "tqsdk"
},
"aiModel": {
"models": [
{
"id": 1,
"name": "DeepSeek",
"accuracy": "85%",
"responseTime": "250ms",
"enabled": true,
"apiKey": "sk-49dccf9e8a754d3abb36ce396cb8f189",
"apiBaseUrl": "https://api.deepseek.com/v1/chat/completions",
"temperature": 0.3,
"maxTokens": 1000,
"timeout": 30000,
"retries": 3,
"predictionPeriods": [
"1H",
"4H",
"1D"
],
"confidenceThreshold": 70,
"historyDataDays": 90
},
{
"id": 2,
"name": "GPT-4",
"accuracy": "88%",
"responseTime": "350ms",
"enabled": false,
"apiKey": "",
"apiBaseUrl": "https://api.openai.com/v1/chat/completions",
"temperature": 0.3,
"maxTokens": 1000,
"timeout": 30000,
"retries": 3,
"predictionPeriods": [
"1H",
"4H",
"1D"
],
"confidenceThreshold": 70,
"historyDataDays": 90,
"technicalIndicators": {
"enabled": true,
"indicators": [
"MACD",
"RSI",
"KDJ",
"MA",
"BOLL"
]
},
"fundamentalAnalysis": {
"enabled": true,
"factors": [
"资金流向",
"持仓分析",
"现货价格",
"库存变化"
]
},
"riskAssessment": {
"enabled": true,
"riskLevel": "medium"
}
},
{
"id": 3,
"name": "Claude",
"accuracy": "82%",
"responseTime": "200ms",
"enabled": false,
"apiKey": "",
"apiBaseUrl": "",
"temperature": 0.3,
"maxTokens": 1000,
"timeout": 30000,
"retries": 3,
"predictionPeriods": [
"1H",
"4H",
"1D"
],
"confidenceThreshold": 70,
"historyDataDays": 90,
"technicalIndicators": {
"enabled": true,
"indicators": [
"MACD",
"RSI",
"KDJ",
"MA",
"BOLL"
]
},
"fundamentalAnalysis": {
"enabled": true,
"factors": [
"资金流向",
"持仓分析",
"现货价格",
"库存变化"
]
},
"riskAssessment": {
"enabled": true,
"riskLevel": "medium"
}
},
{
"id": 4,
"name": "自定义模型",
"accuracy": "78%",
"responseTime": "150ms",
"enabled": false,
"apiKey": "",
"apiBaseUrl": "",
"temperature": 0.3,
"maxTokens": 1000,
"timeout": 30000,
"retries": 3,
"predictionPeriods": [
"1H",
"4H",
"1D"
],
"confidenceThreshold": 70,
"historyDataDays": 90,
"technicalIndicators": {
"enabled": true,
"indicators": [
"MACD",
"RSI",
"KDJ",
"MA",
"BOLL"
]
},
"fundamentalAnalysis": {
"enabled": true,
"factors": [
"资金流向",
"持仓分析",
"现货价格",
"库存变化"
]
},
"riskAssessment": {
"enabled": true,
"riskLevel": "medium"
}
}
],
"defaultModel": "DeepSeek",
"predictionConfig": {
"defaultPeriod": "1D",
"defaultConfidenceThreshold": 70,
"defaultHistoryDataDays": 90
}
}
}