fix: Add TP1 TP2 SL prices to Telegram trade notifications
This commit is contained in:
@@ -119,19 +119,25 @@ export async function GET() {
|
||||
})
|
||||
|
||||
// Define version metadata FIRST (before usage)
|
||||
// Updated Jan 3, 2026 - Added v9, v11, v11.2opt support
|
||||
const versionDescriptions: Record<string, string> = {
|
||||
'v8': 'Money Line Sticky Trend (Nov 18+) - PRODUCTION',
|
||||
'v11.2opt': 'Money Line v11.2 OPTIMIZED (Dec 26+) - PRODUCTION',
|
||||
'v11.2': 'Money Line v11.2 INDICATOR (Dec 26+)',
|
||||
'v11.1': 'Money Line v11.1 Fixed Filters (Dec 15+)',
|
||||
'v11': 'Money Line v11 All Filters (Dec 15+)',
|
||||
'v9': 'Money Line v9 MA Gap + Momentum (Nov 26+) - ARCHIVED',
|
||||
'v8': 'Money Line Sticky Trend (Nov 18-26) - ARCHIVED',
|
||||
'v7': 'HalfTrend with toggles (deprecated)',
|
||||
'v6': 'HalfTrend + BarColor (Nov 12-18) - ARCHIVED',
|
||||
'v5': 'Buy/Sell Signal (pre-Nov 12) - ARCHIVED',
|
||||
'unknown': 'No version tracked (pre-Nov 12) - ARCHIVED'
|
||||
}
|
||||
|
||||
const archivedVersions = ['v5', 'v6', 'v7', 'unknown']
|
||||
const archivedVersions = ['v5', 'v6', 'v7', 'v8', 'v9', 'unknown']
|
||||
|
||||
// Sort versions: v8 first (production), then v7, v6, v5, unknown (archived)
|
||||
// Sort versions: v11.2opt first (production), then descending by version
|
||||
const versionOrder: Record<string, number> = {
|
||||
'v8': 0, 'v7': 1, 'v6': 2, 'v5': 3, 'unknown': 4
|
||||
'v11.2opt': 0, 'v11.2': 1, 'v11.1': 2, 'v11': 3, 'v9': 4, 'v8': 5, 'v7': 6, 'v6': 7, 'v5': 8, 'unknown': 9
|
||||
}
|
||||
results.sort((a, b) => {
|
||||
const orderA = versionOrder[a.version] ?? 999
|
||||
@@ -149,7 +155,7 @@ export async function GET() {
|
||||
success: true,
|
||||
versions: resultsWithArchived,
|
||||
descriptions: versionDescriptions,
|
||||
production: 'v8',
|
||||
production: 'v11.2opt',
|
||||
archived: archivedVersions,
|
||||
timestamp: new Date().toISOString()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user