> ## Documentation Index
> Fetch the complete documentation index at: https://pond.dflow.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Spot Trading

> How imperative spot trading on DFlow works: request an order, sign, submit

<Info>
  DFlow charges no protocol fee on spot trades. Builders can add their own [platform fees](/spot/trading/platform-fees) on top.
</Info>

Spot trades on DFlow are **imperative**: the app specifies the trade parameters and DFlow returns a fully constructed transaction. The route is planned at quote time and re-optimized at execution by [JIT routing](/spot/jit-routing).

## How it works

```mermaid theme={null}
flowchart LR
  A[Request /order] --> B[Sign transaction]
  B --> C[Submit to RPC]
  C --> D[Confirm status]
```

1. The app requests an order from the [`/order`](/resources/trading-api/order/order) endpoint with input mint, output mint, and amount, plus optional parameters like slippage, platform fees, priority fees, and venue restriction.
2. The user signs the returned transaction.
3. The app submits it to a Solana RPC and confirms status.

<Note>
  Prediction market outcome tokens are SPL tokens too, so they route through the same [`/order`](/resources/trading-api/order/order) endpoint. The flow on this page applies to both standard spot pairs and Kalshi outcome-token swaps.
</Note>

## What you get

Spot trading via `/order` gives you:

* A **composable transaction** you can wrap with other instructions in the same tx.
* A **familiar quote/sign/send flow** that mirrors existing Solana integrations.
* **Submission through your own RPC**, with no dependency on DFlow's execution layer.
* **Token-2022 support**, including Kalshi outcome tokens.

<Note>
  DFlow also offers an **intent-based declarative** trade flow via [`GET /intent`](/resources/trading-api/declarative/quote) for stronger sandwich protection. The majority of builders stay on `/order`; `/intent` is the opt-in for apps where sandwich exposure matters more than transaction composability. Token-2022 mints (including Kalshi outcome tokens) are not supported on `/intent`.
</Note>
