Bookie
  • Overview
    • The Bookie Mission
    • Why Bookie?
  • Quickstart
    • How to Sign-In?
      • Email Generated Wallet
      • External Wallets
    • How To Deposit?
    • How to Bet?
  • How does Bookie work?
    • What is ckBTC?
    • Exchange Mechanics
  • Rewards
    • Bookie Free Bets
    • What is Aura?
    • Sign-Up Bonus
    • Referral Scheme
    • Leaderboard
    • Airdrop
    • Beta Testing Guide
  • Market Makers
    • The Pitch
  • GUIDES
    • How To Sign-Up/Sign-in?
      • Email Generated Wallet
      • External Wallet Providers
    • How To Deposit?
    • How To Bet?
      • Overview
      • Fixture Page Guide
      • Market Order (Matched Bet)
        • 'For' Market Order
        • 'Against' Market Order
      • Limit Order (Unmatched Bet)
        • 'For' Limit Order
        • 'Against' Limit Order
      • Portfolio Guide
    • How To Withdraw?
      • How To Withdraw BTC?
      • How To Withdraw ckBTC?
    • Aura Achievements
      • How To 'Place A Bet'?
      • How To 'Place An Against Bet'?
      • How To 'Place A Whale Bet'?
      • How To 'Provide Liquidity'?
        • Bid Liquidity
        • Ask Liquidity
      • How To 'Provide Best Offer'?
        • Provide Best Odds
        • Provide Best Price
      • How To 'Bet On New Sport'?
      • How To 'Bet On New Market'?
    • Promotions FAQ
      • When Can I Use My Free Bets?
      • How Do I Use My Free Bets?
      • How Do I Claim My Sign-Up Bonus?
      • When Do I Get My Referral Reward?
  • Get Involved
    • WEBSITE
    • X
    • Discord
    • Telegram Community
    • Telegram Announcements
    • Medium
    • Instagram
    • YouTube
    • TikTok
    • Airdrop Terms & Conditions
Powered by GitBook
On this page
  • Step 1: Smart Contract Order Books
  • Step 2: Matched Bets
  • Step 3: Market Resolution
  • Step 4: Final Result
  • Step 5: Payouts
  1. How does Bookie work?

Exchange Mechanics

PreviousWhat is ckBTC?NextBookie Free Bets

Last updated 7 months ago

Our decentralised betting exchange allows players to bet and trade on betting markets in a truly peer-to-peer, non-custodial and trustless exchange fully managed by smart contracts.

This section outlines the mechanics behind Bookie betting markets through a step-by-step consideration of the betting process from order submissions to market resolution and payouts.

Step 1: Smart Contract Order Books

Players on Bookie are able to place bets both ‘For’ and ‘Against’ events at the odds they like and hold as their true estimation of an event's likelihood.

A player's bet is split into orders with associated “Odds” and “Collateral” amounts required.

All orders are sent and logged in automated smart contract based order books. These order books manage the bidding process independently with the goal of matching bets between two counterparties through an auction system. This competition of supply and demand reveals the market’s estimation of an event's true odds.

Bookie eliminates counterparty risk by ensuring players must submit the collateral amount required for their bet. This collateral is associated with a players order and locked on the IC ledger until the market is resolved.

Step 2: Matched Bets

Players' bets are matched automatically by our order book system should they have the corresponding odds ‘For’ and ‘Against’. Once the bets are matched they can not be cancelled by any user and the funds are locked on the Internet Computer Protocol Ledger pending market resolution and payout.

Step 3: Market Resolution

Bookie resolves markets by calling a secure Sports Data API through https outcalls directly from the Internet Computer blockchain smart contracts.The IC’s https outcalls allow direct communication with a secure API without using an oracle, thereby ensuring the results of Bookie prediction markets are reliable and tamperproof.

Step 4: Final Result

After the event is finished and upon receiving the final result from the Sports Data API, our smart contracts calculates users' winnings accordingly.

Players bets can have three states at the end of a fixture upon which their payouts depend: matched, unmatched and partially matched.

  • Matched bets: Winner takes all.

  • Unmatched bets: Bet amount refunded to player.

  • Partially matched bets: The matched portion is paid out with winnings whilst the unmatched portion is refunded to the player.

Step 5: Payouts

Payouts are processed automatically and sent directly to players' wallets. This ensures the entire process from placement to payout remains non-custodial and Bookie never has access to player funds.

Learn more about the Internet Computer’s https outcalls ​

here.