Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.miramarket.org/llms.txt

Use this file to discover all available pages before exploring further.

This page lists the public values you can use in strategy JSON.

Node types

["CONDITION", "ACTION"]

Venues

["POLYMARKET", "KALSHI", "OPINION_LABS"]
Current strategy builder workflows focus on Polymarket.

Signal types

[
  "IMPLIED_PROBABILITY",
  "ROI_PCT",
  "PNL_USD",
  "TIME_SINCE_GROUP_SECONDS",
  "TIME_TO_RESOLUTION_SECONDS"
]

Trigger types

["CROSS_ABOVE", "CROSS_BELOW"]

Reference modes

[
  "SINCE_GROUP_START",
  "SINCE_STRATEGY_START",
  "FIXED_REFERENCE_VALUE"
]

Action types

[
  "BUY_MARKET_OUTCOME",
  "SELL_MARKET_OUTCOME",
  "MOVE_TO_VAULT",
  "MOVE_TO_WALLET",
  "HOLD"
]

Decision group modes

["SINGLE", "SPLIT_100"]

Market watch

{
  "venue": "POLYMARKET",
  "market_id": "market-id",
  "outcome_token": "YES",
  "token_id": "token-id",
  "watch_selector": {
    "recurring_tag_id": 102175,
    "recurring_label": "1h",
    "recurring_family_key": "series:example",
    "topic_key": "btc",
    "fallback_market_id": "market-id",
    "auto_roll": true
  }
}
token_id is optional for condition watches but required for market actions.

Action target

{
  "venue": "POLYMARKET",
  "market": {
    "market_id": "market-id",
    "outcome_token": "YES",
    "token_id": "token-id",
    "current_price": 0.5,
    "market_selector": {
      "recurring_tag_id": 102175,
      "recurring_label": "1h",
      "recurring_family_key": "series:example",
      "topic_key": "btc",
      "fallback_market_id": "market-id",
      "auto_roll": true
    }
  },
  "vault": {
    "vault_id": "vault-id",
    "vault_name": "Vault name"
  },
  "wallet": {
    "wallet_id": "wallet-id",
    "wallet_name": "Wallet name"
  }
}
Use the target object that matches the action type. A market action uses market. A vault action uses vault. A wallet action uses wallet.

Risk guards

{
  "min_edge_bps": 50,
  "max_spread_bps": 100,
  "max_slippage_bps": 75,
  "max_data_staleness_sec": 10
}
All risk guard fields are optional.