@aicoin/opendata-mcp 1.0.3 → 1.0.5

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/.env.example CHANGED
@@ -1,5 +1,5 @@
1
1
  # AiCoin OpenData MCP - API credentials
2
- # 从 https://www.aicoin.com/openapi 获取
2
+ # 从 https://www.aicoin.com/opendata 获取
3
3
  AICOIN_ACCESS_KEY_ID=your_access_key_id
4
4
  AICOIN_ACCESS_SECRET=your_access_secret
5
5
 
package/README.md CHANGED
@@ -156,7 +156,7 @@ AICOIN_ACCESS_SECRET=your_access_secret
156
156
 
157
157
  ## Client Configuration
158
158
 
159
- > Get your API credentials at [AiCoin OpenAPI](https://www.aicoin.com/openapi)
159
+ > Get your API credentials at [AiCoin OpenAPI](https://www.aicoin.com/opendata)
160
160
 
161
161
  ### Claude Desktop
162
162
 
package/build/index.js CHANGED
@@ -32,7 +32,7 @@ function getCredentials() {
32
32
  const secret = process.env.AICOIN_ACCESS_SECRET;
33
33
  if (!key || !secret) {
34
34
  throw new Error(
35
- "Missing AICOIN_ACCESS_KEY_ID or AICOIN_ACCESS_SECRET. Register at https://www.aicoin.com/openapi to get your API credentials."
35
+ "Missing AICOIN_ACCESS_KEY_ID or AICOIN_ACCESS_SECRET. Register at https://www.aicoin.com/opendata to get your API credentials."
36
36
  );
37
37
  }
38
38
  return { key, secret };
@@ -1484,7 +1484,7 @@ function registerHyperliquidTools(server2) {
1484
1484
  {},
1485
1485
  async () => {
1486
1486
  try {
1487
- return ok5(await apiGet("/api/v2/hl/tickers"));
1487
+ return ok5(await apiGet("/api/upgrade/v2/hl/tickers"));
1488
1488
  } catch (e) {
1489
1489
  return err5(e);
1490
1490
  }
@@ -1499,7 +1499,7 @@ function registerHyperliquidTools(server2) {
1499
1499
  async ({ coin }) => {
1500
1500
  try {
1501
1501
  return ok5(
1502
- await apiGet(`/api/v2/hl/tickers/coin/${coin}`)
1502
+ await apiGet(`/api/upgrade/v2/hl/tickers/coin/${coin}`)
1503
1503
  );
1504
1504
  } catch (e) {
1505
1505
  return err5(e);
@@ -1520,7 +1520,7 @@ function registerHyperliquidTools(server2) {
1520
1520
  if (min_usd) params.min_usd = min_usd;
1521
1521
  return ok5(
1522
1522
  await apiGet(
1523
- "/api/v2/hl/whales/open-positions",
1523
+ "/api/upgrade/v2/hl/whales/open-positions",
1524
1524
  params
1525
1525
  )
1526
1526
  );
@@ -1541,7 +1541,7 @@ function registerHyperliquidTools(server2) {
1541
1541
  if (coin) params.coin = coin;
1542
1542
  return ok5(
1543
1543
  await apiGet(
1544
- "/api/v2/hl/liquidations/history",
1544
+ "/api/upgrade/v2/hl/liquidations/history",
1545
1545
  params
1546
1546
  )
1547
1547
  );
@@ -1560,7 +1560,7 @@ function registerHyperliquidTools(server2) {
1560
1560
  try {
1561
1561
  return ok5(
1562
1562
  await apiGet(
1563
- `/api/v2/hl/traders/${address}/addr-stat`
1563
+ `/api/upgrade/v2/hl/traders/${address}/addr-stat`
1564
1564
  )
1565
1565
  );
1566
1566
  } catch (e) {
@@ -1586,7 +1586,7 @@ function registerHyperliquidTools(server2) {
1586
1586
  Object.assign(body, JSON.parse(extra_params));
1587
1587
  }
1588
1588
  return ok5(
1589
- await apiPost("/api/v2/hl/info", body)
1589
+ await apiPost("/api/upgrade/v2/hl/info", body)
1590
1590
  );
1591
1591
  } catch (e) {
1592
1592
  return err5(e);
@@ -1602,7 +1602,7 @@ function registerHyperliquidTools(server2) {
1602
1602
  async ({ address }) => {
1603
1603
  try {
1604
1604
  return ok5(
1605
- await apiGet(`/api/v2/hl/fills/${address}`)
1605
+ await apiGet(`/api/upgrade/v2/hl/fills/${address}`)
1606
1606
  );
1607
1607
  } catch (e) {
1608
1608
  return err5(e);
@@ -1618,7 +1618,7 @@ function registerHyperliquidTools(server2) {
1618
1618
  async ({ oid }) => {
1619
1619
  try {
1620
1620
  return ok5(
1621
- await apiGet(`/api/v2/hl/fills/oid/${oid}`)
1621
+ await apiGet(`/api/upgrade/v2/hl/fills/oid/${oid}`)
1622
1622
  );
1623
1623
  } catch (e) {
1624
1624
  return err5(e);
@@ -1635,7 +1635,7 @@ function registerHyperliquidTools(server2) {
1635
1635
  try {
1636
1636
  return ok5(
1637
1637
  await apiGet(
1638
- `/api/v2/hl/fills/twapid/${twapid}`
1638
+ `/api/upgrade/v2/hl/fills/twapid/${twapid}`
1639
1639
  )
1640
1640
  );
1641
1641
  } catch (e) {
@@ -1655,7 +1655,7 @@ function registerHyperliquidTools(server2) {
1655
1655
  if (coin) params.coin = coin;
1656
1656
  return ok5(
1657
1657
  await apiGet(
1658
- "/api/v2/hl/fills/top-trades",
1658
+ "/api/upgrade/v2/hl/fills/top-trades",
1659
1659
  params
1660
1660
  )
1661
1661
  );
@@ -1674,7 +1674,7 @@ function registerHyperliquidTools(server2) {
1674
1674
  try {
1675
1675
  return ok5(
1676
1676
  await apiGet(
1677
- `/api/v2/hl/filled-orders/${address}/latest`
1677
+ `/api/upgrade/v2/hl/filled-orders/${address}/latest`
1678
1678
  )
1679
1679
  );
1680
1680
  } catch (e) {
@@ -1692,7 +1692,7 @@ function registerHyperliquidTools(server2) {
1692
1692
  try {
1693
1693
  return ok5(
1694
1694
  await apiGet(
1695
- `/api/v2/hl/filled-orders/oid/${oid}`
1695
+ `/api/upgrade/v2/hl/filled-orders/oid/${oid}`
1696
1696
  )
1697
1697
  );
1698
1698
  } catch (e) {
@@ -1710,7 +1710,7 @@ function registerHyperliquidTools(server2) {
1710
1710
  try {
1711
1711
  return ok5(
1712
1712
  await apiGet(
1713
- `/api/v2/hl/orders/${address}/latest`
1713
+ `/api/upgrade/v2/hl/orders/${address}/latest`
1714
1714
  )
1715
1715
  );
1716
1716
  } catch (e) {
@@ -1727,7 +1727,7 @@ function registerHyperliquidTools(server2) {
1727
1727
  async ({ oid }) => {
1728
1728
  try {
1729
1729
  return ok5(
1730
- await apiGet(`/api/v2/hl/orders/oid/${oid}`)
1730
+ await apiGet(`/api/upgrade/v2/hl/orders/oid/${oid}`)
1731
1731
  );
1732
1732
  } catch (e) {
1733
1733
  return err5(e);
@@ -1746,7 +1746,7 @@ function registerHyperliquidTools(server2) {
1746
1746
  if (coin) params.coin = coin;
1747
1747
  return ok5(
1748
1748
  await apiGet(
1749
- "/api/v2/hl/orders/top-open-orders",
1749
+ "/api/upgrade/v2/hl/orders/top-open-orders",
1750
1750
  params
1751
1751
  )
1752
1752
  );
@@ -1767,7 +1767,7 @@ function registerHyperliquidTools(server2) {
1767
1767
  if (coin) params.coin = coin;
1768
1768
  return ok5(
1769
1769
  await apiGet(
1770
- "/api/v2/hl/orders/active-stats",
1770
+ "/api/upgrade/v2/hl/orders/active-stats",
1771
1771
  params
1772
1772
  )
1773
1773
  );
@@ -1787,7 +1787,7 @@ function registerHyperliquidTools(server2) {
1787
1787
  try {
1788
1788
  return ok5(
1789
1789
  await apiGet(
1790
- `/api/v2/hl/portfolio/${address}/${win}`
1790
+ `/api/upgrade/v2/hl/portfolio/${address}/${win}`
1791
1791
  )
1792
1792
  );
1793
1793
  } catch (e) {
@@ -1804,7 +1804,7 @@ function registerHyperliquidTools(server2) {
1804
1804
  async ({ address }) => {
1805
1805
  try {
1806
1806
  return ok5(
1807
- await apiGet(`/api/v2/hl/pnls/${address}`)
1807
+ await apiGet(`/api/upgrade/v2/hl/pnls/${address}`)
1808
1808
  );
1809
1809
  } catch (e) {
1810
1810
  return err5(e);
@@ -1821,7 +1821,7 @@ function registerHyperliquidTools(server2) {
1821
1821
  try {
1822
1822
  return ok5(
1823
1823
  await apiGet(
1824
- `/api/v2/hl/traders/${address}/best-trades`
1824
+ `/api/upgrade/v2/hl/traders/${address}/best-trades`
1825
1825
  )
1826
1826
  );
1827
1827
  } catch (e) {
@@ -1839,7 +1839,7 @@ function registerHyperliquidTools(server2) {
1839
1839
  try {
1840
1840
  return ok5(
1841
1841
  await apiGet(
1842
- `/api/v2/hl/traders/${address}/performance-by-coin`
1842
+ `/api/upgrade/v2/hl/traders/${address}/performance-by-coin`
1843
1843
  )
1844
1844
  );
1845
1845
  } catch (e) {
@@ -1857,7 +1857,7 @@ function registerHyperliquidTools(server2) {
1857
1857
  try {
1858
1858
  return ok5(
1859
1859
  await apiGet(
1860
- `/api/v2/hl/traders/${address}/completed-trades`
1860
+ `/api/upgrade/v2/hl/traders/${address}/completed-trades`
1861
1861
  )
1862
1862
  );
1863
1863
  } catch (e) {
@@ -1876,7 +1876,7 @@ function registerHyperliquidTools(server2) {
1876
1876
  try {
1877
1877
  return ok5(
1878
1878
  await apiGet(
1879
- `/api/v2/hl/traders/${address}/current-position-history/${coin}`
1879
+ `/api/upgrade/v2/hl/traders/${address}/current-position-history/${coin}`
1880
1880
  )
1881
1881
  );
1882
1882
  } catch (e) {
@@ -1895,7 +1895,7 @@ function registerHyperliquidTools(server2) {
1895
1895
  try {
1896
1896
  return ok5(
1897
1897
  await apiGet(
1898
- `/api/v2/hl/traders/${address}/completed-position-history/${coin}`
1898
+ `/api/upgrade/v2/hl/traders/${address}/completed-position-history/${coin}`
1899
1899
  )
1900
1900
  );
1901
1901
  } catch (e) {
@@ -1914,7 +1914,7 @@ function registerHyperliquidTools(server2) {
1914
1914
  try {
1915
1915
  return ok5(
1916
1916
  await apiGet(
1917
- `/api/v2/hl/traders/${address}/current-position-pnl/${coin}`
1917
+ `/api/upgrade/v2/hl/traders/${address}/current-position-pnl/${coin}`
1918
1918
  )
1919
1919
  );
1920
1920
  } catch (e) {
@@ -1933,7 +1933,7 @@ function registerHyperliquidTools(server2) {
1933
1933
  try {
1934
1934
  return ok5(
1935
1935
  await apiGet(
1936
- `/api/v2/hl/traders/${address}/completed-position-pnl/${coin}`
1936
+ `/api/upgrade/v2/hl/traders/${address}/completed-position-pnl/${coin}`
1937
1937
  )
1938
1938
  );
1939
1939
  } catch (e) {
@@ -1952,7 +1952,7 @@ function registerHyperliquidTools(server2) {
1952
1952
  try {
1953
1953
  return ok5(
1954
1954
  await apiGet(
1955
- `/api/v2/hl/traders/${address}/current-position-executions/${coin}`
1955
+ `/api/upgrade/v2/hl/traders/${address}/current-position-executions/${coin}`
1956
1956
  )
1957
1957
  );
1958
1958
  } catch (e) {
@@ -1971,7 +1971,7 @@ function registerHyperliquidTools(server2) {
1971
1971
  try {
1972
1972
  return ok5(
1973
1973
  await apiGet(
1974
- `/api/v2/hl/traders/${address}/completed-position-executions/${coin}`
1974
+ `/api/upgrade/v2/hl/traders/${address}/completed-position-executions/${coin}`
1975
1975
  )
1976
1976
  );
1977
1977
  } catch (e) {
@@ -1988,7 +1988,7 @@ function registerHyperliquidTools(server2) {
1988
1988
  async ({ addresses }) => {
1989
1989
  try {
1990
1990
  return ok5(
1991
- await apiPost("/api/v2/hl/traders/accounts", {
1991
+ await apiPost("/api/upgrade/v2/hl/traders/accounts", {
1992
1992
  addresses: JSON.parse(addresses)
1993
1993
  })
1994
1994
  );
@@ -2007,7 +2007,7 @@ function registerHyperliquidTools(server2) {
2007
2007
  try {
2008
2008
  return ok5(
2009
2009
  await apiPost(
2010
- "/api/v2/hl/traders/statistics",
2010
+ "/api/upgrade/v2/hl/traders/statistics",
2011
2011
  { addresses: JSON.parse(addresses) }
2012
2012
  )
2013
2013
  );
@@ -2028,7 +2028,7 @@ function registerHyperliquidTools(server2) {
2028
2028
  if (coin) params.coin = coin;
2029
2029
  return ok5(
2030
2030
  await apiGet(
2031
- "/api/v2/hl/whales/latest-events",
2031
+ "/api/upgrade/v2/hl/whales/latest-events",
2032
2032
  params
2033
2033
  )
2034
2034
  );
@@ -2049,7 +2049,7 @@ function registerHyperliquidTools(server2) {
2049
2049
  if (coin) params.coin = coin;
2050
2050
  return ok5(
2051
2051
  await apiGet(
2052
- "/api/v2/hl/whales/directions",
2052
+ "/api/upgrade/v2/hl/whales/directions",
2053
2053
  params
2054
2054
  )
2055
2055
  );
@@ -2070,7 +2070,7 @@ function registerHyperliquidTools(server2) {
2070
2070
  if (coin) params.coin = coin;
2071
2071
  return ok5(
2072
2072
  await apiGet(
2073
- "/api/v2/hl/whales/history-long-ratio",
2073
+ "/api/upgrade/v2/hl/whales/history-long-ratio",
2074
2074
  params
2075
2075
  )
2076
2076
  );
@@ -2086,7 +2086,7 @@ function registerHyperliquidTools(server2) {
2086
2086
  async () => {
2087
2087
  try {
2088
2088
  return ok5(
2089
- await apiGet("/api/v2/hl/liquidations/stat")
2089
+ await apiGet("/api/upgrade/v2/hl/liquidations/stat")
2090
2090
  );
2091
2091
  } catch (e) {
2092
2092
  return err5(e);
@@ -2105,7 +2105,7 @@ function registerHyperliquidTools(server2) {
2105
2105
  if (coin) params.coin = coin;
2106
2106
  return ok5(
2107
2107
  await apiGet(
2108
- "/api/v2/hl/liquidations/stat-by-coin",
2108
+ "/api/upgrade/v2/hl/liquidations/stat-by-coin",
2109
2109
  params
2110
2110
  )
2111
2111
  );
@@ -2126,7 +2126,7 @@ function registerHyperliquidTools(server2) {
2126
2126
  if (coin) params.coin = coin;
2127
2127
  return ok5(
2128
2128
  await apiGet(
2129
- "/api/v2/hl/liquidations/top-positions",
2129
+ "/api/upgrade/v2/hl/liquidations/top-positions",
2130
2130
  params
2131
2131
  )
2132
2132
  );
@@ -2145,7 +2145,7 @@ function registerHyperliquidTools(server2) {
2145
2145
  try {
2146
2146
  return ok5(
2147
2147
  await apiPost(
2148
- "/api/v2/hl/smart/find",
2148
+ "/api/upgrade/v2/hl/smart/find",
2149
2149
  JSON.parse(params_json)
2150
2150
  )
2151
2151
  );
@@ -2164,7 +2164,7 @@ function registerHyperliquidTools(server2) {
2164
2164
  try {
2165
2165
  return ok5(
2166
2166
  await apiPost(
2167
- "/api/v2/hl/traders/discover",
2167
+ "/api/upgrade/v2/hl/traders/discover",
2168
2168
  JSON.parse(params_json)
2169
2169
  )
2170
2170
  );
@@ -2183,7 +2183,7 @@ function registerHyperliquidTools(server2) {
2183
2183
  try {
2184
2184
  return ok5(
2185
2185
  await apiGet(
2186
- `/api/v2/hl/twap-states/${address}/latest`
2186
+ `/api/upgrade/v2/hl/twap-states/${address}/latest`
2187
2187
  )
2188
2188
  );
2189
2189
  } catch (e) {
@@ -2201,7 +2201,7 @@ function registerHyperliquidTools(server2) {
2201
2201
  try {
2202
2202
  return ok5(
2203
2203
  await apiGet(
2204
- `/api/v2/hl/max-drawdown/${address}`
2204
+ `/api/upgrade/v2/hl/max-drawdown/${address}`
2205
2205
  )
2206
2206
  );
2207
2207
  } catch (e) {
@@ -2219,7 +2219,7 @@ function registerHyperliquidTools(server2) {
2219
2219
  try {
2220
2220
  return ok5(
2221
2221
  await apiGet(
2222
- `/api/v2/hl/ledger-updates/net-flow/${address}`
2222
+ `/api/upgrade/v2/hl/ledger-updates/net-flow/${address}`
2223
2223
  )
2224
2224
  );
2225
2225
  } catch (e) {
@@ -2238,7 +2238,7 @@ function registerHyperliquidTools(server2) {
2238
2238
  try {
2239
2239
  return ok5(
2240
2240
  await apiGet(
2241
- `/api/v2/hl/klines-with-taker-vol/${coin}/${interval}`
2241
+ `/api/upgrade/v2/hl/klines-with-taker-vol/${coin}/${interval}`
2242
2242
  )
2243
2243
  );
2244
2244
  } catch (e) {
@@ -2262,7 +2262,7 @@ function registerGuideTools(server2) {
2262
2262
  Visit https://www.aicoin.com and create an account (or log in).
2263
2263
 
2264
2264
  ## Step 2: Go to OpenAPI Management
2265
- Visit https://www.aicoin.com/openapi to manage your API keys.
2265
+ Visit https://www.aicoin.com/opendata to manage your API keys.
2266
2266
 
2267
2267
  ## Step 3: Create API Key
2268
2268
  Click "Create Key" and select your desired tier:
@@ -2332,7 +2332,7 @@ ${endpoint ? `Endpoint: ${endpoint}` : ""}
2332
2332
  | Full depth & grouped | \u274C | \u274C | \u274C | \u2705 |
2333
2333
 
2334
2334
  ## How to Upgrade
2335
- 1. Visit https://www.aicoin.com/openapi
2335
+ 1. Visit https://www.aicoin.com/opendata
2336
2336
  2. Go to your API key management page
2337
2337
  3. Click "Upgrade" on your current key
2338
2338
  4. Select the tier that includes the features you need
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicoin/opendata-mcp",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "AiCoin OpenData MCP Server - crypto market data via AiCoin Open API",
5
5
  "main": "build/index.js",
6
6
  "type": "module",