@aicoin/opendata-mcp 1.0.24 → 1.0.25

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 +12 -6
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -672,7 +672,7 @@ function registerCoinTools(server2) {
672
672
  async ({ key, amount, limit, start_time, end_time }) => {
673
673
  try {
674
674
  const params = { key };
675
- if (amount) params.amount = amount;
675
+ params.amount = amount ?? "10000";
676
676
  params.limit = limit ?? "100";
677
677
  if (start_time) params.start_time = start_time;
678
678
  if (end_time) params.end_time = end_time;
@@ -1775,15 +1775,21 @@ function registerFeatureTools(server2) {
1775
1775
  );
1776
1776
  server2.tool(
1777
1777
  "get_trading_pair",
1778
- "Get all trading pair info (no filter params)",
1779
- {},
1780
- async () => {
1778
+ "Get trading pair info for a platform",
1779
+ {
1780
+ market: z5.string().describe(
1781
+ "Platform key (from get_markets), e.g. okex, binance"
1782
+ ),
1783
+ ...maxItemsParam
1784
+ },
1785
+ async ({ market, _max_items }) => {
1781
1786
  try {
1782
1787
  return okList(
1783
1788
  await apiGet(
1784
- "/api/v2/trading-pair/getTradingPair"
1789
+ "/api/v2/trading-pair/getTradingPair",
1790
+ { market }
1785
1791
  ),
1786
- 50
1792
+ parseMax(_max_items, 50)
1787
1793
  );
1788
1794
  } catch (e) {
1789
1795
  return err(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicoin/opendata-mcp",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "AiCoin OpenData MCP Server - crypto market data via AiCoin Open API",
5
5
  "main": "build/index.js",
6
6
  "type": "module",