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,1377 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Kalshi Handlers
|
|
4
|
+
*
|
|
5
|
+
* All 78 Kalshi platform handlers migrated from agents/index.ts switch cases.
|
|
6
|
+
* Includes execution-service-based trading, no-auth exchange info,
|
|
7
|
+
* and credential-based Python CLI handlers.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.kalshiHandlers = void 0;
|
|
11
|
+
const child_process_1 = require("child_process");
|
|
12
|
+
const path_1 = require("path");
|
|
13
|
+
const types_1 = require("./types");
|
|
14
|
+
const risk_1 = require("../../trading/risk");
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// HELPERS
|
|
17
|
+
// =============================================================================
|
|
18
|
+
/**
|
|
19
|
+
* Build environment variables for Kalshi Python CLI
|
|
20
|
+
*/
|
|
21
|
+
function buildKalshiEnv(creds) {
|
|
22
|
+
const env = { ...process.env };
|
|
23
|
+
if (creds.apiKeyId && creds.privateKeyPem) {
|
|
24
|
+
env.KALSHI_API_KEY_ID = creds.apiKeyId;
|
|
25
|
+
env.KALSHI_PRIVATE_KEY = creds.privateKeyPem;
|
|
26
|
+
}
|
|
27
|
+
if (creds.email && creds.password) {
|
|
28
|
+
env.KALSHI_EMAIL = creds.email;
|
|
29
|
+
env.KALSHI_PASSWORD = creds.password;
|
|
30
|
+
}
|
|
31
|
+
return env;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Get Kalshi credentials from handler context
|
|
35
|
+
*/
|
|
36
|
+
function getKalshiCreds(context) {
|
|
37
|
+
const kalshiCreds = context.tradingContext?.credentials.get('kalshi');
|
|
38
|
+
if (!kalshiCreds || kalshiCreds.platform !== 'kalshi')
|
|
39
|
+
return null;
|
|
40
|
+
return kalshiCreds;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get the trading directory path (relative to this file's location)
|
|
44
|
+
*/
|
|
45
|
+
function getTradingDir() {
|
|
46
|
+
return (0, path_1.join)(__dirname, '..', '..', '..', 'trading');
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Execute a Kalshi Python CLI command with credentials
|
|
50
|
+
*/
|
|
51
|
+
function execKalshiPython(cmd, userEnv) {
|
|
52
|
+
try {
|
|
53
|
+
const output = (0, child_process_1.execSync)(cmd, { timeout: 30000, encoding: 'utf-8', env: userEnv });
|
|
54
|
+
return output.trim();
|
|
55
|
+
}
|
|
56
|
+
catch (err) {
|
|
57
|
+
return JSON.stringify({ error: err.stderr || err.message });
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// =============================================================================
|
|
61
|
+
// EXECUTION-SERVICE-BASED HANDLERS
|
|
62
|
+
// =============================================================================
|
|
63
|
+
/**
|
|
64
|
+
* kalshi_buy - Place a buy limit order via execution service
|
|
65
|
+
*/
|
|
66
|
+
async function buyHandler(toolInput, context) {
|
|
67
|
+
const ticker = toolInput.ticker;
|
|
68
|
+
const side = toolInput.side;
|
|
69
|
+
const count = toolInput.count;
|
|
70
|
+
const price = toolInput.price;
|
|
71
|
+
const notional = count * (price > 1 ? price / 100 : price);
|
|
72
|
+
const userId = context.userId || '';
|
|
73
|
+
const maxError = (0, risk_1.enforceMaxOrderSize)(context, notional, 'kalshi_buy');
|
|
74
|
+
if (maxError)
|
|
75
|
+
return maxError;
|
|
76
|
+
const exposureError = (0, risk_1.enforceExposureLimits)(context, userId, {
|
|
77
|
+
platform: 'kalshi',
|
|
78
|
+
marketId: ticker,
|
|
79
|
+
outcomeId: side,
|
|
80
|
+
notional,
|
|
81
|
+
label: 'kalshi_buy',
|
|
82
|
+
});
|
|
83
|
+
if (exposureError)
|
|
84
|
+
return exposureError;
|
|
85
|
+
const execSvc = context.tradingContext?.executionService;
|
|
86
|
+
if (execSvc) {
|
|
87
|
+
try {
|
|
88
|
+
const result = await execSvc.buyLimit({
|
|
89
|
+
platform: 'kalshi',
|
|
90
|
+
marketId: ticker,
|
|
91
|
+
outcome: side,
|
|
92
|
+
price: price > 1 ? price / 100 : price,
|
|
93
|
+
size: count,
|
|
94
|
+
orderType: 'GTC',
|
|
95
|
+
});
|
|
96
|
+
if (result.success) {
|
|
97
|
+
await context.credentials?.markSuccess(userId, 'kalshi');
|
|
98
|
+
return JSON.stringify({
|
|
99
|
+
result: 'Order placed',
|
|
100
|
+
orderId: result.orderId,
|
|
101
|
+
filledSize: result.filledSize,
|
|
102
|
+
avgFillPrice: result.avgFillPrice,
|
|
103
|
+
status: result.status,
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
return JSON.stringify({ error: 'Order failed', details: result.error });
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
catch (err) {
|
|
111
|
+
return JSON.stringify({ error: 'Order failed', details: err.message });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
115
|
+
if (!kalshiCreds) {
|
|
116
|
+
return JSON.stringify({ error: 'No trading service configured. Set up trading credentials in config.' });
|
|
117
|
+
}
|
|
118
|
+
return JSON.stringify({ error: 'Trading execution not available. Configure trading.enabled=true in config with Kalshi credentials.' });
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* kalshi_sell - Place a sell limit order via execution service
|
|
122
|
+
*/
|
|
123
|
+
async function sellHandler(toolInput, context) {
|
|
124
|
+
const ticker = toolInput.ticker;
|
|
125
|
+
const side = toolInput.side;
|
|
126
|
+
const count = toolInput.count;
|
|
127
|
+
const price = toolInput.price;
|
|
128
|
+
const userId = context.userId || '';
|
|
129
|
+
const execSvc = context.tradingContext?.executionService;
|
|
130
|
+
if (execSvc) {
|
|
131
|
+
try {
|
|
132
|
+
const result = await execSvc.sellLimit({
|
|
133
|
+
platform: 'kalshi',
|
|
134
|
+
marketId: ticker,
|
|
135
|
+
outcome: side,
|
|
136
|
+
price: price > 1 ? price / 100 : price,
|
|
137
|
+
size: count,
|
|
138
|
+
orderType: 'GTC',
|
|
139
|
+
});
|
|
140
|
+
if (result.success) {
|
|
141
|
+
await context.credentials?.markSuccess(userId, 'kalshi');
|
|
142
|
+
return JSON.stringify({
|
|
143
|
+
result: 'Sell order placed',
|
|
144
|
+
orderId: result.orderId,
|
|
145
|
+
filledSize: result.filledSize,
|
|
146
|
+
avgFillPrice: result.avgFillPrice,
|
|
147
|
+
status: result.status,
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
return JSON.stringify({ error: 'Sell failed', details: result.error });
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
catch (err) {
|
|
155
|
+
return JSON.stringify({ error: 'Sell failed', details: err.message });
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
159
|
+
if (!kalshiCreds) {
|
|
160
|
+
return JSON.stringify({ error: 'No trading service configured. Set up trading credentials in config.' });
|
|
161
|
+
}
|
|
162
|
+
return JSON.stringify({ error: 'Trading execution not available. Configure trading.enabled=true in config with Kalshi credentials.' });
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* kalshi_orders - Get open orders via execution service
|
|
166
|
+
*/
|
|
167
|
+
async function ordersHandler(toolInput, context) {
|
|
168
|
+
const execSvc = context.tradingContext?.executionService;
|
|
169
|
+
if (execSvc) {
|
|
170
|
+
try {
|
|
171
|
+
const orders = await execSvc.getOpenOrders('kalshi');
|
|
172
|
+
return JSON.stringify({
|
|
173
|
+
result: orders.map(o => ({
|
|
174
|
+
orderId: o.orderId,
|
|
175
|
+
marketId: o.marketId,
|
|
176
|
+
outcome: o.outcome,
|
|
177
|
+
side: o.side,
|
|
178
|
+
price: o.price,
|
|
179
|
+
originalSize: o.originalSize,
|
|
180
|
+
remainingSize: o.remainingSize,
|
|
181
|
+
filledSize: o.filledSize,
|
|
182
|
+
status: o.status,
|
|
183
|
+
createdAt: o.createdAt,
|
|
184
|
+
})),
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
catch (err) {
|
|
188
|
+
return JSON.stringify({ error: 'Orders fetch failed', details: err.message });
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
192
|
+
if (!kalshiCreds) {
|
|
193
|
+
return JSON.stringify({ error: 'No trading service configured. Set up trading credentials in config.' });
|
|
194
|
+
}
|
|
195
|
+
return JSON.stringify({ error: 'Trading execution not available. Configure trading.enabled=true in config with Kalshi credentials.' });
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* kalshi_cancel - Cancel an order via execution service
|
|
199
|
+
*/
|
|
200
|
+
async function cancelHandler(toolInput, context) {
|
|
201
|
+
const orderId = toolInput.order_id;
|
|
202
|
+
const execSvc = context.tradingContext?.executionService;
|
|
203
|
+
if (execSvc) {
|
|
204
|
+
try {
|
|
205
|
+
const success = await execSvc.cancelOrder('kalshi', orderId);
|
|
206
|
+
if (success) {
|
|
207
|
+
return JSON.stringify({ result: 'Order cancelled', orderId });
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
return JSON.stringify({ error: 'Cancel failed', details: 'Order not found or already filled' });
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
catch (err) {
|
|
214
|
+
return JSON.stringify({ error: 'Cancel failed', details: err.message });
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
218
|
+
if (!kalshiCreds) {
|
|
219
|
+
return JSON.stringify({ error: 'No trading service configured. Set up trading credentials in config.' });
|
|
220
|
+
}
|
|
221
|
+
return JSON.stringify({ error: 'Trading execution not available. Configure trading.enabled=true in config with Kalshi credentials.' });
|
|
222
|
+
}
|
|
223
|
+
// =============================================================================
|
|
224
|
+
// NO-AUTH EXCHANGE INFO HANDLERS
|
|
225
|
+
// =============================================================================
|
|
226
|
+
/**
|
|
227
|
+
* kalshi_exchange_status - Get exchange status (no auth required)
|
|
228
|
+
*/
|
|
229
|
+
async function exchangeStatusHandler(_toolInput, _context) {
|
|
230
|
+
const tradingDir = getTradingDir();
|
|
231
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py exchange_status`;
|
|
232
|
+
try {
|
|
233
|
+
const output = (0, child_process_1.execSync)(cmd, { timeout: 30000, encoding: 'utf-8' });
|
|
234
|
+
return output.trim();
|
|
235
|
+
}
|
|
236
|
+
catch (err) {
|
|
237
|
+
return JSON.stringify({ error: err.stderr || err.message });
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* kalshi_exchange_schedule - Get exchange schedule (no auth required)
|
|
242
|
+
*/
|
|
243
|
+
async function exchangeScheduleHandler(_toolInput, _context) {
|
|
244
|
+
const tradingDir = getTradingDir();
|
|
245
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py exchange_schedule`;
|
|
246
|
+
try {
|
|
247
|
+
const output = (0, child_process_1.execSync)(cmd, { timeout: 30000, encoding: 'utf-8' });
|
|
248
|
+
return output.trim();
|
|
249
|
+
}
|
|
250
|
+
catch (err) {
|
|
251
|
+
return JSON.stringify({ error: err.stderr || err.message });
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* kalshi_announcements - Get exchange announcements (no auth required)
|
|
256
|
+
*/
|
|
257
|
+
async function announcementsHandler(_toolInput, _context) {
|
|
258
|
+
const tradingDir = getTradingDir();
|
|
259
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py announcements`;
|
|
260
|
+
try {
|
|
261
|
+
const output = (0, child_process_1.execSync)(cmd, { timeout: 30000, encoding: 'utf-8' });
|
|
262
|
+
return output.trim();
|
|
263
|
+
}
|
|
264
|
+
catch (err) {
|
|
265
|
+
return JSON.stringify({ error: err.stderr || err.message });
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
// =============================================================================
|
|
269
|
+
// CREDENTIAL-BASED PYTHON HANDLERS
|
|
270
|
+
// =============================================================================
|
|
271
|
+
/**
|
|
272
|
+
* kalshi_positions - Get current positions
|
|
273
|
+
*/
|
|
274
|
+
async function positionsHandler(_toolInput, context) {
|
|
275
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
276
|
+
if (!kalshiCreds)
|
|
277
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up. Use setup_kalshi_credentials first.');
|
|
278
|
+
const tradingDir = getTradingDir();
|
|
279
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py positions`;
|
|
280
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
281
|
+
try {
|
|
282
|
+
const output = (0, child_process_1.execSync)(cmd, { timeout: 30000, encoding: 'utf-8', env: userEnv });
|
|
283
|
+
return JSON.stringify({ result: output.trim() });
|
|
284
|
+
}
|
|
285
|
+
catch (error) {
|
|
286
|
+
return JSON.stringify({ error: 'Failed to get positions', details: error.stderr || error.message });
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* kalshi_search - Search for markets
|
|
291
|
+
*/
|
|
292
|
+
async function searchHandler(toolInput, context) {
|
|
293
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
294
|
+
if (!kalshiCreds)
|
|
295
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up. Use setup_kalshi_credentials first.');
|
|
296
|
+
const query = toolInput.query;
|
|
297
|
+
const tradingDir = getTradingDir();
|
|
298
|
+
const sanitizedQuery = query ? query.replace(/[^a-zA-Z0-9\s_\-.,]/g, '') : '';
|
|
299
|
+
const cmd = sanitizedQuery
|
|
300
|
+
? `cd ${tradingDir} && python3 kalshi.py search "${sanitizedQuery}"`
|
|
301
|
+
: `cd ${tradingDir} && python3 kalshi.py search`;
|
|
302
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
303
|
+
return execKalshiPython(cmd, userEnv);
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* kalshi_market - Get market details
|
|
307
|
+
*/
|
|
308
|
+
async function marketHandler(toolInput, context) {
|
|
309
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
310
|
+
if (!kalshiCreds)
|
|
311
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up. Use setup_kalshi_credentials first.');
|
|
312
|
+
const ticker = toolInput.ticker;
|
|
313
|
+
const tradingDir = getTradingDir();
|
|
314
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py market ${ticker}`;
|
|
315
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
316
|
+
return execKalshiPython(cmd, userEnv);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* kalshi_balance - Get account balance
|
|
320
|
+
*/
|
|
321
|
+
async function balanceHandler(_toolInput, context) {
|
|
322
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
323
|
+
if (!kalshiCreds)
|
|
324
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up. Use setup_kalshi_credentials first.');
|
|
325
|
+
const tradingDir = getTradingDir();
|
|
326
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py balance`;
|
|
327
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
328
|
+
return execKalshiPython(cmd, userEnv);
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* kalshi_orderbook - Get orderbook for a market
|
|
332
|
+
*/
|
|
333
|
+
async function orderbookHandler(toolInput, context) {
|
|
334
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
335
|
+
if (!kalshiCreds)
|
|
336
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
337
|
+
const ticker = toolInput.ticker;
|
|
338
|
+
const tradingDir = getTradingDir();
|
|
339
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py orderbook ${ticker}`;
|
|
340
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
341
|
+
return execKalshiPython(cmd, userEnv);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* kalshi_market_trades - Get recent trades for a market
|
|
345
|
+
*/
|
|
346
|
+
async function marketTradesHandler(toolInput, context) {
|
|
347
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
348
|
+
if (!kalshiCreds)
|
|
349
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
350
|
+
const ticker = toolInput.ticker;
|
|
351
|
+
const limit = toolInput.limit;
|
|
352
|
+
const tradingDir = getTradingDir();
|
|
353
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py market_trades`;
|
|
354
|
+
if (ticker)
|
|
355
|
+
cmd += ` --ticker ${ticker}`;
|
|
356
|
+
if (limit)
|
|
357
|
+
cmd += ` --limit ${limit}`;
|
|
358
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
359
|
+
return execKalshiPython(cmd, userEnv);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* kalshi_candlesticks - Get candlestick data
|
|
363
|
+
*/
|
|
364
|
+
async function candlesticksHandler(toolInput, context) {
|
|
365
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
366
|
+
if (!kalshiCreds)
|
|
367
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
368
|
+
const seriesTicker = toolInput.series_ticker;
|
|
369
|
+
const ticker = toolInput.ticker;
|
|
370
|
+
const interval = toolInput.interval;
|
|
371
|
+
const tradingDir = getTradingDir();
|
|
372
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py candlesticks ${seriesTicker} ${ticker}`;
|
|
373
|
+
if (interval)
|
|
374
|
+
cmd += ` --interval ${interval}`;
|
|
375
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
376
|
+
return execKalshiPython(cmd, userEnv);
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* kalshi_events - List events
|
|
380
|
+
*/
|
|
381
|
+
async function eventsHandler(toolInput, context) {
|
|
382
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
383
|
+
if (!kalshiCreds)
|
|
384
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
385
|
+
const status = toolInput.status;
|
|
386
|
+
const seriesTicker = toolInput.series_ticker;
|
|
387
|
+
const tradingDir = getTradingDir();
|
|
388
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py events`;
|
|
389
|
+
if (status)
|
|
390
|
+
cmd += ` --status ${status}`;
|
|
391
|
+
if (seriesTicker)
|
|
392
|
+
cmd += ` --series ${seriesTicker}`;
|
|
393
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
394
|
+
return execKalshiPython(cmd, userEnv);
|
|
395
|
+
}
|
|
396
|
+
/**
|
|
397
|
+
* kalshi_event - Get event details
|
|
398
|
+
*/
|
|
399
|
+
async function eventHandler(toolInput, context) {
|
|
400
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
401
|
+
if (!kalshiCreds)
|
|
402
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
403
|
+
const eventTicker = toolInput.event_ticker;
|
|
404
|
+
const tradingDir = getTradingDir();
|
|
405
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py event ${eventTicker}`;
|
|
406
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
407
|
+
return execKalshiPython(cmd, userEnv);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* kalshi_series - List series
|
|
411
|
+
*/
|
|
412
|
+
async function seriesHandler(toolInput, context) {
|
|
413
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
414
|
+
if (!kalshiCreds)
|
|
415
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
416
|
+
const category = toolInput.category;
|
|
417
|
+
const tradingDir = getTradingDir();
|
|
418
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py series`;
|
|
419
|
+
if (category)
|
|
420
|
+
cmd += ` --category ${category}`;
|
|
421
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
422
|
+
return execKalshiPython(cmd, userEnv);
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* kalshi_series_info - Get series info
|
|
426
|
+
*/
|
|
427
|
+
async function seriesInfoHandler(toolInput, context) {
|
|
428
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
429
|
+
if (!kalshiCreds)
|
|
430
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
431
|
+
const seriesTicker = toolInput.series_ticker;
|
|
432
|
+
const tradingDir = getTradingDir();
|
|
433
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py series_info ${seriesTicker}`;
|
|
434
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
435
|
+
return execKalshiPython(cmd, userEnv);
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* kalshi_market_order - Place a market order with risk checks
|
|
439
|
+
*/
|
|
440
|
+
async function marketOrderHandler(toolInput, context) {
|
|
441
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
442
|
+
if (!kalshiCreds)
|
|
443
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
444
|
+
const ticker = toolInput.ticker;
|
|
445
|
+
const side = toolInput.side;
|
|
446
|
+
const action = toolInput.action;
|
|
447
|
+
const count = toolInput.count;
|
|
448
|
+
const userId = context.userId || '';
|
|
449
|
+
if (action?.toLowerCase() === 'buy') {
|
|
450
|
+
const maxError = (0, risk_1.enforceMaxOrderSize)(context, count, 'kalshi_market_order');
|
|
451
|
+
if (maxError)
|
|
452
|
+
return maxError;
|
|
453
|
+
const exposureError = (0, risk_1.enforceExposureLimits)(context, userId, {
|
|
454
|
+
platform: 'kalshi',
|
|
455
|
+
marketId: ticker,
|
|
456
|
+
outcomeId: side,
|
|
457
|
+
notional: count,
|
|
458
|
+
label: 'kalshi_market_order',
|
|
459
|
+
});
|
|
460
|
+
if (exposureError)
|
|
461
|
+
return exposureError;
|
|
462
|
+
}
|
|
463
|
+
const tradingDir = getTradingDir();
|
|
464
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py market_order ${ticker} ${side} ${action} ${count}`;
|
|
465
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
466
|
+
return execKalshiPython(cmd, userEnv);
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* kalshi_batch_create_orders - Batch create orders with risk checks
|
|
470
|
+
*/
|
|
471
|
+
async function batchCreateOrdersHandler(toolInput, context) {
|
|
472
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
473
|
+
if (!kalshiCreds)
|
|
474
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
475
|
+
const orders = toolInput.orders;
|
|
476
|
+
const userId = context.userId || '';
|
|
477
|
+
if (Array.isArray(orders) && orders.length > 0) {
|
|
478
|
+
let total = 0;
|
|
479
|
+
const perKey = new Map();
|
|
480
|
+
for (const order of orders) {
|
|
481
|
+
if (!order || typeof order !== 'object')
|
|
482
|
+
continue;
|
|
483
|
+
const raw = order;
|
|
484
|
+
const action = String(raw.action || '').toLowerCase();
|
|
485
|
+
if (action && action !== 'buy')
|
|
486
|
+
continue;
|
|
487
|
+
const count = Number(raw.count);
|
|
488
|
+
if (!Number.isFinite(count) || count <= 0)
|
|
489
|
+
continue;
|
|
490
|
+
const priceRaw = raw.yes_price ?? raw.no_price ?? raw.price ?? raw.yesPrice ?? raw.noPrice;
|
|
491
|
+
const priceNum = Number(priceRaw);
|
|
492
|
+
if (!Number.isFinite(priceNum) || priceNum <= 0)
|
|
493
|
+
continue;
|
|
494
|
+
const price = priceNum > 1 ? priceNum / 100 : priceNum;
|
|
495
|
+
const notional = count * price;
|
|
496
|
+
total += notional;
|
|
497
|
+
const ticker = String(raw.ticker || '');
|
|
498
|
+
const side = String(raw.side || '');
|
|
499
|
+
const key = `${ticker}:${side}`;
|
|
500
|
+
perKey.set(key, (perKey.get(key) || 0) + notional);
|
|
501
|
+
}
|
|
502
|
+
const maxError = (0, risk_1.enforceMaxOrderSize)(context, total, 'kalshi_batch_create_orders');
|
|
503
|
+
if (maxError)
|
|
504
|
+
return maxError;
|
|
505
|
+
for (const [key, notional] of perKey) {
|
|
506
|
+
const [ticker, side] = key.split(':');
|
|
507
|
+
const exposureError = (0, risk_1.enforceExposureLimits)(context, userId, {
|
|
508
|
+
platform: 'kalshi',
|
|
509
|
+
marketId: ticker,
|
|
510
|
+
outcomeId: side,
|
|
511
|
+
notional,
|
|
512
|
+
label: 'kalshi_batch_create_orders',
|
|
513
|
+
});
|
|
514
|
+
if (exposureError)
|
|
515
|
+
return exposureError;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
const tradingDir = getTradingDir();
|
|
519
|
+
const ordersJson = JSON.stringify(orders).replace(/"/g, '\\"');
|
|
520
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py batch_create_orders "${ordersJson}"`;
|
|
521
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
522
|
+
return execKalshiPython(cmd, userEnv);
|
|
523
|
+
}
|
|
524
|
+
/**
|
|
525
|
+
* kalshi_batch_cancel_orders - Batch cancel orders
|
|
526
|
+
*/
|
|
527
|
+
async function batchCancelOrdersHandler(toolInput, context) {
|
|
528
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
529
|
+
if (!kalshiCreds)
|
|
530
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
531
|
+
const orderIds = toolInput.order_ids;
|
|
532
|
+
const tradingDir = getTradingDir();
|
|
533
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py batch_cancel_orders ${orderIds.join(',')}`;
|
|
534
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
535
|
+
return execKalshiPython(cmd, userEnv);
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* kalshi_cancel_all - Cancel all open orders
|
|
539
|
+
*/
|
|
540
|
+
async function cancelAllHandler(_toolInput, context) {
|
|
541
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
542
|
+
if (!kalshiCreds)
|
|
543
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
544
|
+
const tradingDir = getTradingDir();
|
|
545
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py cancel_all`;
|
|
546
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
547
|
+
return execKalshiPython(cmd, userEnv);
|
|
548
|
+
}
|
|
549
|
+
/**
|
|
550
|
+
* kalshi_get_order - Get order details
|
|
551
|
+
*/
|
|
552
|
+
async function getOrderHandler(toolInput, context) {
|
|
553
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
554
|
+
if (!kalshiCreds)
|
|
555
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
556
|
+
const orderId = toolInput.order_id;
|
|
557
|
+
const tradingDir = getTradingDir();
|
|
558
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py get_order ${orderId}`;
|
|
559
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
560
|
+
return execKalshiPython(cmd, userEnv);
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* kalshi_amend_order - Amend an existing order
|
|
564
|
+
*/
|
|
565
|
+
async function amendOrderHandler(toolInput, context) {
|
|
566
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
567
|
+
if (!kalshiCreds)
|
|
568
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
569
|
+
const orderId = toolInput.order_id;
|
|
570
|
+
const price = toolInput.price;
|
|
571
|
+
const count = toolInput.count;
|
|
572
|
+
const tradingDir = getTradingDir();
|
|
573
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py amend_order ${orderId}`;
|
|
574
|
+
if (price)
|
|
575
|
+
cmd += ` --price ${price}`;
|
|
576
|
+
if (count)
|
|
577
|
+
cmd += ` --count ${count}`;
|
|
578
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
579
|
+
return execKalshiPython(cmd, userEnv);
|
|
580
|
+
}
|
|
581
|
+
/**
|
|
582
|
+
* kalshi_decrease_order - Decrease order size
|
|
583
|
+
*/
|
|
584
|
+
async function decreaseOrderHandler(toolInput, context) {
|
|
585
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
586
|
+
if (!kalshiCreds)
|
|
587
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
588
|
+
const orderId = toolInput.order_id;
|
|
589
|
+
const reduceBy = toolInput.reduce_by;
|
|
590
|
+
const tradingDir = getTradingDir();
|
|
591
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py decrease_order ${orderId} ${reduceBy}`;
|
|
592
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
593
|
+
return execKalshiPython(cmd, userEnv);
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* kalshi_queue_position - Get queue position for an order
|
|
597
|
+
*/
|
|
598
|
+
async function queuePositionHandler(toolInput, context) {
|
|
599
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
600
|
+
if (!kalshiCreds)
|
|
601
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
602
|
+
const orderId = toolInput.order_id;
|
|
603
|
+
const tradingDir = getTradingDir();
|
|
604
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py queue_position ${orderId}`;
|
|
605
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
606
|
+
return execKalshiPython(cmd, userEnv);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* kalshi_queue_positions - Get all queue positions
|
|
610
|
+
*/
|
|
611
|
+
async function queuePositionsHandler(_toolInput, context) {
|
|
612
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
613
|
+
if (!kalshiCreds)
|
|
614
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
615
|
+
const tradingDir = getTradingDir();
|
|
616
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py queue_positions`;
|
|
617
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
618
|
+
return execKalshiPython(cmd, userEnv);
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* kalshi_fills - Get fill history
|
|
622
|
+
*/
|
|
623
|
+
async function fillsHandler(toolInput, context) {
|
|
624
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
625
|
+
if (!kalshiCreds)
|
|
626
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
627
|
+
const ticker = toolInput.ticker;
|
|
628
|
+
const limit = toolInput.limit;
|
|
629
|
+
const tradingDir = getTradingDir();
|
|
630
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py fills`;
|
|
631
|
+
if (ticker)
|
|
632
|
+
cmd += ` --ticker ${ticker}`;
|
|
633
|
+
if (limit)
|
|
634
|
+
cmd += ` --limit ${limit}`;
|
|
635
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
636
|
+
return execKalshiPython(cmd, userEnv);
|
|
637
|
+
}
|
|
638
|
+
/**
|
|
639
|
+
* kalshi_settlements - Get settlement history
|
|
640
|
+
*/
|
|
641
|
+
async function settlementsHandler(toolInput, context) {
|
|
642
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
643
|
+
if (!kalshiCreds)
|
|
644
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
645
|
+
const limit = toolInput.limit;
|
|
646
|
+
const tradingDir = getTradingDir();
|
|
647
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py settlements`;
|
|
648
|
+
if (limit)
|
|
649
|
+
cmd += ` --limit ${limit}`;
|
|
650
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
651
|
+
return execKalshiPython(cmd, userEnv);
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* kalshi_account_limits - Get account limits
|
|
655
|
+
*/
|
|
656
|
+
async function accountLimitsHandler(_toolInput, context) {
|
|
657
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
658
|
+
if (!kalshiCreds)
|
|
659
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
660
|
+
const tradingDir = getTradingDir();
|
|
661
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py account_limits`;
|
|
662
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
663
|
+
return execKalshiPython(cmd, userEnv);
|
|
664
|
+
}
|
|
665
|
+
/**
|
|
666
|
+
* kalshi_api_keys - List API keys
|
|
667
|
+
*/
|
|
668
|
+
async function apiKeysHandler(_toolInput, context) {
|
|
669
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
670
|
+
if (!kalshiCreds)
|
|
671
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
672
|
+
const tradingDir = getTradingDir();
|
|
673
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py api_keys`;
|
|
674
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
675
|
+
return execKalshiPython(cmd, userEnv);
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* kalshi_create_api_key - Create a new API key
|
|
679
|
+
*/
|
|
680
|
+
async function createApiKeyHandler(_toolInput, context) {
|
|
681
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
682
|
+
if (!kalshiCreds)
|
|
683
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
684
|
+
const tradingDir = getTradingDir();
|
|
685
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py create_api_key`;
|
|
686
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
687
|
+
return execKalshiPython(cmd, userEnv);
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* kalshi_delete_api_key - Delete an API key
|
|
691
|
+
*/
|
|
692
|
+
async function deleteApiKeyHandler(toolInput, context) {
|
|
693
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
694
|
+
if (!kalshiCreds)
|
|
695
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
696
|
+
const apiKey = toolInput.api_key;
|
|
697
|
+
const tradingDir = getTradingDir();
|
|
698
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py delete_api_key ${apiKey}`;
|
|
699
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
700
|
+
return execKalshiPython(cmd, userEnv);
|
|
701
|
+
}
|
|
702
|
+
/**
|
|
703
|
+
* kalshi_fee_changes - Get fee changes
|
|
704
|
+
*/
|
|
705
|
+
async function feeChangesHandler(_toolInput, context) {
|
|
706
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
707
|
+
if (!kalshiCreds)
|
|
708
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
709
|
+
const tradingDir = getTradingDir();
|
|
710
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py fee_changes`;
|
|
711
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
712
|
+
return execKalshiPython(cmd, userEnv);
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* kalshi_user_data_timestamp - Get user data timestamp
|
|
716
|
+
*/
|
|
717
|
+
async function userDataTimestampHandler(_toolInput, context) {
|
|
718
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
719
|
+
if (!kalshiCreds)
|
|
720
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
721
|
+
const tradingDir = getTradingDir();
|
|
722
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py user_data_timestamp`;
|
|
723
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
724
|
+
return execKalshiPython(cmd, userEnv);
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* kalshi_batch_candlesticks - Get batch candlestick data
|
|
728
|
+
*/
|
|
729
|
+
async function batchCandlesticksHandler(toolInput, context) {
|
|
730
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
731
|
+
if (!kalshiCreds)
|
|
732
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
733
|
+
const tickers = toolInput.tickers;
|
|
734
|
+
const tradingDir = getTradingDir();
|
|
735
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py batch_candlesticks '${JSON.stringify(tickers)}'`;
|
|
736
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
737
|
+
return execKalshiPython(cmd, userEnv);
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* kalshi_event_metadata - Get event metadata
|
|
741
|
+
*/
|
|
742
|
+
async function eventMetadataHandler(toolInput, context) {
|
|
743
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
744
|
+
if (!kalshiCreds)
|
|
745
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
746
|
+
const eventTicker = toolInput.event_ticker;
|
|
747
|
+
const tradingDir = getTradingDir();
|
|
748
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py event_metadata ${eventTicker}`;
|
|
749
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
750
|
+
return execKalshiPython(cmd, userEnv);
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* kalshi_event_candlesticks - Get event candlestick data
|
|
754
|
+
*/
|
|
755
|
+
async function eventCandlesticksHandler(toolInput, context) {
|
|
756
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
757
|
+
if (!kalshiCreds)
|
|
758
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
759
|
+
const seriesTicker = toolInput.series_ticker;
|
|
760
|
+
const eventTicker = toolInput.event_ticker;
|
|
761
|
+
const interval = toolInput.interval;
|
|
762
|
+
const tradingDir = getTradingDir();
|
|
763
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py event_candlesticks ${seriesTicker} ${eventTicker}`;
|
|
764
|
+
if (interval)
|
|
765
|
+
cmd += ` --interval ${interval}`;
|
|
766
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
767
|
+
return execKalshiPython(cmd, userEnv);
|
|
768
|
+
}
|
|
769
|
+
/**
|
|
770
|
+
* kalshi_forecast_history - Get forecast history
|
|
771
|
+
*/
|
|
772
|
+
async function forecastHistoryHandler(toolInput, context) {
|
|
773
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
774
|
+
if (!kalshiCreds)
|
|
775
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
776
|
+
const seriesTicker = toolInput.series_ticker;
|
|
777
|
+
const eventTicker = toolInput.event_ticker;
|
|
778
|
+
const tradingDir = getTradingDir();
|
|
779
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py forecast_history ${seriesTicker} ${eventTicker}`;
|
|
780
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
781
|
+
return execKalshiPython(cmd, userEnv);
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* kalshi_multivariate_events - Get multivariate events
|
|
785
|
+
*/
|
|
786
|
+
async function multivariateEventsHandler(_toolInput, context) {
|
|
787
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
788
|
+
if (!kalshiCreds)
|
|
789
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
790
|
+
const tradingDir = getTradingDir();
|
|
791
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py multivariate_events`;
|
|
792
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
793
|
+
return execKalshiPython(cmd, userEnv);
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* kalshi_create_order_group - Create an order group
|
|
797
|
+
*/
|
|
798
|
+
async function createOrderGroupHandler(toolInput, context) {
|
|
799
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
800
|
+
if (!kalshiCreds)
|
|
801
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
802
|
+
const orders = toolInput.orders;
|
|
803
|
+
const maxLoss = toolInput.max_loss;
|
|
804
|
+
const tradingDir = getTradingDir();
|
|
805
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py create_order_group '${JSON.stringify(orders)}'`;
|
|
806
|
+
if (maxLoss)
|
|
807
|
+
cmd += ` --max_loss ${maxLoss}`;
|
|
808
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
809
|
+
return execKalshiPython(cmd, userEnv);
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* kalshi_order_groups - List order groups
|
|
813
|
+
*/
|
|
814
|
+
async function orderGroupsHandler(_toolInput, context) {
|
|
815
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
816
|
+
if (!kalshiCreds)
|
|
817
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
818
|
+
const tradingDir = getTradingDir();
|
|
819
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py order_groups`;
|
|
820
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
821
|
+
return execKalshiPython(cmd, userEnv);
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* kalshi_order_group - Get order group details
|
|
825
|
+
*/
|
|
826
|
+
async function orderGroupHandler(toolInput, context) {
|
|
827
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
828
|
+
if (!kalshiCreds)
|
|
829
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
830
|
+
const groupId = toolInput.group_id;
|
|
831
|
+
const tradingDir = getTradingDir();
|
|
832
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py order_group ${groupId}`;
|
|
833
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
834
|
+
return execKalshiPython(cmd, userEnv);
|
|
835
|
+
}
|
|
836
|
+
/**
|
|
837
|
+
* kalshi_order_group_limit - Set order group limit
|
|
838
|
+
*/
|
|
839
|
+
async function orderGroupLimitHandler(toolInput, context) {
|
|
840
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
841
|
+
if (!kalshiCreds)
|
|
842
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
843
|
+
const groupId = toolInput.group_id;
|
|
844
|
+
const maxLoss = toolInput.max_loss;
|
|
845
|
+
const tradingDir = getTradingDir();
|
|
846
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py order_group_limit ${groupId} ${maxLoss}`;
|
|
847
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
848
|
+
return execKalshiPython(cmd, userEnv);
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* kalshi_order_group_trigger - Trigger order group
|
|
852
|
+
*/
|
|
853
|
+
async function orderGroupTriggerHandler(toolInput, context) {
|
|
854
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
855
|
+
if (!kalshiCreds)
|
|
856
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
857
|
+
const groupId = toolInput.group_id;
|
|
858
|
+
const tradingDir = getTradingDir();
|
|
859
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py order_group_trigger ${groupId}`;
|
|
860
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
861
|
+
return execKalshiPython(cmd, userEnv);
|
|
862
|
+
}
|
|
863
|
+
/**
|
|
864
|
+
* kalshi_order_group_reset - Reset order group
|
|
865
|
+
*/
|
|
866
|
+
async function orderGroupResetHandler(toolInput, context) {
|
|
867
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
868
|
+
if (!kalshiCreds)
|
|
869
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
870
|
+
const groupId = toolInput.group_id;
|
|
871
|
+
const tradingDir = getTradingDir();
|
|
872
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py order_group_reset ${groupId}`;
|
|
873
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
874
|
+
return execKalshiPython(cmd, userEnv);
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* kalshi_delete_order_group - Delete order group
|
|
878
|
+
*/
|
|
879
|
+
async function deleteOrderGroupHandler(toolInput, context) {
|
|
880
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
881
|
+
if (!kalshiCreds)
|
|
882
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
883
|
+
const groupId = toolInput.group_id;
|
|
884
|
+
const tradingDir = getTradingDir();
|
|
885
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py delete_order_group ${groupId}`;
|
|
886
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
887
|
+
return execKalshiPython(cmd, userEnv);
|
|
888
|
+
}
|
|
889
|
+
/**
|
|
890
|
+
* kalshi_resting_order_value - Get resting order value
|
|
891
|
+
*/
|
|
892
|
+
async function restingOrderValueHandler(_toolInput, context) {
|
|
893
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
894
|
+
if (!kalshiCreds)
|
|
895
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
896
|
+
const tradingDir = getTradingDir();
|
|
897
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py resting_order_value`;
|
|
898
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
899
|
+
return execKalshiPython(cmd, userEnv);
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* kalshi_create_subaccount - Create a subaccount
|
|
903
|
+
*/
|
|
904
|
+
async function createSubaccountHandler(toolInput, context) {
|
|
905
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
906
|
+
if (!kalshiCreds)
|
|
907
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
908
|
+
const name = toolInput.name;
|
|
909
|
+
const tradingDir = getTradingDir();
|
|
910
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py create_subaccount "${name}"`;
|
|
911
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
912
|
+
return execKalshiPython(cmd, userEnv);
|
|
913
|
+
}
|
|
914
|
+
/**
|
|
915
|
+
* kalshi_subaccount_balances - Get subaccount balances
|
|
916
|
+
*/
|
|
917
|
+
async function subaccountBalancesHandler(_toolInput, context) {
|
|
918
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
919
|
+
if (!kalshiCreds)
|
|
920
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
921
|
+
const tradingDir = getTradingDir();
|
|
922
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py subaccount_balances`;
|
|
923
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
924
|
+
return execKalshiPython(cmd, userEnv);
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* kalshi_subaccount_transfer - Transfer between subaccounts
|
|
928
|
+
*/
|
|
929
|
+
async function subaccountTransferHandler(toolInput, context) {
|
|
930
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
931
|
+
if (!kalshiCreds)
|
|
932
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
933
|
+
const fromId = toolInput.from_id;
|
|
934
|
+
const toId = toolInput.to_id;
|
|
935
|
+
const amount = toolInput.amount;
|
|
936
|
+
const tradingDir = getTradingDir();
|
|
937
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py subaccount_transfer ${fromId} ${toId} ${amount}`;
|
|
938
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
939
|
+
return execKalshiPython(cmd, userEnv);
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* kalshi_subaccount_transfers - List subaccount transfers
|
|
943
|
+
*/
|
|
944
|
+
async function subaccountTransfersHandler(_toolInput, context) {
|
|
945
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
946
|
+
if (!kalshiCreds)
|
|
947
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
948
|
+
const tradingDir = getTradingDir();
|
|
949
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py subaccount_transfers`;
|
|
950
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
951
|
+
return execKalshiPython(cmd, userEnv);
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* kalshi_comms_id - Get communications ID
|
|
955
|
+
*/
|
|
956
|
+
async function commsIdHandler(_toolInput, context) {
|
|
957
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
958
|
+
if (!kalshiCreds)
|
|
959
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
960
|
+
const tradingDir = getTradingDir();
|
|
961
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py comms_id`;
|
|
962
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
963
|
+
return execKalshiPython(cmd, userEnv);
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* kalshi_create_rfq - Create a request for quote
|
|
967
|
+
*/
|
|
968
|
+
async function createRfqHandler(toolInput, context) {
|
|
969
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
970
|
+
if (!kalshiCreds)
|
|
971
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
972
|
+
const ticker = toolInput.ticker;
|
|
973
|
+
const side = toolInput.side;
|
|
974
|
+
const count = toolInput.count;
|
|
975
|
+
const minPrice = toolInput.min_price;
|
|
976
|
+
const maxPrice = toolInput.max_price;
|
|
977
|
+
const tradingDir = getTradingDir();
|
|
978
|
+
let cmd = `cd ${tradingDir} && python3 kalshi.py create_rfq ${ticker} ${side} ${count}`;
|
|
979
|
+
if (minPrice)
|
|
980
|
+
cmd += ` --min_price ${minPrice}`;
|
|
981
|
+
if (maxPrice)
|
|
982
|
+
cmd += ` --max_price ${maxPrice}`;
|
|
983
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
984
|
+
return execKalshiPython(cmd, userEnv);
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* kalshi_rfqs - List RFQs
|
|
988
|
+
*/
|
|
989
|
+
async function rfqsHandler(_toolInput, context) {
|
|
990
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
991
|
+
if (!kalshiCreds)
|
|
992
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
993
|
+
const tradingDir = getTradingDir();
|
|
994
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py rfqs`;
|
|
995
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
996
|
+
return execKalshiPython(cmd, userEnv);
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* kalshi_rfq - Get RFQ details
|
|
1000
|
+
*/
|
|
1001
|
+
async function rfqHandler(toolInput, context) {
|
|
1002
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1003
|
+
if (!kalshiCreds)
|
|
1004
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1005
|
+
const rfqId = toolInput.rfq_id;
|
|
1006
|
+
const tradingDir = getTradingDir();
|
|
1007
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py rfq ${rfqId}`;
|
|
1008
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1009
|
+
return execKalshiPython(cmd, userEnv);
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* kalshi_cancel_rfq - Cancel an RFQ
|
|
1013
|
+
*/
|
|
1014
|
+
async function cancelRfqHandler(toolInput, context) {
|
|
1015
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1016
|
+
if (!kalshiCreds)
|
|
1017
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1018
|
+
const rfqId = toolInput.rfq_id;
|
|
1019
|
+
const tradingDir = getTradingDir();
|
|
1020
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py cancel_rfq ${rfqId}`;
|
|
1021
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1022
|
+
return execKalshiPython(cmd, userEnv);
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* kalshi_create_quote - Create a quote for an RFQ
|
|
1026
|
+
*/
|
|
1027
|
+
async function createQuoteHandler(toolInput, context) {
|
|
1028
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1029
|
+
if (!kalshiCreds)
|
|
1030
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1031
|
+
const rfqId = toolInput.rfq_id;
|
|
1032
|
+
const price = toolInput.price;
|
|
1033
|
+
const tradingDir = getTradingDir();
|
|
1034
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py create_quote ${rfqId} ${price}`;
|
|
1035
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1036
|
+
return execKalshiPython(cmd, userEnv);
|
|
1037
|
+
}
|
|
1038
|
+
/**
|
|
1039
|
+
* kalshi_quotes - List quotes
|
|
1040
|
+
*/
|
|
1041
|
+
async function quotesHandler(_toolInput, context) {
|
|
1042
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1043
|
+
if (!kalshiCreds)
|
|
1044
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1045
|
+
const tradingDir = getTradingDir();
|
|
1046
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py quotes`;
|
|
1047
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1048
|
+
return execKalshiPython(cmd, userEnv);
|
|
1049
|
+
}
|
|
1050
|
+
/**
|
|
1051
|
+
* kalshi_quote - Get quote details
|
|
1052
|
+
*/
|
|
1053
|
+
async function quoteHandler(toolInput, context) {
|
|
1054
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1055
|
+
if (!kalshiCreds)
|
|
1056
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1057
|
+
const quoteId = toolInput.quote_id;
|
|
1058
|
+
const tradingDir = getTradingDir();
|
|
1059
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py quote ${quoteId}`;
|
|
1060
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1061
|
+
return execKalshiPython(cmd, userEnv);
|
|
1062
|
+
}
|
|
1063
|
+
/**
|
|
1064
|
+
* kalshi_cancel_quote - Cancel a quote
|
|
1065
|
+
*/
|
|
1066
|
+
async function cancelQuoteHandler(toolInput, context) {
|
|
1067
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1068
|
+
if (!kalshiCreds)
|
|
1069
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1070
|
+
const quoteId = toolInput.quote_id;
|
|
1071
|
+
const tradingDir = getTradingDir();
|
|
1072
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py cancel_quote ${quoteId}`;
|
|
1073
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1074
|
+
return execKalshiPython(cmd, userEnv);
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* kalshi_accept_quote - Accept a quote
|
|
1078
|
+
*/
|
|
1079
|
+
async function acceptQuoteHandler(toolInput, context) {
|
|
1080
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1081
|
+
if (!kalshiCreds)
|
|
1082
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1083
|
+
const quoteId = toolInput.quote_id;
|
|
1084
|
+
const tradingDir = getTradingDir();
|
|
1085
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py accept_quote ${quoteId}`;
|
|
1086
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1087
|
+
return execKalshiPython(cmd, userEnv);
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* kalshi_confirm_quote - Confirm a quote
|
|
1091
|
+
*/
|
|
1092
|
+
async function confirmQuoteHandler(toolInput, context) {
|
|
1093
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1094
|
+
if (!kalshiCreds)
|
|
1095
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1096
|
+
const quoteId = toolInput.quote_id;
|
|
1097
|
+
const tradingDir = getTradingDir();
|
|
1098
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py confirm_quote ${quoteId}`;
|
|
1099
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1100
|
+
return execKalshiPython(cmd, userEnv);
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* kalshi_collections - List collections
|
|
1104
|
+
*/
|
|
1105
|
+
async function collectionsHandler(_toolInput, context) {
|
|
1106
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1107
|
+
if (!kalshiCreds)
|
|
1108
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1109
|
+
const tradingDir = getTradingDir();
|
|
1110
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py collections`;
|
|
1111
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1112
|
+
return execKalshiPython(cmd, userEnv);
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* kalshi_collection - Get collection details
|
|
1116
|
+
*/
|
|
1117
|
+
async function collectionHandler(toolInput, context) {
|
|
1118
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1119
|
+
if (!kalshiCreds)
|
|
1120
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1121
|
+
const collectionTicker = toolInput.collection_ticker;
|
|
1122
|
+
const tradingDir = getTradingDir();
|
|
1123
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py collection ${collectionTicker}`;
|
|
1124
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1125
|
+
return execKalshiPython(cmd, userEnv);
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* kalshi_collection_lookup - Lookup collection
|
|
1129
|
+
*/
|
|
1130
|
+
async function collectionLookupHandler(toolInput, context) {
|
|
1131
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1132
|
+
if (!kalshiCreds)
|
|
1133
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1134
|
+
const collectionTicker = toolInput.collection_ticker;
|
|
1135
|
+
const tradingDir = getTradingDir();
|
|
1136
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py collection_lookup ${collectionTicker}`;
|
|
1137
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1138
|
+
return execKalshiPython(cmd, userEnv);
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* kalshi_collection_lookup_history - Get collection lookup history
|
|
1142
|
+
*/
|
|
1143
|
+
async function collectionLookupHistoryHandler(toolInput, context) {
|
|
1144
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1145
|
+
if (!kalshiCreds)
|
|
1146
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1147
|
+
const collectionTicker = toolInput.collection_ticker;
|
|
1148
|
+
const tradingDir = getTradingDir();
|
|
1149
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py collection_lookup_history ${collectionTicker}`;
|
|
1150
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1151
|
+
return execKalshiPython(cmd, userEnv);
|
|
1152
|
+
}
|
|
1153
|
+
/**
|
|
1154
|
+
* kalshi_live_data - Get live data
|
|
1155
|
+
*/
|
|
1156
|
+
async function liveDataHandler(toolInput, context) {
|
|
1157
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1158
|
+
if (!kalshiCreds)
|
|
1159
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1160
|
+
const dataType = toolInput.data_type;
|
|
1161
|
+
const milestoneId = toolInput.milestone_id;
|
|
1162
|
+
const tradingDir = getTradingDir();
|
|
1163
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py live_data ${dataType} ${milestoneId}`;
|
|
1164
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1165
|
+
return execKalshiPython(cmd, userEnv);
|
|
1166
|
+
}
|
|
1167
|
+
/**
|
|
1168
|
+
* kalshi_live_data_batch - Get batch live data
|
|
1169
|
+
*/
|
|
1170
|
+
async function liveDataBatchHandler(toolInput, context) {
|
|
1171
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1172
|
+
if (!kalshiCreds)
|
|
1173
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1174
|
+
const requests = toolInput.requests;
|
|
1175
|
+
const tradingDir = getTradingDir();
|
|
1176
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py live_data_batch '${JSON.stringify(requests)}'`;
|
|
1177
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1178
|
+
return execKalshiPython(cmd, userEnv);
|
|
1179
|
+
}
|
|
1180
|
+
/**
|
|
1181
|
+
* kalshi_milestones - List milestones
|
|
1182
|
+
*/
|
|
1183
|
+
async function milestonesHandler(_toolInput, context) {
|
|
1184
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1185
|
+
if (!kalshiCreds)
|
|
1186
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1187
|
+
const tradingDir = getTradingDir();
|
|
1188
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py milestones`;
|
|
1189
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1190
|
+
return execKalshiPython(cmd, userEnv);
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* kalshi_milestone - Get milestone details
|
|
1194
|
+
*/
|
|
1195
|
+
async function milestoneHandler(toolInput, context) {
|
|
1196
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1197
|
+
if (!kalshiCreds)
|
|
1198
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1199
|
+
const milestoneId = toolInput.milestone_id;
|
|
1200
|
+
const tradingDir = getTradingDir();
|
|
1201
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py milestone ${milestoneId}`;
|
|
1202
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1203
|
+
return execKalshiPython(cmd, userEnv);
|
|
1204
|
+
}
|
|
1205
|
+
/**
|
|
1206
|
+
* kalshi_structured_targets - List structured targets
|
|
1207
|
+
*/
|
|
1208
|
+
async function structuredTargetsHandler(_toolInput, context) {
|
|
1209
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1210
|
+
if (!kalshiCreds)
|
|
1211
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1212
|
+
const tradingDir = getTradingDir();
|
|
1213
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py structured_targets`;
|
|
1214
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1215
|
+
return execKalshiPython(cmd, userEnv);
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* kalshi_structured_target - Get structured target details
|
|
1219
|
+
*/
|
|
1220
|
+
async function structuredTargetHandler(toolInput, context) {
|
|
1221
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1222
|
+
if (!kalshiCreds)
|
|
1223
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1224
|
+
const targetId = toolInput.target_id;
|
|
1225
|
+
const tradingDir = getTradingDir();
|
|
1226
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py structured_target ${targetId}`;
|
|
1227
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1228
|
+
return execKalshiPython(cmd, userEnv);
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* kalshi_incentives - Get incentives
|
|
1232
|
+
*/
|
|
1233
|
+
async function incentivesHandler(_toolInput, context) {
|
|
1234
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1235
|
+
if (!kalshiCreds)
|
|
1236
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1237
|
+
const tradingDir = getTradingDir();
|
|
1238
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py incentives`;
|
|
1239
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1240
|
+
return execKalshiPython(cmd, userEnv);
|
|
1241
|
+
}
|
|
1242
|
+
/**
|
|
1243
|
+
* kalshi_fcm_orders - Get FCM orders
|
|
1244
|
+
*/
|
|
1245
|
+
async function fcmOrdersHandler(_toolInput, context) {
|
|
1246
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1247
|
+
if (!kalshiCreds)
|
|
1248
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1249
|
+
const tradingDir = getTradingDir();
|
|
1250
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py fcm_orders`;
|
|
1251
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1252
|
+
return execKalshiPython(cmd, userEnv);
|
|
1253
|
+
}
|
|
1254
|
+
/**
|
|
1255
|
+
* kalshi_fcm_positions - Get FCM positions
|
|
1256
|
+
*/
|
|
1257
|
+
async function fcmPositionsHandler(_toolInput, context) {
|
|
1258
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1259
|
+
if (!kalshiCreds)
|
|
1260
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1261
|
+
const tradingDir = getTradingDir();
|
|
1262
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py fcm_positions`;
|
|
1263
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1264
|
+
return execKalshiPython(cmd, userEnv);
|
|
1265
|
+
}
|
|
1266
|
+
/**
|
|
1267
|
+
* kalshi_search_tags - Search by tags
|
|
1268
|
+
*/
|
|
1269
|
+
async function searchTagsHandler(_toolInput, context) {
|
|
1270
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1271
|
+
if (!kalshiCreds)
|
|
1272
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1273
|
+
const tradingDir = getTradingDir();
|
|
1274
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py search_tags`;
|
|
1275
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1276
|
+
return execKalshiPython(cmd, userEnv);
|
|
1277
|
+
}
|
|
1278
|
+
/**
|
|
1279
|
+
* kalshi_search_sports - Search sports markets
|
|
1280
|
+
*/
|
|
1281
|
+
async function searchSportsHandler(_toolInput, context) {
|
|
1282
|
+
const kalshiCreds = getKalshiCreds(context);
|
|
1283
|
+
if (!kalshiCreds)
|
|
1284
|
+
return (0, types_1.errorResult)('No Kalshi credentials set up.');
|
|
1285
|
+
const tradingDir = getTradingDir();
|
|
1286
|
+
const cmd = `cd ${tradingDir} && python3 kalshi.py search_sports`;
|
|
1287
|
+
const userEnv = buildKalshiEnv(kalshiCreds.data);
|
|
1288
|
+
return execKalshiPython(cmd, userEnv);
|
|
1289
|
+
}
|
|
1290
|
+
// =============================================================================
|
|
1291
|
+
// EXPORT MAP
|
|
1292
|
+
// =============================================================================
|
|
1293
|
+
exports.kalshiHandlers = {
|
|
1294
|
+
// Execution-service-based
|
|
1295
|
+
kalshi_buy: buyHandler,
|
|
1296
|
+
kalshi_sell: sellHandler,
|
|
1297
|
+
kalshi_orders: ordersHandler,
|
|
1298
|
+
kalshi_cancel: cancelHandler,
|
|
1299
|
+
// No-auth exchange info
|
|
1300
|
+
kalshi_exchange_status: exchangeStatusHandler,
|
|
1301
|
+
kalshi_exchange_schedule: exchangeScheduleHandler,
|
|
1302
|
+
kalshi_announcements: announcementsHandler,
|
|
1303
|
+
// Credential-based Python handlers
|
|
1304
|
+
kalshi_positions: positionsHandler,
|
|
1305
|
+
kalshi_search: searchHandler,
|
|
1306
|
+
kalshi_market: marketHandler,
|
|
1307
|
+
kalshi_balance: balanceHandler,
|
|
1308
|
+
kalshi_orderbook: orderbookHandler,
|
|
1309
|
+
kalshi_market_trades: marketTradesHandler,
|
|
1310
|
+
kalshi_candlesticks: candlesticksHandler,
|
|
1311
|
+
kalshi_events: eventsHandler,
|
|
1312
|
+
kalshi_event: eventHandler,
|
|
1313
|
+
kalshi_series: seriesHandler,
|
|
1314
|
+
kalshi_series_info: seriesInfoHandler,
|
|
1315
|
+
kalshi_market_order: marketOrderHandler,
|
|
1316
|
+
kalshi_batch_create_orders: batchCreateOrdersHandler,
|
|
1317
|
+
kalshi_batch_cancel_orders: batchCancelOrdersHandler,
|
|
1318
|
+
kalshi_cancel_all: cancelAllHandler,
|
|
1319
|
+
kalshi_get_order: getOrderHandler,
|
|
1320
|
+
kalshi_amend_order: amendOrderHandler,
|
|
1321
|
+
kalshi_decrease_order: decreaseOrderHandler,
|
|
1322
|
+
kalshi_queue_position: queuePositionHandler,
|
|
1323
|
+
kalshi_queue_positions: queuePositionsHandler,
|
|
1324
|
+
kalshi_fills: fillsHandler,
|
|
1325
|
+
kalshi_settlements: settlementsHandler,
|
|
1326
|
+
kalshi_account_limits: accountLimitsHandler,
|
|
1327
|
+
kalshi_api_keys: apiKeysHandler,
|
|
1328
|
+
kalshi_create_api_key: createApiKeyHandler,
|
|
1329
|
+
kalshi_delete_api_key: deleteApiKeyHandler,
|
|
1330
|
+
kalshi_fee_changes: feeChangesHandler,
|
|
1331
|
+
kalshi_user_data_timestamp: userDataTimestampHandler,
|
|
1332
|
+
kalshi_batch_candlesticks: batchCandlesticksHandler,
|
|
1333
|
+
kalshi_event_metadata: eventMetadataHandler,
|
|
1334
|
+
kalshi_event_candlesticks: eventCandlesticksHandler,
|
|
1335
|
+
kalshi_forecast_history: forecastHistoryHandler,
|
|
1336
|
+
kalshi_multivariate_events: multivariateEventsHandler,
|
|
1337
|
+
kalshi_create_order_group: createOrderGroupHandler,
|
|
1338
|
+
kalshi_order_groups: orderGroupsHandler,
|
|
1339
|
+
kalshi_order_group: orderGroupHandler,
|
|
1340
|
+
kalshi_order_group_limit: orderGroupLimitHandler,
|
|
1341
|
+
kalshi_order_group_trigger: orderGroupTriggerHandler,
|
|
1342
|
+
kalshi_order_group_reset: orderGroupResetHandler,
|
|
1343
|
+
kalshi_delete_order_group: deleteOrderGroupHandler,
|
|
1344
|
+
kalshi_resting_order_value: restingOrderValueHandler,
|
|
1345
|
+
kalshi_create_subaccount: createSubaccountHandler,
|
|
1346
|
+
kalshi_subaccount_balances: subaccountBalancesHandler,
|
|
1347
|
+
kalshi_subaccount_transfer: subaccountTransferHandler,
|
|
1348
|
+
kalshi_subaccount_transfers: subaccountTransfersHandler,
|
|
1349
|
+
kalshi_comms_id: commsIdHandler,
|
|
1350
|
+
kalshi_create_rfq: createRfqHandler,
|
|
1351
|
+
kalshi_rfqs: rfqsHandler,
|
|
1352
|
+
kalshi_rfq: rfqHandler,
|
|
1353
|
+
kalshi_cancel_rfq: cancelRfqHandler,
|
|
1354
|
+
kalshi_create_quote: createQuoteHandler,
|
|
1355
|
+
kalshi_quotes: quotesHandler,
|
|
1356
|
+
kalshi_quote: quoteHandler,
|
|
1357
|
+
kalshi_cancel_quote: cancelQuoteHandler,
|
|
1358
|
+
kalshi_accept_quote: acceptQuoteHandler,
|
|
1359
|
+
kalshi_confirm_quote: confirmQuoteHandler,
|
|
1360
|
+
kalshi_collections: collectionsHandler,
|
|
1361
|
+
kalshi_collection: collectionHandler,
|
|
1362
|
+
kalshi_collection_lookup: collectionLookupHandler,
|
|
1363
|
+
kalshi_collection_lookup_history: collectionLookupHistoryHandler,
|
|
1364
|
+
kalshi_live_data: liveDataHandler,
|
|
1365
|
+
kalshi_live_data_batch: liveDataBatchHandler,
|
|
1366
|
+
kalshi_milestones: milestonesHandler,
|
|
1367
|
+
kalshi_milestone: milestoneHandler,
|
|
1368
|
+
kalshi_structured_targets: structuredTargetsHandler,
|
|
1369
|
+
kalshi_structured_target: structuredTargetHandler,
|
|
1370
|
+
kalshi_incentives: incentivesHandler,
|
|
1371
|
+
kalshi_fcm_orders: fcmOrdersHandler,
|
|
1372
|
+
kalshi_fcm_positions: fcmPositionsHandler,
|
|
1373
|
+
kalshi_search_tags: searchTagsHandler,
|
|
1374
|
+
kalshi_search_sports: searchSportsHandler,
|
|
1375
|
+
};
|
|
1376
|
+
exports.default = exports.kalshiHandlers;
|
|
1377
|
+
//# sourceMappingURL=kalshi.js.map
|