@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.
- package/build/index.js +12 -6
- 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
|
-
|
|
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
|
|
1779
|
-
{
|
|
1780
|
-
|
|
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);
|