Pyth and Financial Market Data

Pyth Network
4 min readJul 27, 2021

--

The Pyth network is a specialized oracle solution for latency sensitive financial market data. It seeks to aggregate high quality, first party data in advanced ways and publish at sub second speeds.

In this post, we look to define financial market data and some of the nuances in specific markets where specialisation proves necessary in data sourcing to ensure robust coverage.

Financial market data can be simply defined as a combination of:

  1. Orders at which prices traders wish to trade
  2. The prices at which trades have just occurred

Both 1 and 2 are dependent on traders, and since traders typically match with one another at exchanges, first party data is generated by both traders and exchanges. The Pyth network is made up of primary source data providers and contributors of derived data publishing their data directly to the blockchain for use in the on-chain aggregate. By having a diverse group of reputable first party data providers, the Pyth network reduces the dependency on any single data source, and thus the likelihood of a single or group of data providers attacking or manipulating the aggregate price.

The general workflow is diagrammed below. As shown, participating traders contribute their data irrespective of the exchange they’ve traded on, while some exchanges contribute their data irrespective of which traders’ orders they use. Through this combination of data from trading firms & exchanges, the Pyth network achieves leverage in covering a large share of market activity.

Each asset class has its own share of quirks.

US Equities

The US equity market is made up of 16 exchanges and is regulated by rules such as Reg NMS that, subject to certain exceptions, require trades to occur at or inside the national best bid, best offer. Executed equity trades are then required to be reported to the consolidated tape. All equities trades are given up to a single clearing house (NSCC), which makes the trades fungible and settlement straight-forward. As a result, there is less fragmentation than the high number of exchanges may suggest, but real-time data is typically controlled by a small number of participants and expensive.

Pyth network’s US equity data coverage today consists of a combination of primary and derived data from the orders sent to and executed on regulated exchanges (MIAX Pearl Equities, IEX) data derived from the executed trades from some of the largest traders (Virtu, GTS, Jump Trading, CTC, & Akuna) across all exchanges.

FX

The global spot FX market is largely exempt from single market regulatory oversight, and thus does not typically trade on regulated exchanges. As a result, the majority of the market trades on an “off-exchange” or OTC (over-the-counter) basis either bilaterally or via ECNs. The ECNs vary from all-to-all central limit order books with guaranteed trade execution (firm orders), to bespoke liquidity pools that allow participants to segment out anonymous counterparties based their characteristics and give market makers the ability to have a ‘last look’ or cancel trades after attempted. While there is no central clearing house for FX, most institutional participants trade in the name of one of the 70 CLS Settlement members or prime brokers, which reduces settlement risk and allows for cross exchange margin relief. As a result, less liquid FX markets can be fragmented from 1 broker or ECN to the next, but generally not for extended periods of time.

Pyth network’s FX data coverage today consists of firm orders and executions from both ECNs (LMAX) as well as OTC traders (Virtu, GTS, Jump Trading, CTC, & Akuna).

Crypto

The global spot crypto market is still nascent and is spread across a wide array of exchanges and OTC traders. Further, there are no major prime brokers or central clearing counterparties in the spot crypto markets. As a result, traders onboard bilaterally with exchanges or counterparties with no cross-counterparty margin relief. Complicating things further, it’s not unusual for exchanges or brokers to halt transfers or withdrawals. This makes the crypto markets susceptible to prolonged dislocations from one exchange to the next that can last for several days or longer.

Pyth network’s crypto data coverage today consists of orders and executions from crypto exchanges (FTX, LMAX, Serum) as well as traders (Jump, Genesis, CMS).

We can’t wait to hear what you think! Feel free to join the Pyth Discord server, follow Pyth on Twitter, and join the Telegram to learn more and ask any questions you may have.

--

--

Pyth Network
Pyth Network

Written by Pyth Network

Smarter data for smarter contracts. Pyth is designed to bring real-world data on-chain on a sub-second timescale.

No responses yet