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

# Swaps & Trading

> Build cross-chain swaps, limit orders, and advanced trading experiences

Build trading experiences that rival centralized exchanges. Execute swaps across any chain, implement advanced order types, and route through deep liquidity—all without writing smart contracts.

<CardGroup cols={3}>
  <Card title="Smart Order Routing" icon="route">
    Automatically find the best prices across 200+ DEXs and aggregators
  </Card>

  <Card title="Cross-Chain Execution" icon="globe">
    Swap tokens across any supported chain with a single signature
  </Card>

  <Card title="Advanced Order Types" icon="clock">
    Enable limit orders, TWAPs, and conditional triggers
  </Card>
</CardGroup>

## Start Building

<CardGroup cols={2}>
  <Card title="Gasless Swap" icon="gas-pump" href="/swaps-trading/gasless-swap">
    Execute token swaps without users paying gas fees
  </Card>

  <Card title="Cross-Chain Swap" icon="arrows-cross" href="/swaps-trading/cross-chain-swap">
    Swap tokens across different chains in a single transaction
  </Card>
</CardGroup>

## What You Can Build

### Cross-Chain Swap Interface

Let users swap any token to any token across chains. Biconomy handles routing, bridging, and execution.

```typescript theme={null}
// Swap USDC on Base → ETH on Arbitrum
const quote = await fetch('https://api.biconomy.io/v1/quote', {
  method: 'POST',
  body: JSON.stringify({
    mode: 'eoa',
    ownerAddress: userAddress,
    composeFlows: [{
      type: '/instructions/intent-simple',
      data: {
        srcChainId: 8453,        // Base
        dstChainId: 42161,       // Arbitrum
        srcToken: USDC_BASE,
        dstToken: ETH_ARBITRUM,
        amount: '100000000',     // 100 USDC
        slippage: 0.01
      }
    }]
  })
});
```

### Limit Order System

Implement conditional execution that triggers when price targets are met.

<CardGroup cols={2}>
  <Card title="Price-Based Triggers" icon="chart-line">
    Execute swaps only when tokens reach target prices
  </Card>

  <Card title="Time-Weighted Orders" icon="calendar">
    Split large orders across time to minimize slippage
  </Card>
</CardGroup>

### Trading Bot Infrastructure

Power high-frequency trading strategies with MEE's low-latency execution.

* **Batch multiple swaps** into single transactions
* **Arbitrage across chains** with single-signature execution
* **React to on-chain events** with conditional triggers

## Key Features

<Tabs>
  <Tab title="Smart Routing">
    Biconomy aggregates liquidity from major DEXs and finds optimal routes:

    * Uniswap, SushiSwap, Curve, Balancer
    * 1inch, Paraswap, 0x aggregators
    * Cross-chain bridges (LiFi, Across, Relay)

    Routes are optimized for best price, lowest gas, and fastest execution.
  </Tab>

  <Tab title="Single Signature">
    No matter how complex the trade:

    * Multi-hop swaps across DEXs
    * Bridge + swap combinations
    * Batch orders across chains

    Users sign once. MEE handles all execution.
  </Tab>

  <Tab title="Gas Abstraction">
    Trading without gas friction:

    * Pay fees in the token being swapped
    * Sponsor gas for your users entirely
    * Works with EOA wallets (no smart account required)
  </Tab>
</Tabs>

## Integration Options

<CardGroup cols={2}>
  <Card title="Supertransaction API" icon="globe" href="/supertransaction-api">
    REST API for quick integration. Best for backends and non-TypeScript environments.
  </Card>

  <Card title="AbstractJS SDK" icon="code" href="/new/getting-started/getting-started">
    TypeScript SDK with full type safety. Best for frontend apps and custom logic.
  </Card>
</CardGroup>

<Tip>
  Most trading applications start with the Supertransaction API for rapid development, then add AbstractJS for advanced features like custom routing logic.
</Tip>
