@vizzor/cli 0.11.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +273 -398
- package/dist/index.js +5890 -1106
- package/dist/index.js.map +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<p align="center">
|
|
2
2
|
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="
|
|
4
|
-
<source media="(prefers-color-scheme: light)" srcset="
|
|
5
|
-
<img alt="Vizzor" src="
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="vizzor_logoicon.png">
|
|
4
|
+
<source media="(prefers-color-scheme: light)" srcset="vizzor_logodarkicon.png">
|
|
5
|
+
<img alt="Vizzor" src="vizzor_logodarkicon.png" width="120">
|
|
6
6
|
</picture>
|
|
7
7
|
</p>
|
|
8
8
|
|
|
@@ -20,20 +20,19 @@
|
|
|
20
20
|
</p>
|
|
21
21
|
|
|
22
22
|
<p align="center">
|
|
23
|
-
<a href="#
|
|
23
|
+
<a href="#requirements">Requirements</a> •
|
|
24
24
|
<a href="#installation">Install</a> •
|
|
25
25
|
<a href="#quick-start">Quick Start</a> •
|
|
26
|
-
<a href="#
|
|
27
|
-
<a href="#command-reference">Commands</a> •
|
|
28
|
-
<a href="#ai-tools">AI Tools</a> •
|
|
29
|
-
<a href="#data-sources">Data Sources</a> •
|
|
26
|
+
<a href="#usage">Usage</a> •
|
|
30
27
|
<a href="#agents">Agents</a> •
|
|
28
|
+
<a href="#web-dashboard">Dashboard</a> •
|
|
29
|
+
<a href="#api-server">API</a> •
|
|
31
30
|
<a href="#configuration">Config</a>
|
|
32
31
|
</p>
|
|
33
32
|
|
|
34
33
|
---
|
|
35
34
|
|
|
36
|
-
Vizzor is a crypto market prediction engine. It pulls live data from 7 APIs, runs technical analysis on raw candles, reads derivatives positioning and market sentiment, then synthesizes price predictions with actual dollar targets across multiple timeframes
|
|
35
|
+
Vizzor is a crypto market prediction engine. It pulls live data from 7+ APIs, runs technical analysis on raw candles, reads derivatives positioning and market sentiment, then synthesizes price predictions with actual dollar targets across multiple timeframes — from 5 minutes to 3 months.
|
|
37
36
|
|
|
38
37
|
Ask about any coin, token, or currency. Vizzor fetches real-time data, computes signals, and gives you a prediction with numbers, not opinions.
|
|
39
38
|
|
|
@@ -51,60 +50,74 @@ ETH at $2,112 | Bullish | Confidence: Medium-High
|
|
|
51
50
|
|
|
52
51
|
---
|
|
53
52
|
|
|
54
|
-
## What
|
|
53
|
+
## What It Does
|
|
55
54
|
|
|
56
|
-
**Any tradable crypto asset.** BTC, ETH, SOL, meme coins, new DEX launches, tokens by contract address
|
|
55
|
+
**Any tradable crypto asset.** BTC, ETH, SOL, meme coins, new DEX launches, tokens by contract address — if it has a price, Vizzor can analyze it.
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
- **Price predictions** — bull/bear/likely targets across 9 timeframes (5m to 3 months)
|
|
58
|
+
- **Microstructure analysis** — market structure, FVGs, VWAP, volume delta, liquidation map, order book depth, S/R zones, squeeze detection
|
|
59
|
+
- **Token security audits** — honeypot detection, tax analysis, mint/blacklist flags, rug pull indicators
|
|
60
|
+
- **On-chain forensics** — wallet analysis, whale tracking, holder concentration, token flow patterns
|
|
61
|
+
- **Derivatives positioning** — funding rates, open interest, long/short ratios from Binance Futures
|
|
62
|
+
- **Sentiment analysis** — Fear & Greed Index, news sentiment, buy/sell transaction ratios
|
|
63
|
+
- **Trending discovery** — what tokens are moving right now across DexScreener and CoinGecko
|
|
64
|
+
- **ICO tracking** — upcoming launches, fundraising rounds, investor data
|
|
65
|
+
- **Autonomous agents** — set-and-forget trading agents with paper/live execution
|
|
59
66
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
| Timeframe | Use Case |
|
|
63
|
-
|-----------|----------|
|
|
64
|
-
| **5 min / 15 min** | Scalping, quick entries |
|
|
65
|
-
| **1 hour / 4 hours** | Intraday trading |
|
|
66
|
-
| **1 day / 7 days** | Swing trades |
|
|
67
|
-
| **2 weeks / 1 month** | Position trades |
|
|
68
|
-
| **3 months** | Macro outlook |
|
|
69
|
-
| **Custom time** | "predict BTC at 16:00 today" |
|
|
70
|
-
|
|
71
|
-
Each timeframe shows bullish, most likely, and bearish scenarios with percentage moves. Predictions include support/resistance levels, signal confidence, and what would invalidate the forecast.
|
|
67
|
+
---
|
|
72
68
|
|
|
73
|
-
|
|
69
|
+
## Requirements
|
|
74
70
|
|
|
75
|
-
|
|
71
|
+
### Hardware
|
|
76
72
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
73
|
+
| Component | Minimum | Recommended |
|
|
74
|
+
|-----------|---------|-------------|
|
|
75
|
+
| **CPU** | 2 cores | 4+ cores |
|
|
76
|
+
| **RAM** | 2 GB | 4+ GB (8 GB if running ML sidecar) |
|
|
77
|
+
| **Disk** | 500 MB | 2 GB (includes SQLite cache + ML models) |
|
|
78
|
+
| **Network** | Stable internet | Low latency to Binance/CoinGecko APIs |
|
|
79
|
+
| **GPU** | Not required | Not required (ML models are CPU-based) |
|
|
83
80
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
## Requirements
|
|
81
|
+
### Software
|
|
87
82
|
|
|
88
83
|
| Dependency | Version | Notes |
|
|
89
84
|
|------------|---------|-------|
|
|
90
85
|
| **Node.js** | >= 20.0.0 | ES2022 target, ESM modules |
|
|
91
|
-
| **pnpm** | >= 8.0 | Recommended (npm/yarn also work) |
|
|
86
|
+
| **pnpm** | >= 8.0 | Recommended package manager (npm/yarn also work) |
|
|
92
87
|
| **Python** | 3.x | Required by `better-sqlite3` native build |
|
|
93
88
|
| **C++ compiler** | GCC / Clang / MSVC | Required by `better-sqlite3` native build |
|
|
94
|
-
| **Docker** | >= 24 | Optional
|
|
89
|
+
| **Docker** | >= 24 | Optional — for ML sidecar, PostgreSQL, web dashboard |
|
|
90
|
+
|
|
91
|
+
Works on **macOS**, **Linux**, and **Windows**.
|
|
92
|
+
|
|
93
|
+
### API Keys
|
|
95
94
|
|
|
96
|
-
|
|
95
|
+
| Key | Required | Free Tier | Purpose |
|
|
96
|
+
|-----|----------|-----------|---------|
|
|
97
|
+
| `ANTHROPIC_API_KEY` | Yes (or use Ollama) | Pay-per-use | Claude AI — best prediction quality |
|
|
98
|
+
| `ETHERSCAN_API_KEY` | Recommended | Yes | Transaction history, contract source |
|
|
99
|
+
| `OPENAI_API_KEY` | No | Pay-per-use | GPT-4 as alternative provider |
|
|
100
|
+
| `GOOGLE_API_KEY` | No | Free tier | Gemini as alternative provider |
|
|
101
|
+
| `ALCHEMY_API_KEY` | No | Free tier | Premium RPC endpoints |
|
|
102
|
+
| `COINGECKO_API_KEY` | No | Free tier | Extended market data |
|
|
103
|
+
| `CRYPTOPANIC_API_KEY` | No | Free tier | News with sentiment |
|
|
104
|
+
| `DISCORD_TOKEN` | No | Free | Discord bot |
|
|
105
|
+
| `TELEGRAM_BOT_TOKEN` | No | Free | Telegram bot |
|
|
106
|
+
|
|
107
|
+
**No API key at all?** Use Ollama with a local model — fully offline predictions (lower quality but free).
|
|
97
108
|
|
|
98
109
|
---
|
|
99
110
|
|
|
100
111
|
## Installation
|
|
101
112
|
|
|
113
|
+
### npm (recommended)
|
|
114
|
+
|
|
102
115
|
```bash
|
|
103
116
|
npm install -g @vizzor/cli
|
|
104
117
|
```
|
|
105
118
|
|
|
106
119
|
```bash
|
|
107
|
-
# Or run directly
|
|
120
|
+
# Or run directly without installing
|
|
108
121
|
npx @vizzor/cli
|
|
109
122
|
```
|
|
110
123
|
|
|
@@ -121,88 +134,93 @@ pnpm link --global
|
|
|
121
134
|
### Docker (Full Stack)
|
|
122
135
|
|
|
123
136
|
```bash
|
|
124
|
-
cp .env.example .env
|
|
125
|
-
docker compose up -d
|
|
137
|
+
cp .env.example .env # Configure API keys
|
|
138
|
+
docker compose up -d # Starts CLI + ML sidecar + PostgreSQL + Web Dashboard
|
|
126
139
|
```
|
|
127
140
|
|
|
128
141
|
---
|
|
129
142
|
|
|
130
143
|
## Quick Start
|
|
131
144
|
|
|
145
|
+
### Option A: With Claude (best quality)
|
|
146
|
+
|
|
132
147
|
```bash
|
|
133
|
-
# 1. Set your API key
|
|
134
|
-
vizzor config set anthropicApiKey
|
|
135
|
-
# or: export ANTHROPIC_API_KEY
|
|
148
|
+
# 1. Set your Anthropic API key
|
|
149
|
+
vizzor config set anthropicApiKey sk-ant-...
|
|
150
|
+
# or: export ANTHROPIC_API_KEY=sk-ant-...
|
|
136
151
|
|
|
137
152
|
# 2. Launch
|
|
138
153
|
vizzor
|
|
139
154
|
```
|
|
140
155
|
|
|
141
|
-
|
|
156
|
+
### Option B: With Ollama (free, local, offline)
|
|
157
|
+
|
|
158
|
+
```bash
|
|
159
|
+
# 1. Install Ollama: https://ollama.ai
|
|
160
|
+
ollama pull llama3.2 # or qwen2.5:14b for better results
|
|
161
|
+
|
|
162
|
+
# 2. Configure Vizzor
|
|
163
|
+
vizzor config set ai.provider ollama
|
|
164
|
+
vizzor config set ai.model llama3.2
|
|
165
|
+
|
|
166
|
+
# 3. Launch
|
|
167
|
+
vizzor
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
### Option C: With OpenAI or Gemini
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
vizzor config set ai.provider openai
|
|
174
|
+
vizzor config set openaiApiKey sk-...
|
|
175
|
+
# or
|
|
176
|
+
vizzor config set ai.provider gemini
|
|
177
|
+
vizzor config set googleApiKey AI...
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
### Start asking
|
|
142
181
|
|
|
143
182
|
```
|
|
144
183
|
> predict BTC price next week
|
|
145
184
|
> analyze $PEPE security and price outlook
|
|
146
185
|
> what's trending in crypto right now
|
|
186
|
+
> full microstructure analysis for ETH
|
|
147
187
|
> track wallet 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
|
|
148
188
|
> audit contract 0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984
|
|
149
189
|
```
|
|
150
190
|
|
|
151
191
|
---
|
|
152
192
|
|
|
153
|
-
##
|
|
154
|
-
|
|
155
|
-
### Multi-Signal Composite
|
|
156
|
-
|
|
157
|
-
Vizzor builds predictions from 5 weighted signal dimensions:
|
|
158
|
-
|
|
159
|
-
```
|
|
160
|
-
Technical Analysis ........... 40% RSI, MACD, Bollinger, EMA, ATR, OBV
|
|
161
|
-
Market Sentiment ............. 20% Fear & Greed, news sentiment, buy/sell ratio
|
|
162
|
-
Derivatives Positioning ...... 20% Funding rate, open interest, long/short
|
|
163
|
-
Trend Momentum ............... 15% 24h/7d price action, volume trends
|
|
164
|
-
Macro Cycle ................... 5% Fear & Greed extremes as contrarian signals
|
|
165
|
-
----
|
|
166
|
-
Composite Score -100 to +100
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
Signals are computed from raw data before the AI sees them. The AI presents and contextualizes the pre-computed analysis -- it doesn't invent numbers.
|
|
170
|
-
|
|
171
|
-
### Technical Analysis
|
|
172
|
-
|
|
173
|
-
Computed from Binance kline data. No third-party TA APIs -- pure math on raw candles.
|
|
174
|
-
|
|
175
|
-
| Indicator | Signal |
|
|
176
|
-
|-----------|--------|
|
|
177
|
-
| **RSI** (14) | Overbought > 70, Oversold < 30 |
|
|
178
|
-
| **MACD** (12, 26, 9) | Crossover direction + histogram momentum |
|
|
179
|
-
| **Bollinger Bands** (20, 2) | %B position for squeeze/breakout |
|
|
180
|
-
| **EMA Crossover** (12/26) | Golden cross / death cross |
|
|
181
|
-
| **ATR** (14) | Volatility regime |
|
|
182
|
-
| **OBV** | Volume-price confirmation |
|
|
183
|
-
|
|
184
|
-
### Volatility-Scaled Projections
|
|
185
|
-
|
|
186
|
-
Price targets use `hourlyVol * sqrt(hours)` scaling -- wider ranges for longer timeframes, amplified for micro-cap/meme tokens. The engine automatically detects meme coins (Pump.fun, sub-$1M market cap) and applies higher volatility multipliers.
|
|
193
|
+
## Usage
|
|
187
194
|
|
|
188
|
-
###
|
|
195
|
+
### TUI (Terminal UI)
|
|
189
196
|
|
|
190
|
-
|
|
197
|
+
Launch with `vizzor`. Interactive chat with live price ticker, streaming responses, and slash commands.
|
|
191
198
|
|
|
192
|
-
|
|
193
|
-
> predict SOL at 3:00pm # specific clock time
|
|
194
|
-
> predict ETH in 30 minutes # relative time
|
|
195
|
-
> predict BTC tomorrow # next day
|
|
196
|
-
> predict DOGE end of week # end of week
|
|
197
|
-
```
|
|
199
|
+
**Price Ticker:** Arrow keys to navigate, **Enter** to trigger AI prediction, **Tab** to toggle focus.
|
|
198
200
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
201
|
+
| Command | Description |
|
|
202
|
+
|---------|-------------|
|
|
203
|
+
| `/scan <address> [--chain <chain>]` | Token security + risk scan |
|
|
204
|
+
| `/track <wallet> [--chain <chain>]` | Wallet forensics |
|
|
205
|
+
| `/trends` | Trending tokens + top gainers/losers |
|
|
206
|
+
| `/audit <contract> [--chain <chain>]` | Smart contract audit |
|
|
207
|
+
| `/add <symbol>` | Add token to live price ticker |
|
|
208
|
+
| `/remove <symbol>` | Remove token from ticker |
|
|
209
|
+
| `/chain [<id>]` | Show/switch chain |
|
|
210
|
+
| `/provider` | Show current AI provider |
|
|
211
|
+
| `/provider <name>` | Switch to `anthropic`, `openai`, `gemini`, `ollama` |
|
|
212
|
+
| `/agent create <name> [options]` | Create autonomous agent |
|
|
213
|
+
| `/agent list` | List agents |
|
|
214
|
+
| `/agent start <name>` | Start agent |
|
|
215
|
+
| `/agent stop <name>` | Stop agent |
|
|
216
|
+
| `/agent status <name>` | Agent status + decisions |
|
|
217
|
+
| `/backtest` | Historical strategy backtest |
|
|
218
|
+
| `/config` | Show config |
|
|
219
|
+
| `/help` | Command reference |
|
|
202
220
|
|
|
203
221
|
### CLI Commands
|
|
204
222
|
|
|
205
|
-
```
|
|
223
|
+
```bash
|
|
206
224
|
vizzor # Launch interactive TUI
|
|
207
225
|
vizzor scan <token> [options] # Token risk analysis
|
|
208
226
|
vizzor trends [options] # Market trends + top movers
|
|
@@ -215,362 +233,209 @@ vizzor config show # Show config
|
|
|
215
233
|
vizzor wallet create|import|list|delete # Wallet management
|
|
216
234
|
vizzor backtest [options] # Historical strategy backtest
|
|
217
235
|
vizzor bot start [options] # Start Discord/Telegram bots
|
|
218
|
-
vizzor
|
|
236
|
+
vizzor api start [--port 3100] # Start REST API server
|
|
237
|
+
vizzor api key create "my-app" # Create API key
|
|
219
238
|
```
|
|
220
239
|
|
|
221
|
-
### TUI Slash Commands
|
|
222
|
-
|
|
223
|
-
| Command | Description |
|
|
224
|
-
|---------|-------------|
|
|
225
|
-
| `/scan <address> [--chain <chain>]` | Token security + risk scan |
|
|
226
|
-
| `/track <wallet> [--chain <chain>]` | Wallet forensics |
|
|
227
|
-
| `/trends` | Trending tokens + top gainers/losers |
|
|
228
|
-
| `/audit <contract> [--chain <chain>]` | Smart contract audit |
|
|
229
|
-
| `/add <symbol>` | Add a token to the live price ticker |
|
|
230
|
-
| `/remove <symbol>` | Remove a token from the price ticker |
|
|
231
|
-
| `/chain [<id>]` | Show available chains or switch chain |
|
|
232
|
-
| `/config` | Show config with setup guidance |
|
|
233
|
-
| `/config set <key> <value>` | Update a config value |
|
|
234
|
-
| `/provider` | Show current AI provider |
|
|
235
|
-
| `/provider list` | List all providers with availability |
|
|
236
|
-
| `/provider <name>` | Switch to `anthropic`, `openai`, `gemini`, `ollama` |
|
|
237
|
-
| `/agent create <name> [options]` | Create autonomous prediction agent |
|
|
238
|
-
| `/agent list` | List all agents |
|
|
239
|
-
| `/agent start <name>` | Start agent cycle |
|
|
240
|
-
| `/agent stop <name>` | Stop agent |
|
|
241
|
-
| `/agent status <name>` | View status + recent decisions |
|
|
242
|
-
| `/agent delete <name>` | Delete an agent |
|
|
243
|
-
| `/agent strategies` | List available strategies |
|
|
244
|
-
| `/backtest` | Run historical strategy backtest |
|
|
245
|
-
| `/help` | Command reference |
|
|
246
|
-
| `/clear` | Clear messages |
|
|
247
|
-
| `/exit` | Quit |
|
|
248
|
-
|
|
249
|
-
**Price Ticker:** Arrow keys to navigate, **Enter** to trigger full AI prediction for any token, **Tab** to toggle focus.
|
|
250
|
-
|
|
251
240
|
### Discord Bot
|
|
252
241
|
|
|
253
|
-
|
|
254
|
-
|---------|-------------|
|
|
255
|
-
| `/scan <address>` | Token security + risk scan |
|
|
256
|
-
| `/trends` | Trending tokens + market data |
|
|
257
|
-
| `/track <wallet>` | Wallet forensics |
|
|
258
|
-
| `/ico` | Upcoming launches and rounds |
|
|
259
|
-
| `/audit <contract>` | Contract audit |
|
|
260
|
-
| `/price <symbol>` | Live price check |
|
|
261
|
-
| `/predict <symbol>` | AI prediction with signals |
|
|
262
|
-
| `/wallet <address>` | ETH wallet balance |
|
|
263
|
-
| `/agent_create` | Create a trading agent |
|
|
264
|
-
| `/agent_list` | List all agents |
|
|
265
|
-
| `/agent_start` | Start an agent |
|
|
266
|
-
| `/agent_stop` | Stop an agent |
|
|
267
|
-
| `/agent_status` | Agent status & decisions |
|
|
268
|
-
| `/agent_delete` | Delete an agent |
|
|
269
|
-
| `/help` | Show all commands |
|
|
270
|
-
| *@mention* | AI-powered chat with live data |
|
|
271
|
-
|
|
272
|
-
**Setup**: Enable the `MESSAGE_CONTENT` privileged intent in the [Discord Developer Portal](https://discord.com/developers/applications) for @mention AI chat.
|
|
273
|
-
|
|
274
|
-
### Telegram Bot
|
|
242
|
+
Requires `DISCORD_TOKEN`. Enable the `MESSAGE_CONTENT` privileged intent in the [Discord Developer Portal](https://discord.com/developers/applications).
|
|
275
243
|
|
|
276
244
|
| Command | Description |
|
|
277
245
|
|---------|-------------|
|
|
246
|
+
| `/predict <symbol>` | AI prediction with signals |
|
|
278
247
|
| `/scan <address>` | Token security scan |
|
|
279
|
-
| `/trends` | Trending tokens
|
|
248
|
+
| `/trends` | Trending tokens |
|
|
280
249
|
| `/track <wallet>` | Wallet forensics |
|
|
281
|
-
| `/
|
|
250
|
+
| `/price <symbol>` | Live price |
|
|
282
251
|
| `/audit <contract>` | Contract audit |
|
|
283
|
-
| `/
|
|
284
|
-
| `/
|
|
285
|
-
|
|
|
286
|
-
| `/agent_create` | Create a trading agent |
|
|
287
|
-
| `/agent_list` | List all agents |
|
|
288
|
-
| `/agent_start` | Start an agent |
|
|
289
|
-
| `/agent_stop` | Stop an agent |
|
|
290
|
-
| `/agent_status` | Agent status & decisions |
|
|
291
|
-
| `/agent_delete` | Delete an agent |
|
|
292
|
-
| *Any text* | AI-powered chat with live data |
|
|
252
|
+
| `/ico` | Upcoming launches |
|
|
253
|
+
| `/agent_create` | Create agent |
|
|
254
|
+
| *@mention* | AI-powered chat |
|
|
293
255
|
|
|
294
|
-
|
|
256
|
+
### Telegram Bot
|
|
295
257
|
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
Vizzor exposes **17+ tools** to the AI. During conversation, the AI autonomously calls whichever tools it needs to build a complete prediction.
|
|
299
|
-
|
|
300
|
-
| Tool | What It Provides |
|
|
301
|
-
|------|------------------|
|
|
302
|
-
| `get_market_data` | Price, volume, market cap (CoinGecko) |
|
|
303
|
-
| `search_token_dex` | Real-time DEX pair data (DexScreener) |
|
|
304
|
-
| `get_technical_analysis` | RSI, MACD, Bollinger, EMA, ATR, OBV |
|
|
305
|
-
| `get_prediction` | Multi-signal composite prediction |
|
|
306
|
-
| `get_derivatives_data` | Funding rate, open interest (Binance Futures) |
|
|
307
|
-
| `get_fear_greed` | Fear & Greed Index + 7-day history |
|
|
308
|
-
| `get_crypto_news` | News headlines with sentiment scoring |
|
|
309
|
-
| `get_trending` | Hot tokens across DexScreener + CoinGecko |
|
|
310
|
-
| `get_token_info` | On-chain token data (name, supply, holders) |
|
|
311
|
-
| `get_token_security` | GoPlus security scan (honeypot, taxes, flags) |
|
|
312
|
-
| `analyze_wallet` | Wallet forensics (patterns, holdings, risk) |
|
|
313
|
-
| `check_rug_indicators` | Rug pull detection suite |
|
|
314
|
-
| `search_upcoming_icos` | ICO/IDO tracker with filters |
|
|
315
|
-
| `get_raises` | Recent fundraising rounds |
|
|
316
|
-
| `get_funding_history` | Project/investor funding history |
|
|
317
|
-
| `create_agent` | Deploy autonomous prediction agent |
|
|
318
|
-
| `list_agents` | List active agents |
|
|
319
|
-
| `get_agent_status` | Agent status and decisions |
|
|
320
|
-
| `run_backtest` | Historical strategy backtesting |
|
|
321
|
-
| `get_ml_prediction` | ML model price prediction |
|
|
322
|
-
| `get_ml_regime` | Market regime classification |
|
|
323
|
-
| `get_ml_model_health` | ML sidecar health and model status |
|
|
324
|
-
| `classify_user_intent` | AI-powered query intent detection |
|
|
325
|
-
|
|
326
|
-
### AI Providers
|
|
327
|
-
|
|
328
|
-
| Provider | Model | Tool Support | Notes |
|
|
329
|
-
|----------|-------|--------------|-------|
|
|
330
|
-
| **Anthropic** | Claude Opus / Sonnet | Full tool-use | Default. Best prediction quality |
|
|
331
|
-
| **OpenAI** | GPT-4 Turbo | Full tool-use | Function calling |
|
|
332
|
-
| **Google** | Gemini Pro | Full tool-use | Tool-use support |
|
|
333
|
-
| **Ollama** | Any local model | Context injection | Pre-computed signals injected into context |
|
|
334
|
-
|
|
335
|
-
For providers without tool support (Ollama), Vizzor pre-fetches all relevant data, runs signal computation, and injects pre-written analysis directly into the context. The model presents the pre-computed predictions rather than generating them from scratch.
|
|
258
|
+
Requires `TELEGRAM_BOT_TOKEN`.
|
|
336
259
|
|
|
337
|
-
|
|
338
|
-
/provider openai
|
|
339
|
-
/provider ollama llama3
|
|
340
|
-
```
|
|
260
|
+
Same commands as Discord (`/predict`, `/scan`, `/trends`, `/track`, `/price`, `/audit`, `/ico`, `/agent_create`). Any text message triggers AI chat.
|
|
341
261
|
|
|
342
262
|
---
|
|
343
263
|
|
|
344
|
-
##
|
|
345
|
-
|
|
346
|
-
| Source | Data | Auth |
|
|
347
|
-
|--------|------|------|
|
|
348
|
-
| **Binance** | Klines, tickers, funding rates, open interest, gainers/losers | Public |
|
|
349
|
-
| **DexScreener** | DEX pairs, trending tokens, real-time pricing | Public |
|
|
350
|
-
| **GoPlus** | Token security, honeypot detection, holder analysis | Public |
|
|
351
|
-
| **DeFiLlama** | TVL, fundraising rounds, protocol metrics | Public |
|
|
352
|
-
| **CryptoPanic** | News aggregation with sentiment | Free tier |
|
|
353
|
-
| **Fear & Greed** | Crypto Fear & Greed Index | Public |
|
|
354
|
-
| **Pump.fun** | Solana meme coin launches | Public |
|
|
355
|
-
|
|
356
|
-
All responses cached with configurable TTL (5 min for market data, 1 hour for token info, 24 hours for contract code).
|
|
357
|
-
|
|
358
|
-
### Database Layer
|
|
359
|
-
|
|
360
|
-
Dual-backend storage with automatic migration:
|
|
361
|
-
|
|
362
|
-
| Backend | Use Case |
|
|
363
|
-
|---------|----------|
|
|
364
|
-
| **SQLite** | Default, zero-config local cache |
|
|
365
|
-
| **PostgreSQL** | Multi-instance deployments, Docker stack |
|
|
366
|
-
|
|
367
|
-
Data pipeline collectors run on configurable intervals, aggregating market snapshots, token metrics, and wallet activity into time-series tables for ML training and trend analysis.
|
|
264
|
+
## Agents
|
|
368
265
|
|
|
369
|
-
|
|
266
|
+
Autonomous prediction agents that run a continuous **think → analyze → decide → act** cycle.
|
|
370
267
|
|
|
371
|
-
|
|
268
|
+
### Agent Requirements
|
|
372
269
|
|
|
373
|
-
|
|
|
374
|
-
|
|
375
|
-
| **
|
|
376
|
-
| **
|
|
377
|
-
| **
|
|
378
|
-
| **
|
|
379
|
-
| **
|
|
380
|
-
| **Sentiment NLP** | DistilBERT | News headline sentiment |
|
|
270
|
+
| Requirement | Details |
|
|
271
|
+
|-------------|---------|
|
|
272
|
+
| **AI Provider** | Any (Claude recommended for best decisions) |
|
|
273
|
+
| **Wallet** | Required for live trading; not needed for paper trading or alert-only |
|
|
274
|
+
| **RPC Endpoint** | Required for live trading (default public RPCs or Alchemy) |
|
|
275
|
+
| **Minimum Balance** | Agent-specific; configurable spending limits |
|
|
276
|
+
| **Always-on Process** | Agent runs in a loop — needs a persistent process (terminal, tmux, Docker, etc.) |
|
|
381
277
|
|
|
382
|
-
|
|
278
|
+
### Create and Run
|
|
383
279
|
|
|
384
280
|
```bash
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
```
|
|
281
|
+
# Create an agent
|
|
282
|
+
/agent create alpha --strategy momentum --pairs BTC,ETH,SOL --interval 60
|
|
388
283
|
|
|
389
|
-
|
|
284
|
+
# Start it
|
|
285
|
+
/agent start alpha
|
|
390
286
|
|
|
391
|
-
|
|
287
|
+
# Check status
|
|
288
|
+
/agent status alpha
|
|
392
289
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
vizzor api start --port 3100
|
|
396
|
-
|
|
397
|
-
# Create an API key
|
|
398
|
-
vizzor api key create "my-app"
|
|
399
|
-
|
|
400
|
-
# Endpoints
|
|
401
|
-
GET /health # Health check (public)
|
|
402
|
-
GET /docs # OpenAPI/Swagger UI (dev only)
|
|
403
|
-
POST /scan # Token security scan
|
|
404
|
-
POST /trends # Market trends
|
|
405
|
-
POST /track # Wallet forensics
|
|
406
|
-
POST /predict # AI prediction
|
|
407
|
-
POST /audit # Contract audit
|
|
408
|
-
POST /v1/backtest # Historical backtest
|
|
409
|
-
GET /v1/agents # List agents
|
|
410
|
-
POST /v1/agents # Create agent
|
|
411
|
-
POST /v1/agents/:name/start # Start agent
|
|
412
|
-
POST /v1/agents/:name/stop # Stop agent
|
|
413
|
-
GET /v1/portfolio/:id # Agent portfolio
|
|
290
|
+
# Stop it
|
|
291
|
+
/agent stop alpha
|
|
414
292
|
```
|
|
415
293
|
|
|
416
|
-
|
|
294
|
+
### Execution Modes
|
|
417
295
|
|
|
418
|
-
|
|
296
|
+
| Mode | Description | Wallet Required |
|
|
297
|
+
|------|-------------|-----------------|
|
|
298
|
+
| **Alert-only** | Generates signals, no trades | No |
|
|
299
|
+
| **Paper trading** | Simulated trades with realistic slippage model | No |
|
|
300
|
+
| **Live trading** | On-chain execution via DEX router | Yes |
|
|
419
301
|
|
|
420
|
-
|
|
302
|
+
### Strategies
|
|
421
303
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
304
|
+
| Strategy | Signals | Best For |
|
|
305
|
+
|----------|---------|----------|
|
|
306
|
+
| **Momentum** | RSI + MACD + Bollinger + Funding | Short-term reversals |
|
|
307
|
+
| **Trend-Following** | EMA Crossover + OBV + Fear & Greed | Swing trades |
|
|
308
|
+
| **ML-Adaptive** | All TA + ML regime + ChronoVisor | Adaptive, all conditions |
|
|
426
309
|
|
|
427
|
-
###
|
|
310
|
+
### Safety Pipeline (Live Trading)
|
|
428
311
|
|
|
429
|
-
|
|
430
|
-
- **HMAC signatures** for API request integrity
|
|
431
|
-
- **Audit logging** for security-critical operations
|
|
432
|
-
- **ZK-proof chain adapters** for privacy-preserving verification
|
|
433
|
-
- **Input sanitization** across all user-facing surfaces
|
|
312
|
+
Live trades pass through a 7-step pipeline before execution:
|
|
434
313
|
|
|
435
|
-
|
|
314
|
+
1. **Validate** — check parameters, balance, spending limits
|
|
315
|
+
2. **Prepare** — build transaction with DEX router quote
|
|
316
|
+
3. **Simulate** — `eth_call` dry run to detect reverts
|
|
317
|
+
4. **Approve** — ERC-20 token approval if needed
|
|
318
|
+
5. **Execute** — submit on-chain transaction
|
|
319
|
+
6. **Record** — log to portfolio + audit trail
|
|
320
|
+
7. **Cleanup** — update positions, trigger alerts
|
|
436
321
|
|
|
437
|
-
|
|
322
|
+
Additional protections:
|
|
323
|
+
- Per-agent daily/weekly spending caps
|
|
324
|
+
- Kelly criterion position sizing
|
|
325
|
+
- ATR-based stop losses
|
|
326
|
+
- Max drawdown limits
|
|
327
|
+
- Global emergency kill switch (`/agent emergency-stop`)
|
|
438
328
|
|
|
439
|
-
|
|
440
|
-
|----------|----------|
|
|
441
|
-
| Data Collection | Scheduled market data ingestion |
|
|
442
|
-
| Alert Pipeline | Real-time anomaly alerts |
|
|
443
|
-
| ML Retraining | Periodic model retraining |
|
|
444
|
-
| Agent Monitor | Agent health and decision tracking |
|
|
445
|
-
| Daily Report | Automated portfolio summaries |
|
|
446
|
-
| Anomaly Analysis | Deep-dive unusual activity |
|
|
447
|
-
| Narrative Generator | Market narrative detection |
|
|
448
|
-
| Portfolio Rebalancer | Automated rebalancing signals |
|
|
449
|
-
| Strategy Tournament | Strategy backtesting comparison |
|
|
450
|
-
| Arbitrage Scanner | Cross-DEX price divergence |
|
|
329
|
+
### Wallet Setup
|
|
451
330
|
|
|
452
331
|
```bash
|
|
453
|
-
|
|
332
|
+
vizzor wallet create # Generate new encrypted wallet
|
|
333
|
+
vizzor wallet import # Import existing private key
|
|
334
|
+
vizzor wallet list # List managed wallets
|
|
454
335
|
```
|
|
455
336
|
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
v0.10 adds 7 new Python models to the sidecar:
|
|
337
|
+
Wallets are encrypted with AES-256-GCM (scrypt N=2^18) and stored at `~/.vizzor/wallets/`.
|
|
459
338
|
|
|
460
|
-
|
|
461
|
-
|-------|-----------|---------|
|
|
462
|
-
| **Trend Scorer** | XGBoost | Market trend strength scoring |
|
|
463
|
-
| **TA Interpreter** | Random Forest | Technical analysis signal weighting |
|
|
464
|
-
| **Strategy Bandit** | Contextual Bandit | Adaptive strategy selection |
|
|
465
|
-
| **Regime Detector** | HMM | Market regime classification |
|
|
466
|
-
| **Project Risk** | GBM | Comprehensive project risk scoring |
|
|
467
|
-
| **Portfolio Optimizer** | Mean-Variance | Dynamic position sizing |
|
|
468
|
-
| **Intent Classifier** | DistilBERT | User query intent detection |
|
|
339
|
+
### Backtesting
|
|
469
340
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
---
|
|
473
|
-
|
|
474
|
-
## Agents
|
|
475
|
-
|
|
476
|
-
Autonomous prediction agents that run a continuous **think -> analyze -> decide -> act** cycle.
|
|
341
|
+
Test strategies against historical data before going live:
|
|
477
342
|
|
|
478
343
|
```bash
|
|
479
|
-
|
|
480
|
-
/agent start alpha
|
|
481
|
-
/agent status alpha
|
|
344
|
+
vizzor backtest --strategy momentum --pair BTCUSDT --from 2024-01-01 --to 2024-12-31
|
|
482
345
|
```
|
|
483
346
|
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
| Strategy | Signals | Entry | Exit |
|
|
487
|
-
|----------|---------|-------|------|
|
|
488
|
-
| **Momentum** | RSI + MACD + Bollinger + Funding | RSI crosses above 30 + bullish MACD | RSI > 70 + bearish divergence |
|
|
489
|
-
| **Trend-Following** | EMA Crossover + OBV + Fear & Greed | Golden cross + rising volume | Death cross |
|
|
490
|
-
| **ML-Adaptive** | All TA + Funding + Fear & Greed + Regime | ML composite score > threshold | ML signal reversal + stop loss |
|
|
347
|
+
Metrics: total return, win rate, profit factor, Sharpe ratio, max drawdown, equity curve.
|
|
491
348
|
|
|
492
|
-
|
|
349
|
+
---
|
|
493
350
|
|
|
494
|
-
|
|
351
|
+
## Web Dashboard
|
|
495
352
|
|
|
496
|
-
|
|
353
|
+
Next.js 15 dashboard at `http://localhost:3001`.
|
|
497
354
|
|
|
498
|
-
|
|
499
|
-
- **DEX Router** — Uniswap V3 SwapRouter02 integration for token swaps
|
|
500
|
-
- **Slippage Protection** — configurable max slippage (default 0.5%)
|
|
501
|
-
- **Dry-Run Mode** — simulate trades without executing (default: on)
|
|
502
|
-
- **Gas Estimation** — automatic gas estimation with configurable multiplier
|
|
355
|
+
### Setup
|
|
503
356
|
|
|
504
357
|
```bash
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
vizzor wallet list # List managed wallets
|
|
508
|
-
```
|
|
509
|
-
|
|
510
|
-
### Backtesting Engine (v0.11)
|
|
511
|
-
|
|
512
|
-
Historical strategy simulation with walk-forward analysis:
|
|
358
|
+
# Option 1: Docker (recommended)
|
|
359
|
+
docker compose up web
|
|
513
360
|
|
|
514
|
-
|
|
515
|
-
|
|
361
|
+
# Option 2: From source
|
|
362
|
+
cd web
|
|
363
|
+
pnpm install
|
|
364
|
+
pnpm dev
|
|
516
365
|
```
|
|
517
366
|
|
|
518
|
-
|
|
519
|
-
- Metrics: total return, win rate, profit factor, Sharpe ratio, max drawdown
|
|
520
|
-
- Equity curve and drawdown visualization
|
|
521
|
-
- Walk-forward analysis with rolling train/test windows
|
|
522
|
-
- Available via CLI, TUI (`/backtest`), AI tool, and REST API (`POST /v1/backtest`)
|
|
367
|
+
Requires the API server running (`vizzor api start`).
|
|
523
368
|
|
|
524
|
-
###
|
|
369
|
+
### Pages
|
|
525
370
|
|
|
526
|
-
|
|
371
|
+
- **AI Chat** — conversational interface with streaming, tool call progress, trade action cards
|
|
372
|
+
- **Dashboard** — market overview, Fear & Greed, sentiment, regime, trending tokens, news
|
|
373
|
+
- **Markets** — token analysis, wallet analyzer, on-chain intelligence
|
|
374
|
+
- **Agents** — create, monitor, start/stop agents with paper/live mode
|
|
375
|
+
- **Portfolio** — positions, trade history, P&L metrics
|
|
376
|
+
- **Settings** — API keys and provider configuration
|
|
527
377
|
|
|
528
|
-
|
|
529
|
-
- Connection pooling (up to 5 connections, 1024 streams each)
|
|
530
|
-
- In-memory price cache for instant access
|
|
531
|
-
- Agent engine prefers WebSocket data over REST polling
|
|
378
|
+
---
|
|
532
379
|
|
|
533
|
-
|
|
380
|
+
## API Server
|
|
534
381
|
|
|
535
|
-
|
|
382
|
+
REST API exposing all Vizzor capabilities programmatically.
|
|
536
383
|
|
|
537
|
-
|
|
538
|
-
- **Predictions** — candlestick charts with price predictions
|
|
539
|
-
- **Agents** — create, start/stop, and monitor agents
|
|
540
|
-
- **Portfolio** — positions, trade history, performance metrics
|
|
541
|
-
- **Settings** — API configuration
|
|
384
|
+
### Setup
|
|
542
385
|
|
|
543
386
|
```bash
|
|
544
|
-
|
|
387
|
+
vizzor api start --port 3100 # Start server
|
|
388
|
+
vizzor api key create "my-app" # Create API key
|
|
545
389
|
```
|
|
546
390
|
|
|
547
|
-
|
|
391
|
+
All endpoints require `X-API-Key` header. Rate limited to 300 req/min per key.
|
|
548
392
|
|
|
549
|
-
|
|
393
|
+
### Endpoints
|
|
550
394
|
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
395
|
+
```
|
|
396
|
+
GET /health # Health check (public)
|
|
397
|
+
GET /docs # Swagger UI
|
|
398
|
+
POST /v1/chat # AI chat (SSE streaming)
|
|
399
|
+
POST /v1/chat/thread # Threaded chat reply
|
|
400
|
+
GET /v1/market/price/:symbol # Price
|
|
401
|
+
GET /v1/market/prices?symbols= # Batch prices
|
|
402
|
+
GET /v1/market/trending # Trending tokens
|
|
403
|
+
GET /v1/market/fear-greed # Fear & Greed Index
|
|
404
|
+
GET /v1/market/ml-health # ML sidecar status
|
|
405
|
+
GET /v1/market/trenches # Trenches scanner
|
|
406
|
+
GET /v1/chronovisor/:symbol # ChronoVisor prediction
|
|
407
|
+
POST /scan # Token security scan
|
|
408
|
+
POST /trends # Market trends
|
|
409
|
+
POST /track # Wallet forensics
|
|
410
|
+
POST /predict # AI prediction
|
|
411
|
+
POST /audit # Contract audit
|
|
412
|
+
POST /v1/backtest # Backtest
|
|
413
|
+
GET /v1/agents # List agents
|
|
414
|
+
POST /v1/agents # Create agent
|
|
415
|
+
POST /v1/agents/:name/start # Start agent
|
|
416
|
+
POST /v1/agents/:name/stop # Stop agent
|
|
417
|
+
GET /v1/portfolio/:id # Portfolio
|
|
418
|
+
POST /v1/agents/emergency-stop # Global kill switch
|
|
419
|
+
WS /ws # WebSocket real-time push
|
|
420
|
+
```
|
|
554
421
|
|
|
555
422
|
---
|
|
556
423
|
|
|
557
424
|
## Supported Chains
|
|
558
425
|
|
|
559
|
-
| Chain | Status |
|
|
560
|
-
|
|
561
|
-
| Ethereum | Live |
|
|
562
|
-
| Polygon | Live |
|
|
563
|
-
| Arbitrum | Live |
|
|
564
|
-
| Optimism | Live |
|
|
565
|
-
| Base | Live |
|
|
566
|
-
| BSC | Live |
|
|
567
|
-
| Avalanche | Live |
|
|
568
|
-
| Solana | Live |
|
|
569
|
-
| Sui | Live |
|
|
570
|
-
| Aptos | Live |
|
|
571
|
-
| TON | Live |
|
|
572
|
-
|
|
573
|
-
New chains are added by implementing the `ChainAdapter` interface.
|
|
426
|
+
| Chain | Status |
|
|
427
|
+
|-------|--------|
|
|
428
|
+
| Ethereum | Live |
|
|
429
|
+
| Polygon | Live |
|
|
430
|
+
| Arbitrum | Live |
|
|
431
|
+
| Optimism | Live |
|
|
432
|
+
| Base | Live |
|
|
433
|
+
| BSC | Live |
|
|
434
|
+
| Avalanche | Live |
|
|
435
|
+
| Solana | Live |
|
|
436
|
+
| Sui | Live |
|
|
437
|
+
| Aptos | Live |
|
|
438
|
+
| TON | Live |
|
|
574
439
|
|
|
575
440
|
---
|
|
576
441
|
|
|
@@ -578,27 +443,6 @@ New chains are added by implementing the `ChainAdapter` interface.
|
|
|
578
443
|
|
|
579
444
|
Config at `~/.vizzor/config.yaml`. Environment variables override file values.
|
|
580
445
|
|
|
581
|
-
### Required
|
|
582
|
-
|
|
583
|
-
| Variable | Purpose |
|
|
584
|
-
|----------|---------|
|
|
585
|
-
| `ANTHROPIC_API_KEY` | Claude AI -- primary prediction engine |
|
|
586
|
-
| `ETHERSCAN_API_KEY` | Transaction history, contract source |
|
|
587
|
-
|
|
588
|
-
### Optional
|
|
589
|
-
|
|
590
|
-
| Variable | Purpose |
|
|
591
|
-
|----------|---------|
|
|
592
|
-
| `OPENAI_API_KEY` | GPT-4 as alternative provider |
|
|
593
|
-
| `GOOGLE_API_KEY` | Gemini as alternative provider |
|
|
594
|
-
| `ALCHEMY_API_KEY` | Premium RPC endpoints |
|
|
595
|
-
| `COINGECKO_API_KEY` | Extended market data |
|
|
596
|
-
| `CRYPTOPANIC_API_KEY` | News with sentiment |
|
|
597
|
-
| `DISCORD_TOKEN` | Discord bot |
|
|
598
|
-
| `TELEGRAM_BOT_TOKEN` | Telegram bot |
|
|
599
|
-
|
|
600
|
-
### Full Config
|
|
601
|
-
|
|
602
446
|
```yaml
|
|
603
447
|
anthropicApiKey: <your-key>
|
|
604
448
|
etherscanApiKey: <your-key>
|
|
@@ -626,6 +470,37 @@ cacheTtl:
|
|
|
626
470
|
contractCode: 86400
|
|
627
471
|
```
|
|
628
472
|
|
|
473
|
+
### AI Provider Comparison
|
|
474
|
+
|
|
475
|
+
| Provider | Quality | Cost | Latency | Tool Support | Offline |
|
|
476
|
+
|----------|---------|------|---------|--------------|---------|
|
|
477
|
+
| **Anthropic** (Claude) | Best | Pay-per-use | ~2-5s | Full | No |
|
|
478
|
+
| **OpenAI** (GPT-4) | Great | Pay-per-use | ~2-5s | Full | No |
|
|
479
|
+
| **Google** (Gemini) | Good | Free tier | ~2-4s | Full | No |
|
|
480
|
+
| **Ollama** (local) | Varies | Free | ~5-30s | Context injection | Yes |
|
|
481
|
+
|
|
482
|
+
---
|
|
483
|
+
|
|
484
|
+
## ML Sidecar (Optional)
|
|
485
|
+
|
|
486
|
+
Python FastAPI sidecar with 16 trained models for enhanced predictions. Falls back to heuristics when unavailable.
|
|
487
|
+
|
|
488
|
+
### Setup
|
|
489
|
+
|
|
490
|
+
```bash
|
|
491
|
+
docker compose up ml-sidecar
|
|
492
|
+
curl http://localhost:8000/health
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
### Requirements
|
|
496
|
+
|
|
497
|
+
| Component | Minimum |
|
|
498
|
+
|-----------|---------|
|
|
499
|
+
| **RAM** | 4 GB (8 GB recommended) |
|
|
500
|
+
| **Disk** | 1 GB for models |
|
|
501
|
+
| **Python** | 3.10+ |
|
|
502
|
+
| **GPU** | Not required |
|
|
503
|
+
|
|
629
504
|
---
|
|
630
505
|
|
|
631
506
|
## Development
|
|
@@ -664,7 +539,7 @@ pnpm test:coverage # With coverage
|
|
|
664
539
|
|
|
665
540
|
## License
|
|
666
541
|
|
|
667
|
-
[BUSL-1.1](LICENSE.md)
|
|
542
|
+
[BUSL-1.1](LICENSE.md) — Business Source License 1.1
|
|
668
543
|
|
|
669
544
|
---
|
|
670
545
|
|