@aicoin/opendata-mcp 1.0.6 → 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.
- package/build/index.js +17 -7
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1811,7 +1811,9 @@ function registerHyperliquidTools(server2) {
|
|
|
1811
1811
|
"Get account value and PNL curves",
|
|
1812
1812
|
{
|
|
1813
1813
|
address: z5.string().describe("Wallet address"),
|
|
1814
|
-
window: z5.string().describe(
|
|
1814
|
+
window: z5.string().describe(
|
|
1815
|
+
"Time window: day, week, month, allTime"
|
|
1816
|
+
)
|
|
1815
1817
|
},
|
|
1816
1818
|
async ({ address, window: win }) => {
|
|
1817
1819
|
try {
|
|
@@ -1845,13 +1847,17 @@ function registerHyperliquidTools(server2) {
|
|
|
1845
1847
|
"hl_get_best_trades",
|
|
1846
1848
|
"Get most profitable trades by address",
|
|
1847
1849
|
{
|
|
1848
|
-
address: z5.string().describe("Wallet address")
|
|
1850
|
+
address: z5.string().describe("Wallet address"),
|
|
1851
|
+
period: z5.string().describe(
|
|
1852
|
+
"Time period (required). Try: day, week, month, allTime"
|
|
1853
|
+
)
|
|
1849
1854
|
},
|
|
1850
|
-
async ({ address }) => {
|
|
1855
|
+
async ({ address, period }) => {
|
|
1851
1856
|
try {
|
|
1852
1857
|
return ok5(
|
|
1853
1858
|
await apiGet(
|
|
1854
|
-
`/api/upgrade/v2/hl/traders/${address}/best-trades
|
|
1859
|
+
`/api/upgrade/v2/hl/traders/${address}/best-trades`,
|
|
1860
|
+
{ period }
|
|
1855
1861
|
)
|
|
1856
1862
|
);
|
|
1857
1863
|
} catch (e) {
|
|
@@ -1863,13 +1869,17 @@ function registerHyperliquidTools(server2) {
|
|
|
1863
1869
|
"hl_get_performance_by_coin",
|
|
1864
1870
|
"Get per-coin trading performance stats",
|
|
1865
1871
|
{
|
|
1866
|
-
address: z5.string().describe("Wallet address")
|
|
1872
|
+
address: z5.string().describe("Wallet address"),
|
|
1873
|
+
period: z5.string().describe(
|
|
1874
|
+
"Time period (required). Try: day, week, month, allTime"
|
|
1875
|
+
)
|
|
1867
1876
|
},
|
|
1868
|
-
async ({ address }) => {
|
|
1877
|
+
async ({ address, period }) => {
|
|
1869
1878
|
try {
|
|
1870
1879
|
return ok5(
|
|
1871
1880
|
await apiGet(
|
|
1872
|
-
`/api/upgrade/v2/hl/traders/${address}/performance-by-coin
|
|
1881
|
+
`/api/upgrade/v2/hl/traders/${address}/performance-by-coin`,
|
|
1882
|
+
{ period }
|
|
1873
1883
|
)
|
|
1874
1884
|
);
|
|
1875
1885
|
} catch (e) {
|