360 Secure SkillHub
360 安全技能中心

kalshi trades

这是Kalshi只读OpenAPI工具,核心功能为查询交易所状态、批量扫描市场/事件/系列,以及验证特定标的的交易记录、订单簿等。适用于用户探索Kalshi交易机会、核实市场情况。通过命令行指令传入参数调用,输出格式化数据。仅支持只读操作,无法下单,需模拟交易需搭配独立纸盘交易skill。

brs999
brs999
热度 29.82
最近更新 2026-05-11 17:30:39
分类:数据依赖:代码执行 / 第三方 API应用场景:市场分析 / 数据处理 / 财务

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add kalshi-trades
Metadata
name
kalshi-trades
description
Read-only Kalshi OpenAPI scouting skill for market discovery, liquidity checks, and market validation. Use for scanning and ranking Kalshi opportunities. Pair with a separate paper-trading skill if you want open/close execution.
homepage
https://docs.kalshi.com
user-invocable
true
disable-model-invocation
true
metadata
{"openclaw":{"emoji":"📊","requires":{"bins":["node"]}}}

Kalshi Trades (OpenAPI Read-Only)

Use this skill for Kalshi scouting and market validation only.

Rules

  • Use OpenAPI read endpoints for market discovery and validation.
  • This skill does not place, amend, or cancel orders.
  • This skill does not include paper ledger execution scripts.

Primary Commands

Exchange status:

node {baseDir}/scripts/kalshi-trades.mjs status --pretty

Broad market scan:

node {baseDir}/scripts/kalshi-trades.mjs markets --status open --limit 1000 --pretty
node {baseDir}/scripts/kalshi-trades.mjs events --limit 100 --pretty
node {baseDir}/scripts/kalshi-trades.mjs series --limit 400 --pretty

Focused validation:

node {baseDir}/scripts/kalshi-trades.mjs market --ticker <TICKER> --pretty
node {baseDir}/scripts/kalshi-trades.mjs trades --ticker <TICKER> --limit 200 --pretty
node {baseDir}/scripts/kalshi-trades.mjs orderbook --ticker <TICKER> --pretty

Optional Integration: Paper Ledger Skill Required

If you want paper open/close workflows, install and use a separate paper-trading skill that provides the execution script. This Kalshi skill can supply candidate/market data to that separate skill.

node --experimental-strip-types skills/paper-trading/scripts/paper_trading.ts status --account kalshi --format json --pretty

Environment

Optional override (defaults to Kalshi production API):

export KALSHI_BASE_URL="https://api.elections.kalshi.com/trade-api/v2"

Tests

Run the Kalshi reader smoke tests:

node --test {baseDir}/tests/kalshi-trades.test.mjs