Example Scripts

Bot: The Arbitrageur This open source script demonstrates how to write a bot that monitors the spread between Kalshi and Polymarket via FaaSFi.

  • Logic: Loop GET /odds. If sources.kalshi.price > sources.polymarket.price + fees, execute BUY on Polymarket and SELL on Kalshi (if holding inventory).

  • Repository: [GitHub Link Placeholder]

Bot: The Corporate Hedger A script for corporate treasury departments.

  • Logic: Monitor a specific risk metric (e.g., "Oil Prices"). If the probability of a price spike exceeds 70%, automatically purchase $1M coverage using the REGULATED_ONLY strategy.

Last updated