Prophecy Docs
AboutTrade Now
  • Welcome to Prophecy
  • About Prophecy
  • What is AMM-Based Market?
  • Advantages of AMM-Based Markets in Prophecy
  • Buy Trades
  • Sell Trades
  • Resolve Market
  • Claim Market
  • Create Market
  • Getting Started
    • Quickstart
    • Publish your docs
  • Web & Mobile Apps
    • Sign Up for Prophecy.bet
    • Wallet Section Overview
    • Market Creation
    • Trade Tokens
    • User Market
    • Market Positions
    • Referral Reward
    • User Profile
Powered by GitBook
On this page

Buy Trades

Purpose

The Buy function allows users to purchase shares of a specific outcome in a prediction market. The price of shares is dynamically adjusted based on the current state of the market, reflecting demand and supply.

Workflow

  1. Input Parameters:

    • Market ID.

    • Outcome to buy (e.g., YES or NO).

    • Amount of collateral the user is willing to spend.

  2. Price Calculation

    • The AMM calculates the cost of the desired shares using the constant.

  3. Pool Update:

    • Collateral is added to the pool for the selected outcome.

    • The share pool is adjusted to maintain the constant product.

  4. Share Allocation:

  • The user receives the purchased shares in their wallet.

  1. Fee Deduction:

  • A small fee is deducted and distributed to liquidity providers or the platform treasury.

PreviousAdvantages of AMM-Based Markets in ProphecyNextSell Trades

Last updated 5 months ago