polly-gamba 1.0.22 → 1.0.23
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/dist/claude-trader.js +6 -0
- package/package.json +1 -1
- package/service.log +68 -0
- package/src/claude-trader.ts +7 -0
package/dist/claude-trader.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.ClaudeTrader = void 0;
|
|
7
7
|
const child_process_1 = require("child_process");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
|
+
const path_1 = require("path");
|
|
9
10
|
const readline_1 = require("readline");
|
|
10
11
|
const ioredis_1 = __importDefault(require("ioredis"));
|
|
11
12
|
function findClaudeBin() {
|
|
@@ -66,6 +67,11 @@ class ClaudeTrader {
|
|
|
66
67
|
'--verbose',
|
|
67
68
|
'--dangerously-skip-permissions',
|
|
68
69
|
];
|
|
70
|
+
// Explicitly load MCP config — --print mode doesn't auto-discover settings.json
|
|
71
|
+
const settingsPath = (0, path_1.join)(this.config.cwd, 'settings.json');
|
|
72
|
+
if ((0, fs_1.existsSync)(settingsPath)) {
|
|
73
|
+
args.push('--mcp-config', settingsPath);
|
|
74
|
+
}
|
|
69
75
|
if (this.config.model) {
|
|
70
76
|
args.push('--model', this.config.model);
|
|
71
77
|
}
|
package/package.json
CHANGED
package/service.log
CHANGED
|
@@ -289,3 +289,71 @@ npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact
|
|
|
289
289
|
[expiring] fetching expiring markets (closing within 72h, vol24h>$10k, liq>$10k, price 0.05-0.95)
|
|
290
290
|
[expiring] 0 expiring markets for review
|
|
291
291
|
[expiring] no expiring markets found this cycle
|
|
292
|
+
[polly-gamba] Starting paper trading service
|
|
293
|
+
[polly-gamba] Claude cwd: /Users/feral/polly-gamba
|
|
294
|
+
[polly-gamba] Expiring trader cwd: /Users/feral/polly-gamba-expiring
|
|
295
|
+
[coinbase-ws] Connecting to wss://ws-feed.exchange.coinbase.com
|
|
296
|
+
[polly-gamba] Listening for BTC/ETH price signals (threshold: 0.5% in 60s)...
|
|
297
|
+
[scan] fetching high-quality markets (vol24h>$50k, liq>$50k, price 0.10-0.90)
|
|
298
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
299
|
+
[expiring] fetching expiring markets (closing within 72h, vol24h>$10k, liq>$10k, price 0.05-0.95)
|
|
300
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
301
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
302
|
+
[scan] 16 high-quality markets for autonomous review
|
|
303
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
304
|
+
[expiring] 0 expiring markets for review
|
|
305
|
+
[expiring] no expiring markets found this cycle
|
|
306
|
+
[coinbase-ws] Connected
|
|
307
|
+
[position-monitor] checked=25 review_candidates=7 hard_stops=0 (moved>5% or <72h expiry)
|
|
308
|
+
[claude-trader:anthropic] ready
|
|
309
|
+
[claude-trader:ollama] ready
|
|
310
|
+
[claude-trader:expiring] ready
|
|
311
|
+
[scan] fetching high-quality markets (vol24h>$50k, liq>$50k, price 0.10-0.90)
|
|
312
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
313
|
+
[expiring] fetching expiring markets (closing within 72h, vol24h>$10k, liq>$10k, price 0.05-0.95)
|
|
314
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
315
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
316
|
+
[scan] 16 high-quality markets for autonomous review
|
|
317
|
+
[position-monitor] checked=25 review_candidates=7 hard_stops=0 (moved>5% or <72h expiry)
|
|
318
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
319
|
+
[expiring] 0 expiring markets for review
|
|
320
|
+
[expiring] no expiring markets found this cycle
|
|
321
|
+
[scan] fetching high-quality markets (vol24h>$50k, liq>$50k, price 0.10-0.90)
|
|
322
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
323
|
+
[expiring] fetching expiring markets (closing within 72h, vol24h>$10k, liq>$10k, price 0.05-0.95)
|
|
324
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
325
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
326
|
+
[scan] 17 high-quality markets for autonomous review
|
|
327
|
+
[position-monitor] checked=25 review_candidates=7 hard_stops=0 (moved>5% or <72h expiry)
|
|
328
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
329
|
+
[expiring] 0 expiring markets for review
|
|
330
|
+
[expiring] no expiring markets found this cycle
|
|
331
|
+
[scan] fetching high-quality markets (vol24h>$50k, liq>$50k, price 0.10-0.90)
|
|
332
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
333
|
+
[expiring] fetching expiring markets (closing within 72h, vol24h>$10k, liq>$10k, price 0.05-0.95)
|
|
334
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
335
|
+
[position-monitor] checked=25 review_candidates=7 hard_stops=0 (moved>5% or <72h expiry)
|
|
336
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
337
|
+
[scan] 16 high-quality markets for autonomous review
|
|
338
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
339
|
+
[expiring] 0 expiring markets for review
|
|
340
|
+
[expiring] no expiring markets found this cycle
|
|
341
|
+
[polly-gamba] Starting paper trading service
|
|
342
|
+
[polly-gamba] Claude cwd: /Users/feral/polly-gamba
|
|
343
|
+
[polly-gamba] Expiring trader cwd: /Users/feral/polly-gamba-expiring
|
|
344
|
+
[coinbase-ws] Connecting to wss://ws-feed.exchange.coinbase.com
|
|
345
|
+
[polly-gamba] Listening for BTC/ETH price signals (threshold: 0.5% in 60s)...
|
|
346
|
+
[scan] fetching high-quality markets (vol24h>$50k, liq>$50k, price 0.10-0.90)
|
|
347
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
348
|
+
[expiring] fetching expiring markets (closing within 72h, vol24h>$10k, liq>$10k, price 0.05-0.95)
|
|
349
|
+
[gamma] Fetching active markets from https://gamma-api.polymarket.com/markets?active=true&closed=false&limit=500
|
|
350
|
+
[coinbase-ws] Connected
|
|
351
|
+
[position-monitor] checked=25 review_candidates=7 hard_stops=0 (moved>5% or <72h expiry)
|
|
352
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
353
|
+
[expiring] 0 expiring markets for review
|
|
354
|
+
[expiring] no expiring markets found this cycle
|
|
355
|
+
[gamma] Loaded 496 markets (filtered from 500)
|
|
356
|
+
[scan] 17 high-quality markets for autonomous review
|
|
357
|
+
[claude-trader:anthropic] ready
|
|
358
|
+
[claude-trader:ollama] ready
|
|
359
|
+
[claude-trader:expiring] ready
|
package/src/claude-trader.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawn, ChildProcess, execSync } from 'child_process'
|
|
2
2
|
import { existsSync } from 'fs'
|
|
3
|
+
import { join } from 'path'
|
|
3
4
|
import { createInterface } from 'readline'
|
|
4
5
|
import Redis from 'ioredis'
|
|
5
6
|
import { PriceSignal } from './signals/coinbase-ws'
|
|
@@ -77,6 +78,12 @@ export class ClaudeTrader {
|
|
|
77
78
|
'--dangerously-skip-permissions',
|
|
78
79
|
]
|
|
79
80
|
|
|
81
|
+
// Explicitly load MCP config — --print mode doesn't auto-discover settings.json
|
|
82
|
+
const settingsPath = join(this.config.cwd, 'settings.json')
|
|
83
|
+
if (existsSync(settingsPath)) {
|
|
84
|
+
args.push('--mcp-config', settingsPath)
|
|
85
|
+
}
|
|
86
|
+
|
|
80
87
|
if (this.config.model) {
|
|
81
88
|
args.push('--model', this.config.model)
|
|
82
89
|
}
|