@aicoin/trade-mcp 1.0.5 → 1.0.7

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.
Files changed (2) hide show
  1. package/build/index.js +3 -1
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -94,8 +94,10 @@ function buildOptions(config) {
94
94
  const sec = skipAuth ? void 0 : secret || process.env[`${id.toUpperCase()}_SECRET`];
95
95
  const pass = skipAuth ? void 0 : passphrase || process.env[`${id.toUpperCase()}_PASSPHRASE`];
96
96
  const broker = getBrokerOptions(id);
97
+ const timeout = Number(process.env.EXCHANGE_TIMEOUT) || 3e4;
97
98
  const opts = {
98
99
  enableRateLimit: true,
100
+ timeout,
99
101
  options: {
100
102
  ...broker.options,
101
103
  ...marketType && marketType !== "spot" ? { defaultType: marketType } : {}
@@ -120,7 +122,7 @@ function buildOptions(config) {
120
122
  } else if (proxyUrl.startsWith("https://")) {
121
123
  opts.httpsProxy = proxyUrl;
122
124
  } else if (proxyUrl.startsWith("http://")) {
123
- opts.httpProxy = proxyUrl;
125
+ opts.httpsProxy = proxyUrl;
124
126
  }
125
127
  }
126
128
  return opts;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicoin/trade-mcp",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "AiCoin Trade MCP Server - AI-powered cryptocurrency trading via ccxt",
5
5
  "main": "build/index.js",
6
6
  "type": "module",