oddityrh 0.1.1 → 0.1.3
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 +1 -0
- package/oddity.js +16 -1
- package/package.json +33 -6
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ oddity gaps
|
|
|
15
15
|
|
|
16
16
|
| Command | What you get |
|
|
17
17
|
|---|---|
|
|
18
|
+
| `oddity today` | The day in one read: what settled and who was closer, what closes next where Oddity disagrees, the widest gaps |
|
|
18
19
|
| `oddity scan "<polymarket link or words>"` | One market: crowd price, Oddity's price, the reason, the trade if there is one |
|
|
19
20
|
| `oddity gaps [--topic crypto\|macro\|ai\|world\|politics\|other]` | Markets where Oddity's price beats the book after fees |
|
|
20
21
|
| `oddity arb` | Ladder breaks and outcome sums that lock a profit |
|
package/oddity.js
CHANGED
|
@@ -17,7 +17,7 @@ for (let i = 0; i < args.length; i++) {
|
|
|
17
17
|
else (flags[k] = n), i++;
|
|
18
18
|
} else pos.push(args[i]);
|
|
19
19
|
}
|
|
20
|
-
const VERSION = "0.1.
|
|
20
|
+
const VERSION = "0.1.3";
|
|
21
21
|
const cmd = flags.version || flags.v || pos[0] === "version" ? "version" : pos[0] || "help";
|
|
22
22
|
const pct = (x) => (x == null ? " – " : `${(x * 100).toFixed(1)}%`);
|
|
23
23
|
const c = (x) => (x == null ? "–" : `${(x * 100).toFixed(1)}¢`);
|
|
@@ -33,6 +33,7 @@ const out = (j, fmt) => (flags.json ? console.log(JSON.stringify(j, null, 2)) :
|
|
|
33
33
|
|
|
34
34
|
const HELP = `oddity: Polymarket reads in your terminal (server: ${BASE}, set ODDITY_URL to change)
|
|
35
35
|
|
|
36
|
+
oddity today the day in one read: settled, closing, gaps
|
|
36
37
|
oddity scan "<polymarket url or words>" price one market, with the reason
|
|
37
38
|
oddity gaps [--topic crypto|macro|ai|world|politics|other]
|
|
38
39
|
oddity arb ladder breaks + outcome sums
|
|
@@ -65,6 +66,20 @@ async function main() {
|
|
|
65
66
|
console.log("");
|
|
66
67
|
});
|
|
67
68
|
}
|
|
69
|
+
if (cmd === "today") {
|
|
70
|
+
const d = await get("/api/today");
|
|
71
|
+
return out(d, () => {
|
|
72
|
+
const s = d.settled;
|
|
73
|
+
console.log(`\nLast 24 hours · ${s.count} settled · Oddity closer on ${s.closer}${s.calls ? ` · won ${s.callsWon} of ${s.calls} disagreements` : ""}`);
|
|
74
|
+
s.rows.slice(0, 8).forEach((r) => console.log(` ${r.modelErr < r.crowdErr ? "✓" : r.modelErr > r.crowdErr ? "✗" : "·"} ${cut(r.question, 58)} ${r.outcome ? "YES" : "NO "} Oddity ${pct(r.fair)} market ${pct(r.crowd)}`));
|
|
75
|
+
console.log("\nClosing within 24 hours, where we disagree");
|
|
76
|
+
if (!d.closing.length) console.log(" none right now");
|
|
77
|
+
d.closing.slice(0, 8).forEach((r) => console.log(` ${cut(r.question, 58)} market ${pct(r.yes)} → Oddity ${pct(r.fair)}`));
|
|
78
|
+
console.log("\nWidest gaps now");
|
|
79
|
+
d.gaps.forEach((r) => console.log(` ${cut(r.question, 58)} ${r.side || ""} +${c(r.edge)}`));
|
|
80
|
+
console.log("");
|
|
81
|
+
});
|
|
82
|
+
}
|
|
68
83
|
if (cmd === "gaps") {
|
|
69
84
|
const rows = await get(`/api/board?gaps=1&limit=${flags.limit || 20}&domain=${flags.topic || "all"}`);
|
|
70
85
|
return out(rows, () => rows.forEach((r) => console.log(`${cut(r.question, 64)} ${pct(r.yes)} → ${pct(r.fair)} ${r.side || ""} +${c(r.edge)}`)));
|
package/package.json
CHANGED
|
@@ -1,13 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oddityrh",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Oddity in your terminal: Polymarket markets priced by a real model, price gaps after fees, arbitrage, fine-print traps, Kelly slates, wallet checks, and an MCP bridge for AI agents.",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"bin": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
6
|
+
"bin": {
|
|
7
|
+
"oddity": "oddity.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"oddity.js",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=18"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"polymarket",
|
|
18
|
+
"prediction-markets",
|
|
19
|
+
"odds",
|
|
20
|
+
"arbitrage",
|
|
21
|
+
"kelly",
|
|
22
|
+
"mcp",
|
|
23
|
+
"cli",
|
|
24
|
+
"ai-agents",
|
|
25
|
+
"oddity"
|
|
26
|
+
],
|
|
10
27
|
"homepage": "https://oddityrh.trade",
|
|
11
28
|
"license": "MIT",
|
|
12
|
-
"scripts": {
|
|
29
|
+
"scripts": {
|
|
30
|
+
"prepack": "cp ../bin/oddity.js ./oddity.js && chmod +x ./oddity.js"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/oddity-rh/oddity.git",
|
|
35
|
+
"directory": "cli"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/oddity-rh/oddity/issues"
|
|
39
|
+
}
|
|
13
40
|
}
|