fashionmascherine-svg/dsh-polymarket-knowhow ↗★ 3

dsh-polymarket-knowhow

DeepSeek Harness plugin: complete Polymarket API coverage — market data tools, authenticated trading tools, WebSocket stream service, and an embedded Polymarket knowhow skill 适合需要通过 Agent 获取 Polymarket 数据或进行自动化交易的用户。

패키지
dsh-polymarket-knowhow
호환성
미검증
Harness peer 범위
>=0.0.1-rc.1 <0.1.0 || >=0.1.0-rc.1 <1
Cordis peer 범위
^4.0.1
버전
0.3.1
라이선스
NOASSERTION
최근 업데이트
2026. 10. 7.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:fashionmascherine-svg/dsh-polymarket-knowhow

Configuration

Defaults are sensible (public endpoints, no credentials, trading off). Override any field from your profile's cordis.patch.yml:

- id: polymarket-service
  config:
    timeoutMs: 20000
    maxRetries: 3
    trading:
      enabled: true
      # Explicit creds… (or leave empty to read POLY_API_KEY / POLY_SECRET /
      # POLY_PASSPHRASE / POLY_ADDRESS from the environment)
      apiKey: ''
      secret: ''
      passphrase: ''
      address: ''        # funder/proxy wallet address
      signatureType: 2   # 0 EOA · 1 POLY_PROXY · 2 GNOSIS_SAFE
    perps:
      enabled: false     # reads POLYMARKET_PROXY / POLYMARKET_SECRET env
    stream:
      enabled: false
      assetIds: []       # CLOB token ids to subscribe at startup
    skills: true         # register the embedded knowhow skill

- id: polymarket-stream
  disabled: false         # rows can be toggled individually

Trading setup

  1. Create L2 API credentials once (any method):
    • polymarket-client (Python): AsyncSecureClient.create(private_key=pk).credentials, or
    • install @polymarket/client into the profile and read client.credentials after createSecureClient.
  2. Put the four values in config or POLY_* environment variables.
  3. For order placement, also make the unified SDK resolvable and set POLY_PRIVATE_KEY:
dsh plugin --profile my-profile add @polymarket/client viem

Read-only account tools (orders, trades, cancels, balances, heartbeat) work without the SDK — they sign requests with Node's built-in HMAC (L2 headers POLY_ADDRESS/SIGNATURE/TIMESTAMP/API_KEY/PASSPHRASE).

⚠️ Trading is real money. Heartbeats cancel all open orders after a >10s lapse; FOK/FAK BUY amount is dollars, SELL is shares. Read knowledge/order-patterns.md first.