Pricing: Pyth

Where Rumor Perps gets its prices, how a price gets into your trade, and how fresh it must be.

Every position on Rumor Perps opens and closes at the Pyth price. Pyth is an oracle network that collects prices from dozens of exchanges and market makers.

How Pyth works

Exchanges and market makers send their prices to Pyth directly. About every 0.4 seconds, Pyth combines them into one price and signs the result. Anyone can fetch a signed price, and any contract can check Pyth's signature on it.

The feeds

MarketPyth feedFeed ID
BTCBTC/USD0xe62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43
ETHETH/USD0xff61491a931112ddf1bd8147cd1b641375f79f5825126d665480874634fd0ace
BNBBNB/USD0x2f95862b045670cd22bee3114c39763a4a08beeb663b145d283c31d7d1101c4f

You can look up each feed by its ID on Pyth's site.

How the price gets into your trade

When you open or close a position, Rumor's server takes the latest signed Pyth price at the moment it sends your trade, so the price you get can differ slightly from the one on screen when you signed. The contract checks Pyth's signature on the price, so it can't be faked.

The same price applies whether you go long or short: there is no spread, and the size of your position doesn't move it. The chart in the app shows the same Pyth price.

Prices are in US dollars, while balances, margin and payouts are in USDT, counted one to one; see risk.

Price freshness

The contract rejects a price older than 5 seconds.

If Pyth stops

Pyth is an outside service. If it stops publishing prices, no fresh price reaches the contract: positions can't open, close or be liquidated until it's back. Queue payouts don't need a price and keep working. See risk.

On this page