feat(seo/geo): Dataset + Article + BreadcrumbList structured data, noindex archive
GEO (AI answer engines) — make the signal feeds and case studies machine-citeable: - Dataset JSON-LD on /trump, /kol, /trades (creator=Endorphin, publisher→#org, isAccessibleForFree, temporalCoverage). These are the "data/history/track record" entities Perplexity/Gemini/ChatGPT cite. - case-studies: ItemList of 5 Article nodes, each with headline/description/ articleBody/about + citation→evidence URL + author=Endorphin. ISO dates derived where parseable, omitted for vague labels. - public/llms-full.txt: single-doc full reference (methodology + glossary + case studies w/ sources inlined) for one-fetch AI ingestion; linked from llms.txt. SEO: - Breadcrumbs component (components/seo/Breadcrumbs.tsx) → BreadcrumbList JSON-LD on the 8 indexable content pages (trump/kol/macro/trades/analytics/ methodology/glossary/case-studies). - /archive split into server page + ArchivePageClient; server page sets robots noindex (legacy/test data — thin-content risk). - openGraph added to /trades and /analytics (previously meta+canonical only). Verified: tsc 0 errors, next build passes, runtime curl confirms all JSON-LD types render and llms-full.txt serves 200. No trading/API/component-logic changes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import { getLocale } from 'next-intl/server'
|
import { getLocale } from 'next-intl/server'
|
||||||
import AnalyticsPageClient from './AnalyticsPageClient'
|
import AnalyticsPageClient from './AnalyticsPageClient'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
|
|
||||||
@@ -14,6 +15,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
return {
|
return {
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
|
openGraph: { title, description },
|
||||||
alternates: {
|
alternates: {
|
||||||
canonical: `${siteUrl}/en/analytics`,
|
canonical: `${siteUrl}/en/analytics`,
|
||||||
languages: {
|
languages: {
|
||||||
@@ -24,5 +26,10 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function AnalyticsPage() {
|
export default function AnalyticsPage() {
|
||||||
return <AnalyticsPageClient />
|
return (
|
||||||
|
<>
|
||||||
|
<Breadcrumbs items={[{ name: 'Analytics', path: '/en/analytics' }]} />
|
||||||
|
<AnalyticsPageClient />
|
||||||
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,121 @@
|
|||||||
|
'use client'
|
||||||
|
|
||||||
|
import { useState, useEffect, useMemo } from 'react'
|
||||||
|
import { useLocale } from 'next-intl'
|
||||||
|
import type { TrumpPost } from '@/types'
|
||||||
|
import { getPosts } from '@/lib/api'
|
||||||
|
import PostRow from '@/components/dashboard/PostCards'
|
||||||
|
import PageHint from '@/components/ui/PageHint'
|
||||||
|
import Pagination from '@/components/ui/Pagination'
|
||||||
|
|
||||||
|
const ARCHIVE_PAGE_SIZE = 30
|
||||||
|
|
||||||
|
const LIVE_SOURCES = new Set([
|
||||||
|
'truth',
|
||||||
|
'btc_bottom_reversal',
|
||||||
|
'funding_reversal',
|
||||||
|
'kol_divergence',
|
||||||
|
])
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Archive — legacy / test signals (rsi_reversal, sma_reclaim, breakout,
|
||||||
|
* test, phase1…). NOT a live system. Kept only so old data is inspectable.
|
||||||
|
*/
|
||||||
|
export default function ArchivePageClient() {
|
||||||
|
const locale = useLocale()
|
||||||
|
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
||||||
|
const [posts, setPosts] = useState<TrumpPost[]>([])
|
||||||
|
const [loading, setLoading] = useState(true)
|
||||||
|
const [loadErr, setLoadErr] = useState('')
|
||||||
|
const [src, setSrc] = useState<string>('all')
|
||||||
|
const [archivePage, setArchivePage] = useState(1)
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
getPosts(500, 1)
|
||||||
|
.then(p => { setPosts(p); setLoadErr('') })
|
||||||
|
.catch(e => setLoadErr(e instanceof Error ? e.message : (isZh ? '历史归档加载失败' : 'Failed to load archive')))
|
||||||
|
.finally(() => setLoading(false))
|
||||||
|
}, [isZh])
|
||||||
|
|
||||||
|
// Archive = legacy / test data only. Exclude every live signal source so
|
||||||
|
// active modules don't leak in here as users explore old experiments. Keep
|
||||||
|
// this set in sync with sources emitted by app/services/scanners/*.
|
||||||
|
const archivePosts = useMemo(
|
||||||
|
() => posts.filter(p => !LIVE_SOURCES.has(p.source || '')),
|
||||||
|
[posts],
|
||||||
|
)
|
||||||
|
const sources = useMemo(() => {
|
||||||
|
const m: Record<string, number> = {}
|
||||||
|
for (const p of archivePosts) m[p.source || '?'] = (m[p.source || '?'] || 0) + 1
|
||||||
|
return Object.entries(m).sort((a, b) => b[1] - a[1])
|
||||||
|
}, [archivePosts])
|
||||||
|
const filtered = useMemo(
|
||||||
|
() => src === 'all' ? archivePosts : archivePosts.filter(p => p.source === src),
|
||||||
|
[archivePosts, src],
|
||||||
|
)
|
||||||
|
const archiveTotalPages = Math.max(1, Math.ceil(filtered.length / ARCHIVE_PAGE_SIZE))
|
||||||
|
const archiveSafePage = Math.min(archivePage, archiveTotalPages)
|
||||||
|
const archivePageItems = filtered.slice((archiveSafePage - 1) * ARCHIVE_PAGE_SIZE, archiveSafePage * ARCHIVE_PAGE_SIZE)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="page">
|
||||||
|
<div className="page-head">
|
||||||
|
<div>
|
||||||
|
<h1 className="page-title">Archive</h1>
|
||||||
|
<PageHint count={`${archivePosts.length} legacy posts`}>
|
||||||
|
Historical fires from old scanner experiments
|
||||||
|
(rsi_reversal, sma_reclaim, breakout, test/phase1). Kept only for
|
||||||
|
inspection — the bot doesn't act on these any more.
|
||||||
|
</PageHint>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div style={{ display: 'flex', gap: 6, flexWrap: 'wrap', marginBottom: 12 }}>
|
||||||
|
{[['all', archivePosts.length] as [string, number], ...sources].map(([s, n]) => (
|
||||||
|
<button
|
||||||
|
key={s}
|
||||||
|
onClick={() => { setSrc(s); setArchivePage(1) }}
|
||||||
|
style={{
|
||||||
|
padding: '4px 10px', borderRadius: 6, border: '1px solid var(--line)',
|
||||||
|
background: src === s ? 'var(--ink)' : 'transparent',
|
||||||
|
color: src === s ? 'var(--bg)' : 'var(--ink-3)',
|
||||||
|
fontSize: 11, cursor: 'pointer', fontWeight: src === s ? 600 : 400,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{s} <span style={{ opacity: 0.6 }}>{n}</span>
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{loading && <div style={{ textAlign: 'center', padding: 60, color: 'var(--ink-3)' }}>{isZh ? '加载中…' : 'Loading…'}</div>}
|
||||||
|
{!loading && loadErr && (
|
||||||
|
<div className="card" style={{ padding: 24, textAlign: 'center', color: 'var(--down)' }}>
|
||||||
|
⚠️ {isZh ? `无法加载归档:${loadErr}` : `Couldn't load archive — ${loadErr}`}
|
||||||
|
<div style={{ marginTop: 10 }}>
|
||||||
|
<button className="btn ghost" style={{ fontSize: 12, padding: '6px 14px' }}
|
||||||
|
onClick={() => location.reload()}>{isZh ? '重试' : 'Retry'}</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{!loading && !loadErr && filtered.length === 0 && (
|
||||||
|
<div className="card" style={{ padding: 48, textAlign: 'center', color: 'var(--ink-3)' }}>
|
||||||
|
{isZh ? '没有可显示的历史信号。' : 'No archived signals.'}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
{!loading && archivePageItems.length > 0 && (
|
||||||
|
<>
|
||||||
|
<div className="post-stream">
|
||||||
|
{archivePageItems.map(p => <PostRow key={p.id} post={p} />)}
|
||||||
|
</div>
|
||||||
|
<Pagination
|
||||||
|
page={archiveSafePage}
|
||||||
|
total={archiveTotalPages}
|
||||||
|
count={filtered.length}
|
||||||
|
pageSize={ARCHIVE_PAGE_SIZE}
|
||||||
|
onChange={setArchivePage}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
+11
-119
@@ -1,121 +1,13 @@
|
|||||||
'use client'
|
// Archive is legacy/test data only — not part of the live signal stack.
|
||||||
|
// noindex keeps it out of search results (duplicate/thin content risk)
|
||||||
|
// while keeping it accessible to logged-in users for inspection.
|
||||||
|
import type { Metadata } from 'next'
|
||||||
|
import ArchivePageClient from './ArchivePageClient'
|
||||||
|
|
||||||
import { useState, useEffect, useMemo } from 'react'
|
export const metadata: Metadata = {
|
||||||
import { useLocale } from 'next-intl'
|
robots: { index: false, follow: false },
|
||||||
import type { TrumpPost } from '@/types'
|
}
|
||||||
import { getPosts } from '@/lib/api'
|
|
||||||
import PostRow from '@/components/dashboard/PostCards'
|
export default function ArchivePage() {
|
||||||
import PageHint from '@/components/ui/PageHint'
|
return <ArchivePageClient />
|
||||||
import Pagination from '@/components/ui/Pagination'
|
|
||||||
|
|
||||||
const ARCHIVE_PAGE_SIZE = 30
|
|
||||||
|
|
||||||
const LIVE_SOURCES = new Set([
|
|
||||||
'truth',
|
|
||||||
'btc_bottom_reversal',
|
|
||||||
'funding_reversal',
|
|
||||||
'kol_divergence',
|
|
||||||
])
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Archive — legacy / test signals (rsi_reversal, sma_reclaim, breakout,
|
|
||||||
* test, phase1…). NOT a live system. Kept only so old data is inspectable.
|
|
||||||
*/
|
|
||||||
export default function ArchivePage() {
|
|
||||||
const locale = useLocale()
|
|
||||||
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
|
||||||
const [posts, setPosts] = useState<TrumpPost[]>([])
|
|
||||||
const [loading, setLoading] = useState(true)
|
|
||||||
const [loadErr, setLoadErr] = useState('')
|
|
||||||
const [src, setSrc] = useState<string>('all')
|
|
||||||
const [archivePage, setArchivePage] = useState(1)
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
getPosts(500, 1)
|
|
||||||
.then(p => { setPosts(p); setLoadErr('') })
|
|
||||||
.catch(e => setLoadErr(e instanceof Error ? e.message : (isZh ? '历史归档加载失败' : 'Failed to load archive')))
|
|
||||||
.finally(() => setLoading(false))
|
|
||||||
}, [isZh])
|
|
||||||
|
|
||||||
// Archive = legacy / test data only. Exclude every live signal source so
|
|
||||||
// active modules don't leak in here as users explore old experiments. Keep
|
|
||||||
// this set in sync with sources emitted by app/services/scanners/*.
|
|
||||||
const archivePosts = useMemo(
|
|
||||||
() => posts.filter(p => !LIVE_SOURCES.has(p.source || '')),
|
|
||||||
[posts],
|
|
||||||
)
|
|
||||||
const sources = useMemo(() => {
|
|
||||||
const m: Record<string, number> = {}
|
|
||||||
for (const p of archivePosts) m[p.source || '?'] = (m[p.source || '?'] || 0) + 1
|
|
||||||
return Object.entries(m).sort((a, b) => b[1] - a[1])
|
|
||||||
}, [archivePosts])
|
|
||||||
const filtered = useMemo(
|
|
||||||
() => src === 'all' ? archivePosts : archivePosts.filter(p => p.source === src),
|
|
||||||
[archivePosts, src],
|
|
||||||
)
|
|
||||||
const archiveTotalPages = Math.max(1, Math.ceil(filtered.length / ARCHIVE_PAGE_SIZE))
|
|
||||||
const archiveSafePage = Math.min(archivePage, archiveTotalPages)
|
|
||||||
const archivePageItems = filtered.slice((archiveSafePage - 1) * ARCHIVE_PAGE_SIZE, archiveSafePage * ARCHIVE_PAGE_SIZE)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="page">
|
|
||||||
<div className="page-head">
|
|
||||||
<div>
|
|
||||||
<h1 className="page-title">Archive</h1>
|
|
||||||
<PageHint count={`${archivePosts.length} legacy posts`}>
|
|
||||||
Historical fires from old scanner experiments
|
|
||||||
(rsi_reversal, sma_reclaim, breakout, test/phase1). Kept only for
|
|
||||||
inspection — the bot doesn't act on these any more.
|
|
||||||
</PageHint>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div style={{ display: 'flex', gap: 6, flexWrap: 'wrap', marginBottom: 12 }}>
|
|
||||||
{[['all', archivePosts.length] as [string, number], ...sources].map(([s, n]) => (
|
|
||||||
<button
|
|
||||||
key={s}
|
|
||||||
onClick={() => { setSrc(s); setArchivePage(1) }}
|
|
||||||
style={{
|
|
||||||
padding: '4px 10px', borderRadius: 6, border: '1px solid var(--line)',
|
|
||||||
background: src === s ? 'var(--ink)' : 'transparent',
|
|
||||||
color: src === s ? 'var(--bg)' : 'var(--ink-3)',
|
|
||||||
fontSize: 11, cursor: 'pointer', fontWeight: src === s ? 600 : 400,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{s} <span style={{ opacity: 0.6 }}>{n}</span>
|
|
||||||
</button>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{loading && <div style={{ textAlign: 'center', padding: 60, color: 'var(--ink-3)' }}>{isZh ? '加载中…' : 'Loading…'}</div>}
|
|
||||||
{!loading && loadErr && (
|
|
||||||
<div className="card" style={{ padding: 24, textAlign: 'center', color: 'var(--down)' }}>
|
|
||||||
⚠️ {isZh ? `无法加载归档:${loadErr}` : `Couldn’t load archive — ${loadErr}`}
|
|
||||||
<div style={{ marginTop: 10 }}>
|
|
||||||
<button className="btn ghost" style={{ fontSize: 12, padding: '6px 14px' }}
|
|
||||||
onClick={() => location.reload()}>{isZh ? '重试' : 'Retry'}</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{!loading && !loadErr && filtered.length === 0 && (
|
|
||||||
<div className="card" style={{ padding: 48, textAlign: 'center', color: 'var(--ink-3)' }}>
|
|
||||||
{isZh ? '没有可显示的历史信号。' : 'No archived signals.'}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
{!loading && archivePageItems.length > 0 && (
|
|
||||||
<>
|
|
||||||
<div className="post-stream">
|
|
||||||
{archivePageItems.map(p => <PostRow key={p.id} post={p} />)}
|
|
||||||
</div>
|
|
||||||
<Pagination
|
|
||||||
page={archiveSafePage}
|
|
||||||
total={archiveTotalPages}
|
|
||||||
count={filtered.length}
|
|
||||||
pageSize={ARCHIVE_PAGE_SIZE}
|
|
||||||
onChange={setArchivePage}
|
|
||||||
/>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
|
|
||||||
@@ -303,13 +304,60 @@ const SIGNAL_COLOR: Record<string, string> = {
|
|||||||
DIVERGENCE: '#f5a524',
|
DIVERGENCE: '#f5a524',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Map a free-text case date ("March 2, 2025", "April 2025", "Illustrative
|
||||||
|
// composite") to an ISO date where possible. Returns undefined for vague /
|
||||||
|
// non-date labels so we omit datePublished rather than emit garbage.
|
||||||
|
function caseIsoDate(raw: string): string | undefined {
|
||||||
|
const d = new Date(raw)
|
||||||
|
return isNaN(d.getTime()) ? undefined : d.toISOString().slice(0, 10)
|
||||||
|
}
|
||||||
|
|
||||||
export default async function CaseStudiesPage({ params }: { params: Promise<{ locale: string }> }) {
|
export default async function CaseStudiesPage({ params }: { params: Promise<{ locale: string }> }) {
|
||||||
const { locale } = await params
|
const { locale } = await params
|
||||||
const copy = getCopy(locale)
|
const copy = getCopy(locale)
|
||||||
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
const isZh = false // i18n shelved — Chinese branches kept as dead code for future revival; see messages/zh.json
|
||||||
|
|
||||||
|
// ── GEO: each case as a schema.org/Article in an ItemList ─────────────────
|
||||||
|
// These documented event walkthroughs are exactly what AI answer engines
|
||||||
|
// (Perplexity, Gemini, ChatGPT) cite for "did Trump posts move crypto"
|
||||||
|
// queries. Structured data makes them machine-citeable. Evidence URLs become
|
||||||
|
// citation links; Endorphin is the author/publisher.
|
||||||
|
const pageUrl = `${siteUrl}/${locale}/case-studies`
|
||||||
|
const caseJsonLd = {
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'ItemList',
|
||||||
|
'@id': `${pageUrl}#cases`,
|
||||||
|
name: copy.title,
|
||||||
|
description: copy.description,
|
||||||
|
itemListElement: copy.cases.map((c, i) => {
|
||||||
|
const iso = caseIsoDate(c.date)
|
||||||
|
const article: Record<string, unknown> = {
|
||||||
|
'@type': 'Article',
|
||||||
|
'@id': `${pageUrl}#${c.id}`,
|
||||||
|
headline: c.title,
|
||||||
|
description: c.summary,
|
||||||
|
articleBody: c.detail,
|
||||||
|
about: c.asset,
|
||||||
|
author: { '@type': 'Organization', name: 'Endorphin', url: siteUrl },
|
||||||
|
publisher: { '@id': `${siteUrl}/#org` },
|
||||||
|
isPartOf: { '@id': `${siteUrl}/#website` },
|
||||||
|
}
|
||||||
|
if (iso) article.datePublished = iso
|
||||||
|
if (c.externalUrl) {
|
||||||
|
article.citation = c.externalUrl
|
||||||
|
article.isBasedOn = c.externalUrl
|
||||||
|
}
|
||||||
|
return { '@type': 'ListItem', position: i + 1, item: article }
|
||||||
|
}),
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="page" style={{ maxWidth: 780 }}>
|
<div className="page" style={{ maxWidth: 780 }}>
|
||||||
|
<script
|
||||||
|
type="application/ld+json"
|
||||||
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(caseJsonLd) }}
|
||||||
|
/>
|
||||||
|
<Breadcrumbs items={[{ name: copy.heroTitle, path: `/${locale}/case-studies` }]} />
|
||||||
<div className="page-head">
|
<div className="page-head">
|
||||||
<div>
|
<div>
|
||||||
<h1 className="page-title">{copy.heroTitle}</h1>
|
<h1 className="page-title">{copy.heroTitle}</h1>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
|
|
||||||
@@ -357,6 +358,7 @@ export default async function GlossaryPage({ params }: { params: Promise<{ local
|
|||||||
type="application/ld+json"
|
type="application/ld+json"
|
||||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(glossaryJsonLd) }}
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(glossaryJsonLd) }}
|
||||||
/>
|
/>
|
||||||
|
<Breadcrumbs items={[{ name: copy.heroTitle, path: `/${locale}/glossary` }]} />
|
||||||
<div className="page" style={{ maxWidth: 760 }}>
|
<div className="page" style={{ maxWidth: 760 }}>
|
||||||
<div className="page-head">
|
<div className="page-head">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { getKolChanges, getKolDigest, getKolDivergence, getKolPosts } from '@/lib/api'
|
import { getKolChanges, getKolDigest, getKolDivergence, getKolPosts } from '@/lib/api'
|
||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import KolPageClient from './KolPageClient'
|
import KolPageClient from './KolPageClient'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
export const revalidate = 30
|
export const revalidate = 30
|
||||||
@@ -59,6 +60,25 @@ export async function generateMetadata({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GEO: the KOL talks-vs-trades feed is a dataset cross-referencing 19 crypto
|
||||||
|
// KOLs' public statements against their on-chain wallet behaviour.
|
||||||
|
const kolDataset = {
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'Dataset',
|
||||||
|
'@id': `${siteUrl}/en/kol#dataset`,
|
||||||
|
name: 'Crypto KOL talks-vs-trades divergence dataset',
|
||||||
|
description:
|
||||||
|
'Daily cross-reference of 19 crypto KOLs\' public statements (Substack / podcast) against their on-chain Ethereum wallet activity, flagging divergence when public stance and real positioning disagree within a ±7-day window.',
|
||||||
|
url: `${siteUrl}/en/kol`,
|
||||||
|
keywords: ['crypto KOL', 'on-chain', 'divergence', 'wallet tracking', 'sentiment'],
|
||||||
|
isAccessibleForFree: true,
|
||||||
|
creator: { '@type': 'Organization', name: 'Endorphin', url: siteUrl },
|
||||||
|
publisher: { '@id': `${siteUrl}/#org` },
|
||||||
|
license: `${siteUrl}/en/terms`,
|
||||||
|
measurementTechnique: 'On-chain wallet diff vs NLP stance extraction',
|
||||||
|
temporalCoverage: '2025-01-01/..',
|
||||||
|
}
|
||||||
|
|
||||||
export default async function KolPage() {
|
export default async function KolPage() {
|
||||||
const [posts, digest, changes, divergence] = await Promise.all([
|
const [posts, digest, changes, divergence] = await Promise.all([
|
||||||
getKolPosts({ limit: 100 }).catch(() => null),
|
getKolPosts({ limit: 100 }).catch(() => null),
|
||||||
@@ -68,11 +88,18 @@ export default async function KolPage() {
|
|||||||
])
|
])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<script
|
||||||
|
type="application/ld+json"
|
||||||
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(kolDataset) }}
|
||||||
|
/>
|
||||||
|
<Breadcrumbs items={[{ name: 'KOL talks-vs-trades', path: '/en/kol' }]} />
|
||||||
<KolPageClient
|
<KolPageClient
|
||||||
initialPosts={posts?.items ?? null}
|
initialPosts={posts?.items ?? null}
|
||||||
initialDigest={digest}
|
initialDigest={digest}
|
||||||
initialChanges={changes?.changes ?? null}
|
initialChanges={changes?.changes ?? null}
|
||||||
initialDivergence={divergence?.items ?? null}
|
initialDivergence={divergence?.items ?? null}
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { getFundingSnapshot, getPosts } from '@/lib/api'
|
import { getFundingSnapshot, getPosts } from '@/lib/api'
|
||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import MacroVibesPageClient from './MacroVibesPageClient'
|
import MacroVibesPageClient from './MacroVibesPageClient'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
export const revalidate = 30
|
export const revalidate = 30
|
||||||
@@ -68,9 +69,12 @@ export default async function MacroVibesPage() {
|
|||||||
])
|
])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<>
|
||||||
|
<Breadcrumbs items={[{ name: 'Macro Vibes', path: '/en/macro' }]} />
|
||||||
<MacroVibesPageClient
|
<MacroVibesPageClient
|
||||||
initialPosts={posts}
|
initialPosts={posts}
|
||||||
initialFundingSnapshot={fundingSnapshot}
|
initialFundingSnapshot={fundingSnapshot}
|
||||||
/>
|
/>
|
||||||
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
|
|
||||||
@@ -468,6 +469,7 @@ export default async function MethodologyPage({ params }: { params: Promise<{ lo
|
|||||||
type="application/ld+json"
|
type="application/ld+json"
|
||||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(methodologyJsonLd) }}
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(methodologyJsonLd) }}
|
||||||
/>
|
/>
|
||||||
|
<Breadcrumbs items={[{ name: copy.heroTitle, path: `/${locale}/methodology` }]} />
|
||||||
<div className="page" style={{ maxWidth: 760 }}>
|
<div className="page" style={{ maxWidth: 760 }}>
|
||||||
<div className="page-head">
|
<div className="page-head">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import { getLocale } from 'next-intl/server'
|
import { getLocale } from 'next-intl/server'
|
||||||
import TradesPageClient from './TradesPageClient'
|
import TradesPageClient from './TradesPageClient'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
|
|
||||||
@@ -14,6 +15,7 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
return {
|
return {
|
||||||
title,
|
title,
|
||||||
description,
|
description,
|
||||||
|
openGraph: { title, description },
|
||||||
alternates: {
|
alternates: {
|
||||||
canonical: `${siteUrl}/${locale}/trades`,
|
canonical: `${siteUrl}/${locale}/trades`,
|
||||||
languages: {
|
languages: {
|
||||||
@@ -23,6 +25,34 @@ export async function generateMetadata(): Promise<Metadata> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function TradesPage() {
|
// GEO: the trade history is a dataset — every bot execution with entry/exit,
|
||||||
return <TradesPageClient />
|
// P&L, hold time, and the signal that triggered it. Cited for "track record"
|
||||||
|
// and "does it work" queries.
|
||||||
|
const tradesDataset = {
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'Dataset',
|
||||||
|
'@id': `${siteUrl}/en/trades#dataset`,
|
||||||
|
name: 'Trump Alpha trade execution history',
|
||||||
|
description:
|
||||||
|
'Record of every signal-triggered trade: asset, direction, entry and exit price, realised P&L, hold time, and the source signal that triggered it. Public and timestamped.',
|
||||||
|
url: `${siteUrl}/en/trades`,
|
||||||
|
keywords: ['crypto trading track record', 'Hyperliquid', 'P&L', 'backtest', 'signal performance'],
|
||||||
|
isAccessibleForFree: true,
|
||||||
|
creator: { '@type': 'Organization', name: 'Endorphin', url: siteUrl },
|
||||||
|
publisher: { '@id': `${siteUrl}/#org` },
|
||||||
|
license: `${siteUrl}/en/terms`,
|
||||||
|
temporalCoverage: '2025-01-01/..',
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function TradesPage() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<script
|
||||||
|
type="application/ld+json"
|
||||||
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(tradesDataset) }}
|
||||||
|
/>
|
||||||
|
<Breadcrumbs items={[{ name: 'Trades', path: '/en/trades' }]} />
|
||||||
|
<TradesPageClient />
|
||||||
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { getPosts } from '@/lib/api'
|
import { getPosts } from '@/lib/api'
|
||||||
import type { Metadata } from 'next'
|
import type { Metadata } from 'next'
|
||||||
import TrumpPageClient from './TrumpPageClient'
|
import TrumpPageClient from './TrumpPageClient'
|
||||||
|
import Breadcrumbs from '@/components/seo/Breadcrumbs'
|
||||||
|
|
||||||
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
export const revalidate = 30
|
export const revalidate = 30
|
||||||
@@ -53,8 +54,37 @@ export async function generateMetadata({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GEO: the live Trump signal feed is a dataset. schema.org/Dataset is highly
|
||||||
|
// cited by AI answer engines for "data / history of X" queries. Endorphin is
|
||||||
|
// the creator; the feed is free and continuously updated.
|
||||||
|
const trumpDataset = {
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'Dataset',
|
||||||
|
'@id': `${siteUrl}/en/trump#dataset`,
|
||||||
|
name: 'Trump Truth Social crypto-signal feed',
|
||||||
|
description:
|
||||||
|
'Time-stamped feed of Donald Trump Truth Social posts classified for crypto market impact (long / short / noise) with a confidence score and the realised short-term price move. Updated within seconds of each post.',
|
||||||
|
url: `${siteUrl}/en/trump`,
|
||||||
|
keywords: ['Trump', 'Truth Social', 'Bitcoin', 'crypto signal', 'sentiment'],
|
||||||
|
isAccessibleForFree: true,
|
||||||
|
creator: { '@type': 'Organization', name: 'Endorphin', url: siteUrl },
|
||||||
|
publisher: { '@id': `${siteUrl}/#org` },
|
||||||
|
license: `${siteUrl}/en/terms`,
|
||||||
|
measurementTechnique: 'NLP sentiment classification with confidence scoring',
|
||||||
|
temporalCoverage: '2025-01-01/..',
|
||||||
|
}
|
||||||
|
|
||||||
export default async function TrumpPage() {
|
export default async function TrumpPage() {
|
||||||
const posts = await getPosts(500, 1).catch(() => null)
|
const posts = await getPosts(500, 1).catch(() => null)
|
||||||
|
|
||||||
return <TrumpPageClient initialPosts={posts} />
|
return (
|
||||||
|
<>
|
||||||
|
<script
|
||||||
|
type="application/ld+json"
|
||||||
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(trumpDataset) }}
|
||||||
|
/>
|
||||||
|
<Breadcrumbs items={[{ name: 'Trump signals', path: '/en/trump' }]} />
|
||||||
|
<TrumpPageClient initialPosts={posts} />
|
||||||
|
</>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,34 @@
|
|||||||
|
// Emits a schema.org/BreadcrumbList as JSON-LD. Server-component friendly —
|
||||||
|
// renders only a <script> tag, no visible DOM. Helps Google breadcrumb rich
|
||||||
|
// results and gives AI answer engines the page's entity hierarchy.
|
||||||
|
//
|
||||||
|
// Usage (server component):
|
||||||
|
// <Breadcrumbs items={[{ name: 'Methodology', path: '/en/methodology' }]} />
|
||||||
|
// "Home" is prepended automatically; pass the page itself as the last item.
|
||||||
|
|
||||||
|
const siteUrl = process.env.NEXT_PUBLIC_SITE_URL || 'https://trumpsignal.com'
|
||||||
|
|
||||||
|
export interface Crumb {
|
||||||
|
name: string
|
||||||
|
path: string // e.g. "/en/methodology"
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function Breadcrumbs({ items }: { items: Crumb[] }) {
|
||||||
|
const all: Crumb[] = [{ name: 'Trump Alpha', path: '/en' }, ...items]
|
||||||
|
const jsonLd = {
|
||||||
|
'@context': 'https://schema.org',
|
||||||
|
'@type': 'BreadcrumbList',
|
||||||
|
itemListElement: all.map((c, i) => ({
|
||||||
|
'@type': 'ListItem',
|
||||||
|
position: i + 1,
|
||||||
|
name: c.name,
|
||||||
|
item: `${siteUrl}${c.path}`,
|
||||||
|
})),
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<script
|
||||||
|
type="application/ld+json"
|
||||||
|
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,111 @@
|
|||||||
|
# Trump Alpha — Full Reference (by Endorphin)
|
||||||
|
|
||||||
|
> Expanded companion to /llms.txt. This single document inlines the full
|
||||||
|
> methodology, the glossary, and the documented case studies with their
|
||||||
|
> evidence sources, so an AI assistant can answer detailed questions in one
|
||||||
|
> fetch. For the concise index see https://trumpsignal.com/llms.txt
|
||||||
|
>
|
||||||
|
> Trump Alpha is a crypto research project by Endorphin, a research desk. It
|
||||||
|
> tracks four uncorrelated signals that move markets before consensus catches
|
||||||
|
> up. Every signal is public and timestamped. Free to read; an optional
|
||||||
|
> non-custodial Hyperliquid auto-trader is available for the Trump signal only.
|
||||||
|
|
||||||
|
## Who runs this
|
||||||
|
|
||||||
|
Endorphin is the research desk behind Trump Alpha. Positioning is deliberately
|
||||||
|
research-first: the site documents live production logic, publishes its
|
||||||
|
track record openly, and timestamps every call. It is not a paid signal group,
|
||||||
|
a course, or a "guru" account.
|
||||||
|
|
||||||
|
## The four signal engines (full logic)
|
||||||
|
|
||||||
|
### 1. Trump Truth Social Signal (real-time event)
|
||||||
|
Watches Donald Trump's Truth Social feed in real time. Within ~15 seconds of a
|
||||||
|
new post, an NLP model classifies it as LONG (bullish crypto), SHORT (bearish),
|
||||||
|
or NOISE (off-topic), with a 0–100 confidence score. Post-to-classification
|
||||||
|
runs in under 3 seconds. Posts that name specific assets and tie them to policy
|
||||||
|
score highest. Only posts ≥ 88 confidence can trigger the optional auto-trader.
|
||||||
|
Failure mode: vague political posts with no asset/policy content score low by
|
||||||
|
design; sarcasm and quote-reposts are the hardest cases.
|
||||||
|
|
||||||
|
### 2. Macro Vibes (crypto macro regime)
|
||||||
|
Eight free public macro indicators in one view: AHR999, Fear & Greed Index, BTC
|
||||||
|
dominance, ETH/BTC ratio, total stablecoin supply, US spot Bitcoin ETF daily net
|
||||||
|
flow, BTC perpetual open interest, and the Altcoin Season Index. Plus two trade
|
||||||
|
triggers:
|
||||||
|
- BTC Macro Bottom (long-only): fires when ≥ 2 of 3 agree — AHR999 < 0.45,
|
||||||
|
price ≤ 200-week MA × 1.05, Pi Cycle Bottom. Fires 2–4× per multi-year cycle.
|
||||||
|
- BTC Funding Reversal: fires when 30-day cumulative perp funding crosses ±3%
|
||||||
|
AND recent cycles start cooling (mean-reversion against crowded positioning).
|
||||||
|
Manage-only: alerts surface; the user opens on Hyperliquid and the bot then
|
||||||
|
manages the exit (5-rung stop ladder, de-risk, pyramid, peak-trail). No auto-open.
|
||||||
|
|
||||||
|
### 3. KOL talks-vs-trades divergence (highest conviction)
|
||||||
|
19 crypto KOL feeds ingested daily via RSS. An NLP step extracts ticker(s),
|
||||||
|
directional stance, and conviction. A separate on-chain step diffs each KOL's
|
||||||
|
Ethereum wallet. A DIVERGENCE fires when public stance and wallet action
|
||||||
|
disagree within a ±7-day window (e.g. publicly bullish ETH while selling ETH).
|
||||||
|
On-chain action is treated as ground truth. This is the platform's
|
||||||
|
highest-conviction category. Alert-only — never auto-trades.
|
||||||
|
|
||||||
|
### 4. BTC Funding Rate Reversal
|
||||||
|
Lives inside Macro Vibes. Monitors BTC perpetual funding at Binance. Extreme
|
||||||
|
30-day cumulative funding (> ±3%) historically precedes mean reversion; the
|
||||||
|
scanner bets against the crowded side once rates start cooling. Alert-only.
|
||||||
|
|
||||||
|
### Optional: Hyperliquid auto-trader (Trump signal only)
|
||||||
|
Non-custodial execution layer using a trade-only Hyperliquid API key (cannot
|
||||||
|
withdraw funds). User controls leverage (default 3×), position size, TP/SL,
|
||||||
|
daily budget cap, active-hours window, and minimum confidence. System 1 (Trump
|
||||||
|
scalp) is the only engine that auto-opens; everything else is alert/manage-only.
|
||||||
|
|
||||||
|
## Glossary (key terms)
|
||||||
|
|
||||||
|
- AHR999: composite BTC valuation indicator (price, geometric-mean price, and an
|
||||||
|
exponential growth fit). < 0.45 = deep-value accumulation zone; > 1.2 =
|
||||||
|
expensive relative to the growth trajectory.
|
||||||
|
- Pi Cycle Bottom: 150-day EMA ≤ 471-day SMA × 0.745. Historically pinpointed
|
||||||
|
BTC cycle bottoms within ~2 weeks in 2015, 2018, and 2022.
|
||||||
|
- 200-week moving average: long-cycle BTC support; price below or near it has
|
||||||
|
marked historical accumulation regimes.
|
||||||
|
- Talks-vs-trades divergence: a KOL's public stance and on-chain wallet behaviour
|
||||||
|
point in opposite directions on the same asset within ±7 days.
|
||||||
|
- Funding reversal: mean-reversion signal when 30-day cumulative BTC perp funding
|
||||||
|
crosses ±3% and the crowded side starts cooling.
|
||||||
|
|
||||||
|
## Documented case studies (with evidence sources)
|
||||||
|
|
||||||
|
These are evidence, not return promises. Each answers: what happened, how the
|
||||||
|
market reacted, and why it supports a specific engine.
|
||||||
|
|
||||||
|
- Strategic Crypto Reserve announcement (Mar 2, 2025, Trump Truth Social):
|
||||||
|
Trump confirmed a U.S. Strategic Crypto Reserve including BTC, ETH, SOL, XRP,
|
||||||
|
ADA. BTC +8.2%, ETH +10%+ within 24h. Supports a high-conviction LONG when a
|
||||||
|
post names specific assets tied to policy.
|
||||||
|
Source: cnbc.com/2025/03/02/trump-announces-strategic-crypto-reserve-including-bitcoin-solana-xrp-and-more.html
|
||||||
|
- $6.8M pre-positioning profit around the reserve post (Mar 2025, on-chain):
|
||||||
|
An anonymous address built a large leveraged BTC/ETH position around the
|
||||||
|
announcement and reportedly closed it same-day for ~$6.8M. Shows speed is edge
|
||||||
|
in event-driven trading.
|
||||||
|
- Tariff escalation post (Apr 2025, Trump Truth Social): a tariff-escalation
|
||||||
|
post produced a risk-off move, BTC -4.1% in ~4h. Supports the need for a real
|
||||||
|
SHORT branch — not every Trump post is bullish.
|
||||||
|
Source: coindesk.com/markets/2026/04/20/five-times-president-trump-made-a-statement-that-moved-bitcoin-and-why-it-might-happen-again-this-week
|
||||||
|
- ETH talks-vs-trades divergence (illustrative composite): a tracked KOL
|
||||||
|
published a bullish ETH thesis then reduced ~$180k ETH within five days —
|
||||||
|
classic divergence between narrative and positioning.
|
||||||
|
- FTX washout zone (Nov 2022, BTC macro bottom reference): BTC reached ~$15.5k
|
||||||
|
and recovered toward ~$69k within ~18 months (+345%). The regime the BTC
|
||||||
|
macro-bottom engine is built to identify via AHR999 + 200-week MA + Pi Cycle.
|
||||||
|
|
||||||
|
## URLs
|
||||||
|
|
||||||
|
- Home: https://trumpsignal.com
|
||||||
|
- Trump signals: https://trumpsignal.com/en/trump
|
||||||
|
- Macro Vibes: https://trumpsignal.com/en/macro
|
||||||
|
- KOL talks-vs-trades: https://trumpsignal.com/en/kol
|
||||||
|
- Trade history: https://trumpsignal.com/en/trades
|
||||||
|
- Analytics / track record: https://trumpsignal.com/en/analytics
|
||||||
|
- Methodology: https://trumpsignal.com/en/methodology
|
||||||
|
- Glossary: https://trumpsignal.com/en/glossary
|
||||||
|
- Case studies: https://trumpsignal.com/en/case-studies
|
||||||
@@ -1,6 +1,8 @@
|
|||||||
# Trump Alpha
|
# Trump Alpha
|
||||||
|
|
||||||
> A crypto research project by Endorphin, a research desk. Tracks four uncorrelated signals that move markets before consensus catches up: Trump Truth Social sentiment, Macro Vibes (crypto macro regime dashboard), KOL Substack/podcast signals, and talks-vs-trades on-chain divergence. Every signal is public and timestamped.
|
> A crypto research project by Endorphin, a research desk. Tracks four uncorrelated signals that move markets before consensus catches up: Trump Truth Social sentiment, Macro Vibes (crypto macro regime dashboard), KOL Substack/podcast signals, and talks-vs-trades on-chain divergence. Every signal is public and timestamped.
|
||||||
|
>
|
||||||
|
> Full reference (methodology + glossary + case studies inlined): https://trumpsignal.com/llms-full.txt
|
||||||
|
|
||||||
## What this site does
|
## What this site does
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user