Skip to content

Paper Trading (Live Proxy)

Paper Trading allows you to forward-test your strategies against Live Polymarket data without using real funds.

How it Works

  • Market Data: The backend proxies requests to the real Polymarket CLOB API.
  • Execution: Orders are intercepted by the Shadow Exchange and matched simulated-ly. They are NOT sent to the Polymarket Exchange.

Usage

python
from fivesight_clob_client.client import ClobClient

client = ClobClient(
    host="https://api.fivesight.ai/api/simulation", 
    key="dummy", 
    chain_id=137, 
    simulation_mode=True
)

# Create PAPER session
client.create_simulation_session(mode="PAPER", initial_balance=10000)

# All standard method calls work as expected, but return LIVE data
book = client.get_order_book(token_id="...")

# Start trading
client.create_and_post_order(...)

Released under the MIT License.