😇
Purebet beta
  • About Purebet
    • 😇Why Purebet?
    • ❓What is Purebet?
      • 🔁On-chain exchange
      • 🤝Aggregation
  • Using Purebet
    • 👋Signing up
    • 👛Funding your wallet...
      • 🔃...if you have money on cryptocurrency exchange
      • ⛓️...if you have funds on another blockchain
      • 💳...if you only have money through your bank card
    • 📅Navigating events
    • 📗Understanding the trade page
    • 🗒️Placing bets
    • 🤑Redeeming winning bets
    • 💸Fees
    • ⚙️Settings
    • 💻API
  • Official links
    • 🌐Website
    • 🪙Token - NONE
    • 🐦Social media
  • Aggregated Protocols
    • 🚫Non-aggregated liquidity
    • 🦆BetDEX/Monaco
    • 🦓Overtime
    • 🐙Aver
    • 🌊Azuro
    • 🦈SX Bet
    • 🟦Divvy
  • Crypto help
    • ⛓️Blockchains
    • 👛Wallets
  • Sports betting help
    • ⚽Market types
    • 🔢Odds
    • 🟥Lay bets
  • Promotion terms
    • 🦆BetDEX beta users 17/01/23--ENDED
    • 🤑Phase 1 Completion Celebration Promotion 07/04/23
    • 💸Solana Degens Airdroped NFT Promotion
  • Purebet API
    • 👁️Overview
    • 📅Get events
    • ♻️Refresh Orderbooks
    • 💰Place bet
    • ⏱️Get pending orders
    • 🚫Cancel order
Powered by GitBook
On this page
  • Parameters
  • Response
  • Body object attributes
  1. Purebet API

Get pending orders

Returns the pending orders of a given bettor's address

PreviousPlace betNextCancel order

Last updated 2 years ago

Parameters

There is only 1 parameter for this call, bettorAddr. This is the address as a base58 encoded string that you wish to see the running bets of.

Example call: https://api.purebet.io/pending/bets?bettorAddr=Bah2FwLXDsJTP2A8tSZBhM8p1bzBnJmbZ6nPJtuymg8y

Example response
{
  "status": 200,
  "body": [
    {
      "acc": "123utJ84x1ACJzV7RR8kKNYPg3djfq6HW2SBt8dsNsAn",
      "placedAt": 1680636461,
      "potentialReturn": 9,
      "team": "Sam Hughes",
      "stake": 3,
      "matched": true,
      "odds": 3,
      "isLay": false,
      "event": "Sam Hughes vs. Jaqueline Amorim"
    }
  ]
}

Response

  • status: 200, indicates that the call was successful

  • body: a list of objects that contain information about bets the wallet address placed

Body object attributes

  • acc: string, the address on the Solana blockchain where information about the bet is stored. This is needed for cancelling a bet if you are the bet placer.

  • placedAt: number, time in seconds since January 1st 1970 UTC (unix format), when the bet was placed

  • potentialReturn: number, the potential return of this bet if it wins

  • team: string, the outcome that has to happen for the bet to win

  • stake: number, the amount risked by the bettor

  • matched: boolean, true if the bet is matched, false if the bet is unmatched

  • odds: number, the decimal odds of the bet. For lay bets, odds are in backer's odds format.

  • isLay: boolean, whether or not this bet is a lay bet

  • event: string, the event of this bet

⏱️
https://api.purebet.io/pending/betsapi.purebet.io