Skip to main content
Tokenized equities trade through the same order endpoint as other tokens. For an equity buy, the response settles in one transaction (executionMode = sync) or in two (executionMode = async). The market maker with the best price decides how a buy settles. If it has inventory, the response is sync. The user signs one transaction, the app sends it to the submit transaction endpoint, and the maker co-signs and submits it. Otherwise the response is async. The user’s transaction opens an escrow, the maker buys the equities offchain, and the maker fills the escrow. The app sends the signed transaction through its own RPC. A sell is always sync.

Features

  • Market maker liquidity: Market makers quote each order, and DFlow picks the best quote.
  • Sync and async execution: A buy settles in one transaction (sync) or in two (async), depending on the market maker.
  • Scaled amounts: The response adds the ticker and, when the mint has a scaled UI multiplier, amounts ready to show the user.
  • Platform fees: Collect a platform fee on equity fills.

How It Works

Find the mint with the equities endpoint and request an order with it as the input or output mint. A response with submitEndpointRequired: true goes to the submit transaction endpoint. Any other response goes through your own RPC.

Supported Equity Pairs

  • USDC to or from an equity mint.
  • Another token to or from an equity mint, which the order endpoint routes through USDC.

Equity Pair Errors

A request from one equity mint to another fails with unsupported_equity_pair. A request with the same mint on both sides fails with same_input_and_output_mint. Equity Order Errors lists each error a request with an equity mint can return, and how to fix it.

Equity Execution Modes