SYNDEx Integration
POSITx + SYNDEx Post-Trade Analytics Integration
Status: Technical Overview + Integration Roadmap Ready
Executive Summary
POSITx (Books + Scorecard) provides post-trade analytics capabilities that complement SYNDEx's execution engine. This integration enables real-time PnL attribution, copy detection, wallet intelligence, and tax reporting for SYNDEx users.
Key Points
- Parser is LIVE against Helius (Solana mainnet) - not mocked
- 96.3% venue identification accuracy across 4,468 real transactions
- FIFO/HIFO cost basis engine - tested with 28 tests, 5,361 assertions
- Full OpenAPI spec available at
/api/v1/openapi.json - Webhook infrastructure ready for bi-directional events
What is LIVE vs MOCKED?
| Component | Status | Details |
|---|---|---|
| Transaction Parser | LIVE | Helius API (Solana mainnet) |
| Token Pricing | LIVE | Jupiter + Birdeye APIs with fallback |
| Cost Basis Engine | LIVE | FIFO/HIFO/Specific-ID - fully tested |
| Database | LIVE | PostgreSQL via Docker (prod: Neon) |
| Wallet Intelligence | LIVE | Labels, relationships, decay tracking |
| Demo Mode | MOCKED | Only for unauthenticated users |
| Base Parser | READY | Infrastructure complete, needs RPC key |
| Hyperliquid Parser | READY | Infrastructure complete, uses public API |
Integration Architecture
┌─────────────────────────────────────────────────────────────┐
│ SYNDEx │
│ (Execution Engine - Independent) │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Order Entry │ │ Execution │ │ Receipts │ │
│ └─────────────┘ └─────────────┘ └──────┬──────┘ │
└────────────────────────────────────────────┼────────────────┘
│
▼
┌──────────────────────────────┐
│ Trade Receipt Webhook │
│ POST /api/syndex/receipt │
│ { │
│ signature: "...", │
│ wallet: "...", │
│ chain: "solana", │
│ timestamp: "..." │
│ } │
└──────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ POSITx │
│ (Post-Trade Analytics Layer) │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Parser │→→│ Cost Basis │→→│ PnL │ │
│ │ (real-time) │ │ Engine │ │ Attribution │ │
│ └─────────────┘ └─────────────┘ └─────────────┘ │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌─────────────┐ │
│ │ Scorecard │ │ Tax Reports │ │ Webhooks │ │
│ │ Ratings │ │ Form 8949 │ │ (events) │ │
│ └─────────────┘ └─────────────┘ └──────┬──────┘ │
└────────────────────────────────────────────┼────────────────┘
│
▼
┌──────────────────────────────┐
│ Webhook to SYNDEx │
│ • wallet.rating.updated │
│ • alert.copy_detected │
│ • wallet.decay_state.changed│
└──────────────────────────────┘
What SYNDEx Gets
- Real-time PnL attribution for executed trades
- Copy detection alerts - is someone front-running your signals?
- Wallet ratings for any address (smart money scoring)
- Performance benchmarking vs tracked wallets
- Tax-ready export for end users
What POSITx Needs from SYNDEx
- Trade receipts (signature + wallet + timestamp) - read-only
- Webhook notifications when trades execute
- Historical trade data for backfill (optional)
Implementation Timeline
Week 1 (Jun 5-12)
Phase 1: Access & Validation
NDA signed, repo access granted, Alex validates parser accuracy
Week 2 (Jun 12-19)
Phase 2: Functional Spec
Define trade receipt format, webhook events, integration spec document
Week 3-4 (Jun 19 - Jul 3)
Phase 3: AWS Deployment
Deploy POSITx API to AWS App Runner, PostgreSQL to Neon, CI/CD setup
Week 5-6 (Jul 3-17)
Phase 4: Integration Build
Build webhook receivers, trade processing, end-to-end testing
Week 7 (Jul 17-24)
Phase 5: Production
Production API keys, monitoring, documentation, go-live
Checklist for Alex
Immediate Actions (This Week)
-
Sign NDAJustin will send today
-
Provide GitHub usernameFor POSITx repo access (read-only)
-
Grant Justin SYNDEx read-only accessTo understand your data model
-
Review integration briefThis document
-
Test the parser
HELIUS_API_KEY="key" pnpm --filter cli test-wallet <your_wallet>
Information Needed from Alex
| Item | Priority | Notes |
|---|---|---|
| GitHub username | High | For repo access |
| SYNDEx read-only access | High | To understand your data model |
| Trade receipt format | High | What fields per trade? |
| Webhook capability | Medium | Can you send webhooks? |
| API spec/Swagger | Medium | If available |
| Volume estimates | Medium | For capacity planning |
| Integration model preference | Medium | Push vs Pull vs Hybrid |
Trade Receipt Questions
What fields does SYNDEx have per trade?
- Transaction signature?
- Wallet address?
- Token in/out amounts?
- Execution price?
- Timestamp?
- Venue/DEX used?
Alex's Pre-Integration Questions (Answered)
Before writing integration code, Alex asked for confirmation on these items:
| # | Question | Answer |
|---|---|---|
| 1 | Exact branch + commit/hash these docs represent | main branch at current HEAD. Run git log -1 to confirm exact commit. |
| 2 | Current API base URL | Local dev: http://localhost:3000Production: AWS App Runner (not yet deployed - see Phase 3 timeline) |
| 3 | Auth method and rate limits for our tier |
Auth: Privy (Sign-in-with-Solana) for user auth, API keys for service-to-service Rate limits: • Basic: 60 req/min, 10K/day • Pro: 300 req/min, 100K/day • Enterprise: 1,000 req/min, 1M/day |
| 4 | Webhook HMAC format and replay protection |
Signature: HMAC-SHA256 with shared secret Header: X-Posit-Signature: sha256=<hex>Timestamp: X-Posit-Timestamp (Unix epoch)Replay protection: Reject if timestamp > 5 minutes old |
| 5 | Sample live payloads |
Full schema at /api/v1/openapi.json. Sample payloads below.Can generate live samples from test wallets on request. |
| 6 | Is current HEAD the version to review? | Yes - Review main branch. All code is current. |
Sample Webhook Payloads
rating.updated
{
"event": "wallet.rating.updated",
"timestamp": "2026-06-09T10:30:00Z",
"data": {
"wallet": "5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1",
"rating": {
"score": 847,
"percentile": 94.2,
"tier": "elite",
"previousScore": 823,
"delta": 24
},
"labels": ["smart_money", "whale", "early_adopter"],
"decayState": "sharp"
}
}
decay_state.changed
{
"event": "wallet.decay_state.changed",
"timestamp": "2026-06-09T10:30:00Z",
"data": {
"wallet": "5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1",
"previousState": "sharp",
"newState": "fading",
"daysSinceLastTrade": 14,
"rating": {
"score": 720,
"percentile": 82.1
}
}
}
flag.created
{
"event": "alert.wallet.flagged",
"timestamp": "2026-06-09T10:30:00Z",
"data": {
"wallet": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"flag": "smart_money",
"confidence": 0.94,
"reason": "Consistent 70%+ win rate over 200+ trades",
"metrics": {
"winRate": 0.73,
"avgReturn": 2.4,
"tradeCount": 234
}
}
}
label.assigned
{
"event": "wallet.label.assigned",
"timestamp": "2026-06-09T10:30:00Z",
"data": {
"wallet": "9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM",
"label": "sniper_bot",
"confidence": 0.89,
"evidence": {
"avgBlockDelay": 1.2,
"consistentSlippage": true,
"automatedPatterns": true
},
"relatedWallets": [
"3xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgHHH"
]
}
}
Integration Model Options
Option A: Push Model
- SYNDEx sends trade receipts to POSITx via webhook
- POSITx processes and sends back analytics via webhook
Option B: Pull Model
- POSITx polls SYNDEx API for new trades
- SYNDEx calls POSITx API for ratings/analytics
Option C: Hybrid (Recommended)
- Webhooks for real-time events
- API calls for on-demand data
API Endpoints Available
GET /api/v1/wallets/{address}/rating - Wallet score, decay state, labels
GET /api/v1/wallets/leaderboard - Top wallets by score
GET /api/v1/wallets/search - Search by address prefix
GET /api/v1/cohorts - Cohort retention metrics
GET /api/v1/cohorts/{month} - Cohort detail + decay curve
POST /api/v1/webhooks - Subscribe to events
GET /api/v1/webhooks - List subscriptions
DEL /api/v1/webhooks/{id} - Unsubscribe
POST /api/v1/export/url - Generate signed export URLs
Webhook Events
| Event | Description |
|---|---|
wallet.rating.updated |
Score recalculated |
wallet.decay_state.changed |
sharp → fading → dead |
cohort.snapshot.created |
New cohort data available |
alert.wallet.flagged |
New wallet flagged as smart money |
alert.copy_detected |
Copy trading pattern detected |
Next Steps
Once Alex provides the checklist items:
- Justin sets up POSITx repo access
- Schedule 30-min call to align on spec
- Start AWS deployment in parallel
- Working integration in 6-8 weeks
Full documentation: See syndex-integration-brief.md and alex-checklist.md for complete details.