fix(analytics): never mix paper + live P&L; settings live-switch copy
Money-safety/accuracy bug: analytics computed total P&L, win rate, drawdown, and every metric over ALL trades regardless of is_paper. A user who tried paper mode then went live saw simulated and real P&L summed into one number on the page whose entire purpose is 'did the bot make REAL money'. Now: split trades by is_paper. Default to LIVE. A Live/Paper toggle appears only when the wallet has both; otherwise auto-pick whichever exists. Paper view shows a prominent 'SIMULATED — not real-money results' banner. All metrics derive from the selected mode's trades only. Also: BotConfigPanel handleUpgradeToLive copy now states Auto-Trade is forced OFF on the paper→live switch (matches backend subscribe.py safety reset). tsc + next build clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+14
-7
@@ -4,8 +4,8 @@ import Script from 'next/script'
|
||||
import './[locale]/globals.css'
|
||||
|
||||
const siteTitle = 'Trump Alpha'
|
||||
const siteTagline = 'Four crypto alpha feeds, one dashboard'
|
||||
const siteDescription = 'Real-time Trump Truth Social signals, BTC macro-bottom confluence, KOL Substack/podcast signals, and talks-vs-trades divergence — all scored by AI in one live dashboard.'
|
||||
const siteTagline = 'The crypto signals that move price before the crowd'
|
||||
const siteDescription = "Endorphin is a crypto research desk tracking four signals that move markets before consensus catches up — Trump's posts, BTC macro bottoms, funding-rate extremes, and what KOLs do versus what they say. Every signal is public and timestamped."
|
||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL
|
||||
|
||||
export const metadata: Metadata = {
|
||||
@@ -42,9 +42,9 @@ export const metadata: Metadata = {
|
||||
'funding rate reversal',
|
||||
'Bitcoin cycle bottom',
|
||||
],
|
||||
authors: [{ name: 'Trump Alpha' }],
|
||||
creator: 'Trump Alpha',
|
||||
publisher: 'Trump Alpha',
|
||||
authors: [{ name: 'Endorphin' }],
|
||||
creator: 'Endorphin',
|
||||
publisher: 'Endorphin',
|
||||
category: 'Finance',
|
||||
robots: {
|
||||
index: true,
|
||||
@@ -137,6 +137,8 @@ const jsonLd = {
|
||||
applicationSubCategory: 'Cryptocurrency Trading Tool',
|
||||
operatingSystem: 'Web',
|
||||
description: siteDescription,
|
||||
publisher: { '@id': `${_base}/#org` },
|
||||
author: { '@id': `${_base}/#org` },
|
||||
datePublished: '2025-01-01',
|
||||
dateModified: _today,
|
||||
inLanguage: ['en'],
|
||||
@@ -168,10 +170,15 @@ const jsonLd = {
|
||||
{
|
||||
'@type': 'Organization',
|
||||
'@id': `${_base}/#org`,
|
||||
name: 'Trump Alpha',
|
||||
name: 'Endorphin',
|
||||
alternateName: ['Endorphin Research', 'Endorphin Desk'],
|
||||
url: _base,
|
||||
logo: `${_base}/icon`,
|
||||
description: 'AI-powered crypto intelligence platform tracking Trump posts, on-chain signals, and KOL sentiment.',
|
||||
description: 'Endorphin is a crypto research desk. Trump Alpha is its public signal project — four market-moving signals tracked live and timestamped.',
|
||||
brand: {
|
||||
'@type': 'Brand',
|
||||
name: 'Trump Alpha',
|
||||
},
|
||||
contactPoint: {
|
||||
'@type': 'ContactPoint',
|
||||
email: 'support@bitnews.day',
|
||||
|
||||
Reference in New Issue
Block a user