probable-skill_skill

This skill helps you manage 0xProbable Markets on BSC by querying events, placing orders, and tracking positions with PnL.
  • Python

2.5k

GitHub Stars

4

Bundled Files

2 months ago

Catalog Refreshed

3 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill openclaw/skills --skill probable-skill

  • _meta.json287 B
  • package.json1.1 KB
  • SKILL.md9.2 KB
  • tsconfig.json341 B

Overview

This skill provides a command-line toolkit to trade prediction market outcome shares (YES/NO) on 0xProbable Markets using a central limit order book on BSC mainnet. It automates event search, orderbook queries, limit/market order placement, position tracking with PnL, and withdrawals from a Gnosis Safe proxy wallet. The tools use the @prob/clob SDK and are optimized for quick operational checks and trading flows.

How this skill works

Commands run via a lightweight runtime invoke the SDK to query events, markets, price history and full orderbooks, then sign and submit orders with your EOA proxy wallet. Scripts check balances for both EOA and the proxy Safe, calculate spreads and mid-prices, place GTC/IOC/FOK orders, and report positions and PnL. Withdrawals are executed from the proxy wallet back to the EOA, and common failure modes (missing PRIVATE_KEY, wrong chain, insufficient gas/USDT) are surfaced with clear errors.

When to use it

  • Research and scan real-world event markets before placing trades.
  • Place limit or market orders on BSC prediction markets via a CLOB interface.
  • Monitor open orders, positions, and realized/unrealized PnL for an event.
  • Automate routine checks like balances, price history, and orderbook snapshots.
  • Withdraw USDT from the Gnosis Safe proxy back to your EOA after trading.

Best practices

  • Keep PRIVATE_KEY in a local .env file and ensure it is gitignored; treat it as full-wallet control.
  • Always run the balance check before trading to confirm USDT and BNB (gas) sufficiency.
  • Use small test trades to validate proxy wallet ownership and fee settings on BSC mainnet.
  • Prefer explicit --json output for automation or logging, and capture script exit statuses for error handling.
  • Set appropriate feeRateBps and order types (GTC/IOC/FOK) to match your execution intent.

Example use cases

  • Search markets for "bitcoin" or "US election" to find relevant events and token IDs.
  • Inspect an event orderbook, compute spread and mid-price, then place a limit buy with buy.ts.
  • Run positions.ts --event <ID> --pnl to reconcile current holdings and unrealized PnL before settlement.
  • Use withdraw.ts to move USDT from the Gnosis Safe proxy back to your EOA after closing positions.
  • List recent price history to build indicators or backtest execution strategies on specific tokens.

FAQ

Create a .env with PRIVATE_KEY of your EOA (owner of the proxy Safe) and ensure you have USDT in the proxy and BNB in the EOA for gas.

Which chain and token decimals are used?

Scripts target BSC mainnet (chainId 56) and USDT uses 18 decimals on BSC.

How do I cancel an order?

Use cancel-orders.ts --order <ID> to cancel a specific order; check check-orders.ts to list active orders.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
probable-skill skill by openclaw/skills | VeilStrat