-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapi-docs.html
More file actions
731 lines (657 loc) Β· 30.6 KB
/
api-docs.html
File metadata and controls
731 lines (657 loc) Β· 30.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DeepBlue API Docs β Pay-per-Call Crypto Signals & DeFi Research</title>
<meta name="description" content="DeepBlue API: Live BTC/ETH/SOL/XRP trading signals, token analysis, trending pools, and Polymarket intelligence. Pay per call from $0.001 USDC β no signup, no subscriptions. x402 protocol.">
<meta property="og:title" content="DeepBlue API β Crypto Intelligence, Pay-Per-Call">
<meta property="og:description" content="Live trading signals from a real Polymarket bot. Token scoring, wallet analysis, DeFi trending pools. $0.001β$0.03 per call, paid in USDC via x402. No API key needed.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://deepbluebase.xyz/api-docs.html">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="DeepBlue API β Pay-Per-Call Crypto Intelligence">
<meta name="twitter:description" content="Live BTC signals, token analysis, Polymarket data. From $0.001/call via x402. No keys, no subscriptions.">
<style>
:root {
--bg-primary: #ffffff;
--bg-secondary: #f9f9f9;
--bg-tertiary: #f5f5f5;
--text-primary: #333;
--text-secondary: #666;
--border-color: #ddd;
--accent-primary: #667eea;
--accent-secondary: #764ba2;
--code-bg: #f5f5f5;
--code-color: #d63384;
--pre-bg: #1e1e1e;
--pre-color: #d4d4d4;
--gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
--shadow: 0 10px 40px rgba(0,0,0,0.1);
}
@media (prefers-color-scheme: dark) {
:root {
--bg-primary: #1a1a2e;
--bg-secondary: #16213e;
--bg-tertiary: #0f3460;
--text-primary: #e0e0e0;
--text-secondary: #b0b0b0;
--border-color: #444;
--accent-primary: #667eea;
--accent-secondary: #764ba2;
--code-bg: #0f3460;
--code-color: #a8d8ff;
--pre-bg: #0a0e27;
--pre-color: #d4d4d4;
--gradient: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
--shadow: 0 10px 40px rgba(0,0,0,0.5);
}
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
line-height: 1.6;
color: var(--text-primary);
background: var(--gradient);
min-height: 100vh;
transition: background-color 0.3s ease;
}
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
header {
background: var(--bg-primary);
padding: 40px 20px;
border-radius: 12px;
margin-bottom: 40px;
box-shadow: var(--shadow);
transition: background-color 0.3s ease;
}
h1 { color: var(--accent-primary); font-size: 2.5em; margin-bottom: 10px; }
.tagline { color: var(--text-secondary); font-size: 1.2em; margin-bottom: 20px; }
.badges { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.badge {
display: inline-block;
padding: 8px 16px;
background: var(--bg-secondary);
border-radius: 20px;
font-size: 0.9em;
color: var(--accent-primary);
font-weight: 600;
transition: all 0.3s ease;
}
.badge.active { background: var(--accent-primary); color: white; }
.docs {
background: var(--bg-primary);
border-radius: 12px;
padding: 40px;
box-shadow: var(--shadow);
transition: background-color 0.3s ease;
}
h2 {
color: var(--accent-primary);
margin: 40px 0 20px 0;
padding-bottom: 10px;
border-bottom: 2px solid var(--accent-primary);
}
h3 { color: var(--accent-secondary); margin: 30px 0 15px 0; }
.section { margin-bottom: 50px; }
code {
background: var(--code-bg);
color: var(--code-color);
padding: 2px 6px;
border-radius: 4px;
font-family: 'Monaco', 'Courier New', monospace;
transition: background-color 0.3s ease;
}
pre {
background: var(--pre-bg);
color: var(--pre-color);
padding: 20px;
border-radius: 8px;
overflow-x: auto;
margin: 15px 0;
font-size: 0.9em;
line-height: 1.4;
transition: background-color 0.3s ease;
}
pre code { color: var(--pre-color); background: none; padding: 0; }
table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
}
th, td {
padding: 12px;
text-align: left;
border-bottom: 1px solid var(--border-color);
color: var(--text-primary);
transition: all 0.3s ease;
}
th {
background: var(--bg-secondary);
font-weight: 600;
color: var(--accent-primary);
}
tr:hover { background: var(--bg-secondary); }
.endpoint {
background: var(--bg-secondary);
border-left: 4px solid var(--accent-primary);
padding: 15px;
margin: 15px 0;
border-radius: 4px;
transition: background-color 0.3s ease;
}
.method {
display: inline-block;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.85em;
font-weight: 600;
margin-right: 10px;
}
.get { background: #d1ecf1; color: #0c5460; }
@media (prefers-color-scheme: dark) {
.get { background: #0c5460; color: #a8d8ff; }
}
.post { background: #fff3cd; color: #856404; }
@media (prefers-color-scheme: dark) {
.post { background: #5d4e37; color: #ffc107; }
}
.example {
background: #f0f7ff;
border-left: 4px solid #0066cc;
padding: 15px;
margin: 20px 0;
border-radius: 4px;
transition: background-color 0.3s ease;
}
@media (prefers-color-scheme: dark) {
.example {
background: #0f3460;
border-left-color: #667eea;
}
}
.response {
background: #f0fdf4;
border-left: 4px solid #22c55e;
padding: 15px;
margin: 15px 0;
border-radius: 4px;
transition: background-color 0.3s ease;
}
@media (prefers-color-scheme: dark) {
.response {
background: #1a3a2a;
border-left-color: #22c55e;
}
}
.warning {
background: #fef3c7;
border-left: 4px solid #f59e0b;
padding: 15px;
margin: 15px 0;
border-radius: 4px;
transition: background-color 0.3s ease;
}
@media (prefers-color-scheme: dark) {
.warning {
background: #4a3d1a;
border-left-color: #f59e0b;
}
}
.button {
display: inline-block;
padding: 12px 24px;
background: var(--accent-primary);
color: white;
border-radius: 6px;
text-decoration: none;
margin: 20px 10px 20px 0;
transition: background 0.3s;
}
.button:hover { background: var(--accent-secondary); }
.nav {
display: flex;
gap: 20px;
flex-wrap: wrap;
margin: 30px 0;
}
.nav a {
color: var(--accent-primary);
text-decoration: none;
padding: 8px 12px;
border-radius: 4px;
transition: background 0.3s;
}
.nav a:hover { background: var(--bg-secondary); }
footer {
text-align: center;
margin-top: 60px;
padding-top: 20px;
border-top: 1px solid var(--border-color);
color: var(--text-secondary);
font-size: 0.9em;
transition: all 0.3s ease;
}
ul { color: var(--text-primary); }
ol { color: var(--text-primary); }
</style>
</head>
<body>
<div class="container">
<header>
<h1>π DeepBlue API</h1>
<p class="tagline">Live crypto signals, token analysis & DeFi intelligence β from autonomous AI agents running real money. Pay per call from $0.001 USDC. No signup, no subscriptions.</p>
<div class="badges">
<span class="badge active">x402 Protocol</span>
<span class="badge active">Base USDC</span>
<span class="badge active">Solana USDC</span>
<span class="badge">Real-time Signals</span>
<span class="badge">Claude Opus AI</span>
<span class="badge">Polymarket Data</span>
</div>
<p style="margin-top: 20px; font-size: 0.95em;"><strong>Base URL:</strong> <code>https://api.deepbluebase.xyz</code></p>
</header>
<div class="docs">
<!-- Quick Start -->
<div class="section">
<h2>π Getting Started in 3 Steps</h2>
<p>The DeepBlue API is built for autonomous AI agents. No accounts, no rate limits on most endpoints β just pay in USDC and get data instantly.</p>
<h3>Step 1 β Get a USDC wallet (Base or Solana)</h3>
<p>You need any EVM wallet with USDC on Base (chain ID 8453), or a Solana wallet with USDC. Fund it with a few cents to get started β most calls cost $0.001β$0.01.</p>
<h3>Step 2 β Install the x402 SDK</h3>
<pre><code># JavaScript / Node.js
npm install x402-axios
# Python
pip install x402</code></pre>
<p>The SDK intercepts HTTP 402 responses and signs payments automatically from your wallet private key.</p>
<h3>Step 3 β Make your first call</h3>
<pre><code>import axios from 'axios';
import { wrapAxios } from 'x402-axios';
const client = wrapAxios(axios, { privateKey: process.env.PRIVATE_KEY });
// Get live BTC signal β costs $0.01 USDC, paid automatically
const { data } = await client.get('https://api.deepbluebase.xyz/signals');
console.log(data.signals[0]);
// β { coin: 'BTC', direction: 'UP', confidence: 0.68, regime: 'momentum' }</code></pre>
<div class="warning">
<strong>π‘ What you get from DeepBlue:</strong>
<ul style="margin: 10px 0 0 20px;">
<li>Live BTC/ETH/SOL/XRP trading signals from a real Polymarket bot</li>
<li>Trending Base chain pools with volume & momentum scores</li>
<li>AI token analysis & risk scoring powered by Claude Opus</li>
<li>Polymarket prediction market intelligence & analytics</li>
<li>Real-time BTC macro data: funding rates, liquidation risk, sentiment</li>
<li>On-chain verifiable P&L and win rate from our live trading system</li>
</ul>
</div>
<a href="#pricing" class="button">View Pricing</a>
<a href="#examples" class="button">Code Examples</a>
</div>
<!-- How it Works -->
<div class="section">
<h2>π‘ How x402 Payments Work</h2>
<p>We use the <strong>x402 protocol</strong> via <a href="https://payai.network" target="_blank">PayAI facilitator</a>. Your agent pays automatically β no manual steps, no accounts.</p>
<ol style="margin: 20px 0 20px 20px;">
<li><strong>Request:</strong> Your agent calls any endpoint</li>
<li><strong>402 Response:</strong> API returns payment requirements (amount, wallet, network)</li>
<li><strong>Auto-pay:</strong> x402 SDK signs and broadcasts USDC β Base or Solana</li>
<li><strong>Data:</strong> Request retries with payment proof and returns instantly</li>
</ol>
<div class="warning">
<strong>Two payment networks accepted:</strong><br>
• <strong>Base USDC</strong> β <code>0x47ffc880cfF2e8F18fD9567faB5a1fBD217B5552</code><br>
• <strong>Solana USDC</strong> β <code>BsSDrMtQeE3c8bPX2amVGdKTkLZrEwWMw6Yo949bx9ZD</code><br>
The x402 SDK picks the right network automatically based on your wallet type.
</div>
<p style="margin-top: 15px;">Listed on <a href="https://www.x402scan.com/server/4bdf1280-87d2-445c-ad7c-08a94bd53f1f" target="_blank">x402scan.com</a> β discoverable by AI agents browsing the x402 ecosystem.</p>
</div>
<!-- Pricing -->
<div class="section" id="pricing">
<h2>π° Pricing</h2>
<p style="margin-bottom: 15px;">All prices in USDC. Micro-transaction tier β designed for high-frequency agent use.</p>
<table>
<thead>
<tr>
<th>Endpoint</th>
<th>Price</th>
<th>What You Get</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>GET /price/{token}</code></td>
<td><strong>$0.001</strong></td>
<td>Real-time token price, 24h change, volume from DeFi pools</td>
</tr>
<tr>
<td><code>GET /trending</code></td>
<td><strong>$0.005</strong></td>
<td>Top 10 trending pools on Base with volume & momentum scores</td>
</tr>
<tr>
<td><code>GET /btc/realtime-signal</code></td>
<td><strong>$0.005</strong></td>
<td>Live directional signal for BTC, ETH, SOL, or XRP with confidence</td>
</tr>
<tr>
<td><code>GET /token/{addr}</code></td>
<td><strong>$0.01</strong></td>
<td>Token scoring, liquidity, holder metrics, risk rating</td>
</tr>
<tr>
<td><code>GET /token/{addr}/diagnose</code></td>
<td><strong>$0.01</strong></td>
<td>Claude Opus AI deep-dive analysis with trade readiness</td>
</tr>
<tr>
<td><code>GET /wallet/{addr}</code></td>
<td><strong>$0.01</strong></td>
<td>Wallet transaction history, behavioral analysis, risk scan</td>
</tr>
<tr>
<td><code>GET /signals</code></td>
<td><strong>$0.01</strong></td>
<td>Live BTC/ETH/SOL/XRP signals from our Polymarket bot (Fishy)</td>
</tr>
<tr>
<td><code>GET /polymarket</code></td>
<td><strong>$0.01</strong></td>
<td>Polymarket prediction market analytics: positions, odds, flows</td>
</tr>
<tr>
<td><code>GET /sentiment</code></td>
<td><strong>$0.01</strong></td>
<td>Crypto sentiment composite β aggregated from multiple sources</td>
</tr>
<tr>
<td><code>GET /market-snapshot</code></td>
<td><strong>$0.01</strong></td>
<td>BTC macro bundle: price, signals, sentiment in one call</td>
</tr>
<tr>
<td><code>GET /performance</code></td>
<td><strong>$0.01</strong></td>
<td>Our real P&L, win rate, trade history β on-chain verifiable</td>
</tr>
<tr>
<td><code>GET /market-intel</code></td>
<td><strong>$0.02</strong></td>
<td>BTC macro + funding rates + liquidation risk β full intelligence bundle</td>
</tr>
<tr>
<td><code>GET /prediction-markets</code></td>
<td><strong>$0.03</strong></td>
<td>Premium: Polymarket positions + markets + odds in one response</td>
</tr>
<tr>
<td><code>GET /crypto-sentiment</code></td>
<td><strong>$0.03</strong></td>
<td>Premium: sentiment + macro + funding rates composite</td>
</tr>
</tbody>
</table>
</div>
<!-- Endpoints -->
<div class="section">
<h2>π Endpoints</h2>
<h3>GET /price/{token}</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/price/{token}</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.001 USDC</p>
</div>
<p>Real-time price for any token (ETH, BTC, USDC, or contract address).</p>
<div class="example">
<strong>Request:</strong>
<pre><code>curl https://api.deepbluebase.xyz/price/ETH</code></pre>
</div>
<div class="response">
<strong>Response:</strong>
<pre><code>{
"token": "ETH",
"price_usd": 2041.30,
"source": "GeckoTerminal",
"timestamp": "2026-03-13T05:00:00Z"
}</code></pre>
</div>
<h3>GET /trending</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/trending</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.005 USDC</p>
</div>
<p>Top 10 trending pools on Base chain with volume, price change, and momentum score.</p>
<div class="example">
<strong>Request:</strong>
<pre><code>curl https://api.deepbluebase.xyz/trending</code></pre>
</div>
<div class="response">
<strong>Response:</strong>
<pre><code>{
"pools": [
{
"name": "BRETT / WETH",
"symbol": "BRETT",
"token_address": "0x532f27101965dd16442e59d40670faf5ebb142e4",
"price_usd": 0.0842,
"price_change_24h": 14.3,
"volume_24h": 4821034.50,
"score": 0.76
}
],
"tier": "x402",
"count": 10
}</code></pre>
</div>
<h3>GET /signals</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/signals</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.01 USDC | <strong>Live Bot Output</strong></p>
</div>
<p>Real-time signals from Fishy β our Polymarket 5-min BTC/ETH/SOL/XRP trading bot. These are the exact signals the bot uses to place trades.</p>
<div class="response">
<strong>Response:</strong>
<pre><code>{
"signals": [
{
"coin": "BTC",
"direction": "UP",
"confidence": 0.68,
"regime": "momentum",
"source": "realtime_feed"
},
{
"coin": "ETH",
"direction": "DOWN",
"confidence": 0.61,
"regime": "mean_reversion",
"source": "realtime_feed"
}
],
"count": 4,
"source": "RealtimeSignalGenerator"
}</code></pre>
</div>
<h3>GET /performance</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/performance</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.01 USDC | <strong>On-chain Verifiable</strong></p>
</div>
<p>Our live Polymarket trading track record β every trade, real P&L, win rate. On-chain settlements are verifiable on Polygon.</p>
<div class="response">
<strong>Response:</strong>
<pre><code>{
"portfolio": {
"wallet_usdc": 29.88,
"total_pnl_usdc": -12.40,
"win_rate": 48.2,
"total_trades": 312,
"wins": 150
},
"recent_trades": [
{
"coin": "BTC",
"direction": "UP",
"pnl_usdc": 3.21,
"timestamp": "2026-03-13T04:00:00Z"
}
],
"bot": "Fishy",
"platform": "Polymarket"
}</code></pre>
</div>
<h3>GET /token/{addr}</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/token/{addr}</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.01 USDC</p>
</div>
<p>On-chain token scoring: liquidity, volume, holder count, age, risk rating.</p>
<h3>GET /token/{addr}/diagnose</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/token/{addr}/diagnose</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.01 USDC | <strong>Claude Opus AI</strong></p>
</div>
<p>Claude Opus analyses the token on-chain metrics and gives a trade-readiness assessment.</p>
<h3>GET /wallet/{addr}</h3>
<div class="endpoint">
<span class="method get">GET</span>
<code>https://api.deepbluebase.xyz/wallet/{addr}</code>
<p style="margin-top: 10px;"><strong>Price:</strong> $0.01 USDC</p>
</div>
<p>Transaction history and behavioral analysis for any Base wallet.</p>
</div>
<!-- Examples -->
<div class="section" id="examples">
<h2>π Code Examples</h2>
<p>Full working examples (Python, Node.js, LangChain): <a href="https://github.com/ERROR403agent/deepblue-x402-examples" style="color:#00d4ff;">GitHub repo</a></p>
<h3>JavaScript β x402-axios SDK (Base)</h3>
<pre><code>import axios from 'axios';
import { wrapAxios } from 'x402-axios';
const client = wrapAxios(axios, {
privateKey: process.env.PRIVATE_KEY, // Base wallet private key
});
// Get live trading signals β pays $0.01 USDC automatically
const { data } = await client.get('https://api.deepbluebase.xyz/signals');
console.log(data.signals[0]);
// β { coin: 'BTC', direction: 'UP', confidence: 0.68, regime: 'momentum' }
// Token price β $0.001
const price = await client.get('https://api.deepbluebase.xyz/price/ETH');
console.log(price.data); // { token: 'ETH', price_usd: 2041.30, ... }
// BTC macro bundle β $0.01
const snap = await client.get('https://api.deepbluebase.xyz/market-snapshot');
console.log(snap.data); // { btc_price, signals, sentiment, funding_rate }</code></pre>
<h3>Python β x402 SDK (Base)</h3>
<pre><code">from x402.client import Client
client = Client(private_key=os.environ['PRIVATE_KEY']) # Base wallet
# Get Polymarket prediction market intel β $0.01
r = client.get('https://api.deepbluebase.xyz/polymarket')
print(r.json()) # { markets: [...], hot_categories: [...] }
# AI token diagnosis β $0.01
r = client.get('https://api.deepbluebase.xyz/token/0xabc.../diagnose')
print(r.json()['analysis']) # Claude Opus natural language report</code></pre>
<h3>Python β Manual x402 flow (no SDK)</h3>
<pre><code>import requests, json, base64
# Step 1: Hit endpoint, get 402 + payment requirements
r = requests.get('https://api.deepbluebase.xyz/signals')
# r.status_code == 402
# r.headers['X-Payment-Required'] contains base64 JSON with payment details
requirements = json.loads(base64.b64decode(r.headers['X-Payment-Required']))
# requirements['accepts'][0] = { network, amount, payTo, ... }
# Step 2: Sign payment via EIP-712 (use x402 SDK for helpers)
# Step 3: Retry with X-Payment header
r2 = requests.get(
'https://api.deepbluebase.xyz/signals',
headers={'X-Payment': your_signed_payment_header}
)
print(r2.json())</code></pre>
<h3>cURL β Check API status (free)</h3>
<pre><code># API info and endpoint list (no payment needed)
curl https://api.deepbluebase.xyz/
# x402 status and settlement history
curl https://api.deepbluebase.xyz/x402/status
# Attempt paid call β will return 402 with payment requirements
curl -v https://api.deepbluebase.xyz/signals</code></pre>
</div>
<!-- x402 Integration -->
<div class="section">
<h2>π x402 Payment Details</h2>
<p>We implement <strong>x402</strong> via the <a href="https://payai.network" target="_blank">PayAI facilitator</a>. Every endpoint returns payment requirements on unauthenticated requests.</p>
<h3>Payment Requirements Structure</h3>
<pre><code>{
"x402Version": 1,
"resource": {
"url": "https://api.deepbluebase.xyz/signals",
"description": "Live Polymarket BTC/ETH/SOL/XRP trading signals",
"mimeType": "application/json"
},
"accepts": [
{
"scheme": "exact",
"network": "eip155:8453",
"amount": "10000",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"payTo": "0x47ffc880cfF2e8F18fD9567faB5a1fBD217B5552",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"amount": "10000",
"payTo": "BsSDrMtQeE3c8bPX2amVGdKTkLZrEwWMw6Yo949bx9ZD",
"maxTimeoutSeconds": 300
}
]
}</code></pre>
<p style="margin-top: 15px;">Amounts are in USDC atomic units (6 decimals). 10000 = $0.01.</p>
<div class="warning">
<strong>π Resources:</strong>
<a href="https://payai.network" target="_blank">PayAI Facilitator</a> —
<a href="https://www.x402scan.com/server/4bdf1280-87d2-445c-ad7c-08a94bd53f1f" target="_blank">DeepBlue on x402scan</a> —
<a href="https://www.npmjs.com/package/x402-axios" target="_blank">x402-axios SDK</a>
</div>
</div>
<!-- Use Cases -->
<div class="section">
<h2>π‘ Use Cases</h2>
<ul style="margin: 20px 0 20px 20px;">
<li><strong>AI Trading Agents:</strong> Feed real signals directly into autonomous decision loops</li>
<li><strong>Research Tools:</strong> Token analysis and trending discovery without rate limits</li>
<li><strong>Portfolio Trackers:</strong> Wallet scanning and risk assessment on-demand</li>
<li><strong>Strategy Backtesting:</strong> Access our real performance data to validate strategies</li>
<li><strong>DeFi Dashboards:</strong> Live pricing and pool data with no API key management</li>
</ul>
</div>
<!-- FAQs -->
<div class="section">
<h2>β FAQs</h2>
<h3>What networks are accepted?</h3>
<p>Both <strong>Base USDC</strong> (chain 8453) and <strong>Solana USDC</strong>. The x402 SDK picks the right one automatically based on your wallet type.</p>
<h3>Do I need to sign up?</h3>
<p><strong>No.</strong> Just have a wallet with USDC (Solana or Base). The x402 SDK handles everything automatically.</p>
<h3>Is the trading data real?</h3>
<p>Yes. Signals come directly from Fishy (our live Polymarket bot). Performance data is our actual P&L β verifiable on-chain.</p>
<h3>What if a payment fails?</h3>
<p>The request returns HTTP 402. Your wallet is not charged. Retry when your balance is sufficient.</p>
<h3>Can AI agents use this autonomously?</h3>
<p>Yes β that's the point. Use the <code>x402-axios</code> or <code>x402</code> (Python) SDK to make any AI agent pay-per-call automatically. DeepBlue is listed on <a href="https://www.x402scan.com/server/4bdf1280-87d2-445c-ad7c-08a94bd53f1f" target="_blank">x402scan.com</a> for AI agent discovery.</p>
</div>
<!-- Support -->
<div class="section">
<h2>π Support</h2>
<ul style="margin: 20px 0 20px 20px;">
<li><strong>API Status:</strong> <a href="https://api.deepbluebase.xyz/x402/status" target="_blank">api.deepbluebase.xyz/x402/status</a></li>
<li><strong>Discord:</strong> <a href="https://discord.gg/wpSKuA57bq" target="_blank">discord.gg/wpSKuA57bq</a></li>
<li><strong>X:</strong> <a href="https://x.com/DeepBlueBase" target="_blank">@DeepBlueBase</a></li>
<li><strong>Dexter Marketplace:</strong> <a href="https://dexter.cash/sellers/BsSDrMtQeE3c8bPX2amVGdKTkLZrEwWMw6Yo949bx9ZD" target="_blank">Our seller profile</a></li>
</ul>
</div>
<footer>
<p>DeepBlue Trading API Β© 2026 | <a href="/" style="color: #667eea;">β Back to Home</a></p>
</footer>
</div>
</div>
</body>
</html>