clodds 1.1.0
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/LICENSE +21 -0
- package/README.md +468 -0
- package/dist/acp/agreement.d.ts +110 -0
- package/dist/acp/agreement.js +514 -0
- package/dist/acp/agreement.js.map +1 -0
- package/dist/acp/discovery.d.ts +84 -0
- package/dist/acp/discovery.js +332 -0
- package/dist/acp/discovery.js.map +1 -0
- package/dist/acp/escrow.d.ts +139 -0
- package/dist/acp/escrow.js +880 -0
- package/dist/acp/escrow.js.map +1 -0
- package/dist/acp/identity.d.ts +135 -0
- package/dist/acp/identity.js +716 -0
- package/dist/acp/identity.js.map +1 -0
- package/dist/acp/index.d.ts +205 -0
- package/dist/acp/index.js +583 -0
- package/dist/acp/index.js.map +1 -0
- package/dist/acp/persistence.d.ts +59 -0
- package/dist/acp/persistence.js +590 -0
- package/dist/acp/persistence.js.map +1 -0
- package/dist/acp/predictions.d.ts +89 -0
- package/dist/acp/predictions.js +417 -0
- package/dist/acp/predictions.js.map +1 -0
- package/dist/acp/registry.d.ts +143 -0
- package/dist/acp/registry.js +584 -0
- package/dist/acp/registry.js.map +1 -0
- package/dist/agents/handlers/acp.d.ts +12 -0
- package/dist/agents/handlers/acp.js +987 -0
- package/dist/agents/handlers/acp.js.map +1 -0
- package/dist/agents/handlers/agentbets.d.ts +8 -0
- package/dist/agents/handlers/agentbets.js +63 -0
- package/dist/agents/handlers/agentbets.js.map +1 -0
- package/dist/agents/handlers/arbitrage.d.ts +16 -0
- package/dist/agents/handlers/arbitrage.js +187 -0
- package/dist/agents/handlers/arbitrage.js.map +1 -0
- package/dist/agents/handlers/betfair.d.ts +11 -0
- package/dist/agents/handlers/betfair.js +214 -0
- package/dist/agents/handlers/betfair.js.map +1 -0
- package/dist/agents/handlers/binance.d.ts +9 -0
- package/dist/agents/handlers/binance.js +227 -0
- package/dist/agents/handlers/binance.js.map +1 -0
- package/dist/agents/handlers/bittensor.d.ts +10 -0
- package/dist/agents/handlers/bittensor.js +90 -0
- package/dist/agents/handlers/bittensor.js.map +1 -0
- package/dist/agents/handlers/bybit.d.ts +9 -0
- package/dist/agents/handlers/bybit.js +226 -0
- package/dist/agents/handlers/bybit.js.map +1 -0
- package/dist/agents/handlers/credentials.d.ts +8 -0
- package/dist/agents/handlers/credentials.js +103 -0
- package/dist/agents/handlers/credentials.js.map +1 -0
- package/dist/agents/handlers/hyperliquid.d.ts +9 -0
- package/dist/agents/handlers/hyperliquid.js +326 -0
- package/dist/agents/handlers/hyperliquid.js.map +1 -0
- package/dist/agents/handlers/index.d.ts +82 -0
- package/dist/agents/handlers/index.js +143 -0
- package/dist/agents/handlers/index.js.map +1 -0
- package/dist/agents/handlers/kalshi.d.ts +10 -0
- package/dist/agents/handlers/kalshi.js +1377 -0
- package/dist/agents/handlers/kalshi.js.map +1 -0
- package/dist/agents/handlers/manifold.d.ts +9 -0
- package/dist/agents/handlers/manifold.js +1001 -0
- package/dist/agents/handlers/manifold.js.map +1 -0
- package/dist/agents/handlers/markets.d.ts +8 -0
- package/dist/agents/handlers/markets.js +321 -0
- package/dist/agents/handlers/markets.js.map +1 -0
- package/dist/agents/handlers/opinion.d.ts +11 -0
- package/dist/agents/handlers/opinion.js +374 -0
- package/dist/agents/handlers/opinion.js.map +1 -0
- package/dist/agents/handlers/paper-trading.d.ts +8 -0
- package/dist/agents/handlers/paper-trading.js +124 -0
- package/dist/agents/handlers/paper-trading.js.map +1 -0
- package/dist/agents/handlers/polymarket.d.ts +17 -0
- package/dist/agents/handlers/polymarket.js +455 -0
- package/dist/agents/handlers/polymarket.js.map +1 -0
- package/dist/agents/handlers/predictfun.d.ts +9 -0
- package/dist/agents/handlers/predictfun.js +488 -0
- package/dist/agents/handlers/predictfun.js.map +1 -0
- package/dist/agents/handlers/smarkets.d.ts +11 -0
- package/dist/agents/handlers/smarkets.js +205 -0
- package/dist/agents/handlers/smarkets.js.map +1 -0
- package/dist/agents/handlers/solana.d.ts +14 -0
- package/dist/agents/handlers/solana.js +1530 -0
- package/dist/agents/handlers/solana.js.map +1 -0
- package/dist/agents/handlers/types.d.ts +58 -0
- package/dist/agents/handlers/types.js +34 -0
- package/dist/agents/handlers/types.js.map +1 -0
- package/dist/agents/handlers/virtuals.d.ts +11 -0
- package/dist/agents/handlers/virtuals.js +135 -0
- package/dist/agents/handlers/virtuals.js.map +1 -0
- package/dist/agents/handlers/wallets.d.ts +9 -0
- package/dist/agents/handlers/wallets.js +222 -0
- package/dist/agents/handlers/wallets.js.map +1 -0
- package/dist/agents/index.d.ts +79 -0
- package/dist/agents/index.js +16690 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/subagents.d.ts +219 -0
- package/dist/agents/subagents.js +736 -0
- package/dist/agents/subagents.js.map +1 -0
- package/dist/alerts/index.d.ts +110 -0
- package/dist/alerts/index.js +421 -0
- package/dist/alerts/index.js.map +1 -0
- package/dist/alerts/realtime.d.ts +114 -0
- package/dist/alerts/realtime.js +262 -0
- package/dist/alerts/realtime.js.map +1 -0
- package/dist/api/apikeys.d.ts +74 -0
- package/dist/api/apikeys.js +319 -0
- package/dist/api/apikeys.js.map +1 -0
- package/dist/api/compute/code.d.ts +28 -0
- package/dist/api/compute/code.js +257 -0
- package/dist/api/compute/code.js.map +1 -0
- package/dist/api/compute/data.d.ts +72 -0
- package/dist/api/compute/data.js +264 -0
- package/dist/api/compute/data.js.map +1 -0
- package/dist/api/compute/gateway.d.ts +185 -0
- package/dist/api/compute/gateway.js +958 -0
- package/dist/api/compute/gateway.js.map +1 -0
- package/dist/api/compute/index.d.ts +21 -0
- package/dist/api/compute/index.js +46 -0
- package/dist/api/compute/index.js.map +1 -0
- package/dist/api/compute/llm.d.ts +64 -0
- package/dist/api/compute/llm.js +602 -0
- package/dist/api/compute/llm.js.map +1 -0
- package/dist/api/compute/persistence.d.ts +77 -0
- package/dist/api/compute/persistence.js +251 -0
- package/dist/api/compute/persistence.js.map +1 -0
- package/dist/api/compute/storage.d.ts +48 -0
- package/dist/api/compute/storage.js +283 -0
- package/dist/api/compute/storage.js.map +1 -0
- package/dist/api/compute/trade.d.ts +69 -0
- package/dist/api/compute/trade.js +460 -0
- package/dist/api/compute/trade.js.map +1 -0
- package/dist/api/compute/types.d.ts +271 -0
- package/dist/api/compute/types.js +87 -0
- package/dist/api/compute/types.js.map +1 -0
- package/dist/api/compute/web.d.ts +29 -0
- package/dist/api/compute/web.js +255 -0
- package/dist/api/compute/web.js.map +1 -0
- package/dist/api/custody.d.ts +48 -0
- package/dist/api/custody.js +272 -0
- package/dist/api/custody.js.map +1 -0
- package/dist/api/fees.d.ts +91 -0
- package/dist/api/fees.js +155 -0
- package/dist/api/fees.js.map +1 -0
- package/dist/api/gateway.d.ts +40 -0
- package/dist/api/gateway.js +569 -0
- package/dist/api/gateway.js.map +1 -0
- package/dist/api/index.d.ts +29 -0
- package/dist/api/index.js +55 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/jobs.d.ts +59 -0
- package/dist/api/jobs.js +362 -0
- package/dist/api/jobs.js.map +1 -0
- package/dist/api/middleware.d.ts +60 -0
- package/dist/api/middleware.js +315 -0
- package/dist/api/middleware.js.map +1 -0
- package/dist/api/prompt.d.ts +44 -0
- package/dist/api/prompt.js +345 -0
- package/dist/api/prompt.js.map +1 -0
- package/dist/api/sdk.d.ts +258 -0
- package/dist/api/sdk.js +341 -0
- package/dist/api/sdk.js.map +1 -0
- package/dist/api/server.d.ts +17 -0
- package/dist/api/server.js +852 -0
- package/dist/api/server.js.map +1 -0
- package/dist/api/types.d.ts +307 -0
- package/dist/api/types.js +64 -0
- package/dist/api/types.js.map +1 -0
- package/dist/arbitrage/index.d.ts +124 -0
- package/dist/arbitrage/index.js +482 -0
- package/dist/arbitrage/index.js.map +1 -0
- package/dist/auth/copilot.d.ts +87 -0
- package/dist/auth/copilot.js +328 -0
- package/dist/auth/copilot.js.map +1 -0
- package/dist/auth/google.d.ts +121 -0
- package/dist/auth/google.js +479 -0
- package/dist/auth/google.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.js +25 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/oauth.d.ts +94 -0
- package/dist/auth/oauth.js +502 -0
- package/dist/auth/oauth.js.map +1 -0
- package/dist/auth/qwen.d.ts +110 -0
- package/dist/auth/qwen.js +351 -0
- package/dist/auth/qwen.js.map +1 -0
- package/dist/auto-reply/index.d.ts +143 -0
- package/dist/auto-reply/index.js +391 -0
- package/dist/auto-reply/index.js.map +1 -0
- package/dist/automation/cron.d.ts +66 -0
- package/dist/automation/cron.js +226 -0
- package/dist/automation/cron.js.map +1 -0
- package/dist/automation/heartbeats.d.ts +63 -0
- package/dist/automation/heartbeats.js +144 -0
- package/dist/automation/heartbeats.js.map +1 -0
- package/dist/automation/index.d.ts +9 -0
- package/dist/automation/index.js +15 -0
- package/dist/automation/index.js.map +1 -0
- package/dist/automation/webhooks.d.ts +60 -0
- package/dist/automation/webhooks.js +225 -0
- package/dist/automation/webhooks.js.map +1 -0
- package/dist/bankr/client.d.ts +86 -0
- package/dist/bankr/client.js +177 -0
- package/dist/bankr/client.js.map +1 -0
- package/dist/bankr/index.d.ts +6 -0
- package/dist/bankr/index.js +23 -0
- package/dist/bankr/index.js.map +1 -0
- package/dist/base/index.d.ts +6 -0
- package/dist/base/index.js +23 -0
- package/dist/base/index.js.map +1 -0
- package/dist/base/provider.d.ts +27 -0
- package/dist/base/provider.js +128 -0
- package/dist/base/provider.js.map +1 -0
- package/dist/bin/worker.d.ts +31 -0
- package/dist/bin/worker.js +127 -0
- package/dist/bin/worker.js.map +1 -0
- package/dist/bittensor/chutes.d.ts +14 -0
- package/dist/bittensor/chutes.js +141 -0
- package/dist/bittensor/chutes.js.map +1 -0
- package/dist/bittensor/index.d.ts +7 -0
- package/dist/bittensor/index.js +13 -0
- package/dist/bittensor/index.js.map +1 -0
- package/dist/bittensor/persistence.d.ts +8 -0
- package/dist/bittensor/persistence.js +188 -0
- package/dist/bittensor/persistence.js.map +1 -0
- package/dist/bittensor/plugin.d.ts +30 -0
- package/dist/bittensor/plugin.js +134 -0
- package/dist/bittensor/plugin.js.map +1 -0
- package/dist/bittensor/python-runner.d.ts +7 -0
- package/dist/bittensor/python-runner.js +83 -0
- package/dist/bittensor/python-runner.js.map +1 -0
- package/dist/bittensor/server.d.ts +7 -0
- package/dist/bittensor/server.js +110 -0
- package/dist/bittensor/server.js.map +1 -0
- package/dist/bittensor/service.d.ts +7 -0
- package/dist/bittensor/service.js +291 -0
- package/dist/bittensor/service.js.map +1 -0
- package/dist/bittensor/tool.d.ts +45 -0
- package/dist/bittensor/tool.js +147 -0
- package/dist/bittensor/tool.js.map +1 -0
- package/dist/bittensor/types.d.ts +188 -0
- package/dist/bittensor/types.js +6 -0
- package/dist/bittensor/types.js.map +1 -0
- package/dist/bittensor/wallet.d.ts +18 -0
- package/dist/bittensor/wallet.js +192 -0
- package/dist/bittensor/wallet.js.map +1 -0
- package/dist/bridge/wormhole.d.ts +239 -0
- package/dist/bridge/wormhole.js +404 -0
- package/dist/bridge/wormhole.js.map +1 -0
- package/dist/browser/index.d.ts +67 -0
- package/dist/browser/index.js +458 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/cache/index.d.ts +105 -0
- package/dist/cache/index.js +306 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/canvas/index.d.ts +66 -0
- package/dist/canvas/index.js +391 -0
- package/dist/canvas/index.js.map +1 -0
- package/dist/channels/base-adapter.d.ts +126 -0
- package/dist/channels/base-adapter.js +416 -0
- package/dist/channels/base-adapter.js.map +1 -0
- package/dist/channels/bluebubbles/index.d.ts +23 -0
- package/dist/channels/bluebubbles/index.js +182 -0
- package/dist/channels/bluebubbles/index.js.map +1 -0
- package/dist/channels/discord/index.d.ts +25 -0
- package/dist/channels/discord/index.js +419 -0
- package/dist/channels/discord/index.js.map +1 -0
- package/dist/channels/googlechat/index.d.ts +35 -0
- package/dist/channels/googlechat/index.js +223 -0
- package/dist/channels/googlechat/index.js.map +1 -0
- package/dist/channels/imessage/index.d.ts +28 -0
- package/dist/channels/imessage/index.js +340 -0
- package/dist/channels/imessage/index.js.map +1 -0
- package/dist/channels/index.d.ts +58 -0
- package/dist/channels/index.js +382 -0
- package/dist/channels/index.js.map +1 -0
- package/dist/channels/line/index.d.ts +307 -0
- package/dist/channels/line/index.js +760 -0
- package/dist/channels/line/index.js.map +1 -0
- package/dist/channels/matrix/index.d.ts +35 -0
- package/dist/channels/matrix/index.js +328 -0
- package/dist/channels/matrix/index.js.map +1 -0
- package/dist/channels/mattermost/index.d.ts +25 -0
- package/dist/channels/mattermost/index.js +239 -0
- package/dist/channels/mattermost/index.js.map +1 -0
- package/dist/channels/nextcloud-talk/index.d.ts +25 -0
- package/dist/channels/nextcloud-talk/index.js +175 -0
- package/dist/channels/nextcloud-talk/index.js.map +1 -0
- package/dist/channels/nostr/index.d.ts +21 -0
- package/dist/channels/nostr/index.js +278 -0
- package/dist/channels/nostr/index.js.map +1 -0
- package/dist/channels/signal/index.d.ts +33 -0
- package/dist/channels/signal/index.js +333 -0
- package/dist/channels/signal/index.js.map +1 -0
- package/dist/channels/slack/index.d.ts +26 -0
- package/dist/channels/slack/index.js +266 -0
- package/dist/channels/slack/index.js.map +1 -0
- package/dist/channels/teams/index.d.ts +42 -0
- package/dist/channels/teams/index.js +312 -0
- package/dist/channels/teams/index.js.map +1 -0
- package/dist/channels/telegram/index.d.ts +9 -0
- package/dist/channels/telegram/index.js +761 -0
- package/dist/channels/telegram/index.js.map +1 -0
- package/dist/channels/tlon/index.d.ts +25 -0
- package/dist/channels/tlon/index.js +236 -0
- package/dist/channels/tlon/index.js.map +1 -0
- package/dist/channels/twitch/index.d.ts +25 -0
- package/dist/channels/twitch/index.js +182 -0
- package/dist/channels/twitch/index.js.map +1 -0
- package/dist/channels/voice/index.d.ts +31 -0
- package/dist/channels/voice/index.js +208 -0
- package/dist/channels/voice/index.js.map +1 -0
- package/dist/channels/webchat/index.d.ts +29 -0
- package/dist/channels/webchat/index.js +366 -0
- package/dist/channels/webchat/index.js.map +1 -0
- package/dist/channels/whatsapp/index.d.ts +72 -0
- package/dist/channels/whatsapp/index.js +767 -0
- package/dist/channels/whatsapp/index.js.map +1 -0
- package/dist/channels/zalo/index.d.ts +45 -0
- package/dist/channels/zalo/index.js +285 -0
- package/dist/channels/zalo/index.js.map +1 -0
- package/dist/cli/commands/doctor.d.ts +23 -0
- package/dist/cli/commands/doctor.js +649 -0
- package/dist/cli/commands/doctor.js.map +1 -0
- package/dist/cli/commands/gateway.d.ts +6 -0
- package/dist/cli/commands/gateway.js +32 -0
- package/dist/cli/commands/gateway.js.map +1 -0
- package/dist/cli/commands/index.d.ts +31 -0
- package/dist/cli/commands/index.js +3743 -0
- package/dist/cli/commands/index.js.map +1 -0
- package/dist/cli/commands/onboard.d.ts +4 -0
- package/dist/cli/commands/onboard.js +334 -0
- package/dist/cli/commands/onboard.js.map +1 -0
- package/dist/cli/commands/repl.d.ts +11 -0
- package/dist/cli/commands/repl.js +185 -0
- package/dist/cli/commands/repl.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +29 -0
- package/dist/cli/commands/skills.js +297 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/index.d.ts +12 -0
- package/dist/cli/index.js +449 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/secure.d.ts +14 -0
- package/dist/cli/secure.js +626 -0
- package/dist/cli/secure.js.map +1 -0
- package/dist/commands/index.d.ts +61 -0
- package/dist/commands/index.js +290 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/registry.d.ts +69 -0
- package/dist/commands/registry.js +3142 -0
- package/dist/commands/registry.js.map +1 -0
- package/dist/config/index.d.ts +465 -0
- package/dist/config/index.js +1451 -0
- package/dist/config/index.js.map +1 -0
- package/dist/credentials/index.d.ts +51 -0
- package/dist/credentials/index.js +270 -0
- package/dist/credentials/index.js.map +1 -0
- package/dist/cron/index.d.ts +151 -0
- package/dist/cron/index.js +1283 -0
- package/dist/cron/index.js.map +1 -0
- package/dist/cron/types.d.ts +102 -0
- package/dist/cron/types.js +6 -0
- package/dist/cron/types.js.map +1 -0
- package/dist/daemon/index.d.ts +23 -0
- package/dist/daemon/index.js +159 -0
- package/dist/daemon/index.js.map +1 -0
- package/dist/db/index.d.ts +825 -0
- package/dist/db/index.js +3382 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrations.d.ts +70 -0
- package/dist/db/migrations.js +1373 -0
- package/dist/db/migrations.js.map +1 -0
- package/dist/docker/index.d.ts +188 -0
- package/dist/docker/index.js +571 -0
- package/dist/docker/index.js.map +1 -0
- package/dist/doctor/index.d.ts +47 -0
- package/dist/doctor/index.js +379 -0
- package/dist/doctor/index.js.map +1 -0
- package/dist/embeddings/index.d.ts +65 -0
- package/dist/embeddings/index.js +399 -0
- package/dist/embeddings/index.js.map +1 -0
- package/dist/evm/contracts.d.ts +112 -0
- package/dist/evm/contracts.js +332 -0
- package/dist/evm/contracts.js.map +1 -0
- package/dist/evm/index.d.ts +21 -0
- package/dist/evm/index.js +45 -0
- package/dist/evm/index.js.map +1 -0
- package/dist/evm/multichain.d.ts +87 -0
- package/dist/evm/multichain.js +308 -0
- package/dist/evm/multichain.js.map +1 -0
- package/dist/evm/odos.d.ts +62 -0
- package/dist/evm/odos.js +261 -0
- package/dist/evm/odos.js.map +1 -0
- package/dist/evm/oneinch.d.ts +55 -0
- package/dist/evm/oneinch.js +324 -0
- package/dist/evm/oneinch.js.map +1 -0
- package/dist/evm/transfers.d.ts +83 -0
- package/dist/evm/transfers.js +393 -0
- package/dist/evm/transfers.js.map +1 -0
- package/dist/evm/uniswap.d.ts +56 -0
- package/dist/evm/uniswap.js +307 -0
- package/dist/evm/uniswap.js.map +1 -0
- package/dist/evm/virtuals.d.ts +220 -0
- package/dist/evm/virtuals.js +735 -0
- package/dist/evm/virtuals.js.map +1 -0
- package/dist/evm/wallet.d.ts +96 -0
- package/dist/evm/wallet.js +258 -0
- package/dist/evm/wallet.js.map +1 -0
- package/dist/exchanges/binance-futures/index.d.ts +83 -0
- package/dist/exchanges/binance-futures/index.js +394 -0
- package/dist/exchanges/binance-futures/index.js.map +1 -0
- package/dist/exchanges/bybit/index.d.ts +78 -0
- package/dist/exchanges/bybit/index.js +379 -0
- package/dist/exchanges/bybit/index.js.map +1 -0
- package/dist/exchanges/hyperliquid/index.d.ts +594 -0
- package/dist/exchanges/hyperliquid/index.js +1101 -0
- package/dist/exchanges/hyperliquid/index.js.map +1 -0
- package/dist/exchanges/mexc/index.d.ts +80 -0
- package/dist/exchanges/mexc/index.js +389 -0
- package/dist/exchanges/mexc/index.js.map +1 -0
- package/dist/exchanges/opinion/index.d.ts +128 -0
- package/dist/exchanges/opinion/index.js +443 -0
- package/dist/exchanges/opinion/index.js.map +1 -0
- package/dist/exchanges/predictfun/index.d.ts +107 -0
- package/dist/exchanges/predictfun/index.js +398 -0
- package/dist/exchanges/predictfun/index.js.map +1 -0
- package/dist/execution/auto-redeem.d.ts +55 -0
- package/dist/execution/auto-redeem.js +324 -0
- package/dist/execution/auto-redeem.js.map +1 -0
- package/dist/execution/bracket-orders.d.ts +84 -0
- package/dist/execution/bracket-orders.js +387 -0
- package/dist/execution/bracket-orders.js.map +1 -0
- package/dist/execution/circuit-breaker.d.ts +87 -0
- package/dist/execution/circuit-breaker.js +274 -0
- package/dist/execution/circuit-breaker.js.map +1 -0
- package/dist/execution/dca-persistence.d.ts +47 -0
- package/dist/execution/dca-persistence.js +159 -0
- package/dist/execution/dca-persistence.js.map +1 -0
- package/dist/execution/dca.d.ts +60 -0
- package/dist/execution/dca.js +273 -0
- package/dist/execution/dca.js.map +1 -0
- package/dist/execution/futures.d.ts +162 -0
- package/dist/execution/futures.js +1336 -0
- package/dist/execution/futures.js.map +1 -0
- package/dist/execution/index.d.ts +346 -0
- package/dist/execution/index.js +2532 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/execution/mev-protection.d.ts +150 -0
- package/dist/execution/mev-protection.js +377 -0
- package/dist/execution/mev-protection.js.map +1 -0
- package/dist/execution/order-persistence.d.ts +81 -0
- package/dist/execution/order-persistence.js +350 -0
- package/dist/execution/order-persistence.js.map +1 -0
- package/dist/execution/position-manager.d.ts +142 -0
- package/dist/execution/position-manager.js +404 -0
- package/dist/execution/position-manager.js.map +1 -0
- package/dist/execution/smart-router.d.ts +90 -0
- package/dist/execution/smart-router.js +323 -0
- package/dist/execution/smart-router.js.map +1 -0
- package/dist/execution/trigger-orders.d.ts +81 -0
- package/dist/execution/trigger-orders.js +266 -0
- package/dist/execution/trigger-orders.js.map +1 -0
- package/dist/execution/twap.d.ts +87 -0
- package/dist/execution/twap.js +405 -0
- package/dist/execution/twap.js.map +1 -0
- package/dist/extensions/copilot-proxy/index.d.ts +49 -0
- package/dist/extensions/copilot-proxy/index.js +204 -0
- package/dist/extensions/copilot-proxy/index.js.map +1 -0
- package/dist/extensions/diagnostics-otel/index.d.ts +54 -0
- package/dist/extensions/diagnostics-otel/index.js +290 -0
- package/dist/extensions/diagnostics-otel/index.js.map +1 -0
- package/dist/extensions/google-auth/index.d.ts +71 -0
- package/dist/extensions/google-auth/index.js +350 -0
- package/dist/extensions/google-auth/index.js.map +1 -0
- package/dist/extensions/index.d.ts +11 -0
- package/dist/extensions/index.js +29 -0
- package/dist/extensions/index.js.map +1 -0
- package/dist/extensions/llm-task/index.d.ts +80 -0
- package/dist/extensions/llm-task/index.js +248 -0
- package/dist/extensions/llm-task/index.js.map +1 -0
- package/dist/extensions/lobster/index.d.ts +69 -0
- package/dist/extensions/lobster/index.js +178 -0
- package/dist/extensions/lobster/index.js.map +1 -0
- package/dist/extensions/memory-lancedb/index.d.ts +62 -0
- package/dist/extensions/memory-lancedb/index.js +343 -0
- package/dist/extensions/memory-lancedb/index.js.map +1 -0
- package/dist/extensions/open-prose/index.d.ts +82 -0
- package/dist/extensions/open-prose/index.js +565 -0
- package/dist/extensions/open-prose/index.js.map +1 -0
- package/dist/extensions/qwen-portal/index.d.ts +48 -0
- package/dist/extensions/qwen-portal/index.js +161 -0
- package/dist/extensions/qwen-portal/index.js.map +1 -0
- package/dist/extensions/task-runner/index.d.ts +121 -0
- package/dist/extensions/task-runner/index.js +640 -0
- package/dist/extensions/task-runner/index.js.map +1 -0
- package/dist/farcaster/client.d.ts +101 -0
- package/dist/farcaster/client.js +282 -0
- package/dist/farcaster/client.js.map +1 -0
- package/dist/farcaster/index.d.ts +4 -0
- package/dist/farcaster/index.js +21 -0
- package/dist/farcaster/index.js.map +1 -0
- package/dist/feeds/acled/index.d.ts +86 -0
- package/dist/feeds/acled/index.js +215 -0
- package/dist/feeds/acled/index.js.map +1 -0
- package/dist/feeds/agentbets/index.d.ts +17 -0
- package/dist/feeds/agentbets/index.js +137 -0
- package/dist/feeds/agentbets/index.js.map +1 -0
- package/dist/feeds/betfair/index.d.ts +132 -0
- package/dist/feeds/betfair/index.js +640 -0
- package/dist/feeds/betfair/index.js.map +1 -0
- package/dist/feeds/crypto/index.d.ts +101 -0
- package/dist/feeds/crypto/index.js +506 -0
- package/dist/feeds/crypto/index.js.map +1 -0
- package/dist/feeds/crypto/whale-tracker.d.ts +138 -0
- package/dist/feeds/crypto/whale-tracker.js +685 -0
- package/dist/feeds/crypto/whale-tracker.js.map +1 -0
- package/dist/feeds/descriptors.d.ts +14 -0
- package/dist/feeds/descriptors.js +582 -0
- package/dist/feeds/descriptors.js.map +1 -0
- package/dist/feeds/drift/index.d.ts +23 -0
- package/dist/feeds/drift/index.js +182 -0
- package/dist/feeds/drift/index.js.map +1 -0
- package/dist/feeds/drift/trading.d.ts +75 -0
- package/dist/feeds/drift/trading.js +457 -0
- package/dist/feeds/drift/trading.js.map +1 -0
- package/dist/feeds/external/index.d.ts +48 -0
- package/dist/feeds/external/index.js +575 -0
- package/dist/feeds/external/index.js.map +1 -0
- package/dist/feeds/fred/index.d.ts +134 -0
- package/dist/feeds/fred/index.js +263 -0
- package/dist/feeds/fred/index.js.map +1 -0
- package/dist/feeds/freshness.d.ts +79 -0
- package/dist/feeds/freshness.js +259 -0
- package/dist/feeds/freshness.js.map +1 -0
- package/dist/feeds/hedgehog/index.d.ts +24 -0
- package/dist/feeds/hedgehog/index.js +589 -0
- package/dist/feeds/hedgehog/index.js.map +1 -0
- package/dist/feeds/hedgehog/types.d.ts +215 -0
- package/dist/feeds/hedgehog/types.js +7 -0
- package/dist/feeds/hedgehog/types.js.map +1 -0
- package/dist/feeds/index.d.ts +38 -0
- package/dist/feeds/index.js +469 -0
- package/dist/feeds/index.js.map +1 -0
- package/dist/feeds/kalshi/index.d.ts +116 -0
- package/dist/feeds/kalshi/index.js +970 -0
- package/dist/feeds/kalshi/index.js.map +1 -0
- package/dist/feeds/manifold/index.d.ts +15 -0
- package/dist/feeds/manifold/index.js +269 -0
- package/dist/feeds/manifold/index.js.map +1 -0
- package/dist/feeds/metaculus/index.d.ts +22 -0
- package/dist/feeds/metaculus/index.js +149 -0
- package/dist/feeds/metaculus/index.js.map +1 -0
- package/dist/feeds/news/index.d.ts +20 -0
- package/dist/feeds/news/index.js +308 -0
- package/dist/feeds/news/index.js.map +1 -0
- package/dist/feeds/opinion/index.d.ts +31 -0
- package/dist/feeds/opinion/index.js +389 -0
- package/dist/feeds/opinion/index.js.map +1 -0
- package/dist/feeds/polymarket/index.d.ts +21 -0
- package/dist/feeds/polymarket/index.js +501 -0
- package/dist/feeds/polymarket/index.js.map +1 -0
- package/dist/feeds/polymarket/rtds.d.ts +40 -0
- package/dist/feeds/polymarket/rtds.js +159 -0
- package/dist/feeds/polymarket/rtds.js.map +1 -0
- package/dist/feeds/polymarket/user-ws.d.ts +64 -0
- package/dist/feeds/polymarket/user-ws.js +230 -0
- package/dist/feeds/polymarket/user-ws.js.map +1 -0
- package/dist/feeds/polymarket/whale-tracker.d.ts +152 -0
- package/dist/feeds/polymarket/whale-tracker.js +709 -0
- package/dist/feeds/polymarket/whale-tracker.js.map +1 -0
- package/dist/feeds/predictfun/index.d.ts +24 -0
- package/dist/feeds/predictfun/index.js +234 -0
- package/dist/feeds/predictfun/index.js.map +1 -0
- package/dist/feeds/predictit/index.d.ts +14 -0
- package/dist/feeds/predictit/index.js +88 -0
- package/dist/feeds/predictit/index.js.map +1 -0
- package/dist/feeds/registry.d.ts +148 -0
- package/dist/feeds/registry.js +197 -0
- package/dist/feeds/registry.js.map +1 -0
- package/dist/feeds/smarkets/index.d.ts +76 -0
- package/dist/feeds/smarkets/index.js +415 -0
- package/dist/feeds/smarkets/index.js.map +1 -0
- package/dist/feeds/virtuals/index.d.ts +92 -0
- package/dist/feeds/virtuals/index.js +341 -0
- package/dist/feeds/virtuals/index.js.map +1 -0
- package/dist/feeds/weather-nws/index.d.ts +73 -0
- package/dist/feeds/weather-nws/index.js +162 -0
- package/dist/feeds/weather-nws/index.js.map +1 -0
- package/dist/feeds/weather-openmeteo/index.d.ts +80 -0
- package/dist/feeds/weather-openmeteo/index.js +197 -0
- package/dist/feeds/weather-openmeteo/index.js.map +1 -0
- package/dist/gateway/alerts-routes.d.ts +15 -0
- package/dist/gateway/alerts-routes.js +188 -0
- package/dist/gateway/alerts-routes.js.map +1 -0
- package/dist/gateway/alt-data-routes.d.ts +15 -0
- package/dist/gateway/alt-data-routes.js +67 -0
- package/dist/gateway/alt-data-routes.js.map +1 -0
- package/dist/gateway/api-routes.d.ts +39 -0
- package/dist/gateway/api-routes.js +1028 -0
- package/dist/gateway/api-routes.js.map +1 -0
- package/dist/gateway/audit-routes.d.ts +8 -0
- package/dist/gateway/audit-routes.js +61 -0
- package/dist/gateway/audit-routes.js.map +1 -0
- package/dist/gateway/bracket-routes.d.ts +12 -0
- package/dist/gateway/bracket-routes.js +122 -0
- package/dist/gateway/bracket-routes.js.map +1 -0
- package/dist/gateway/control-ui.d.ts +45 -0
- package/dist/gateway/control-ui.js +301 -0
- package/dist/gateway/control-ui.js.map +1 -0
- package/dist/gateway/copy-trading-routes.d.ts +12 -0
- package/dist/gateway/copy-trading-routes.js +159 -0
- package/dist/gateway/copy-trading-routes.js.map +1 -0
- package/dist/gateway/cron-routes.d.ts +14 -0
- package/dist/gateway/cron-routes.js +132 -0
- package/dist/gateway/cron-routes.js.map +1 -0
- package/dist/gateway/dca-routes.d.ts +8 -0
- package/dist/gateway/dca-routes.js +179 -0
- package/dist/gateway/dca-routes.js.map +1 -0
- package/dist/gateway/embeddings-routes.d.ts +12 -0
- package/dist/gateway/embeddings-routes.js +102 -0
- package/dist/gateway/embeddings-routes.js.map +1 -0
- package/dist/gateway/feeds-routes.d.ts +34 -0
- package/dist/gateway/feeds-routes.js +167 -0
- package/dist/gateway/feeds-routes.js.map +1 -0
- package/dist/gateway/index.d.ts +100 -0
- package/dist/gateway/index.js +2321 -0
- package/dist/gateway/index.js.map +1 -0
- package/dist/gateway/monitoring-routes.d.ts +12 -0
- package/dist/gateway/monitoring-routes.js +73 -0
- package/dist/gateway/monitoring-routes.js.map +1 -0
- package/dist/gateway/opportunity-routes.d.ts +12 -0
- package/dist/gateway/opportunity-routes.js +238 -0
- package/dist/gateway/opportunity-routes.js.map +1 -0
- package/dist/gateway/payments-routes.d.ts +14 -0
- package/dist/gateway/payments-routes.js +82 -0
- package/dist/gateway/payments-routes.js.map +1 -0
- package/dist/gateway/percolator-routes.d.ts +16 -0
- package/dist/gateway/percolator-routes.js +139 -0
- package/dist/gateway/percolator-routes.js.map +1 -0
- package/dist/gateway/queue-routes.d.ts +12 -0
- package/dist/gateway/queue-routes.js +47 -0
- package/dist/gateway/queue-routes.js.map +1 -0
- package/dist/gateway/risk-routes.d.ts +12 -0
- package/dist/gateway/risk-routes.js +119 -0
- package/dist/gateway/risk-routes.js.map +1 -0
- package/dist/gateway/routing-routes.d.ts +12 -0
- package/dist/gateway/routing-routes.js +86 -0
- package/dist/gateway/routing-routes.js.map +1 -0
- package/dist/gateway/server.d.ts +215 -0
- package/dist/gateway/server.js +2287 -0
- package/dist/gateway/server.js.map +1 -0
- package/dist/gateway/shield-routes.d.ts +8 -0
- package/dist/gateway/shield-routes.js +88 -0
- package/dist/gateway/shield-routes.js.map +1 -0
- package/dist/gateway/signal-bus.d.ts +51 -0
- package/dist/gateway/signal-bus.js +64 -0
- package/dist/gateway/signal-bus.js.map +1 -0
- package/dist/gateway/trigger-routes.d.ts +12 -0
- package/dist/gateway/trigger-routes.js +127 -0
- package/dist/gateway/trigger-routes.js.map +1 -0
- package/dist/gateway/twap-routes.d.ts +12 -0
- package/dist/gateway/twap-routes.js +142 -0
- package/dist/gateway/twap-routes.js.map +1 -0
- package/dist/gateway/webhooks-routes.d.ts +31 -0
- package/dist/gateway/webhooks-routes.js +107 -0
- package/dist/gateway/webhooks-routes.js.map +1 -0
- package/dist/gateway/whale-routes.d.ts +12 -0
- package/dist/gateway/whale-routes.js +204 -0
- package/dist/gateway/whale-routes.js.map +1 -0
- package/dist/history/index.d.ts +81 -0
- package/dist/history/index.js +362 -0
- package/dist/history/index.js.map +1 -0
- package/dist/hooks/index.d.ts +279 -0
- package/dist/hooks/index.js +739 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/i18n/index.d.ts +65 -0
- package/dist/i18n/index.js +183 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/identity/erc8004.d.ts +104 -0
- package/dist/identity/erc8004.js +493 -0
- package/dist/identity/erc8004.js.map +1 -0
- package/dist/identity/index.d.ts +1 -0
- package/dist/identity/index.js +18 -0
- package/dist/identity/index.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +240 -0
- package/dist/index.js.map +1 -0
- package/dist/infra/index.d.ts +133 -0
- package/dist/infra/index.js +481 -0
- package/dist/infra/index.js.map +1 -0
- package/dist/infra/retry.d.ts +132 -0
- package/dist/infra/retry.js +450 -0
- package/dist/infra/retry.js.map +1 -0
- package/dist/ledger/anchor.d.ts +45 -0
- package/dist/ledger/anchor.js +271 -0
- package/dist/ledger/anchor.js.map +1 -0
- package/dist/ledger/hash.d.ts +26 -0
- package/dist/ledger/hash.js +69 -0
- package/dist/ledger/hash.js.map +1 -0
- package/dist/ledger/hooks.d.ts +107 -0
- package/dist/ledger/hooks.js +314 -0
- package/dist/ledger/hooks.js.map +1 -0
- package/dist/ledger/index.d.ts +67 -0
- package/dist/ledger/index.js +221 -0
- package/dist/ledger/index.js.map +1 -0
- package/dist/ledger/storage.d.ts +57 -0
- package/dist/ledger/storage.js +368 -0
- package/dist/ledger/storage.js.map +1 -0
- package/dist/ledger/types.d.ts +138 -0
- package/dist/ledger/types.js +16 -0
- package/dist/ledger/types.js.map +1 -0
- package/dist/link-understanding/index.d.ts +61 -0
- package/dist/link-understanding/index.js +320 -0
- package/dist/link-understanding/index.js.map +1 -0
- package/dist/logging/index.d.ts +50 -0
- package/dist/logging/index.js +255 -0
- package/dist/logging/index.js.map +1 -0
- package/dist/macos/index.d.ts +143 -0
- package/dist/macos/index.js +587 -0
- package/dist/macos/index.js.map +1 -0
- package/dist/markdown/index.d.ts +43 -0
- package/dist/markdown/index.js +305 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/market-index/index.d.ts +51 -0
- package/dist/market-index/index.js +553 -0
- package/dist/market-index/index.js.map +1 -0
- package/dist/mcp/index.d.ts +263 -0
- package/dist/mcp/index.js +940 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/installer.d.ts +11 -0
- package/dist/mcp/installer.js +128 -0
- package/dist/mcp/installer.js.map +1 -0
- package/dist/mcp/server.d.ts +7 -0
- package/dist/mcp/server.js +172 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/media/index.d.ts +119 -0
- package/dist/media/index.js +740 -0
- package/dist/media/index.js.map +1 -0
- package/dist/memory/context.d.ts +189 -0
- package/dist/memory/context.js +541 -0
- package/dist/memory/context.js.map +1 -0
- package/dist/memory/index.d.ts +74 -0
- package/dist/memory/index.js +352 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/summarizer.d.ts +10 -0
- package/dist/memory/summarizer.js +51 -0
- package/dist/memory/summarizer.js.map +1 -0
- package/dist/memory/tokenizer.d.ts +4 -0
- package/dist/memory/tokenizer.js +61 -0
- package/dist/memory/tokenizer.js.map +1 -0
- package/dist/messages/unified.d.ts +7 -0
- package/dist/messages/unified.js +77 -0
- package/dist/messages/unified.js.map +1 -0
- package/dist/ml-pipeline/collector.d.ts +23 -0
- package/dist/ml-pipeline/collector.js +176 -0
- package/dist/ml-pipeline/collector.js.map +1 -0
- package/dist/ml-pipeline/index.d.ts +21 -0
- package/dist/ml-pipeline/index.js +72 -0
- package/dist/ml-pipeline/index.js.map +1 -0
- package/dist/ml-pipeline/trainer.d.ts +32 -0
- package/dist/ml-pipeline/trainer.js +228 -0
- package/dist/ml-pipeline/trainer.js.map +1 -0
- package/dist/ml-pipeline/types.d.ts +51 -0
- package/dist/ml-pipeline/types.js +23 -0
- package/dist/ml-pipeline/types.js.map +1 -0
- package/dist/models/adaptive.d.ts +11 -0
- package/dist/models/adaptive.js +64 -0
- package/dist/models/adaptive.js.map +1 -0
- package/dist/models/failover.d.ts +51 -0
- package/dist/models/failover.js +151 -0
- package/dist/models/failover.js.map +1 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +13 -0
- package/dist/models/index.js.map +1 -0
- package/dist/monitoring/alerts.d.ts +185 -0
- package/dist/monitoring/alerts.js +565 -0
- package/dist/monitoring/alerts.js.map +1 -0
- package/dist/monitoring/health.d.ts +151 -0
- package/dist/monitoring/health.js +423 -0
- package/dist/monitoring/health.js.map +1 -0
- package/dist/monitoring/index.d.ts +25 -0
- package/dist/monitoring/index.js +258 -0
- package/dist/monitoring/index.js.map +1 -0
- package/dist/monitoring/metrics.d.ts +147 -0
- package/dist/monitoring/metrics.js +519 -0
- package/dist/monitoring/metrics.js.map +1 -0
- package/dist/nodes/index.d.ts +81 -0
- package/dist/nodes/index.js +475 -0
- package/dist/nodes/index.js.map +1 -0
- package/dist/opportunity/analytics.d.ts +221 -0
- package/dist/opportunity/analytics.js +678 -0
- package/dist/opportunity/analytics.js.map +1 -0
- package/dist/opportunity/combinatorial.d.ts +147 -0
- package/dist/opportunity/combinatorial.js +765 -0
- package/dist/opportunity/combinatorial.js.map +1 -0
- package/dist/opportunity/correlation.d.ts +107 -0
- package/dist/opportunity/correlation.js +410 -0
- package/dist/opportunity/correlation.js.map +1 -0
- package/dist/opportunity/executor.d.ts +108 -0
- package/dist/opportunity/executor.js +356 -0
- package/dist/opportunity/executor.js.map +1 -0
- package/dist/opportunity/index.d.ts +285 -0
- package/dist/opportunity/index.js +839 -0
- package/dist/opportunity/index.js.map +1 -0
- package/dist/opportunity/links.d.ts +87 -0
- package/dist/opportunity/links.js +344 -0
- package/dist/opportunity/links.js.map +1 -0
- package/dist/opportunity/matching.d.ts +101 -0
- package/dist/opportunity/matching.js +551 -0
- package/dist/opportunity/matching.js.map +1 -0
- package/dist/opportunity/outcomes.d.ts +74 -0
- package/dist/opportunity/outcomes.js +321 -0
- package/dist/opportunity/outcomes.js.map +1 -0
- package/dist/opportunity/risk.d.ts +128 -0
- package/dist/opportunity/risk.js +381 -0
- package/dist/opportunity/risk.js.map +1 -0
- package/dist/opportunity/scoring.d.ts +151 -0
- package/dist/opportunity/scoring.js +421 -0
- package/dist/opportunity/scoring.js.map +1 -0
- package/dist/pairing/index.d.ts +108 -0
- package/dist/pairing/index.js +431 -0
- package/dist/pairing/index.js.map +1 -0
- package/dist/payments/index.d.ts +12 -0
- package/dist/payments/index.js +34 -0
- package/dist/payments/index.js.map +1 -0
- package/dist/payments/x402/evm.d.ts +53 -0
- package/dist/payments/x402/evm.js +282 -0
- package/dist/payments/x402/evm.js.map +1 -0
- package/dist/payments/x402/index.d.ts +158 -0
- package/dist/payments/x402/index.js +531 -0
- package/dist/payments/x402/index.js.map +1 -0
- package/dist/payments/x402/solana.d.ts +51 -0
- package/dist/payments/x402/solana.js +397 -0
- package/dist/payments/x402/solana.js.map +1 -0
- package/dist/percolator/accounts.d.ts +21 -0
- package/dist/percolator/accounts.js +76 -0
- package/dist/percolator/accounts.js.map +1 -0
- package/dist/percolator/encode.d.ts +14 -0
- package/dist/percolator/encode.js +90 -0
- package/dist/percolator/encode.js.map +1 -0
- package/dist/percolator/execution.d.ts +29 -0
- package/dist/percolator/execution.js +239 -0
- package/dist/percolator/execution.js.map +1 -0
- package/dist/percolator/feed.d.ts +15 -0
- package/dist/percolator/feed.js +160 -0
- package/dist/percolator/feed.js.map +1 -0
- package/dist/percolator/index.d.ts +20 -0
- package/dist/percolator/index.js +24 -0
- package/dist/percolator/index.js.map +1 -0
- package/dist/percolator/instructions.d.ts +29 -0
- package/dist/percolator/instructions.js +52 -0
- package/dist/percolator/instructions.js.map +1 -0
- package/dist/percolator/keeper.d.ts +11 -0
- package/dist/percolator/keeper.js +83 -0
- package/dist/percolator/keeper.js.map +1 -0
- package/dist/percolator/pda.d.ts +15 -0
- package/dist/percolator/pda.js +26 -0
- package/dist/percolator/pda.js.map +1 -0
- package/dist/percolator/slab.d.ts +122 -0
- package/dist/percolator/slab.js +325 -0
- package/dist/percolator/slab.js.map +1 -0
- package/dist/percolator/tx.d.ts +27 -0
- package/dist/percolator/tx.js +77 -0
- package/dist/percolator/tx.js.map +1 -0
- package/dist/percolator/types.d.ts +51 -0
- package/dist/percolator/types.js +9 -0
- package/dist/percolator/types.js.map +1 -0
- package/dist/permissions/index.d.ts +262 -0
- package/dist/permissions/index.js +929 -0
- package/dist/permissions/index.js.map +1 -0
- package/dist/plugins/index.d.ts +158 -0
- package/dist/plugins/index.js +444 -0
- package/dist/plugins/index.js.map +1 -0
- package/dist/portfolio/index.d.ts +170 -0
- package/dist/portfolio/index.js +970 -0
- package/dist/portfolio/index.js.map +1 -0
- package/dist/presence/index.d.ts +34 -0
- package/dist/presence/index.js +124 -0
- package/dist/presence/index.js.map +1 -0
- package/dist/process/index.d.ts +82 -0
- package/dist/process/index.js +402 -0
- package/dist/process/index.js.map +1 -0
- package/dist/providers/discovery.d.ts +209 -0
- package/dist/providers/discovery.js +751 -0
- package/dist/providers/discovery.js.map +1 -0
- package/dist/providers/health.d.ts +27 -0
- package/dist/providers/health.js +80 -0
- package/dist/providers/health.js.map +1 -0
- package/dist/providers/index.d.ts +154 -0
- package/dist/providers/index.js +897 -0
- package/dist/providers/index.js.map +1 -0
- package/dist/queue/index.d.ts +36 -0
- package/dist/queue/index.js +146 -0
- package/dist/queue/index.js.map +1 -0
- package/dist/queue/jobs/index.d.ts +11 -0
- package/dist/queue/jobs/index.js +32 -0
- package/dist/queue/jobs/index.js.map +1 -0
- package/dist/queue/jobs/producer.d.ts +43 -0
- package/dist/queue/jobs/producer.js +233 -0
- package/dist/queue/jobs/producer.js.map +1 -0
- package/dist/queue/jobs/types.d.ts +128 -0
- package/dist/queue/jobs/types.js +14 -0
- package/dist/queue/jobs/types.js.map +1 -0
- package/dist/queue/jobs/worker.d.ts +22 -0
- package/dist/queue/jobs/worker.js +220 -0
- package/dist/queue/jobs/worker.js.map +1 -0
- package/dist/remote/index.d.ts +136 -0
- package/dist/remote/index.js +456 -0
- package/dist/remote/index.js.map +1 -0
- package/dist/risk/circuit-breaker.d.ts +99 -0
- package/dist/risk/circuit-breaker.js +300 -0
- package/dist/risk/circuit-breaker.js.map +1 -0
- package/dist/risk/dashboard.d.ts +69 -0
- package/dist/risk/dashboard.js +127 -0
- package/dist/risk/dashboard.js.map +1 -0
- package/dist/risk/engine.d.ts +128 -0
- package/dist/risk/engine.js +311 -0
- package/dist/risk/engine.js.map +1 -0
- package/dist/risk/index.d.ts +10 -0
- package/dist/risk/index.js +38 -0
- package/dist/risk/index.js.map +1 -0
- package/dist/risk/stress.d.ts +70 -0
- package/dist/risk/stress.js +215 -0
- package/dist/risk/stress.js.map +1 -0
- package/dist/risk/var.d.ts +72 -0
- package/dist/risk/var.js +173 -0
- package/dist/risk/var.js.map +1 -0
- package/dist/risk/volatility.d.ts +61 -0
- package/dist/risk/volatility.js +132 -0
- package/dist/risk/volatility.js.map +1 -0
- package/dist/routing/index.d.ts +116 -0
- package/dist/routing/index.js +371 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/search/index.d.ts +30 -0
- package/dist/search/index.js +129 -0
- package/dist/search/index.js.map +1 -0
- package/dist/security/address-checker.d.ts +6 -0
- package/dist/security/address-checker.js +213 -0
- package/dist/security/address-checker.js.map +1 -0
- package/dist/security/code-scanner.d.ts +3 -0
- package/dist/security/code-scanner.js +190 -0
- package/dist/security/code-scanner.js.map +1 -0
- package/dist/security/index.d.ts +176 -0
- package/dist/security/index.js +498 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/sanitizer.d.ts +2 -0
- package/dist/security/sanitizer.js +135 -0
- package/dist/security/sanitizer.js.map +1 -0
- package/dist/security/scam-db.d.ts +5 -0
- package/dist/security/scam-db.js +116 -0
- package/dist/security/scam-db.js.map +1 -0
- package/dist/security/shield.d.ts +12 -0
- package/dist/security/shield.js +80 -0
- package/dist/security/shield.js.map +1 -0
- package/dist/security/tx-validator.d.ts +5 -0
- package/dist/security/tx-validator.js +115 -0
- package/dist/security/tx-validator.js.map +1 -0
- package/dist/security/types.d.ts +84 -0
- package/dist/security/types.js +6 -0
- package/dist/security/types.js.map +1 -0
- package/dist/services/alt-data/feeds/fear-greed.d.ts +14 -0
- package/dist/services/alt-data/feeds/fear-greed.js +81 -0
- package/dist/services/alt-data/feeds/fear-greed.js.map +1 -0
- package/dist/services/alt-data/feeds/funding-rates.d.ts +13 -0
- package/dist/services/alt-data/feeds/funding-rates.js +90 -0
- package/dist/services/alt-data/feeds/funding-rates.js.map +1 -0
- package/dist/services/alt-data/feeds/reddit.d.ts +13 -0
- package/dist/services/alt-data/feeds/reddit.js +112 -0
- package/dist/services/alt-data/feeds/reddit.js.map +1 -0
- package/dist/services/alt-data/index.d.ts +31 -0
- package/dist/services/alt-data/index.js +278 -0
- package/dist/services/alt-data/index.js.map +1 -0
- package/dist/services/alt-data/market-matcher.d.ts +29 -0
- package/dist/services/alt-data/market-matcher.js +157 -0
- package/dist/services/alt-data/market-matcher.js.map +1 -0
- package/dist/services/alt-data/sentiment.d.ts +11 -0
- package/dist/services/alt-data/sentiment.js +277 -0
- package/dist/services/alt-data/sentiment.js.map +1 -0
- package/dist/services/alt-data/types.d.ts +86 -0
- package/dist/services/alt-data/types.js +9 -0
- package/dist/services/alt-data/types.js.map +1 -0
- package/dist/services/feature-engineering/accessor.d.ts +19 -0
- package/dist/services/feature-engineering/accessor.js +31 -0
- package/dist/services/feature-engineering/accessor.js.map +1 -0
- package/dist/services/feature-engineering/index.d.ts +15 -0
- package/dist/services/feature-engineering/index.js +345 -0
- package/dist/services/feature-engineering/index.js.map +1 -0
- package/dist/services/feature-engineering/indicators.d.ts +90 -0
- package/dist/services/feature-engineering/indicators.js +254 -0
- package/dist/services/feature-engineering/indicators.js.map +1 -0
- package/dist/services/feature-engineering/rolling-window.d.ts +89 -0
- package/dist/services/feature-engineering/rolling-window.js +173 -0
- package/dist/services/feature-engineering/rolling-window.js.map +1 -0
- package/dist/services/feature-engineering/thresholds.d.ts +137 -0
- package/dist/services/feature-engineering/thresholds.js +280 -0
- package/dist/services/feature-engineering/thresholds.js.map +1 -0
- package/dist/services/feature-engineering/types.d.ts +138 -0
- package/dist/services/feature-engineering/types.js +6 -0
- package/dist/services/feature-engineering/types.js.map +1 -0
- package/dist/services/tick-recorder/index.d.ts +12 -0
- package/dist/services/tick-recorder/index.js +200 -0
- package/dist/services/tick-recorder/index.js.map +1 -0
- package/dist/services/tick-recorder/queries.d.ts +46 -0
- package/dist/services/tick-recorder/queries.js +291 -0
- package/dist/services/tick-recorder/queries.js.map +1 -0
- package/dist/services/tick-recorder/schema.d.ts +27 -0
- package/dist/services/tick-recorder/schema.js +185 -0
- package/dist/services/tick-recorder/schema.js.map +1 -0
- package/dist/services/tick-recorder/timescale.d.ts +27 -0
- package/dist/services/tick-recorder/timescale.js +105 -0
- package/dist/services/tick-recorder/timescale.js.map +1 -0
- package/dist/services/tick-recorder/types.d.ts +113 -0
- package/dist/services/tick-recorder/types.js +7 -0
- package/dist/services/tick-recorder/types.js.map +1 -0
- package/dist/services/tick-streamer/index.d.ts +12 -0
- package/dist/services/tick-streamer/index.js +317 -0
- package/dist/services/tick-streamer/index.js.map +1 -0
- package/dist/services/tick-streamer/types.d.ts +134 -0
- package/dist/services/tick-streamer/types.js +6 -0
- package/dist/services/tick-streamer/types.js.map +1 -0
- package/dist/session/index.d.ts +147 -0
- package/dist/session/index.js +429 -0
- package/dist/session/index.js.map +1 -0
- package/dist/sessions/index.d.ts +69 -0
- package/dist/sessions/index.js +447 -0
- package/dist/sessions/index.js.map +1 -0
- package/dist/signal-router/index.d.ts +2 -0
- package/dist/signal-router/index.js +6 -0
- package/dist/signal-router/index.js.map +1 -0
- package/dist/signal-router/router.d.ts +25 -0
- package/dist/signal-router/router.js +391 -0
- package/dist/signal-router/router.js.map +1 -0
- package/dist/signal-router/types.d.ts +64 -0
- package/dist/signal-router/types.js +9 -0
- package/dist/signal-router/types.js.map +1 -0
- package/dist/skills/bundled/acp/index.d.ts +25 -0
- package/dist/skills/bundled/acp/index.js +472 -0
- package/dist/skills/bundled/acp/index.js.map +1 -0
- package/dist/skills/bundled/agentbets/index.d.ts +15 -0
- package/dist/skills/bundled/agentbets/index.js +168 -0
- package/dist/skills/bundled/agentbets/index.js.map +1 -0
- package/dist/skills/bundled/ai-strategy/index.d.ts +21 -0
- package/dist/skills/bundled/ai-strategy/index.js +647 -0
- package/dist/skills/bundled/ai-strategy/index.js.map +1 -0
- package/dist/skills/bundled/alerts/index.d.ts +20 -0
- package/dist/skills/bundled/alerts/index.js +249 -0
- package/dist/skills/bundled/alerts/index.js.map +1 -0
- package/dist/skills/bundled/analytics/index.d.ts +17 -0
- package/dist/skills/bundled/analytics/index.js +112 -0
- package/dist/skills/bundled/analytics/index.js.map +1 -0
- package/dist/skills/bundled/arbitrage/index.d.ts +24 -0
- package/dist/skills/bundled/arbitrage/index.js +253 -0
- package/dist/skills/bundled/arbitrage/index.js.map +1 -0
- package/dist/skills/bundled/auto-reply/index.d.ts +18 -0
- package/dist/skills/bundled/auto-reply/index.js +215 -0
- package/dist/skills/bundled/auto-reply/index.js.map +1 -0
- package/dist/skills/bundled/automation/index.d.ts +19 -0
- package/dist/skills/bundled/automation/index.js +160 -0
- package/dist/skills/bundled/automation/index.js.map +1 -0
- package/dist/skills/bundled/backtest/index.d.ts +18 -0
- package/dist/skills/bundled/backtest/index.js +250 -0
- package/dist/skills/bundled/backtest/index.js.map +1 -0
- package/dist/skills/bundled/bags/index.d.ts +49 -0
- package/dist/skills/bundled/bags/index.js +1069 -0
- package/dist/skills/bundled/bags/index.js.map +1 -0
- package/dist/skills/bundled/bankr/index.d.ts +161 -0
- package/dist/skills/bundled/bankr/index.js +271 -0
- package/dist/skills/bundled/bankr/index.js.map +1 -0
- package/dist/skills/bundled/betfair/index.d.ts +24 -0
- package/dist/skills/bundled/betfair/index.js +511 -0
- package/dist/skills/bundled/betfair/index.js.map +1 -0
- package/dist/skills/bundled/binance-futures/index.d.ts +15 -0
- package/dist/skills/bundled/binance-futures/index.js +485 -0
- package/dist/skills/bundled/binance-futures/index.js.map +1 -0
- package/dist/skills/bundled/botchan/index.d.ts +130 -0
- package/dist/skills/bundled/botchan/index.js +427 -0
- package/dist/skills/bundled/botchan/index.js.map +1 -0
- package/dist/skills/bundled/bridge/index.d.ts +17 -0
- package/dist/skills/bundled/bridge/index.js +297 -0
- package/dist/skills/bundled/bridge/index.js.map +1 -0
- package/dist/skills/bundled/bybit-futures/index.d.ts +15 -0
- package/dist/skills/bundled/bybit-futures/index.js +380 -0
- package/dist/skills/bundled/bybit-futures/index.js.map +1 -0
- package/dist/skills/bundled/clanker/index.d.ts +236 -0
- package/dist/skills/bundled/clanker/index.js +759 -0
- package/dist/skills/bundled/clanker/index.js.map +1 -0
- package/dist/skills/bundled/copy-trading/index.d.ts +20 -0
- package/dist/skills/bundled/copy-trading/index.js +213 -0
- package/dist/skills/bundled/copy-trading/index.js.map +1 -0
- package/dist/skills/bundled/copy-trading-solana/index.d.ts +21 -0
- package/dist/skills/bundled/copy-trading-solana/index.js +421 -0
- package/dist/skills/bundled/copy-trading-solana/index.js.map +1 -0
- package/dist/skills/bundled/credentials/index.d.ts +17 -0
- package/dist/skills/bundled/credentials/index.js +137 -0
- package/dist/skills/bundled/credentials/index.js.map +1 -0
- package/dist/skills/bundled/crypto-hft/index.d.ts +26 -0
- package/dist/skills/bundled/crypto-hft/index.js +361 -0
- package/dist/skills/bundled/crypto-hft/index.js.map +1 -0
- package/dist/skills/bundled/dca/index.d.ts +26 -0
- package/dist/skills/bundled/dca/index.js +1342 -0
- package/dist/skills/bundled/dca/index.js.map +1 -0
- package/dist/skills/bundled/divergence/index.d.ts +19 -0
- package/dist/skills/bundled/divergence/index.js +272 -0
- package/dist/skills/bundled/divergence/index.js.map +1 -0
- package/dist/skills/bundled/doctor/index.d.ts +18 -0
- package/dist/skills/bundled/doctor/index.js +78 -0
- package/dist/skills/bundled/doctor/index.js.map +1 -0
- package/dist/skills/bundled/drift/index.d.ts +13 -0
- package/dist/skills/bundled/drift/index.js +378 -0
- package/dist/skills/bundled/drift/index.js.map +1 -0
- package/dist/skills/bundled/drift-sdk/index.d.ts +17 -0
- package/dist/skills/bundled/drift-sdk/index.js +501 -0
- package/dist/skills/bundled/drift-sdk/index.js.map +1 -0
- package/dist/skills/bundled/edge/index.d.ts +16 -0
- package/dist/skills/bundled/edge/index.js +91 -0
- package/dist/skills/bundled/edge/index.js.map +1 -0
- package/dist/skills/bundled/embeddings/index.d.ts +19 -0
- package/dist/skills/bundled/embeddings/index.js +215 -0
- package/dist/skills/bundled/embeddings/index.js.map +1 -0
- package/dist/skills/bundled/endaoment/index.d.ts +105 -0
- package/dist/skills/bundled/endaoment/index.js +285 -0
- package/dist/skills/bundled/endaoment/index.js.map +1 -0
- package/dist/skills/bundled/ens/index.d.ts +151 -0
- package/dist/skills/bundled/ens/index.js +278 -0
- package/dist/skills/bundled/ens/index.js.map +1 -0
- package/dist/skills/bundled/erc8004/index.d.ts +123 -0
- package/dist/skills/bundled/erc8004/index.js +301 -0
- package/dist/skills/bundled/erc8004/index.js.map +1 -0
- package/dist/skills/bundled/execution/index.d.ts +18 -0
- package/dist/skills/bundled/execution/index.js +358 -0
- package/dist/skills/bundled/execution/index.js.map +1 -0
- package/dist/skills/bundled/farcaster/index.d.ts +121 -0
- package/dist/skills/bundled/farcaster/index.js +314 -0
- package/dist/skills/bundled/farcaster/index.js.map +1 -0
- package/dist/skills/bundled/features/index.d.ts +17 -0
- package/dist/skills/bundled/features/index.js +305 -0
- package/dist/skills/bundled/features/index.js.map +1 -0
- package/dist/skills/bundled/feeds/index.d.ts +26 -0
- package/dist/skills/bundled/feeds/index.js +462 -0
- package/dist/skills/bundled/feeds/index.js.map +1 -0
- package/dist/skills/bundled/harden/index.d.ts +55 -0
- package/dist/skills/bundled/harden/index.js +510 -0
- package/dist/skills/bundled/harden/index.js.map +1 -0
- package/dist/skills/bundled/history/index.d.ts +21 -0
- package/dist/skills/bundled/history/index.js +195 -0
- package/dist/skills/bundled/history/index.js.map +1 -0
- package/dist/skills/bundled/hyperliquid/index.d.ts +19 -0
- package/dist/skills/bundled/hyperliquid/index.js +1280 -0
- package/dist/skills/bundled/hyperliquid/index.js.map +1 -0
- package/dist/skills/bundled/identity/index.d.ts +17 -0
- package/dist/skills/bundled/identity/index.js +223 -0
- package/dist/skills/bundled/identity/index.js.map +1 -0
- package/dist/skills/bundled/integrations/index.d.ts +17 -0
- package/dist/skills/bundled/integrations/index.js +138 -0
- package/dist/skills/bundled/integrations/index.js.map +1 -0
- package/dist/skills/bundled/jupiter/index.d.ts +41 -0
- package/dist/skills/bundled/jupiter/index.js +872 -0
- package/dist/skills/bundled/jupiter/index.js.map +1 -0
- package/dist/skills/bundled/kamino/index.d.ts +33 -0
- package/dist/skills/bundled/kamino/index.js +578 -0
- package/dist/skills/bundled/kamino/index.js.map +1 -0
- package/dist/skills/bundled/ledger/index.d.ts +14 -0
- package/dist/skills/bundled/ledger/index.js +186 -0
- package/dist/skills/bundled/ledger/index.js.map +1 -0
- package/dist/skills/bundled/market-index/index.d.ts +18 -0
- package/dist/skills/bundled/market-index/index.js +182 -0
- package/dist/skills/bundled/market-index/index.js.map +1 -0
- package/dist/skills/bundled/markets/index.d.ts +16 -0
- package/dist/skills/bundled/markets/index.js +95 -0
- package/dist/skills/bundled/markets/index.js.map +1 -0
- package/dist/skills/bundled/mcp/index.d.ts +19 -0
- package/dist/skills/bundled/mcp/index.js +212 -0
- package/dist/skills/bundled/mcp/index.js.map +1 -0
- package/dist/skills/bundled/memory/index.d.ts +20 -0
- package/dist/skills/bundled/memory/index.js +210 -0
- package/dist/skills/bundled/memory/index.js.map +1 -0
- package/dist/skills/bundled/metaculus/index.d.ts +17 -0
- package/dist/skills/bundled/metaculus/index.js +168 -0
- package/dist/skills/bundled/metaculus/index.js.map +1 -0
- package/dist/skills/bundled/meteora/index.d.ts +39 -0
- package/dist/skills/bundled/meteora/index.js +837 -0
- package/dist/skills/bundled/meteora/index.js.map +1 -0
- package/dist/skills/bundled/meteora-dbc/index.d.ts +33 -0
- package/dist/skills/bundled/meteora-dbc/index.js +993 -0
- package/dist/skills/bundled/meteora-dbc/index.js.map +1 -0
- package/dist/skills/bundled/metrics/index.d.ts +18 -0
- package/dist/skills/bundled/metrics/index.js +91 -0
- package/dist/skills/bundled/metrics/index.js.map +1 -0
- package/dist/skills/bundled/mev/index.d.ts +17 -0
- package/dist/skills/bundled/mev/index.js +108 -0
- package/dist/skills/bundled/mev/index.js.map +1 -0
- package/dist/skills/bundled/mexc-futures/index.d.ts +16 -0
- package/dist/skills/bundled/mexc-futures/index.js +389 -0
- package/dist/skills/bundled/mexc-futures/index.js.map +1 -0
- package/dist/skills/bundled/mm/index.d.ts +18 -0
- package/dist/skills/bundled/mm/index.js +315 -0
- package/dist/skills/bundled/mm/index.js.map +1 -0
- package/dist/skills/bundled/monitoring/index.d.ts +18 -0
- package/dist/skills/bundled/monitoring/index.js +146 -0
- package/dist/skills/bundled/monitoring/index.js.map +1 -0
- package/dist/skills/bundled/news/index.d.ts +17 -0
- package/dist/skills/bundled/news/index.js +161 -0
- package/dist/skills/bundled/news/index.js.map +1 -0
- package/dist/skills/bundled/onchainkit/index.d.ts +92 -0
- package/dist/skills/bundled/onchainkit/index.js +429 -0
- package/dist/skills/bundled/onchainkit/index.js.map +1 -0
- package/dist/skills/bundled/opinion/index.d.ts +12 -0
- package/dist/skills/bundled/opinion/index.js +429 -0
- package/dist/skills/bundled/opinion/index.js.map +1 -0
- package/dist/skills/bundled/opportunity/index.d.ts +25 -0
- package/dist/skills/bundled/opportunity/index.js +289 -0
- package/dist/skills/bundled/opportunity/index.js.map +1 -0
- package/dist/skills/bundled/orca/index.d.ts +12 -0
- package/dist/skills/bundled/orca/index.js +663 -0
- package/dist/skills/bundled/orca/index.js.map +1 -0
- package/dist/skills/bundled/pairing/index.d.ts +24 -0
- package/dist/skills/bundled/pairing/index.js +228 -0
- package/dist/skills/bundled/pairing/index.js.map +1 -0
- package/dist/skills/bundled/percolator/index.d.ts +20 -0
- package/dist/skills/bundled/percolator/index.js +229 -0
- package/dist/skills/bundled/percolator/index.js.map +1 -0
- package/dist/skills/bundled/permissions/index.d.ts +21 -0
- package/dist/skills/bundled/permissions/index.js +204 -0
- package/dist/skills/bundled/permissions/index.js.map +1 -0
- package/dist/skills/bundled/plugins/index.d.ts +20 -0
- package/dist/skills/bundled/plugins/index.js +209 -0
- package/dist/skills/bundled/plugins/index.js.map +1 -0
- package/dist/skills/bundled/portfolio/index.d.ts +20 -0
- package/dist/skills/bundled/portfolio/index.js +367 -0
- package/dist/skills/bundled/portfolio/index.js.map +1 -0
- package/dist/skills/bundled/portfolio-sync/index.d.ts +17 -0
- package/dist/skills/bundled/portfolio-sync/index.js +116 -0
- package/dist/skills/bundled/portfolio-sync/index.js.map +1 -0
- package/dist/skills/bundled/positions/index.d.ts +18 -0
- package/dist/skills/bundled/positions/index.js +161 -0
- package/dist/skills/bundled/positions/index.js.map +1 -0
- package/dist/skills/bundled/predictfun/index.d.ts +13 -0
- package/dist/skills/bundled/predictfun/index.js +612 -0
- package/dist/skills/bundled/predictfun/index.js.map +1 -0
- package/dist/skills/bundled/predictit/index.d.ts +16 -0
- package/dist/skills/bundled/predictit/index.js +138 -0
- package/dist/skills/bundled/predictit/index.js.map +1 -0
- package/dist/skills/bundled/presence/index.d.ts +18 -0
- package/dist/skills/bundled/presence/index.js +151 -0
- package/dist/skills/bundled/presence/index.js.map +1 -0
- package/dist/skills/bundled/processes/index.d.ts +17 -0
- package/dist/skills/bundled/processes/index.js +121 -0
- package/dist/skills/bundled/processes/index.js.map +1 -0
- package/dist/skills/bundled/pump-swarm/index.d.ts +16 -0
- package/dist/skills/bundled/pump-swarm/index.js +2235 -0
- package/dist/skills/bundled/pump-swarm/index.js.map +1 -0
- package/dist/skills/bundled/pumpfun/index.d.ts +47 -0
- package/dist/skills/bundled/pumpfun/index.js +1400 -0
- package/dist/skills/bundled/pumpfun/index.js.map +1 -0
- package/dist/skills/bundled/qmd/index.d.ts +18 -0
- package/dist/skills/bundled/qmd/index.js +116 -0
- package/dist/skills/bundled/qmd/index.js.map +1 -0
- package/dist/skills/bundled/qrcoin/index.d.ts +92 -0
- package/dist/skills/bundled/qrcoin/index.js +328 -0
- package/dist/skills/bundled/qrcoin/index.js.map +1 -0
- package/dist/skills/bundled/raydium/index.d.ts +35 -0
- package/dist/skills/bundled/raydium/index.js +695 -0
- package/dist/skills/bundled/raydium/index.js.map +1 -0
- package/dist/skills/bundled/remote/index.d.ts +19 -0
- package/dist/skills/bundled/remote/index.js +186 -0
- package/dist/skills/bundled/remote/index.js.map +1 -0
- package/dist/skills/bundled/research/index.d.ts +17 -0
- package/dist/skills/bundled/research/index.js +185 -0
- package/dist/skills/bundled/research/index.js.map +1 -0
- package/dist/skills/bundled/risk/index.d.ts +31 -0
- package/dist/skills/bundled/risk/index.js +379 -0
- package/dist/skills/bundled/risk/index.js.map +1 -0
- package/dist/skills/bundled/router/index.d.ts +17 -0
- package/dist/skills/bundled/router/index.js +160 -0
- package/dist/skills/bundled/router/index.js.map +1 -0
- package/dist/skills/bundled/routing/index.d.ts +23 -0
- package/dist/skills/bundled/routing/index.js +257 -0
- package/dist/skills/bundled/routing/index.js.map +1 -0
- package/dist/skills/bundled/sandbox/index.d.ts +18 -0
- package/dist/skills/bundled/sandbox/index.js +119 -0
- package/dist/skills/bundled/sandbox/index.js.map +1 -0
- package/dist/skills/bundled/search-config/index.d.ts +18 -0
- package/dist/skills/bundled/search-config/index.js +170 -0
- package/dist/skills/bundled/search-config/index.js.map +1 -0
- package/dist/skills/bundled/sessions/index.d.ts +29 -0
- package/dist/skills/bundled/sessions/index.js +193 -0
- package/dist/skills/bundled/sessions/index.js.map +1 -0
- package/dist/skills/bundled/shield/index.d.ts +22 -0
- package/dist/skills/bundled/shield/index.js +245 -0
- package/dist/skills/bundled/shield/index.js.map +1 -0
- package/dist/skills/bundled/signals/index.d.ts +24 -0
- package/dist/skills/bundled/signals/index.js +776 -0
- package/dist/skills/bundled/signals/index.js.map +1 -0
- package/dist/skills/bundled/sizing/index.d.ts +16 -0
- package/dist/skills/bundled/sizing/index.js +168 -0
- package/dist/skills/bundled/sizing/index.js.map +1 -0
- package/dist/skills/bundled/slippage/index.d.ts +16 -0
- package/dist/skills/bundled/slippage/index.js +111 -0
- package/dist/skills/bundled/slippage/index.js.map +1 -0
- package/dist/skills/bundled/smarkets/index.d.ts +23 -0
- package/dist/skills/bundled/smarkets/index.js +473 -0
- package/dist/skills/bundled/smarkets/index.js.map +1 -0
- package/dist/skills/bundled/strategy/index.d.ts +18 -0
- package/dist/skills/bundled/strategy/index.js +168 -0
- package/dist/skills/bundled/strategy/index.js.map +1 -0
- package/dist/skills/bundled/streaming/index.d.ts +19 -0
- package/dist/skills/bundled/streaming/index.js +147 -0
- package/dist/skills/bundled/streaming/index.js.map +1 -0
- package/dist/skills/bundled/tailscale/index.d.ts +18 -0
- package/dist/skills/bundled/tailscale/index.js +173 -0
- package/dist/skills/bundled/tailscale/index.js.map +1 -0
- package/dist/skills/bundled/ticks/index.d.ts +17 -0
- package/dist/skills/bundled/ticks/index.js +287 -0
- package/dist/skills/bundled/ticks/index.js.map +1 -0
- package/dist/skills/bundled/token-security/index.d.ts +19 -0
- package/dist/skills/bundled/token-security/index.js +138 -0
- package/dist/skills/bundled/token-security/index.js.map +1 -0
- package/dist/skills/bundled/trading-evm/index.d.ts +19 -0
- package/dist/skills/bundled/trading-evm/index.js +302 -0
- package/dist/skills/bundled/trading-evm/index.js.map +1 -0
- package/dist/skills/bundled/trading-futures/index.d.ts +14 -0
- package/dist/skills/bundled/trading-futures/index.js +874 -0
- package/dist/skills/bundled/trading-futures/index.js.map +1 -0
- package/dist/skills/bundled/trading-kalshi/index.d.ts +36 -0
- package/dist/skills/bundled/trading-kalshi/index.js +1199 -0
- package/dist/skills/bundled/trading-kalshi/index.js.map +1 -0
- package/dist/skills/bundled/trading-manifold/index.d.ts +23 -0
- package/dist/skills/bundled/trading-manifold/index.js +391 -0
- package/dist/skills/bundled/trading-manifold/index.js.map +1 -0
- package/dist/skills/bundled/trading-polymarket/index.d.ts +27 -0
- package/dist/skills/bundled/trading-polymarket/index.js +1321 -0
- package/dist/skills/bundled/trading-polymarket/index.js.map +1 -0
- package/dist/skills/bundled/trading-solana/index.d.ts +19 -0
- package/dist/skills/bundled/trading-solana/index.js +383 -0
- package/dist/skills/bundled/trading-solana/index.js.map +1 -0
- package/dist/skills/bundled/trading-system/index.d.ts +22 -0
- package/dist/skills/bundled/trading-system/index.js +355 -0
- package/dist/skills/bundled/trading-system/index.js.map +1 -0
- package/dist/skills/bundled/triggers/index.d.ts +18 -0
- package/dist/skills/bundled/triggers/index.js +172 -0
- package/dist/skills/bundled/triggers/index.js.map +1 -0
- package/dist/skills/bundled/tts/index.d.ts +16 -0
- package/dist/skills/bundled/tts/index.js +150 -0
- package/dist/skills/bundled/tts/index.js.map +1 -0
- package/dist/skills/bundled/tweet-ideas/index.d.ts +20 -0
- package/dist/skills/bundled/tweet-ideas/index.js +470 -0
- package/dist/skills/bundled/tweet-ideas/index.js.map +1 -0
- package/dist/skills/bundled/usage/index.d.ts +17 -0
- package/dist/skills/bundled/usage/index.js +145 -0
- package/dist/skills/bundled/usage/index.js.map +1 -0
- package/dist/skills/bundled/veil/index.d.ts +79 -0
- package/dist/skills/bundled/veil/index.js +322 -0
- package/dist/skills/bundled/veil/index.js.map +1 -0
- package/dist/skills/bundled/verify/index.d.ts +20 -0
- package/dist/skills/bundled/verify/index.js +157 -0
- package/dist/skills/bundled/verify/index.js.map +1 -0
- package/dist/skills/bundled/virtuals/index.d.ts +20 -0
- package/dist/skills/bundled/virtuals/index.js +255 -0
- package/dist/skills/bundled/virtuals/index.js.map +1 -0
- package/dist/skills/bundled/voice/index.d.ts +18 -0
- package/dist/skills/bundled/voice/index.js +190 -0
- package/dist/skills/bundled/voice/index.js.map +1 -0
- package/dist/skills/bundled/weather/index.d.ts +20 -0
- package/dist/skills/bundled/weather/index.js +475 -0
- package/dist/skills/bundled/weather/index.js.map +1 -0
- package/dist/skills/bundled/webhooks/index.d.ts +18 -0
- package/dist/skills/bundled/webhooks/index.js +136 -0
- package/dist/skills/bundled/webhooks/index.js.map +1 -0
- package/dist/skills/bundled/whale-tracking/index.d.ts +18 -0
- package/dist/skills/bundled/whale-tracking/index.js +441 -0
- package/dist/skills/bundled/whale-tracking/index.js.map +1 -0
- package/dist/skills/bundled/yoink/index.d.ts +78 -0
- package/dist/skills/bundled/yoink/index.js +236 -0
- package/dist/skills/bundled/yoink/index.js.map +1 -0
- package/dist/skills/executor.d.ts +117 -0
- package/dist/skills/executor.js +469 -0
- package/dist/skills/executor.js.map +1 -0
- package/dist/skills/frontmatter.d.ts +69 -0
- package/dist/skills/frontmatter.js +187 -0
- package/dist/skills/frontmatter.js.map +1 -0
- package/dist/skills/index.d.ts +150 -0
- package/dist/skills/index.js +531 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +48 -0
- package/dist/skills/loader.js +594 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/registry.d.ts +94 -0
- package/dist/skills/registry.js +308 -0
- package/dist/skills/registry.js.map +1 -0
- package/dist/solana/copytrade.d.ts +116 -0
- package/dist/solana/copytrade.js +493 -0
- package/dist/solana/copytrade.js.map +1 -0
- package/dist/solana/drift.d.ts +154 -0
- package/dist/solana/drift.js +599 -0
- package/dist/solana/drift.js.map +1 -0
- package/dist/solana/jupiter.d.ts +283 -0
- package/dist/solana/jupiter.js +553 -0
- package/dist/solana/jupiter.js.map +1 -0
- package/dist/solana/kamino.d.ts +206 -0
- package/dist/solana/kamino.js +546 -0
- package/dist/solana/kamino.js.map +1 -0
- package/dist/solana/meteora-dbc.d.ts +430 -0
- package/dist/solana/meteora-dbc.js +1105 -0
- package/dist/solana/meteora-dbc.js.map +1 -0
- package/dist/solana/meteora.d.ts +232 -0
- package/dist/solana/meteora.js +682 -0
- package/dist/solana/meteora.js.map +1 -0
- package/dist/solana/orca.d.ts +163 -0
- package/dist/solana/orca.js +378 -0
- package/dist/solana/orca.js.map +1 -0
- package/dist/solana/pools.d.ts +26 -0
- package/dist/solana/pools.js +96 -0
- package/dist/solana/pools.js.map +1 -0
- package/dist/solana/pump-swarm.d.ts +349 -0
- package/dist/solana/pump-swarm.js +1663 -0
- package/dist/solana/pump-swarm.js.map +1 -0
- package/dist/solana/pumpapi.d.ts +196 -0
- package/dist/solana/pumpapi.js +462 -0
- package/dist/solana/pumpapi.js.map +1 -0
- package/dist/solana/raydium.d.ts +170 -0
- package/dist/solana/raydium.js +673 -0
- package/dist/solana/raydium.js.map +1 -0
- package/dist/solana/swarm-ai-builder.d.ts +97 -0
- package/dist/solana/swarm-ai-builder.js +571 -0
- package/dist/solana/swarm-ai-builder.js.map +1 -0
- package/dist/solana/swarm-arbitrage.d.ts +111 -0
- package/dist/solana/swarm-arbitrage.js +437 -0
- package/dist/solana/swarm-arbitrage.js.map +1 -0
- package/dist/solana/swarm-builders.d.ts +71 -0
- package/dist/solana/swarm-builders.js +402 -0
- package/dist/solana/swarm-builders.js.map +1 -0
- package/dist/solana/swarm-copytrade.d.ts +103 -0
- package/dist/solana/swarm-copytrade.js +420 -0
- package/dist/solana/swarm-copytrade.js.map +1 -0
- package/dist/solana/swarm-presets.d.ts +49 -0
- package/dist/solana/swarm-presets.js +282 -0
- package/dist/solana/swarm-presets.js.map +1 -0
- package/dist/solana/swarm-signals.d.ts +128 -0
- package/dist/solana/swarm-signals.js +529 -0
- package/dist/solana/swarm-signals.js.map +1 -0
- package/dist/solana/swarm-strategies.d.ts +230 -0
- package/dist/solana/swarm-strategies.js +611 -0
- package/dist/solana/swarm-strategies.js.map +1 -0
- package/dist/solana/tokenlist.d.ts +10 -0
- package/dist/solana/tokenlist.js +54 -0
- package/dist/solana/tokenlist.js.map +1 -0
- package/dist/solana/wallet.d.ts +12 -0
- package/dist/solana/wallet.js +90 -0
- package/dist/solana/wallet.js.map +1 -0
- package/dist/strategies/crypto-hft/index.d.ts +46 -0
- package/dist/strategies/crypto-hft/index.js +469 -0
- package/dist/strategies/crypto-hft/index.js.map +1 -0
- package/dist/strategies/crypto-hft/market-scanner.d.ts +26 -0
- package/dist/strategies/crypto-hft/market-scanner.js +177 -0
- package/dist/strategies/crypto-hft/market-scanner.js.map +1 -0
- package/dist/strategies/crypto-hft/orderbook.d.ts +37 -0
- package/dist/strategies/crypto-hft/orderbook.js +184 -0
- package/dist/strategies/crypto-hft/orderbook.js.map +1 -0
- package/dist/strategies/crypto-hft/positions.d.ts +49 -0
- package/dist/strategies/crypto-hft/positions.js +376 -0
- package/dist/strategies/crypto-hft/positions.js.map +1 -0
- package/dist/strategies/crypto-hft/presets.d.ts +11 -0
- package/dist/strategies/crypto-hft/presets.js +164 -0
- package/dist/strategies/crypto-hft/presets.js.map +1 -0
- package/dist/strategies/crypto-hft/strategies.d.ts +96 -0
- package/dist/strategies/crypto-hft/strategies.js +330 -0
- package/dist/strategies/crypto-hft/strategies.js.map +1 -0
- package/dist/strategies/crypto-hft/types.d.ts +196 -0
- package/dist/strategies/crypto-hft/types.js +32 -0
- package/dist/strategies/crypto-hft/types.js.map +1 -0
- package/dist/strategies/hft-divergence/detector.d.ts +29 -0
- package/dist/strategies/hft-divergence/detector.js +182 -0
- package/dist/strategies/hft-divergence/detector.js.map +1 -0
- package/dist/strategies/hft-divergence/index.d.ts +12 -0
- package/dist/strategies/hft-divergence/index.js +19 -0
- package/dist/strategies/hft-divergence/index.js.map +1 -0
- package/dist/strategies/hft-divergence/market-rotator.d.ts +17 -0
- package/dist/strategies/hft-divergence/market-rotator.js +128 -0
- package/dist/strategies/hft-divergence/market-rotator.js.map +1 -0
- package/dist/strategies/hft-divergence/position-manager.d.ts +35 -0
- package/dist/strategies/hft-divergence/position-manager.js +188 -0
- package/dist/strategies/hft-divergence/position-manager.js.map +1 -0
- package/dist/strategies/hft-divergence/strategy.d.ts +31 -0
- package/dist/strategies/hft-divergence/strategy.js +295 -0
- package/dist/strategies/hft-divergence/strategy.js.map +1 -0
- package/dist/strategies/hft-divergence/types.d.ts +114 -0
- package/dist/strategies/hft-divergence/types.js +10 -0
- package/dist/strategies/hft-divergence/types.js.map +1 -0
- package/dist/streaming/index.d.ts +70 -0
- package/dist/streaming/index.js +296 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/tailscale/index.d.ts +139 -0
- package/dist/tailscale/index.js +345 -0
- package/dist/tailscale/index.js.map +1 -0
- package/dist/telemetry/index.d.ts +143 -0
- package/dist/telemetry/index.js +535 -0
- package/dist/telemetry/index.js.map +1 -0
- package/dist/terminal/index.d.ts +121 -0
- package/dist/terminal/index.js +548 -0
- package/dist/terminal/index.js.map +1 -0
- package/dist/token-security/index.d.ts +36 -0
- package/dist/token-security/index.js +253 -0
- package/dist/token-security/index.js.map +1 -0
- package/dist/tools/browser.d.ts +128 -0
- package/dist/tools/browser.js +459 -0
- package/dist/tools/browser.js.map +1 -0
- package/dist/tools/canvas.d.ts +93 -0
- package/dist/tools/canvas.js +349 -0
- package/dist/tools/canvas.js.map +1 -0
- package/dist/tools/docker.d.ts +59 -0
- package/dist/tools/docker.js +191 -0
- package/dist/tools/docker.js.map +1 -0
- package/dist/tools/email.d.ts +25 -0
- package/dist/tools/email.js +131 -0
- package/dist/tools/email.js.map +1 -0
- package/dist/tools/exec.d.ts +81 -0
- package/dist/tools/exec.js +373 -0
- package/dist/tools/exec.js.map +1 -0
- package/dist/tools/files.d.ts +46 -0
- package/dist/tools/files.js +185 -0
- package/dist/tools/files.js.map +1 -0
- package/dist/tools/git.d.ts +29 -0
- package/dist/tools/git.js +105 -0
- package/dist/tools/git.js.map +1 -0
- package/dist/tools/image.d.ts +57 -0
- package/dist/tools/image.js +308 -0
- package/dist/tools/image.js.map +1 -0
- package/dist/tools/index.d.ts +39 -0
- package/dist/tools/index.js +46 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/message.d.ts +99 -0
- package/dist/tools/message.js +200 -0
- package/dist/tools/message.js.map +1 -0
- package/dist/tools/nodes.d.ts +134 -0
- package/dist/tools/nodes.js +357 -0
- package/dist/tools/nodes.js.map +1 -0
- package/dist/tools/sessions.d.ts +60 -0
- package/dist/tools/sessions.js +119 -0
- package/dist/tools/sessions.js.map +1 -0
- package/dist/tools/shell-history.d.ts +17 -0
- package/dist/tools/shell-history.js +118 -0
- package/dist/tools/shell-history.js.map +1 -0
- package/dist/tools/sms.d.ts +18 -0
- package/dist/tools/sms.js +66 -0
- package/dist/tools/sms.js.map +1 -0
- package/dist/tools/sql.d.ts +19 -0
- package/dist/tools/sql.js +91 -0
- package/dist/tools/sql.js.map +1 -0
- package/dist/tools/transcription.d.ts +13 -0
- package/dist/tools/transcription.js +99 -0
- package/dist/tools/transcription.js.map +1 -0
- package/dist/tools/web-fetch.d.ts +69 -0
- package/dist/tools/web-fetch.js +251 -0
- package/dist/tools/web-fetch.js.map +1 -0
- package/dist/tools/web-search.d.ts +58 -0
- package/dist/tools/web-search.js +204 -0
- package/dist/tools/web-search.js.map +1 -0
- package/dist/tools/webhooks.d.ts +74 -0
- package/dist/tools/webhooks.js +165 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/dist/trading/accounts.d.ts +167 -0
- package/dist/trading/accounts.js +394 -0
- package/dist/trading/accounts.js.map +1 -0
- package/dist/trading/adapters/index.d.ts +27 -0
- package/dist/trading/adapters/index.js +165 -0
- package/dist/trading/adapters/index.js.map +1 -0
- package/dist/trading/backtest.d.ts +161 -0
- package/dist/trading/backtest.js +665 -0
- package/dist/trading/backtest.js.map +1 -0
- package/dist/trading/bots/index.d.ts +196 -0
- package/dist/trading/bots/index.js +688 -0
- package/dist/trading/bots/index.js.map +1 -0
- package/dist/trading/bridge.d.ts +33 -0
- package/dist/trading/bridge.js +121 -0
- package/dist/trading/bridge.js.map +1 -0
- package/dist/trading/builder.d.ts +102 -0
- package/dist/trading/builder.js +430 -0
- package/dist/trading/builder.js.map +1 -0
- package/dist/trading/copy-trading.d.ts +125 -0
- package/dist/trading/copy-trading.js +611 -0
- package/dist/trading/copy-trading.js.map +1 -0
- package/dist/trading/devtools.d.ts +172 -0
- package/dist/trading/devtools.js +425 -0
- package/dist/trading/devtools.js.map +1 -0
- package/dist/trading/futures/index.d.ts +981 -0
- package/dist/trading/futures/index.js +4011 -0
- package/dist/trading/futures/index.js.map +1 -0
- package/dist/trading/index.d.ts +102 -0
- package/dist/trading/index.js +310 -0
- package/dist/trading/index.js.map +1 -0
- package/dist/trading/kelly.d.ts +137 -0
- package/dist/trading/kelly.js +328 -0
- package/dist/trading/kelly.js.map +1 -0
- package/dist/trading/logger.d.ts +163 -0
- package/dist/trading/logger.js +424 -0
- package/dist/trading/logger.js.map +1 -0
- package/dist/trading/market-making/engine.d.ts +44 -0
- package/dist/trading/market-making/engine.js +165 -0
- package/dist/trading/market-making/engine.js.map +1 -0
- package/dist/trading/market-making/index.d.ts +10 -0
- package/dist/trading/market-making/index.js +29 -0
- package/dist/trading/market-making/index.js.map +1 -0
- package/dist/trading/market-making/strategy.d.ts +25 -0
- package/dist/trading/market-making/strategy.js +250 -0
- package/dist/trading/market-making/strategy.js.map +1 -0
- package/dist/trading/market-making/types.d.ts +92 -0
- package/dist/trading/market-making/types.js +6 -0
- package/dist/trading/market-making/types.js.map +1 -0
- package/dist/trading/ml-signals.d.ts +175 -0
- package/dist/trading/ml-signals.js +548 -0
- package/dist/trading/ml-signals.js.map +1 -0
- package/dist/trading/orchestrator.d.ts +59 -0
- package/dist/trading/orchestrator.js +199 -0
- package/dist/trading/orchestrator.js.map +1 -0
- package/dist/trading/position-bridge.d.ts +41 -0
- package/dist/trading/position-bridge.js +178 -0
- package/dist/trading/position-bridge.js.map +1 -0
- package/dist/trading/resilience.d.ts +81 -0
- package/dist/trading/resilience.js +257 -0
- package/dist/trading/resilience.js.map +1 -0
- package/dist/trading/risk.d.ts +18 -0
- package/dist/trading/risk.js +91 -0
- package/dist/trading/risk.js.map +1 -0
- package/dist/trading/safety.d.ts +114 -0
- package/dist/trading/safety.js +372 -0
- package/dist/trading/safety.js.map +1 -0
- package/dist/trading/secrets.d.ts +48 -0
- package/dist/trading/secrets.js +243 -0
- package/dist/trading/secrets.js.map +1 -0
- package/dist/trading/state.d.ts +88 -0
- package/dist/trading/state.js +221 -0
- package/dist/trading/state.js.map +1 -0
- package/dist/trading/stream.d.ts +121 -0
- package/dist/trading/stream.js +396 -0
- package/dist/trading/stream.js.map +1 -0
- package/dist/trading/tracking.d.ts +136 -0
- package/dist/trading/tracking.js +512 -0
- package/dist/trading/tracking.js.map +1 -0
- package/dist/tts/index.d.ts +28 -0
- package/dist/tts/index.js +64 -0
- package/dist/tts/index.js.map +1 -0
- package/dist/tui/index.d.ts +159 -0
- package/dist/tui/index.js +580 -0
- package/dist/tui/index.js.map +1 -0
- package/dist/types.d.ts +1373 -0
- package/dist/types.js +7 -0
- package/dist/types.js.map +1 -0
- package/dist/usage/index.d.ts +57 -0
- package/dist/usage/index.js +191 -0
- package/dist/usage/index.js.map +1 -0
- package/dist/utils/attachments.d.ts +12 -0
- package/dist/utils/attachments.js +104 -0
- package/dist/utils/attachments.js.map +1 -0
- package/dist/utils/config.d.ts +14 -0
- package/dist/utils/config.js +474 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/http.d.ts +22 -0
- package/dist/utils/http.js +191 -0
- package/dist/utils/http.js.map +1 -0
- package/dist/utils/id.d.ts +21 -0
- package/dist/utils/id.js +41 -0
- package/dist/utils/id.js.map +1 -0
- package/dist/utils/json-utils.d.ts +201 -0
- package/dist/utils/json-utils.js +151 -0
- package/dist/utils/json-utils.js.map +1 -0
- package/dist/utils/kalshi-auth.d.ts +10 -0
- package/dist/utils/kalshi-auth.js +48 -0
- package/dist/utils/kalshi-auth.js.map +1 -0
- package/dist/utils/kelly.d.ts +153 -0
- package/dist/utils/kelly.js +322 -0
- package/dist/utils/kelly.js.map +1 -0
- package/dist/utils/logger.d.ts +7 -0
- package/dist/utils/logger.js +26 -0
- package/dist/utils/logger.js.map +1 -0
- package/dist/utils/opinion-auth.d.ts +17 -0
- package/dist/utils/opinion-auth.js +25 -0
- package/dist/utils/opinion-auth.js.map +1 -0
- package/dist/utils/polymarket-auth.d.ts +11 -0
- package/dist/utils/polymarket-auth.js +32 -0
- package/dist/utils/polymarket-auth.js.map +1 -0
- package/dist/utils/polymarket-order-signer.d.ts +118 -0
- package/dist/utils/polymarket-order-signer.js +329 -0
- package/dist/utils/polymarket-order-signer.js.map +1 -0
- package/dist/utils/polymarket-setup.d.ts +70 -0
- package/dist/utils/polymarket-setup.js +288 -0
- package/dist/utils/polymarket-setup.js.map +1 -0
- package/dist/utils/production.d.ts +112 -0
- package/dist/utils/production.js +294 -0
- package/dist/utils/production.js.map +1 -0
- package/dist/utils/rate-limiter.d.ts +77 -0
- package/dist/utils/rate-limiter.js +271 -0
- package/dist/utils/rate-limiter.js.map +1 -0
- package/dist/utils/webhook-security.d.ts +63 -0
- package/dist/utils/webhook-security.js +183 -0
- package/dist/utils/webhook-security.js.map +1 -0
- package/dist/voice/index.d.ts +125 -0
- package/dist/voice/index.js +557 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/weather/edge.d.ts +70 -0
- package/dist/weather/edge.js +281 -0
- package/dist/weather/edge.js.map +1 -0
- package/dist/weather/index.d.ts +6 -0
- package/dist/weather/index.js +23 -0
- package/dist/weather/index.js.map +1 -0
- package/dist/weather/markets.d.ts +84 -0
- package/dist/weather/markets.js +320 -0
- package/dist/weather/markets.js.map +1 -0
- package/dist/weather/noaa.d.ts +113 -0
- package/dist/weather/noaa.js +287 -0
- package/dist/weather/noaa.js.map +1 -0
- package/dist/web/index.d.ts +112 -0
- package/dist/web/index.js +639 -0
- package/dist/web/index.js.map +1 -0
- package/dist/wizard/index.d.ts +27 -0
- package/dist/wizard/index.js +186 -0
- package/dist/wizard/index.js.map +1 -0
- package/dist/workspace/index.d.ts +73 -0
- package/dist/workspace/index.js +403 -0
- package/dist/workspace/index.js.map +1 -0
- package/package.json +168 -0
|
@@ -0,0 +1,1280 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Hyperliquid Skill
|
|
4
|
+
*
|
|
5
|
+
* CLI commands for the dominant perps DEX.
|
|
6
|
+
*/
|
|
7
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8
|
+
if (k2 === undefined) k2 = k;
|
|
9
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
10
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
11
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
12
|
+
}
|
|
13
|
+
Object.defineProperty(o, k2, desc);
|
|
14
|
+
}) : (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
o[k2] = m[k];
|
|
17
|
+
}));
|
|
18
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
19
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
20
|
+
}) : function(o, v) {
|
|
21
|
+
o["default"] = v;
|
|
22
|
+
});
|
|
23
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
24
|
+
var ownKeys = function(o) {
|
|
25
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
26
|
+
var ar = [];
|
|
27
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
28
|
+
return ar;
|
|
29
|
+
};
|
|
30
|
+
return ownKeys(o);
|
|
31
|
+
};
|
|
32
|
+
return function (mod) {
|
|
33
|
+
if (mod && mod.__esModule) return mod;
|
|
34
|
+
var result = {};
|
|
35
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
36
|
+
__setModuleDefault(result, mod);
|
|
37
|
+
return result;
|
|
38
|
+
};
|
|
39
|
+
})();
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.skill = void 0;
|
|
42
|
+
const hl = __importStar(require("../../../exchanges/hyperliquid"));
|
|
43
|
+
const logger_1 = require("../../../utils/logger");
|
|
44
|
+
const db_1 = require("../../../db");
|
|
45
|
+
// =============================================================================
|
|
46
|
+
// HELPERS
|
|
47
|
+
// =============================================================================
|
|
48
|
+
function formatNumber(n, decimals = 2) {
|
|
49
|
+
if (Math.abs(n) >= 1e9)
|
|
50
|
+
return (n / 1e9).toFixed(decimals) + 'B';
|
|
51
|
+
if (Math.abs(n) >= 1e6)
|
|
52
|
+
return (n / 1e6).toFixed(decimals) + 'M';
|
|
53
|
+
if (Math.abs(n) >= 1e3)
|
|
54
|
+
return (n / 1e3).toFixed(decimals) + 'K';
|
|
55
|
+
return n.toFixed(decimals);
|
|
56
|
+
}
|
|
57
|
+
function formatPct(n) {
|
|
58
|
+
return (n >= 0 ? '+' : '') + (n * 100).toFixed(2) + '%';
|
|
59
|
+
}
|
|
60
|
+
function formatTime(ts) {
|
|
61
|
+
return new Date(ts).toLocaleString();
|
|
62
|
+
}
|
|
63
|
+
function getConfig() {
|
|
64
|
+
const wallet = process.env.HYPERLIQUID_WALLET;
|
|
65
|
+
const privateKey = process.env.HYPERLIQUID_PRIVATE_KEY;
|
|
66
|
+
if (!wallet || !privateKey)
|
|
67
|
+
return null;
|
|
68
|
+
return {
|
|
69
|
+
walletAddress: wallet,
|
|
70
|
+
privateKey,
|
|
71
|
+
dryRun: process.env.DRY_RUN === 'true',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function getUserId() {
|
|
75
|
+
// Use wallet address as user ID for CLI
|
|
76
|
+
return process.env.HYPERLIQUID_WALLET || 'default';
|
|
77
|
+
}
|
|
78
|
+
async function logTrade(trade) {
|
|
79
|
+
try {
|
|
80
|
+
const db = await (0, db_1.initDatabase)();
|
|
81
|
+
db.logHyperliquidTrade({ ...trade, userId: getUserId() });
|
|
82
|
+
}
|
|
83
|
+
catch (e) {
|
|
84
|
+
logger_1.logger.warn({ error: e }, 'Failed to log trade to database');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
async function logPosition(position) {
|
|
88
|
+
try {
|
|
89
|
+
const db = await (0, db_1.initDatabase)();
|
|
90
|
+
db.upsertHyperliquidPosition(getUserId(), { ...position, userId: getUserId() });
|
|
91
|
+
}
|
|
92
|
+
catch (e) {
|
|
93
|
+
logger_1.logger.warn({ error: e }, 'Failed to log position to database');
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
async function logFunding(funding) {
|
|
97
|
+
try {
|
|
98
|
+
const db = await (0, db_1.initDatabase)();
|
|
99
|
+
db.logHyperliquidFunding({ ...funding, userId: getUserId() });
|
|
100
|
+
}
|
|
101
|
+
catch (e) {
|
|
102
|
+
logger_1.logger.warn({ error: e }, 'Failed to log funding to database');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
// =============================================================================
|
|
106
|
+
// MARKET DATA HANDLERS
|
|
107
|
+
// =============================================================================
|
|
108
|
+
async function handleStats() {
|
|
109
|
+
let hlpStats, funding, meta;
|
|
110
|
+
try {
|
|
111
|
+
[hlpStats, funding, meta] = await Promise.all([
|
|
112
|
+
hl.getHlpStats(),
|
|
113
|
+
hl.getFundingRates(),
|
|
114
|
+
hl.getPerpMeta(),
|
|
115
|
+
]);
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
return `Failed to fetch Hyperliquid stats: ${error instanceof Error ? error.message : String(error)}`;
|
|
119
|
+
}
|
|
120
|
+
const lines = [
|
|
121
|
+
'**Hyperliquid Stats**',
|
|
122
|
+
'',
|
|
123
|
+
`HLP TVL: $${formatNumber(hlpStats.tvl)}`,
|
|
124
|
+
`HLP APR: ${hlpStats.apr24h.toFixed(2)}%`,
|
|
125
|
+
`24h PnL: $${formatNumber(hlpStats.pnl24h)}`,
|
|
126
|
+
'',
|
|
127
|
+
`Markets: ${meta.universe.length} perps`,
|
|
128
|
+
'',
|
|
129
|
+
'**Top Funding Rates:**',
|
|
130
|
+
];
|
|
131
|
+
const sorted = [...funding]
|
|
132
|
+
.sort((a, b) => Math.abs(parseFloat(b.funding)) - Math.abs(parseFloat(a.funding)))
|
|
133
|
+
.slice(0, 5);
|
|
134
|
+
for (const f of sorted) {
|
|
135
|
+
const rate = parseFloat(f.funding) * 100;
|
|
136
|
+
const oi = parseFloat(f.openInterest);
|
|
137
|
+
lines.push(` ${f.coin}: ${rate >= 0 ? '+' : ''}${rate.toFixed(4)}% (OI: $${formatNumber(oi)})`);
|
|
138
|
+
}
|
|
139
|
+
return lines.join('\n');
|
|
140
|
+
}
|
|
141
|
+
async function handleMarkets(query) {
|
|
142
|
+
let perpMeta, spotMeta, mids;
|
|
143
|
+
try {
|
|
144
|
+
[perpMeta, spotMeta, mids] = await Promise.all([
|
|
145
|
+
hl.getPerpMeta(),
|
|
146
|
+
hl.getSpotMeta(),
|
|
147
|
+
hl.getAllMids(),
|
|
148
|
+
]);
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
return `Failed to fetch markets: ${error instanceof Error ? error.message : String(error)}`;
|
|
152
|
+
}
|
|
153
|
+
const lines = ['**Hyperliquid Markets**', ''];
|
|
154
|
+
let perps = perpMeta.universe;
|
|
155
|
+
if (query) {
|
|
156
|
+
const q = query.toLowerCase();
|
|
157
|
+
perps = perps.filter(p => p.name.toLowerCase().includes(q));
|
|
158
|
+
}
|
|
159
|
+
lines.push(`**Perpetuals (${perps.length}):**`);
|
|
160
|
+
for (const p of perps.slice(0, 15)) {
|
|
161
|
+
const price = parseFloat(mids[p.name] || '0');
|
|
162
|
+
lines.push(` ${p.name}: $${price.toFixed(2)} (${p.maxLeverage}x max)`);
|
|
163
|
+
}
|
|
164
|
+
if (perps.length > 15) {
|
|
165
|
+
lines.push(` ...and ${perps.length - 15} more`);
|
|
166
|
+
}
|
|
167
|
+
let spots = spotMeta.universe;
|
|
168
|
+
if (query) {
|
|
169
|
+
const q = query.toLowerCase();
|
|
170
|
+
spots = spots.filter(s => s.name.toLowerCase().includes(q));
|
|
171
|
+
}
|
|
172
|
+
if (spots.length > 0) {
|
|
173
|
+
lines.push('');
|
|
174
|
+
lines.push(`**Spot (${spots.length}):**`);
|
|
175
|
+
for (const s of spots.slice(0, 10)) {
|
|
176
|
+
const price = parseFloat(mids[s.name] || '0');
|
|
177
|
+
lines.push(` ${s.name}: $${price.toFixed(4)}`);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return lines.join('\n');
|
|
181
|
+
}
|
|
182
|
+
async function handlePrice(coin) {
|
|
183
|
+
let mids, meta;
|
|
184
|
+
try {
|
|
185
|
+
[mids, meta] = await Promise.all([
|
|
186
|
+
hl.getAllMids(),
|
|
187
|
+
hl.getPerpMeta(),
|
|
188
|
+
]);
|
|
189
|
+
}
|
|
190
|
+
catch (error) {
|
|
191
|
+
return `Failed to fetch price: ${error instanceof Error ? error.message : String(error)}`;
|
|
192
|
+
}
|
|
193
|
+
const coinUpper = coin.toUpperCase();
|
|
194
|
+
const price = mids[coinUpper];
|
|
195
|
+
if (!price) {
|
|
196
|
+
return `Market ${coinUpper} not found`;
|
|
197
|
+
}
|
|
198
|
+
const asset = meta.universe.find(a => a.name === coinUpper);
|
|
199
|
+
return [
|
|
200
|
+
`**${coinUpper}**`,
|
|
201
|
+
`Price: $${parseFloat(price).toFixed(2)}`,
|
|
202
|
+
asset ? `Max Leverage: ${asset.maxLeverage}x` : '',
|
|
203
|
+
].filter(Boolean).join('\n');
|
|
204
|
+
}
|
|
205
|
+
async function handleOrderbook(coin) {
|
|
206
|
+
const ob = await hl.getOrderbook(coin.toUpperCase());
|
|
207
|
+
const lines = [
|
|
208
|
+
`**${coin.toUpperCase()} Orderbook**`,
|
|
209
|
+
'',
|
|
210
|
+
'Asks:',
|
|
211
|
+
];
|
|
212
|
+
for (const ask of ob.levels[1].slice(0, 5).reverse()) {
|
|
213
|
+
lines.push(` $${ask.price.toFixed(2)} | ${formatNumber(ask.size)} (${ask.numOrders})`);
|
|
214
|
+
}
|
|
215
|
+
lines.push('---');
|
|
216
|
+
for (const bid of ob.levels[0].slice(0, 5)) {
|
|
217
|
+
lines.push(` $${bid.price.toFixed(2)} | ${formatNumber(bid.size)} (${bid.numOrders})`);
|
|
218
|
+
}
|
|
219
|
+
const spread = ob.levels[1][0]?.price && ob.levels[0][0]?.price
|
|
220
|
+
? ((ob.levels[1][0].price - ob.levels[0][0].price) / ob.levels[0][0].price * 100).toFixed(4)
|
|
221
|
+
: '0';
|
|
222
|
+
lines.push('');
|
|
223
|
+
lines.push(`Spread: ${spread}%`);
|
|
224
|
+
return lines.join('\n');
|
|
225
|
+
}
|
|
226
|
+
async function handleCandles(coin, interval) {
|
|
227
|
+
const tf = interval || '1h';
|
|
228
|
+
const candles = await hl.getCandles(coin.toUpperCase(), tf);
|
|
229
|
+
if (candles.length === 0) {
|
|
230
|
+
return `No candle data for ${coin}`;
|
|
231
|
+
}
|
|
232
|
+
const latest = candles[candles.length - 1];
|
|
233
|
+
const prev = candles[candles.length - 2];
|
|
234
|
+
const change = prev ? ((latest.close - prev.close) / prev.close * 100) : 0;
|
|
235
|
+
const lines = [
|
|
236
|
+
`**${coin.toUpperCase()} (${tf})**`,
|
|
237
|
+
'',
|
|
238
|
+
`Price: $${latest.close.toFixed(2)} (${change >= 0 ? '+' : ''}${change.toFixed(2)}%)`,
|
|
239
|
+
`High: $${latest.high.toFixed(2)}`,
|
|
240
|
+
`Low: $${latest.low.toFixed(2)}`,
|
|
241
|
+
`Volume: $${formatNumber(latest.volume)}`,
|
|
242
|
+
'',
|
|
243
|
+
'**Recent:**',
|
|
244
|
+
];
|
|
245
|
+
for (const c of candles.slice(-5)) {
|
|
246
|
+
const time = new Date(c.time).toLocaleTimeString();
|
|
247
|
+
const chg = ((c.close - c.open) / c.open * 100);
|
|
248
|
+
lines.push(` ${time}: $${c.close.toFixed(2)} (${chg >= 0 ? '+' : ''}${chg.toFixed(2)}%)`);
|
|
249
|
+
}
|
|
250
|
+
return lines.join('\n');
|
|
251
|
+
}
|
|
252
|
+
async function handleFunding(coin) {
|
|
253
|
+
if (coin) {
|
|
254
|
+
const now = Date.now();
|
|
255
|
+
const history = await hl.getFundingHistory(coin.toUpperCase(), now - 24 * 60 * 60 * 1000, now);
|
|
256
|
+
if (history.length === 0) {
|
|
257
|
+
return `No funding history for ${coin}`;
|
|
258
|
+
}
|
|
259
|
+
const lines = [
|
|
260
|
+
`**${coin.toUpperCase()} Funding History (24h)**`,
|
|
261
|
+
'',
|
|
262
|
+
];
|
|
263
|
+
for (const f of history.slice(-8)) {
|
|
264
|
+
const time = new Date(f.time).toLocaleTimeString();
|
|
265
|
+
const rate = parseFloat(f.fundingRate) * 100;
|
|
266
|
+
lines.push(` ${time}: ${rate >= 0 ? '+' : ''}${rate.toFixed(4)}%`);
|
|
267
|
+
}
|
|
268
|
+
return lines.join('\n');
|
|
269
|
+
}
|
|
270
|
+
// Show predicted funding
|
|
271
|
+
let funding, predicted;
|
|
272
|
+
try {
|
|
273
|
+
[funding, predicted] = await Promise.all([
|
|
274
|
+
hl.getFundingRates(),
|
|
275
|
+
hl.getPredictedFundings(),
|
|
276
|
+
]);
|
|
277
|
+
}
|
|
278
|
+
catch (error) {
|
|
279
|
+
return `Failed to fetch funding rates: ${error instanceof Error ? error.message : String(error)}`;
|
|
280
|
+
}
|
|
281
|
+
const lines = [
|
|
282
|
+
'**Current Funding Rates**',
|
|
283
|
+
'',
|
|
284
|
+
];
|
|
285
|
+
const sorted = [...funding]
|
|
286
|
+
.sort((a, b) => Math.abs(parseFloat(b.funding)) - Math.abs(parseFloat(a.funding)))
|
|
287
|
+
.slice(0, 10);
|
|
288
|
+
for (const f of sorted) {
|
|
289
|
+
const rate = parseFloat(f.funding) * 100;
|
|
290
|
+
const pred = predicted.find(p => p.coin === f.coin);
|
|
291
|
+
const predRate = pred ? parseFloat(pred.predictedFunding) * 100 : 0;
|
|
292
|
+
lines.push(` ${f.coin}: ${rate >= 0 ? '+' : ''}${rate.toFixed(4)}% (pred: ${predRate >= 0 ? '+' : ''}${predRate.toFixed(4)}%)`);
|
|
293
|
+
}
|
|
294
|
+
lines.push('');
|
|
295
|
+
lines.push('Use `/hl funding <coin>` for history');
|
|
296
|
+
return lines.join('\n');
|
|
297
|
+
}
|
|
298
|
+
// =============================================================================
|
|
299
|
+
// ACCOUNT HANDLERS
|
|
300
|
+
// =============================================================================
|
|
301
|
+
async function handleBalance() {
|
|
302
|
+
const config = getConfig();
|
|
303
|
+
if (!config) {
|
|
304
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
305
|
+
}
|
|
306
|
+
let state, spotBalances, points;
|
|
307
|
+
try {
|
|
308
|
+
[state, spotBalances, points] = await Promise.all([
|
|
309
|
+
hl.getUserState(config.walletAddress),
|
|
310
|
+
hl.getSpotBalances(config.walletAddress),
|
|
311
|
+
hl.getUserPoints(config.walletAddress),
|
|
312
|
+
]);
|
|
313
|
+
}
|
|
314
|
+
catch (error) {
|
|
315
|
+
return `Failed to fetch account data: ${error instanceof Error ? error.message : String(error)}`;
|
|
316
|
+
}
|
|
317
|
+
const margin = state.marginSummary;
|
|
318
|
+
const total = parseFloat(margin.accountValue);
|
|
319
|
+
const used = parseFloat(margin.totalMarginUsed);
|
|
320
|
+
const lines = [
|
|
321
|
+
`**Hyperliquid Balance**`,
|
|
322
|
+
`Wallet: ${config.walletAddress.slice(0, 6)}...${config.walletAddress.slice(-4)}`,
|
|
323
|
+
'',
|
|
324
|
+
'**Perps Account:**',
|
|
325
|
+
` Total: $${formatNumber(total)}`,
|
|
326
|
+
` Available: $${formatNumber(total - used)}`,
|
|
327
|
+
` Margin Used: $${formatNumber(used)}`,
|
|
328
|
+
];
|
|
329
|
+
const positions = state.assetPositions.filter(ap => parseFloat(ap.position.szi) !== 0);
|
|
330
|
+
if (positions.length > 0) {
|
|
331
|
+
lines.push('');
|
|
332
|
+
lines.push('**Positions:**');
|
|
333
|
+
for (const ap of positions) {
|
|
334
|
+
const p = ap.position;
|
|
335
|
+
const size = parseFloat(p.szi);
|
|
336
|
+
const pnl = parseFloat(p.unrealizedPnl);
|
|
337
|
+
const side = size > 0 ? 'LONG' : 'SHORT';
|
|
338
|
+
lines.push(` ${p.coin} ${side}: ${Math.abs(size)} @ $${parseFloat(p.entryPx).toFixed(2)} (${pnl >= 0 ? '+' : ''}$${formatNumber(pnl)})`);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
const nonZeroSpot = spotBalances.filter(b => parseFloat(b.total) > 0);
|
|
342
|
+
if (nonZeroSpot.length > 0) {
|
|
343
|
+
lines.push('');
|
|
344
|
+
lines.push('**Spot Balances:**');
|
|
345
|
+
for (const b of nonZeroSpot) {
|
|
346
|
+
lines.push(` ${b.coin}: ${formatNumber(parseFloat(b.total))}`);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
if (points.total > 0) {
|
|
350
|
+
lines.push('');
|
|
351
|
+
lines.push(`**Points:** ${formatNumber(points.total)} (Rank #${points.rank || 'N/A'})`);
|
|
352
|
+
}
|
|
353
|
+
return lines.join('\n');
|
|
354
|
+
}
|
|
355
|
+
async function handlePortfolio() {
|
|
356
|
+
const config = getConfig();
|
|
357
|
+
if (!config) {
|
|
358
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
359
|
+
}
|
|
360
|
+
const portfolio = await hl.getUserPortfolio(config.walletAddress);
|
|
361
|
+
return [
|
|
362
|
+
'**Portfolio Summary**',
|
|
363
|
+
'',
|
|
364
|
+
`Account Value: $${formatNumber(parseFloat(portfolio.accountValue))}`,
|
|
365
|
+
'',
|
|
366
|
+
'**PnL:**',
|
|
367
|
+
` All Time: $${formatNumber(parseFloat(portfolio.pnl.allTime))}`,
|
|
368
|
+
` 30 Days: $${formatNumber(parseFloat(portfolio.pnl.month))}`,
|
|
369
|
+
` 7 Days: $${formatNumber(parseFloat(portfolio.pnl.week))}`,
|
|
370
|
+
` Today: $${formatNumber(parseFloat(portfolio.pnl.day))}`,
|
|
371
|
+
'',
|
|
372
|
+
'**Volume:**',
|
|
373
|
+
` All Time: $${formatNumber(parseFloat(portfolio.vlm.allTime))}`,
|
|
374
|
+
` 30 Days: $${formatNumber(parseFloat(portfolio.vlm.month))}`,
|
|
375
|
+
].join('\n');
|
|
376
|
+
}
|
|
377
|
+
async function handleOrders(action, ...args) {
|
|
378
|
+
const config = getConfig();
|
|
379
|
+
if (!config) {
|
|
380
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
381
|
+
}
|
|
382
|
+
if (action === 'cancel' && args[0]) {
|
|
383
|
+
const [coin, oid] = args;
|
|
384
|
+
if (!oid) {
|
|
385
|
+
// Cancel all for coin
|
|
386
|
+
const result = await hl.cancelAllOrders(config, coin.toUpperCase());
|
|
387
|
+
return result.success ? `All ${coin.toUpperCase()} orders cancelled` : `Failed: ${result.error}`;
|
|
388
|
+
}
|
|
389
|
+
const result = await hl.cancelOrder(config, coin.toUpperCase(), parseInt(oid));
|
|
390
|
+
return result.success ? `Order ${oid} cancelled` : `Failed: ${result.error}`;
|
|
391
|
+
}
|
|
392
|
+
if (action === 'cancelall') {
|
|
393
|
+
const result = await hl.cancelAllOrders(config);
|
|
394
|
+
return result.success ? 'All orders cancelled' : `Failed: ${result.error}`;
|
|
395
|
+
}
|
|
396
|
+
// List open orders
|
|
397
|
+
const orders = await hl.getFrontendOpenOrders(config.walletAddress);
|
|
398
|
+
if (orders.length === 0) {
|
|
399
|
+
return 'No open orders';
|
|
400
|
+
}
|
|
401
|
+
const lines = ['**Open Orders**', ''];
|
|
402
|
+
for (const o of orders.slice(0, 15)) {
|
|
403
|
+
const time = formatTime(o.timestamp);
|
|
404
|
+
const trigger = o.triggerPx ? ` trigger:$${o.triggerPx}` : '';
|
|
405
|
+
lines.push(` ${o.coin} ${o.side} ${o.sz}/${o.origSz} @ $${o.limitPx}${trigger}`);
|
|
406
|
+
lines.push(` ID: ${o.oid} | ${time}`);
|
|
407
|
+
}
|
|
408
|
+
if (orders.length > 15) {
|
|
409
|
+
lines.push(`...and ${orders.length - 15} more`);
|
|
410
|
+
}
|
|
411
|
+
lines.push('');
|
|
412
|
+
lines.push('Cancel: `/hl orders cancel <coin> [orderId]`');
|
|
413
|
+
lines.push('Cancel all: `/hl orders cancelall`');
|
|
414
|
+
return lines.join('\n');
|
|
415
|
+
}
|
|
416
|
+
async function handleFills(coin) {
|
|
417
|
+
const config = getConfig();
|
|
418
|
+
if (!config) {
|
|
419
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
420
|
+
}
|
|
421
|
+
const fills = await hl.getUserFills(config.walletAddress);
|
|
422
|
+
let filtered = fills;
|
|
423
|
+
if (coin) {
|
|
424
|
+
filtered = fills.filter(f => f.coin.toLowerCase() === coin.toLowerCase());
|
|
425
|
+
}
|
|
426
|
+
if (filtered.length === 0) {
|
|
427
|
+
return coin ? `No fills for ${coin}` : 'No recent fills';
|
|
428
|
+
}
|
|
429
|
+
const lines = ['**Recent Fills**', ''];
|
|
430
|
+
for (const f of filtered.slice(0, 10)) {
|
|
431
|
+
const time = formatTime(f.time);
|
|
432
|
+
const pnl = parseFloat(f.closedPnl);
|
|
433
|
+
const pnlStr = pnl !== 0 ? ` PnL: ${pnl >= 0 ? '+' : ''}$${formatNumber(pnl)}` : '';
|
|
434
|
+
lines.push(` ${f.coin} ${f.side} ${f.sz} @ $${f.px}${pnlStr}`);
|
|
435
|
+
lines.push(` ${time} | Fee: $${f.fee}`);
|
|
436
|
+
}
|
|
437
|
+
return lines.join('\n');
|
|
438
|
+
}
|
|
439
|
+
async function handleHistory() {
|
|
440
|
+
const config = getConfig();
|
|
441
|
+
if (!config) {
|
|
442
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
443
|
+
}
|
|
444
|
+
const orders = await hl.getHistoricalOrders(config.walletAddress);
|
|
445
|
+
if (orders.length === 0) {
|
|
446
|
+
return 'No order history found';
|
|
447
|
+
}
|
|
448
|
+
const lines = ['**Order History**', ''];
|
|
449
|
+
for (const o of orders.slice(0, 15)) {
|
|
450
|
+
const time = formatTime(o.timestamp);
|
|
451
|
+
lines.push(` ${o.coin} ${o.side} ${o.sz} @ $${o.limitPx} - ${o.status}`);
|
|
452
|
+
lines.push(` ${time}`);
|
|
453
|
+
}
|
|
454
|
+
return lines.join('\n');
|
|
455
|
+
}
|
|
456
|
+
// =============================================================================
|
|
457
|
+
// TRADING HANDLERS
|
|
458
|
+
// =============================================================================
|
|
459
|
+
async function handleLong(coin, size, price) {
|
|
460
|
+
const config = getConfig();
|
|
461
|
+
if (!config) {
|
|
462
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
463
|
+
}
|
|
464
|
+
if (!coin || !size) {
|
|
465
|
+
return 'Usage: /hl long <coin> <size> [price]\nExample: /hl long BTC 0.1 45000';
|
|
466
|
+
}
|
|
467
|
+
const coinUpper = coin.toUpperCase();
|
|
468
|
+
const sizeNum = parseFloat(size);
|
|
469
|
+
const priceNum = price ? parseFloat(price) : undefined;
|
|
470
|
+
const isLimit = !!priceNum;
|
|
471
|
+
const result = await hl.placePerpOrder(config, {
|
|
472
|
+
coin: coinUpper,
|
|
473
|
+
side: 'BUY',
|
|
474
|
+
size: sizeNum,
|
|
475
|
+
price: priceNum,
|
|
476
|
+
type: isLimit ? 'LIMIT' : 'MARKET',
|
|
477
|
+
});
|
|
478
|
+
if (result.success) {
|
|
479
|
+
// Log trade to database
|
|
480
|
+
const fillPrice = priceNum || (await hl.getAllMids())[coinUpper];
|
|
481
|
+
const orderIdStr = result.orderId?.toString();
|
|
482
|
+
await logTrade({
|
|
483
|
+
tradeId: orderIdStr,
|
|
484
|
+
orderId: orderIdStr,
|
|
485
|
+
coin: coinUpper,
|
|
486
|
+
side: 'BUY',
|
|
487
|
+
direction: 'LONG',
|
|
488
|
+
size: sizeNum,
|
|
489
|
+
price: parseFloat(String(fillPrice || '0')),
|
|
490
|
+
orderType: isLimit ? 'LIMIT' : 'MARKET',
|
|
491
|
+
timestamp: new Date(),
|
|
492
|
+
});
|
|
493
|
+
return `LONG ${coinUpper} ${size} ${price ? `@ $${price}` : 'MARKET'} (ID: ${result.orderId})`;
|
|
494
|
+
}
|
|
495
|
+
return `Order failed: ${result.error}`;
|
|
496
|
+
}
|
|
497
|
+
async function handleShort(coin, size, price) {
|
|
498
|
+
const config = getConfig();
|
|
499
|
+
if (!config) {
|
|
500
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
501
|
+
}
|
|
502
|
+
if (!coin || !size) {
|
|
503
|
+
return 'Usage: /hl short <coin> <size> [price]\nExample: /hl short ETH 1 3000';
|
|
504
|
+
}
|
|
505
|
+
const coinUpper = coin.toUpperCase();
|
|
506
|
+
const sizeNum = parseFloat(size);
|
|
507
|
+
const priceNum = price ? parseFloat(price) : undefined;
|
|
508
|
+
const isLimit = !!priceNum;
|
|
509
|
+
const result = await hl.placePerpOrder(config, {
|
|
510
|
+
coin: coinUpper,
|
|
511
|
+
side: 'SELL',
|
|
512
|
+
size: sizeNum,
|
|
513
|
+
price: priceNum,
|
|
514
|
+
type: isLimit ? 'LIMIT' : 'MARKET',
|
|
515
|
+
});
|
|
516
|
+
if (result.success) {
|
|
517
|
+
// Log trade to database
|
|
518
|
+
const fillPrice = priceNum || (await hl.getAllMids())[coinUpper];
|
|
519
|
+
const orderIdStr = result.orderId?.toString();
|
|
520
|
+
await logTrade({
|
|
521
|
+
tradeId: orderIdStr,
|
|
522
|
+
orderId: orderIdStr,
|
|
523
|
+
coin: coinUpper,
|
|
524
|
+
side: 'SELL',
|
|
525
|
+
direction: 'SHORT',
|
|
526
|
+
size: sizeNum,
|
|
527
|
+
price: parseFloat(String(fillPrice || '0')),
|
|
528
|
+
orderType: isLimit ? 'LIMIT' : 'MARKET',
|
|
529
|
+
timestamp: new Date(),
|
|
530
|
+
});
|
|
531
|
+
return `SHORT ${coinUpper} ${size} ${price ? `@ $${price}` : 'MARKET'} (ID: ${result.orderId})`;
|
|
532
|
+
}
|
|
533
|
+
return `Order failed: ${result.error}`;
|
|
534
|
+
}
|
|
535
|
+
async function handleClose(coin) {
|
|
536
|
+
const config = getConfig();
|
|
537
|
+
if (!config) {
|
|
538
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
539
|
+
}
|
|
540
|
+
if (!coin) {
|
|
541
|
+
return 'Usage: /hl close <coin>\nExample: /hl close BTC';
|
|
542
|
+
}
|
|
543
|
+
const coinUpper = coin.toUpperCase();
|
|
544
|
+
const state = await hl.getUserState(config.walletAddress);
|
|
545
|
+
const position = state.assetPositions.find(ap => ap.position.coin.toLowerCase() === coin.toLowerCase() && parseFloat(ap.position.szi) !== 0);
|
|
546
|
+
if (!position) {
|
|
547
|
+
return `No open position for ${coinUpper}`;
|
|
548
|
+
}
|
|
549
|
+
const p = position.position;
|
|
550
|
+
const size = Math.abs(parseFloat(p.szi));
|
|
551
|
+
const isLong = parseFloat(p.szi) > 0;
|
|
552
|
+
const entryPrice = parseFloat(p.entryPx);
|
|
553
|
+
const unrealizedPnl = parseFloat(p.unrealizedPnl);
|
|
554
|
+
const result = await hl.placePerpOrder(config, {
|
|
555
|
+
coin: coinUpper,
|
|
556
|
+
side: isLong ? 'SELL' : 'BUY',
|
|
557
|
+
size,
|
|
558
|
+
type: 'MARKET',
|
|
559
|
+
reduceOnly: true,
|
|
560
|
+
});
|
|
561
|
+
if (result.success) {
|
|
562
|
+
// Log closing trade with PnL
|
|
563
|
+
const mids = await hl.getAllMids();
|
|
564
|
+
const closePrice = parseFloat(String(mids[coinUpper] || '0'));
|
|
565
|
+
const orderIdStr = result.orderId?.toString();
|
|
566
|
+
await logTrade({
|
|
567
|
+
tradeId: orderIdStr,
|
|
568
|
+
orderId: orderIdStr,
|
|
569
|
+
coin: coinUpper,
|
|
570
|
+
side: isLong ? 'SELL' : 'BUY',
|
|
571
|
+
direction: isLong ? 'LONG' : 'SHORT',
|
|
572
|
+
size,
|
|
573
|
+
price: closePrice,
|
|
574
|
+
closedPnl: unrealizedPnl,
|
|
575
|
+
orderType: 'MARKET',
|
|
576
|
+
timestamp: new Date(),
|
|
577
|
+
});
|
|
578
|
+
// Close position in database
|
|
579
|
+
try {
|
|
580
|
+
const db = await (0, db_1.initDatabase)();
|
|
581
|
+
db.closeHyperliquidPosition(getUserId(), coinUpper, closePrice, 'manual');
|
|
582
|
+
}
|
|
583
|
+
catch (e) {
|
|
584
|
+
logger_1.logger.warn({ error: e }, 'Failed to close position in database');
|
|
585
|
+
}
|
|
586
|
+
const pnlStr = unrealizedPnl >= 0 ? `+$${unrealizedPnl.toFixed(2)}` : `-$${Math.abs(unrealizedPnl).toFixed(2)}`;
|
|
587
|
+
return `Closed ${coinUpper} ${isLong ? 'LONG' : 'SHORT'} ${size} @ $${closePrice.toFixed(2)} (PnL: ${pnlStr})`;
|
|
588
|
+
}
|
|
589
|
+
return `Close failed: ${result.error}`;
|
|
590
|
+
}
|
|
591
|
+
async function handleCloseAll() {
|
|
592
|
+
const config = getConfig();
|
|
593
|
+
if (!config) {
|
|
594
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
595
|
+
}
|
|
596
|
+
const state = await hl.getUserState(config.walletAddress);
|
|
597
|
+
const positions = state.assetPositions.filter(ap => parseFloat(ap.position.szi) !== 0);
|
|
598
|
+
if (positions.length === 0) {
|
|
599
|
+
return 'No open positions';
|
|
600
|
+
}
|
|
601
|
+
const mids = await hl.getAllMids();
|
|
602
|
+
const results = [];
|
|
603
|
+
let totalPnl = 0;
|
|
604
|
+
for (const ap of positions) {
|
|
605
|
+
const p = ap.position;
|
|
606
|
+
const size = Math.abs(parseFloat(p.szi));
|
|
607
|
+
const isLong = parseFloat(p.szi) > 0;
|
|
608
|
+
const unrealizedPnl = parseFloat(p.unrealizedPnl);
|
|
609
|
+
const result = await hl.placePerpOrder(config, {
|
|
610
|
+
coin: p.coin,
|
|
611
|
+
side: isLong ? 'SELL' : 'BUY',
|
|
612
|
+
size,
|
|
613
|
+
type: 'MARKET',
|
|
614
|
+
reduceOnly: true,
|
|
615
|
+
});
|
|
616
|
+
if (result.success) {
|
|
617
|
+
const closePrice = parseFloat(String(mids[p.coin] || '0'));
|
|
618
|
+
totalPnl += unrealizedPnl;
|
|
619
|
+
const orderIdStr = result.orderId?.toString();
|
|
620
|
+
// Log closing trade
|
|
621
|
+
await logTrade({
|
|
622
|
+
tradeId: orderIdStr,
|
|
623
|
+
orderId: orderIdStr,
|
|
624
|
+
coin: p.coin,
|
|
625
|
+
side: isLong ? 'SELL' : 'BUY',
|
|
626
|
+
direction: isLong ? 'LONG' : 'SHORT',
|
|
627
|
+
size,
|
|
628
|
+
price: closePrice,
|
|
629
|
+
closedPnl: unrealizedPnl,
|
|
630
|
+
orderType: 'MARKET',
|
|
631
|
+
timestamp: new Date(),
|
|
632
|
+
});
|
|
633
|
+
// Close position in database
|
|
634
|
+
try {
|
|
635
|
+
const db = await (0, db_1.initDatabase)();
|
|
636
|
+
db.closeHyperliquidPosition(getUserId(), p.coin, closePrice, 'closeall');
|
|
637
|
+
}
|
|
638
|
+
catch (e) {
|
|
639
|
+
logger_1.logger.warn({ error: e }, 'Failed to close position in database');
|
|
640
|
+
}
|
|
641
|
+
const pnlStr = unrealizedPnl >= 0 ? `+$${unrealizedPnl.toFixed(2)}` : `-$${Math.abs(unrealizedPnl).toFixed(2)}`;
|
|
642
|
+
results.push(`${p.coin}: closed (${pnlStr})`);
|
|
643
|
+
}
|
|
644
|
+
else {
|
|
645
|
+
results.push(`${p.coin}: ${result.error}`);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
const totalStr = totalPnl >= 0 ? `+$${totalPnl.toFixed(2)}` : `-$${Math.abs(totalPnl).toFixed(2)}`;
|
|
649
|
+
return ['**Closed Positions:**', '', ...results, '', `Total PnL: ${totalStr}`].join('\n');
|
|
650
|
+
}
|
|
651
|
+
async function handleLeverage(coin, leverage) {
|
|
652
|
+
const config = getConfig();
|
|
653
|
+
if (!config) {
|
|
654
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
655
|
+
}
|
|
656
|
+
if (!coin || !leverage) {
|
|
657
|
+
return 'Usage: /hl leverage <coin> <leverage>\nExample: /hl leverage BTC 10';
|
|
658
|
+
}
|
|
659
|
+
const lev = parseInt(leverage);
|
|
660
|
+
if (lev < 1 || lev > 50) {
|
|
661
|
+
return 'Leverage must be between 1 and 50';
|
|
662
|
+
}
|
|
663
|
+
const result = await hl.updateLeverage(config, coin.toUpperCase(), lev);
|
|
664
|
+
if (result.success) {
|
|
665
|
+
return `${coin.toUpperCase()} leverage set to ${lev}x`;
|
|
666
|
+
}
|
|
667
|
+
return `Failed: ${result.error}`;
|
|
668
|
+
}
|
|
669
|
+
async function handleMargin(coin, amount) {
|
|
670
|
+
const config = getConfig();
|
|
671
|
+
if (!config) {
|
|
672
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
673
|
+
}
|
|
674
|
+
if (!coin || !amount) {
|
|
675
|
+
return 'Usage: /hl margin <coin> <amount>\nPositive to add, negative to remove\nExample: /hl margin BTC 100';
|
|
676
|
+
}
|
|
677
|
+
const state = await hl.getUserState(config.walletAddress);
|
|
678
|
+
const position = state.assetPositions.find(ap => ap.position.coin.toLowerCase() === coin.toLowerCase());
|
|
679
|
+
if (!position) {
|
|
680
|
+
return `No position for ${coin.toUpperCase()}`;
|
|
681
|
+
}
|
|
682
|
+
const isBuy = parseFloat(position.position.szi) > 0;
|
|
683
|
+
const result = await hl.updateIsolatedMargin(config, coin.toUpperCase(), isBuy, parseFloat(amount));
|
|
684
|
+
if (result.success) {
|
|
685
|
+
return `Margin ${parseFloat(amount) >= 0 ? 'added' : 'removed'} for ${coin.toUpperCase()}`;
|
|
686
|
+
}
|
|
687
|
+
return `Failed: ${result.error}`;
|
|
688
|
+
}
|
|
689
|
+
// =============================================================================
|
|
690
|
+
// TWAP HANDLERS
|
|
691
|
+
// =============================================================================
|
|
692
|
+
async function handleTwap(action, ...args) {
|
|
693
|
+
const config = getConfig();
|
|
694
|
+
if (!config) {
|
|
695
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
696
|
+
}
|
|
697
|
+
if (action === 'buy' || action === 'sell') {
|
|
698
|
+
const [coin, size, duration] = args;
|
|
699
|
+
if (!coin || !size || !duration) {
|
|
700
|
+
return `Usage: /hl twap ${action} <coin> <size> <minutes>\nExample: /hl twap buy BTC 1 60`;
|
|
701
|
+
}
|
|
702
|
+
const result = await hl.placeTwapOrder(config, {
|
|
703
|
+
coin: coin.toUpperCase(),
|
|
704
|
+
side: action === 'buy' ? 'BUY' : 'SELL',
|
|
705
|
+
size: parseFloat(size),
|
|
706
|
+
durationMinutes: parseInt(duration),
|
|
707
|
+
});
|
|
708
|
+
if (result.success) {
|
|
709
|
+
return `TWAP ${action.toUpperCase()} ${coin.toUpperCase()} ${size} over ${duration}min (ID: ${result.twapId})`;
|
|
710
|
+
}
|
|
711
|
+
return `TWAP failed: ${result.error}`;
|
|
712
|
+
}
|
|
713
|
+
if (action === 'cancel' && args[0] && args[1]) {
|
|
714
|
+
const [coin, twapId] = args;
|
|
715
|
+
const result = await hl.cancelTwap(config, coin.toUpperCase(), twapId);
|
|
716
|
+
if (result.success) {
|
|
717
|
+
return `TWAP ${twapId} cancelled`;
|
|
718
|
+
}
|
|
719
|
+
return `Cancel failed: ${result.error}`;
|
|
720
|
+
}
|
|
721
|
+
if (action === 'status') {
|
|
722
|
+
const fills = await hl.getUserTwapSliceFills(config.walletAddress);
|
|
723
|
+
if (fills.length === 0) {
|
|
724
|
+
return 'No active TWAP orders';
|
|
725
|
+
}
|
|
726
|
+
const lines = ['**TWAP Fills**', ''];
|
|
727
|
+
for (const f of fills.slice(0, 10)) {
|
|
728
|
+
lines.push(` ${f.coin} ${f.side} ${f.sz} @ $${f.px} (ID: ${f.twapId})`);
|
|
729
|
+
}
|
|
730
|
+
return lines.join('\n');
|
|
731
|
+
}
|
|
732
|
+
return [
|
|
733
|
+
'**TWAP Commands**',
|
|
734
|
+
'',
|
|
735
|
+
'/hl twap buy <coin> <size> <minutes>',
|
|
736
|
+
'/hl twap sell <coin> <size> <minutes>',
|
|
737
|
+
'/hl twap cancel <coin> <twapId>',
|
|
738
|
+
'/hl twap status',
|
|
739
|
+
'',
|
|
740
|
+
'Example: /hl twap buy BTC 1 60',
|
|
741
|
+
].join('\n');
|
|
742
|
+
}
|
|
743
|
+
// =============================================================================
|
|
744
|
+
// SPOT HANDLERS
|
|
745
|
+
// =============================================================================
|
|
746
|
+
async function handleSpot(subcommand, ...args) {
|
|
747
|
+
const config = getConfig();
|
|
748
|
+
if (subcommand === 'markets') {
|
|
749
|
+
const meta = await hl.getSpotMeta();
|
|
750
|
+
const mids = await hl.getAllMids();
|
|
751
|
+
const lines = ['**Spot Markets**', ''];
|
|
752
|
+
for (const m of meta.universe.slice(0, 20)) {
|
|
753
|
+
const price = parseFloat(mids[m.name] || '0');
|
|
754
|
+
lines.push(` ${m.name}: $${price.toFixed(4)}`);
|
|
755
|
+
}
|
|
756
|
+
return lines.join('\n');
|
|
757
|
+
}
|
|
758
|
+
if (subcommand === 'book' && args[0]) {
|
|
759
|
+
return handleOrderbook(args[0]);
|
|
760
|
+
}
|
|
761
|
+
if (subcommand === 'buy' || subcommand === 'sell') {
|
|
762
|
+
if (!config) {
|
|
763
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
764
|
+
}
|
|
765
|
+
const [coin, amount, price] = args;
|
|
766
|
+
if (!coin || !amount) {
|
|
767
|
+
return `Usage: /hl spot ${subcommand} <coin> <amount> [price]`;
|
|
768
|
+
}
|
|
769
|
+
const result = await hl.placeSpotOrder(config, {
|
|
770
|
+
coin: coin.toUpperCase(),
|
|
771
|
+
side: subcommand === 'buy' ? 'BUY' : 'SELL',
|
|
772
|
+
size: parseFloat(amount),
|
|
773
|
+
price: price ? parseFloat(price) : 0,
|
|
774
|
+
type: price ? 'LIMIT' : 'MARKET',
|
|
775
|
+
});
|
|
776
|
+
if (result.success) {
|
|
777
|
+
return `Spot ${subcommand} ${coin.toUpperCase()} ${amount} ${price ? `@ $${price}` : 'MARKET'} (ID: ${result.orderId})`;
|
|
778
|
+
}
|
|
779
|
+
return `Order failed: ${result.error}`;
|
|
780
|
+
}
|
|
781
|
+
return [
|
|
782
|
+
'**Spot Commands**',
|
|
783
|
+
'',
|
|
784
|
+
'/hl spot markets',
|
|
785
|
+
'/hl spot book <coin>',
|
|
786
|
+
'/hl spot buy <coin> <amount> [price]',
|
|
787
|
+
'/hl spot sell <coin> <amount> [price]',
|
|
788
|
+
].join('\n');
|
|
789
|
+
}
|
|
790
|
+
// =============================================================================
|
|
791
|
+
// VAULT HANDLERS
|
|
792
|
+
// =============================================================================
|
|
793
|
+
async function handleHlp(action, amount) {
|
|
794
|
+
const config = getConfig();
|
|
795
|
+
if (!action || action === 'info') {
|
|
796
|
+
const stats = await hl.getHlpStats();
|
|
797
|
+
return [
|
|
798
|
+
'**HLP Vault**',
|
|
799
|
+
'',
|
|
800
|
+
`TVL: $${formatNumber(stats.tvl)}`,
|
|
801
|
+
`APR: ${stats.apr24h.toFixed(2)}%`,
|
|
802
|
+
`24h PnL: $${formatNumber(stats.pnl24h)}`,
|
|
803
|
+
'',
|
|
804
|
+
'/hl hlp deposit <amount>',
|
|
805
|
+
'/hl hlp withdraw <amount>',
|
|
806
|
+
].join('\n');
|
|
807
|
+
}
|
|
808
|
+
if (!config) {
|
|
809
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
810
|
+
}
|
|
811
|
+
const amountNum = parseFloat(amount || '0');
|
|
812
|
+
if (amountNum <= 0) {
|
|
813
|
+
return 'Invalid amount';
|
|
814
|
+
}
|
|
815
|
+
if (action === 'deposit') {
|
|
816
|
+
const result = await hl.depositToHlp(config, amountNum);
|
|
817
|
+
return result.success ? `Deposited $${formatNumber(amountNum)} to HLP` : `Failed: ${result.error}`;
|
|
818
|
+
}
|
|
819
|
+
if (action === 'withdraw') {
|
|
820
|
+
const result = await hl.withdrawFromHlp(config, amountNum);
|
|
821
|
+
return result.success ? `Withdrew $${formatNumber(amountNum)} from HLP` : `Failed: ${result.error}`;
|
|
822
|
+
}
|
|
823
|
+
return 'Use: /hl hlp [deposit|withdraw] <amount>';
|
|
824
|
+
}
|
|
825
|
+
async function handleVaults() {
|
|
826
|
+
const config = getConfig();
|
|
827
|
+
if (!config) {
|
|
828
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
829
|
+
}
|
|
830
|
+
const equities = await hl.getUserVaultEquities(config.walletAddress);
|
|
831
|
+
if (equities.length === 0) {
|
|
832
|
+
return 'No vault positions. Use `/hl hlp deposit <amount>` to invest.';
|
|
833
|
+
}
|
|
834
|
+
const lines = ['**Your Vault Positions**', ''];
|
|
835
|
+
for (const v of equities) {
|
|
836
|
+
lines.push(` ${v.vaultName}: $${formatNumber(parseFloat(v.equity))}`);
|
|
837
|
+
}
|
|
838
|
+
return lines.join('\n');
|
|
839
|
+
}
|
|
840
|
+
// =============================================================================
|
|
841
|
+
// TRANSFER HANDLERS
|
|
842
|
+
// =============================================================================
|
|
843
|
+
async function handleTransfer(action, ...args) {
|
|
844
|
+
const config = getConfig();
|
|
845
|
+
if (!config) {
|
|
846
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
847
|
+
}
|
|
848
|
+
if (action === 'spot2perp') {
|
|
849
|
+
const [amount] = args;
|
|
850
|
+
if (!amount)
|
|
851
|
+
return 'Usage: /hl transfer spot2perp <amount>';
|
|
852
|
+
const result = await hl.transferBetweenSpotAndPerp(config, parseFloat(amount), true);
|
|
853
|
+
return result.success ? `Transferred $${amount} to perps` : `Failed: ${result.error}`;
|
|
854
|
+
}
|
|
855
|
+
if (action === 'perp2spot') {
|
|
856
|
+
const [amount] = args;
|
|
857
|
+
if (!amount)
|
|
858
|
+
return 'Usage: /hl transfer perp2spot <amount>';
|
|
859
|
+
const result = await hl.transferBetweenSpotAndPerp(config, parseFloat(amount), false);
|
|
860
|
+
return result.success ? `Transferred $${amount} to spot` : `Failed: ${result.error}`;
|
|
861
|
+
}
|
|
862
|
+
if (action === 'send') {
|
|
863
|
+
const [address, amount] = args;
|
|
864
|
+
if (!address || !amount)
|
|
865
|
+
return 'Usage: /hl transfer send <address> <amount>';
|
|
866
|
+
const result = await hl.usdTransfer(config, address, parseFloat(amount));
|
|
867
|
+
return result.success ? `Sent $${amount} to ${address.slice(0, 8)}...` : `Failed: ${result.error}`;
|
|
868
|
+
}
|
|
869
|
+
if (action === 'withdraw') {
|
|
870
|
+
const [address, amount] = args;
|
|
871
|
+
if (!address || !amount)
|
|
872
|
+
return 'Usage: /hl transfer withdraw <address> <amount>';
|
|
873
|
+
const result = await hl.withdrawToL1(config, address, parseFloat(amount));
|
|
874
|
+
return result.success ? `Withdrawal of $${amount} initiated` : `Failed: ${result.error}`;
|
|
875
|
+
}
|
|
876
|
+
return [
|
|
877
|
+
'**Transfer Commands**',
|
|
878
|
+
'',
|
|
879
|
+
'/hl transfer spot2perp <amount> - Move to perps',
|
|
880
|
+
'/hl transfer perp2spot <amount> - Move to spot',
|
|
881
|
+
'/hl transfer send <addr> <amt> - Send USDC on HL',
|
|
882
|
+
'/hl transfer withdraw <addr> <amt> - Withdraw to L1',
|
|
883
|
+
].join('\n');
|
|
884
|
+
}
|
|
885
|
+
// =============================================================================
|
|
886
|
+
// INFO HANDLERS
|
|
887
|
+
// =============================================================================
|
|
888
|
+
async function handleFees() {
|
|
889
|
+
const config = getConfig();
|
|
890
|
+
if (!config) {
|
|
891
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
892
|
+
}
|
|
893
|
+
let fees, rateLimit;
|
|
894
|
+
try {
|
|
895
|
+
[fees, rateLimit] = await Promise.all([
|
|
896
|
+
hl.getUserFees(config.walletAddress),
|
|
897
|
+
hl.getUserRateLimit(config.walletAddress),
|
|
898
|
+
]);
|
|
899
|
+
}
|
|
900
|
+
catch (error) {
|
|
901
|
+
return `Failed to fetch fees/limits: ${error instanceof Error ? error.message : String(error)}`;
|
|
902
|
+
}
|
|
903
|
+
return [
|
|
904
|
+
'**Fees & Limits**',
|
|
905
|
+
'',
|
|
906
|
+
`Maker: ${(fees.makerRate * 100).toFixed(4)}%`,
|
|
907
|
+
`Taker: ${(fees.takerRate * 100).toFixed(4)}%`,
|
|
908
|
+
'',
|
|
909
|
+
'**Rate Limits:**',
|
|
910
|
+
` ${rateLimit.nRequestsUsed}/${rateLimit.nRequestsCap} requests`,
|
|
911
|
+
` Volume: $${formatNumber(rateLimit.cumVlm)}`,
|
|
912
|
+
].join('\n');
|
|
913
|
+
}
|
|
914
|
+
async function handlePoints() {
|
|
915
|
+
const config = getConfig();
|
|
916
|
+
if (!config) {
|
|
917
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
918
|
+
}
|
|
919
|
+
const points = await hl.getUserPoints(config.walletAddress);
|
|
920
|
+
return [
|
|
921
|
+
'**Points**',
|
|
922
|
+
'',
|
|
923
|
+
`Total: ${formatNumber(points.total)}`,
|
|
924
|
+
`Today: ${formatNumber(points.daily)}`,
|
|
925
|
+
`Rank: #${points.rank || 'N/A'}`,
|
|
926
|
+
].join('\n');
|
|
927
|
+
}
|
|
928
|
+
async function handleReferral() {
|
|
929
|
+
const config = getConfig();
|
|
930
|
+
if (!config) {
|
|
931
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
932
|
+
}
|
|
933
|
+
const ref = await hl.getUserReferral(config.walletAddress);
|
|
934
|
+
const lines = ['**Referral Info**', ''];
|
|
935
|
+
if (ref.referralCode) {
|
|
936
|
+
lines.push(`Your Code: ${ref.referralCode}`);
|
|
937
|
+
}
|
|
938
|
+
if (ref.referredBy) {
|
|
939
|
+
lines.push(`Referred By: ${ref.referredBy.slice(0, 8)}...`);
|
|
940
|
+
}
|
|
941
|
+
lines.push('');
|
|
942
|
+
lines.push(`Rebates Earned: $${formatNumber(parseFloat(ref.cumReferrerRebate))}`);
|
|
943
|
+
lines.push(`Discount Received: $${formatNumber(parseFloat(ref.cumRefereeDiscount))}`);
|
|
944
|
+
lines.push(`Unclaimed: $${formatNumber(parseFloat(ref.unclaimedRewards))}`);
|
|
945
|
+
if (parseFloat(ref.unclaimedRewards) > 0) {
|
|
946
|
+
lines.push('');
|
|
947
|
+
lines.push('Use `/hl claim` to claim rewards');
|
|
948
|
+
}
|
|
949
|
+
return lines.join('\n');
|
|
950
|
+
}
|
|
951
|
+
async function handleClaim() {
|
|
952
|
+
const config = getConfig();
|
|
953
|
+
if (!config) {
|
|
954
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
955
|
+
}
|
|
956
|
+
const result = await hl.claimRewards(config);
|
|
957
|
+
return result.success ? 'Rewards claimed!' : `Failed: ${result.error}`;
|
|
958
|
+
}
|
|
959
|
+
async function handleLeaderboard(timeframe) {
|
|
960
|
+
const tf = timeframe || 'day';
|
|
961
|
+
const leaders = await hl.getLeaderboard(tf);
|
|
962
|
+
const lines = [
|
|
963
|
+
`**Leaderboard (${tf})**`,
|
|
964
|
+
'',
|
|
965
|
+
];
|
|
966
|
+
for (let i = 0; i < Math.min(10, leaders.length); i++) {
|
|
967
|
+
const l = leaders[i];
|
|
968
|
+
lines.push(`${i + 1}. ${l.address.slice(0, 8)}... $${formatNumber(l.pnl)} (${formatPct(l.roi)})`);
|
|
969
|
+
}
|
|
970
|
+
return lines.join('\n');
|
|
971
|
+
}
|
|
972
|
+
async function handleSubaccounts(action, ...args) {
|
|
973
|
+
const config = getConfig();
|
|
974
|
+
if (!config) {
|
|
975
|
+
return 'Set HYPERLIQUID_WALLET and HYPERLIQUID_PRIVATE_KEY';
|
|
976
|
+
}
|
|
977
|
+
if (action === 'create' && args[0]) {
|
|
978
|
+
const result = await hl.createSubAccount(config, args[0]);
|
|
979
|
+
return result.success ? `Subaccount created: ${result.subAccountUser}` : `Failed: ${result.error}`;
|
|
980
|
+
}
|
|
981
|
+
const subs = await hl.getSubAccounts(config.walletAddress);
|
|
982
|
+
if (subs.length === 0) {
|
|
983
|
+
return 'No subaccounts. Use `/hl sub create <name>` to create one.';
|
|
984
|
+
}
|
|
985
|
+
const lines = ['**Subaccounts**', ''];
|
|
986
|
+
for (const s of subs) {
|
|
987
|
+
lines.push(` ${s.name}: ${s.subAccountUser.slice(0, 10)}...`);
|
|
988
|
+
}
|
|
989
|
+
return lines.join('\n');
|
|
990
|
+
}
|
|
991
|
+
// =============================================================================
|
|
992
|
+
// DATABASE QUERY HANDLERS
|
|
993
|
+
// =============================================================================
|
|
994
|
+
async function handleDbTrades(coin, limit) {
|
|
995
|
+
const db = await (0, db_1.initDatabase)();
|
|
996
|
+
const trades = db.getHyperliquidTrades(getUserId(), {
|
|
997
|
+
coin: coin?.toUpperCase(),
|
|
998
|
+
limit: limit ? parseInt(limit) : 20,
|
|
999
|
+
});
|
|
1000
|
+
if (trades.length === 0) {
|
|
1001
|
+
return 'No trades in database';
|
|
1002
|
+
}
|
|
1003
|
+
const lines = ['**Trade History (DB)**', ''];
|
|
1004
|
+
for (const t of trades) {
|
|
1005
|
+
const pnlStr = t.closedPnl !== undefined
|
|
1006
|
+
? ` PnL: ${t.closedPnl >= 0 ? '+' : ''}$${t.closedPnl.toFixed(2)}`
|
|
1007
|
+
: '';
|
|
1008
|
+
lines.push(` ${t.timestamp.toLocaleDateString()} ${t.coin} ${t.direction || t.side} ${t.size} @ $${t.price.toFixed(2)}${pnlStr}`);
|
|
1009
|
+
}
|
|
1010
|
+
return lines.join('\n');
|
|
1011
|
+
}
|
|
1012
|
+
async function handleDbStats(coin, period) {
|
|
1013
|
+
const db = await (0, db_1.initDatabase)();
|
|
1014
|
+
let since;
|
|
1015
|
+
if (period) {
|
|
1016
|
+
const now = Date.now();
|
|
1017
|
+
if (period === 'day' || period === '1d')
|
|
1018
|
+
since = now - 24 * 60 * 60 * 1000;
|
|
1019
|
+
else if (period === 'week' || period === '7d')
|
|
1020
|
+
since = now - 7 * 24 * 60 * 60 * 1000;
|
|
1021
|
+
else if (period === 'month' || period === '30d')
|
|
1022
|
+
since = now - 30 * 24 * 60 * 60 * 1000;
|
|
1023
|
+
}
|
|
1024
|
+
const stats = db.getHyperliquidStats(getUserId(), {
|
|
1025
|
+
coin: coin?.toUpperCase(),
|
|
1026
|
+
since,
|
|
1027
|
+
});
|
|
1028
|
+
const fundingTotal = db.getHyperliquidFundingTotal(getUserId(), {
|
|
1029
|
+
coin: coin?.toUpperCase(),
|
|
1030
|
+
since,
|
|
1031
|
+
});
|
|
1032
|
+
const lines = [
|
|
1033
|
+
`**Trade Statistics${coin ? ` (${coin.toUpperCase()})` : ''}${period ? ` - ${period}` : ''}**`,
|
|
1034
|
+
'',
|
|
1035
|
+
`Total Trades: ${stats.totalTrades}`,
|
|
1036
|
+
`Total Volume: $${formatNumber(stats.totalVolume)}`,
|
|
1037
|
+
`Total Fees: $${stats.totalFees.toFixed(2)}`,
|
|
1038
|
+
`Total PnL: ${stats.totalPnl >= 0 ? '+' : ''}$${stats.totalPnl.toFixed(2)}`,
|
|
1039
|
+
`Funding Paid: ${fundingTotal >= 0 ? '+' : ''}$${fundingTotal.toFixed(2)}`,
|
|
1040
|
+
'',
|
|
1041
|
+
`Win Rate: ${stats.winRate.toFixed(1)}% (${stats.winCount}W / ${stats.lossCount}L)`,
|
|
1042
|
+
`Avg Win: $${stats.avgWin.toFixed(2)}`,
|
|
1043
|
+
`Avg Loss: $${stats.avgLoss.toFixed(2)}`,
|
|
1044
|
+
`Largest Win: $${stats.largestWin.toFixed(2)}`,
|
|
1045
|
+
`Largest Loss: $${stats.largestLoss.toFixed(2)}`,
|
|
1046
|
+
`Profit Factor: ${stats.profitFactor === Infinity ? '∞' : stats.profitFactor.toFixed(2)}`,
|
|
1047
|
+
];
|
|
1048
|
+
if (Object.keys(stats.byCoin).length > 1) {
|
|
1049
|
+
lines.push('', '**By Coin:**');
|
|
1050
|
+
for (const [c, data] of Object.entries(stats.byCoin)) {
|
|
1051
|
+
const pnlStr = data.pnl >= 0 ? '+' : '';
|
|
1052
|
+
lines.push(` ${c}: ${data.trades} trades, ${pnlStr}$${data.pnl.toFixed(2)}`);
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
return lines.join('\n');
|
|
1056
|
+
}
|
|
1057
|
+
async function handleDbFunding(coin, limit) {
|
|
1058
|
+
const db = await (0, db_1.initDatabase)();
|
|
1059
|
+
const funding = db.getHyperliquidFunding(getUserId(), {
|
|
1060
|
+
coin: coin?.toUpperCase(),
|
|
1061
|
+
limit: limit ? parseInt(limit) : 20,
|
|
1062
|
+
});
|
|
1063
|
+
if (funding.length === 0) {
|
|
1064
|
+
return 'No funding payments in database';
|
|
1065
|
+
}
|
|
1066
|
+
const lines = ['**Funding History (DB)**', ''];
|
|
1067
|
+
let total = 0;
|
|
1068
|
+
for (const f of funding) {
|
|
1069
|
+
total += f.payment;
|
|
1070
|
+
const payStr = f.payment >= 0 ? `+$${f.payment.toFixed(4)}` : `-$${Math.abs(f.payment).toFixed(4)}`;
|
|
1071
|
+
lines.push(` ${f.timestamp.toLocaleDateString()} ${f.coin}: ${payStr} (rate: ${(f.fundingRate * 100).toFixed(4)}%)`);
|
|
1072
|
+
}
|
|
1073
|
+
lines.push('', `Total: ${total >= 0 ? '+' : ''}$${total.toFixed(2)}`);
|
|
1074
|
+
return lines.join('\n');
|
|
1075
|
+
}
|
|
1076
|
+
async function handleDbPositions(openOnly) {
|
|
1077
|
+
const db = await (0, db_1.initDatabase)();
|
|
1078
|
+
const positions = db.getHyperliquidPositions(getUserId(), {
|
|
1079
|
+
openOnly: openOnly !== 'all',
|
|
1080
|
+
});
|
|
1081
|
+
if (positions.length === 0) {
|
|
1082
|
+
return 'No positions in database';
|
|
1083
|
+
}
|
|
1084
|
+
const lines = ['**Position History (DB)**', ''];
|
|
1085
|
+
for (const p of positions) {
|
|
1086
|
+
const status = p.closedAt ? `CLOSED @ $${p.closePrice?.toFixed(2)}` : 'OPEN';
|
|
1087
|
+
const pnl = p.closedAt ? p.realizedPnl : p.unrealizedPnl;
|
|
1088
|
+
const pnlStr = pnl !== undefined ? ` (${pnl >= 0 ? '+' : ''}$${pnl.toFixed(2)})` : '';
|
|
1089
|
+
lines.push(` ${p.coin} ${p.side} ${p.size} @ $${p.entryPrice.toFixed(2)} - ${status}${pnlStr}`);
|
|
1090
|
+
}
|
|
1091
|
+
return lines.join('\n');
|
|
1092
|
+
}
|
|
1093
|
+
async function handleBorrowLend() {
|
|
1094
|
+
const reserves = await hl.getAllBorrowLendReserves();
|
|
1095
|
+
if (!reserves || reserves.length === 0) {
|
|
1096
|
+
return 'Borrow/Lend not available';
|
|
1097
|
+
}
|
|
1098
|
+
const lines = ['**Borrow/Lend Rates**', ''];
|
|
1099
|
+
for (const r of reserves.slice(0, 8)) {
|
|
1100
|
+
lines.push(`**${r.token}**`);
|
|
1101
|
+
lines.push(` Supply: ${parseFloat(r.depositApy).toFixed(2)}% APY`);
|
|
1102
|
+
lines.push(` Borrow: ${parseFloat(r.borrowApy).toFixed(2)}% APY`);
|
|
1103
|
+
lines.push(` Util: ${(parseFloat(r.utilizationRate) * 100).toFixed(1)}%`);
|
|
1104
|
+
lines.push('');
|
|
1105
|
+
}
|
|
1106
|
+
return lines.join('\n');
|
|
1107
|
+
}
|
|
1108
|
+
// =============================================================================
|
|
1109
|
+
// MAIN HANDLER
|
|
1110
|
+
// =============================================================================
|
|
1111
|
+
exports.skill = {
|
|
1112
|
+
name: 'hyperliquid',
|
|
1113
|
+
description: 'Hyperliquid perps DEX (69% market share)',
|
|
1114
|
+
commands: [
|
|
1115
|
+
{
|
|
1116
|
+
name: 'hl',
|
|
1117
|
+
description: 'Hyperliquid commands',
|
|
1118
|
+
usage: '/hl <command>',
|
|
1119
|
+
},
|
|
1120
|
+
],
|
|
1121
|
+
requires: { env: ['HYPERLIQUID_PRIVATE_KEY'] },
|
|
1122
|
+
async handler(args) {
|
|
1123
|
+
const parts = args.trim().split(/\s+/);
|
|
1124
|
+
const cmd = parts[0]?.toLowerCase();
|
|
1125
|
+
try {
|
|
1126
|
+
switch (cmd) {
|
|
1127
|
+
// Market Data
|
|
1128
|
+
case 'stats':
|
|
1129
|
+
case '':
|
|
1130
|
+
case undefined:
|
|
1131
|
+
return handleStats();
|
|
1132
|
+
case 'markets':
|
|
1133
|
+
case 'm':
|
|
1134
|
+
return handleMarkets(parts[1]);
|
|
1135
|
+
case 'price':
|
|
1136
|
+
case 'p':
|
|
1137
|
+
return parts[1] ? handlePrice(parts[1]) : 'Usage: /hl price <coin>';
|
|
1138
|
+
case 'book':
|
|
1139
|
+
case 'ob':
|
|
1140
|
+
return parts[1] ? handleOrderbook(parts[1]) : 'Usage: /hl book <coin>';
|
|
1141
|
+
case 'candles':
|
|
1142
|
+
case 'chart':
|
|
1143
|
+
case 'c':
|
|
1144
|
+
return parts[1] ? handleCandles(parts[1], parts[2]) : 'Usage: /hl candles <coin> [interval]';
|
|
1145
|
+
case 'funding':
|
|
1146
|
+
case 'f':
|
|
1147
|
+
return handleFunding(parts[1]);
|
|
1148
|
+
// Account
|
|
1149
|
+
case 'balance':
|
|
1150
|
+
case 'bal':
|
|
1151
|
+
case 'b':
|
|
1152
|
+
return handleBalance();
|
|
1153
|
+
case 'portfolio':
|
|
1154
|
+
case 'pf':
|
|
1155
|
+
return handlePortfolio();
|
|
1156
|
+
case 'orders':
|
|
1157
|
+
case 'o':
|
|
1158
|
+
return handleOrders(parts[1], ...parts.slice(2));
|
|
1159
|
+
case 'fills':
|
|
1160
|
+
return handleFills(parts[1]);
|
|
1161
|
+
case 'history':
|
|
1162
|
+
case 'h':
|
|
1163
|
+
return handleHistory();
|
|
1164
|
+
// Trading
|
|
1165
|
+
case 'long':
|
|
1166
|
+
case 'l':
|
|
1167
|
+
return handleLong(parts[1], parts[2], parts[3]);
|
|
1168
|
+
case 'short':
|
|
1169
|
+
case 's':
|
|
1170
|
+
return handleShort(parts[1], parts[2], parts[3]);
|
|
1171
|
+
case 'close':
|
|
1172
|
+
return parts[1] ? handleClose(parts[1]) : 'Usage: /hl close <coin>';
|
|
1173
|
+
case 'closeall':
|
|
1174
|
+
return handleCloseAll();
|
|
1175
|
+
case 'leverage':
|
|
1176
|
+
case 'lev':
|
|
1177
|
+
return handleLeverage(parts[1], parts[2]);
|
|
1178
|
+
case 'margin':
|
|
1179
|
+
return handleMargin(parts[1], parts[2]);
|
|
1180
|
+
// TWAP
|
|
1181
|
+
case 'twap':
|
|
1182
|
+
return handleTwap(parts[1], ...parts.slice(2));
|
|
1183
|
+
// Spot
|
|
1184
|
+
case 'spot':
|
|
1185
|
+
return handleSpot(parts[1], ...parts.slice(2));
|
|
1186
|
+
// Vaults
|
|
1187
|
+
case 'hlp':
|
|
1188
|
+
case 'vault':
|
|
1189
|
+
return handleHlp(parts[1], parts[2]);
|
|
1190
|
+
case 'vaults':
|
|
1191
|
+
return handleVaults();
|
|
1192
|
+
// Transfers
|
|
1193
|
+
case 'transfer':
|
|
1194
|
+
case 'send':
|
|
1195
|
+
return handleTransfer(parts[1], ...parts.slice(2));
|
|
1196
|
+
// Info
|
|
1197
|
+
case 'fees':
|
|
1198
|
+
return handleFees();
|
|
1199
|
+
case 'points':
|
|
1200
|
+
return handlePoints();
|
|
1201
|
+
case 'referral':
|
|
1202
|
+
case 'ref':
|
|
1203
|
+
return handleReferral();
|
|
1204
|
+
case 'claim':
|
|
1205
|
+
return handleClaim();
|
|
1206
|
+
case 'leaderboard':
|
|
1207
|
+
case 'lb':
|
|
1208
|
+
return handleLeaderboard(parts[1]);
|
|
1209
|
+
case 'sub':
|
|
1210
|
+
case 'subaccounts':
|
|
1211
|
+
return handleSubaccounts(parts[1], ...parts.slice(2));
|
|
1212
|
+
case 'lend':
|
|
1213
|
+
case 'borrow':
|
|
1214
|
+
return handleBorrowLend();
|
|
1215
|
+
// Database queries
|
|
1216
|
+
case 'trades':
|
|
1217
|
+
case 'dbtrades':
|
|
1218
|
+
return handleDbTrades(parts[1], parts[2]);
|
|
1219
|
+
case 'dbstats':
|
|
1220
|
+
case 'tradestats':
|
|
1221
|
+
return handleDbStats(parts[1], parts[2]);
|
|
1222
|
+
case 'dbfunding':
|
|
1223
|
+
return handleDbFunding(parts[1], parts[2]);
|
|
1224
|
+
case 'dbpositions':
|
|
1225
|
+
return handleDbPositions(parts[1]);
|
|
1226
|
+
case 'help':
|
|
1227
|
+
default:
|
|
1228
|
+
return [
|
|
1229
|
+
'**Hyperliquid Commands**',
|
|
1230
|
+
'',
|
|
1231
|
+
'**Market Data:**',
|
|
1232
|
+
' /hl stats - HLP stats, funding rates',
|
|
1233
|
+
' /hl markets [q] - List markets',
|
|
1234
|
+
' /hl price <coin> - Get price',
|
|
1235
|
+
' /hl book <coin> - Orderbook',
|
|
1236
|
+
' /hl candles <coin> - OHLCV data',
|
|
1237
|
+
' /hl funding [coin] - Funding rates',
|
|
1238
|
+
'',
|
|
1239
|
+
'**Account:**',
|
|
1240
|
+
' /hl balance - Positions & balances',
|
|
1241
|
+
' /hl portfolio - PnL summary',
|
|
1242
|
+
' /hl orders - Open orders',
|
|
1243
|
+
' /hl fills - Recent fills',
|
|
1244
|
+
' /hl history - Order history',
|
|
1245
|
+
'',
|
|
1246
|
+
'**Trading:**',
|
|
1247
|
+
' /hl long <coin> <size> [price]',
|
|
1248
|
+
' /hl short <coin> <size> [price]',
|
|
1249
|
+
' /hl close <coin> - Close position',
|
|
1250
|
+
' /hl closeall - Close all positions',
|
|
1251
|
+
' /hl leverage <coin> <x>',
|
|
1252
|
+
' /hl twap [buy|sell] <coin> <size> <mins>',
|
|
1253
|
+
'',
|
|
1254
|
+
'**Transfers:**',
|
|
1255
|
+
' /hl transfer spot2perp <amt>',
|
|
1256
|
+
' /hl transfer send <addr> <amt>',
|
|
1257
|
+
' /hl transfer withdraw <addr> <amt>',
|
|
1258
|
+
'',
|
|
1259
|
+
'**Other:**',
|
|
1260
|
+
' /hl hlp [deposit|withdraw]',
|
|
1261
|
+
' /hl spot [buy|sell]',
|
|
1262
|
+
' /hl fees, points, referral, lb',
|
|
1263
|
+
'',
|
|
1264
|
+
'**Database/History:**',
|
|
1265
|
+
' /hl trades [coin] [limit] - Trade history',
|
|
1266
|
+
' /hl dbstats [coin] [period] - Win rate, PnL stats',
|
|
1267
|
+
' /hl dbfunding [coin] - Funding payments',
|
|
1268
|
+
' /hl dbpositions [all] - Position history',
|
|
1269
|
+
].join('\n');
|
|
1270
|
+
}
|
|
1271
|
+
}
|
|
1272
|
+
catch (error) {
|
|
1273
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
1274
|
+
logger_1.logger.error({ error: message, args }, 'Hyperliquid command failed');
|
|
1275
|
+
return `Error: ${message}`;
|
|
1276
|
+
}
|
|
1277
|
+
},
|
|
1278
|
+
};
|
|
1279
|
+
exports.default = exports.skill;
|
|
1280
|
+
//# sourceMappingURL=index.js.map
|