πŸ”΄Live Markets

Live markets allow user to buy moneyline positions while the game is underway. OpticOdds data provider allows us to push real time odd data onchain, hence allowing user to watch and buy at the same time. Buying a LIVE market position is similar to buying a position before the start of the game, the main difference is the price of the odds is subject to change before buying. For this reason we recommend user to make sure the position they buy is right before signing the transaction as a delay can bring a stale price where the transaction would then fail.

The minimum buy-in for a live market is 3 USDC

Tehnical specification

Live AMM is a part of Sports Markets V2 architecture. It inherits caps management logic from V2 RiskManagement system, but offers a different and unique trading experience. The user will signal the intent to make a live trade on LiveTradingProcessor contract, which then sends a request to Chainlink node relaying the said intent.

Within that transaction the user sends the following data:

  • The details of the bet (match, position, line)

  • Buy-in amount

  • expected odds

  • accepted slippage (e.g. a user may indicate he would accept up to 2% slippage on the extpected odds)

  • collateral the user wants to use (has to be erc20 token that has an approval for SportsAMMV2)

The node will use the APIs and other data available to it, perhaps even aggregation of the odds, to ensure the live trade can go through and send a reply to the LiveTradingProcessor.

If the reply is positive, in the same reply transaction the user trade by LiveTradingProcessor interacting with SportsAMMV2.

If the reply is negative, the live trade is cancelled. If there is no reply within a minute (a configurable variable), the live trade request is considered as failed.

The LiveTradingProcessor contract will not need to store any odds, as the odds will be returned by the Chainlink node.

Once a live trade is executed, is stored within the system as any pre match trade, and resolved using the same mechanics as other tickets in V2.

Last updated