Skip to main content
This flow is for qualified Builders who want to list a permissionless perpetual market and use a custom oracle feed as one of the market’s Index Price sources. Use this page together with the Permissionless Listing overview. The overview explains Builder responsibility, Insurance Fund requirements, Isolated Margin behavior, and trader-facing risk disclosures. This page focuses on the integration flow and API sequence.
RWA support currently covers US market sessions only: regular US stock hours, extended US stock hours, and US futures hours. Support for Hong Kong (HK), China (CN), and Korea (KR) market sessions is planned to be added gradually.

Source types

When configuring a permissionlessly listed market, Builders can select from multiple Index Price source types:
Source typeDescription
CEXCentralized exchange price feeds supported by Orderly.
Platform oracleOrderly-supported oracle sources such as Pyth and Stork.
Builder OracleA custom oracle feed pushed by a Builder to Orderly.
Bring Your Own Key (BYOK) OracleA Builder-owned oracle connection using the Builder’s own provider credentials, such as Pyth or Stork credentials.
Selected sources are submitted with weights. The weights must be positive integers and sum to 100.

Core listing flow

1

Create or update a custom oracle feed

Use POST /v1/broker/listing/oracle/feed to register the feed that your listing will use.For a Builder Oracle feed, omit oracle. For a BYOK feed, set oracle to the provider, such as pyth or stork.
{
  "base_ccy": "AAPL",
  "visibility": "private",
  "status": "active"
}
A new feed is active and private by default. Keep the feed private while testing. Change visibility to public only if you want other Builders to be able to select it.
2

Push custom oracle prices

Builder Oracle feeds publish Index Price updates to the dedicated oracle WebSocket endpoint.
{
  "id": "push_aapl_001",
  "event": "publish",
  "topic": "indexpricefeed",
  "ts": 1711440000000,
  "data": {
    "base_ccy": "AAPL",
    "price": 213.55
  }
}
The feed uses data.base_ccy to match the registered feed. Builders should publish at least once per second while the market session is open.See Full example for a complete client pattern with signing, application-level ping/pong handling, and price publishing.
3

Check listing context

Call POST /v1/broker/listing/symbol_context with the base symbol you want to list.
{
  "symbol": "AAPL"
}
The response provides listing parameters and indicates whether the symbol is an RWA symbol. If is_rwa is true, the listing must include a valid market_session in the final submit request.
4

Fetch available price sources

Call GET /v1/broker/listing/index_sources to retrieve the available source list. The response can include CEX, platform oracle, Builder Oracle, and BYOK Oracle sources.To fetch runtime price and health details for Builder Oracle and BYOK sources, call:
GET /v1/broker/listing/builder_sources?base_ccy=AAPL
This returns active public feeds, plus the Builder’s own private feeds. Other Builders cannot see or select your private feeds.
5

Select an RWA market session if needed

If symbol_context identifies the symbol as RWA, call:
GET /v1/public/rwa/market_sessions
Current RWA listing sessions are US-only, including US_STOCK, US_STOCK_EXT, and US_FUTURES. The response includes the session name, timezone, trading hours, and holiday and early-close calendar.
6

Submit the listing

Submit the market with selected sources and weights through POST /v1/broker/listing/submit.
{
  "symbol": "AAPL",
  "sources": [
    {
      "source": "ORACLE_woofi_pro",
      "source_symbol": "AAPL",
      "price_multiplier": 1,
      "weight": 60
    },
    {
      "source": "PYTH_woofi_pro",
      "source_symbol": "AAPL",
      "price_multiplier": 1,
      "weight": 40
    }
  ],
  "market_session": "US_STOCK"
}
For non-RWA symbols, omit market_session. For RWA symbols, market_session is required and must match a supported market session.
7

Monitor the listed market

After submission, monitor source health, feed visibility, Insurance Fund balance, liquidity, and market status. If all configured Index Price sources become unavailable, the market can be placed into reduce-only mode.

Visibility and responsibility

Custom oracle feeds can be either private or public:
  • Private feeds are visible only to the Builder that owns the feed.
  • Public feeds can be selected by other Builders.
If a Builder selects a public custom oracle feed operated by another Builder, that Builder is responsible for understanding the availability and quality risk of the selected source.

RWA constraints

RWA markets are controlled by Orderly’s supported RWA list. Builders cannot turn an arbitrary symbol into an RWA market by passing market_session directly.
  • If the symbol is RWA, market_session is required.
  • If the symbol is not RWA, market_session should be omitted.
  • RWA trading sessions are configured at the listed market level, not at the source level.

Full example

The following example separates the reusable WebSocket client from your provider logic. The SDK file signs the connection, keeps the WebSocket alive, handles reconnects, and publishes indexpricefeed messages. The provider file only decides which price to publish.
Never hardcode production keys or secrets in source code. Load ORDERLY_ACCOUNT_ID, ORDERLY_KEY, and ORDERLY_SECRET from a secure secret manager or environment variables.
ORDERLY_KEY is your Orderly public key and may include the ed25519: prefix. ORDERLY_SECRET should be the base58-encoded raw Ed25519 private key without the ed25519: prefix. This sample reconnects after connection or runtime errors. If authentication fails repeatedly, verify the account ID, key, secret, timestamp, and WebSocket endpoint.
# Requires Python 3.11+
pip install websockets cryptography base58

export ORDERLY_ACCOUNT_ID="0x..."
export ORDERLY_KEY="ed25519:..."
export ORDERLY_SECRET="..."
export BASE_CCY="AAPL"

python provider_ws_example.py