omnitrade-mcp 0.6.2 → 0.6.4
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/cli.js +57 -17
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -21,14 +21,35 @@ var c = {
|
|
|
21
21
|
orange: "\x1B[38;5;208m",
|
|
22
22
|
red: "\x1B[38;5;196m"
|
|
23
23
|
};
|
|
24
|
+
var W = 58;
|
|
25
|
+
function center(text, width) {
|
|
26
|
+
const visibleLength = text.replace(/\x1b\[[0-9;]*m/g, "").length;
|
|
27
|
+
const totalPadding = width - visibleLength;
|
|
28
|
+
const leftPad = Math.floor(totalPadding / 2);
|
|
29
|
+
const rightPad = totalPadding - leftPad;
|
|
30
|
+
return " ".repeat(Math.max(0, leftPad)) + text + " ".repeat(Math.max(0, rightPad));
|
|
31
|
+
}
|
|
24
32
|
function printBanner() {
|
|
33
|
+
const line = "-".repeat(W);
|
|
25
34
|
console.log(`
|
|
26
|
-
${c.cyan}
|
|
35
|
+
${c.cyan}+${line}+${c.reset}
|
|
36
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
37
|
+
${c.cyan}|${c.reset}${center(`${c.cyan}o${c.gray}--${c.purple}o${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
38
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
39
|
+
${c.cyan}|${c.reset}${center(`${c.white}${c.bold}O M N I T R A D E${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
40
|
+
${c.cyan}|${c.reset}${center(`${c.gray}v${VERSION}${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
41
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
42
|
+
${c.cyan}|${c.reset}${center(`${c.dim}Talk to your crypto with Claude${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
43
|
+
${c.cyan}|${c.reset}${center(`${c.dim}107 exchanges \u2022 Natural language \u2022 Local & secure${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
44
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
45
|
+
${c.cyan}|${c.reset}${center(`${c.cyan}Connectry${c.reset}`, W)}${c.cyan}|${c.reset}
|
|
46
|
+
${c.cyan}|${c.reset}${" ".repeat(W)}${c.cyan}|${c.reset}
|
|
47
|
+
${c.cyan}+${line}+${c.reset}
|
|
27
48
|
`);
|
|
28
49
|
}
|
|
29
50
|
function printCompactLogo() {
|
|
30
51
|
console.log(`
|
|
31
|
-
${c.cyan}
|
|
52
|
+
${c.cyan}o${c.gray}-${c.purple}o${c.reset} ${c.white}${c.bold}OmniTrade${c.reset} ${c.gray}v${VERSION}${c.reset} ${c.dim}\u2022 Connectry${c.reset}
|
|
32
53
|
`);
|
|
33
54
|
}
|
|
34
55
|
var EXCHANGE_INFO = {
|
|
@@ -129,33 +150,52 @@ function printHelp() {
|
|
|
129
150
|
printBanner();
|
|
130
151
|
console.log(`
|
|
131
152
|
${c.white}${c.bold}QUICK START${c.reset}
|
|
132
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
153
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
133
154
|
|
|
134
|
-
${c.yellow}$${c.reset} ${c.green}${c.bold}omnitrade setup${c.reset} ${c.dim}\u2190
|
|
155
|
+
${c.yellow}$${c.reset} ${c.green}${c.bold}omnitrade setup${c.reset} ${c.dim}\u2190 2-minute guided wizard${c.reset}
|
|
135
156
|
|
|
136
157
|
${c.white}${c.bold}COMMANDS${c.reset}
|
|
137
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
158
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
138
159
|
|
|
139
160
|
${c.green}setup${c.reset} Interactive setup wizard
|
|
140
|
-
${c.cyan}start${c.reset} Launch MCP server for Claude
|
|
141
|
-
${c.cyan}test${c.reset} Verify exchange connections
|
|
142
|
-
${c.cyan}config${c.reset} View saved configuration
|
|
161
|
+
${c.cyan}start${c.reset} Launch MCP server for Claude Desktop
|
|
162
|
+
${c.cyan}test${c.reset} Verify your exchange connections work
|
|
163
|
+
${c.cyan}config${c.reset} View saved API configuration
|
|
143
164
|
${c.cyan}exchanges${c.reset} Browse all 107 supported exchanges
|
|
144
165
|
${c.cyan}help${c.reset} Show this help
|
|
145
166
|
|
|
146
|
-
${c.white}${c.bold}
|
|
147
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
167
|
+
${c.white}${c.bold}WHAT YOU CAN DO${c.reset} ${c.dim}(once connected)${c.reset}
|
|
168
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
169
|
+
|
|
170
|
+
${c.cyan}Portfolio${c.reset} "What's my portfolio worth in USD?"
|
|
171
|
+
"Show all my holdings across exchanges"
|
|
172
|
+
"What % of my portfolio is in ETH?"
|
|
148
173
|
|
|
149
|
-
${c.
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
174
|
+
${c.cyan}Prices${c.reset} "What's the current BTC price?"
|
|
175
|
+
"Compare ETH prices across all my exchanges"
|
|
176
|
+
"Alert me when SOL drops below $100"
|
|
177
|
+
|
|
178
|
+
${c.cyan}Trading${c.reset} "Buy 0.1 ETH at market price"
|
|
179
|
+
"Place a limit order for BTC at $40,000"
|
|
180
|
+
"What are my open orders?"
|
|
181
|
+
|
|
182
|
+
${c.cyan}Analysis${c.reset} "Find arbitrage opportunities for BTC"
|
|
183
|
+
"Which exchange has the lowest fees?"
|
|
184
|
+
"Show my trade history for this week"
|
|
185
|
+
|
|
186
|
+
${c.white}${c.bold}SECURITY${c.reset}
|
|
187
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
188
|
+
|
|
189
|
+
${c.green}\u2713${c.reset} Keys stored locally at ${c.dim}~/.omnitrade/config.json${c.reset}
|
|
190
|
+
${c.green}\u2713${c.reset} Never transmitted anywhere \u2014 runs 100% on your machine
|
|
191
|
+
${c.green}\u2713${c.reset} We recommend: ${c.white}read + trade only${c.reset}, ${c.red}never withdrawals${c.reset}
|
|
153
192
|
|
|
154
193
|
${c.white}${c.bold}LINKS${c.reset}
|
|
155
|
-
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
194
|
+
${c.gray}\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500${c.reset}
|
|
156
195
|
|
|
157
|
-
${c.blue}Docs
|
|
158
|
-
${c.blue}Claude
|
|
196
|
+
${c.blue}Docs${c.reset} github.com/Connectry-io/omnitrade-mcp
|
|
197
|
+
${c.blue}Claude${c.reset} claude.ai/download
|
|
198
|
+
${c.blue}Support${c.reset} discord.gg/connectry
|
|
159
199
|
|
|
160
200
|
`);
|
|
161
201
|
}
|