> For the complete documentation index, see [llms.txt](https://docs.svim.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.svim.io/external-developers/external-developers/partner-integration.md). Agents can also search and read this documentation through its [MCP server](https://docs.svim.io/~gitbook/mcp).

# Partner Integration

[Handbook](https://docs.svim.io/external-developers/external-developers.md) · [API integration](https://docs.svim.io/external-developers/external-developers/api-integration.md)

Obtain the exact partner name and agreed fee configuration from your Swimmer Finance contact. Include that case-sensitive name as `trade_source` in both quote and preparation requests so the displayed fee terms match the intended attribution.

```http
GET /router/AAPL/ARBITRUM/{encoded-pair}/quote?offer_amount=1000&trade_source=partner_a&order_type=MARKET
```

```json
{
  "stock": "AAPL",
  "blockchain": "ARBITRUM",
  "token_pair_name": "<discovered-sort_key>",
  "wallet_address": "<customer-wallet>",
  "offer_amount": "1000",
  "order_type": "MARKET",
  "trade_source": "partner_a"
}
```

Send the body to `POST /router/swap`. The API carries attribution into the funding memo and order. `trader_source` is an alias; conflicting values are a 400. Attribution is distinct from `execution_source`, which reports the provider selected for the pair. A partner name does not force a venue.

## Fees

Quote/preparation responses expose `basic_fee_bps`, `source_fee_bps` and `total_fee_bps`. One basis point is 0.01%; total rate is basic plus source rate. Use returned values; do not hard-code a service rate.

For a 1,000 USDC market buy with a 15 bps source fee, the partner reserve is 1.50 USDC and 998.50 USDC enters normal Vault pricing, which accounts for its basic fee. Market sells reserve the partner fee from gross USDC proceeds. Source reserves round down to six USDC decimal places. Limit orders wait for pricing that covers customer commitments and fees.

Missing, empty, unconfigured or disabled partner names charge only the basic fee. Supplying a name alone does not activate a commercial fee arrangement. Configuration changes can take two hours to propagate through service caches; accepted orders snapshot their terms. Display actual returned terms and use recorded amounts for reconciliation rather than today's configuration.

Configured positive source fees require Swimmer custody settlement. Direct external DEX quote/preparation returns 400 when that fee cannot be collected. Do not silently remove attribution to bypass this commercial constraint.

## Payments and statements

Fees are retained and aggregated after authoritative customer orders reach `COMPLETED`; payment is not sent separately on every trade. Partner payouts use USDC on the agreed supported EVM payout network, independently of customer funding network. This implementation does not support Solana payout destinations. Daily collection is an operational process, not an exact payment-time guarantee.

Request statements from your integration contact. There is no public partner configuration, payout or statement-export API documented here. Partners do not need database access or the platform's internal Vault payout interface.

Statements can include daily totals, individual trades and linked payments. Customer settlement dates and partner payment dates are separate UTC dates. Volume is customer gross USDC fee-basis volume, not venue rebalancing volume; accepted deferred trades can settle despite zero venue execution.

Reconcile using:

```
closing outstanding = opening outstanding + source fees earned - confirmed payments
```

Payments merely submitted are not confirmed payments. Statements carry generation and completeness information; older records can lack exact historical volumes or fees, and later reconciliation can require a revised statement. Preserve order IDs, funding references and payout references when reporting discrepancies.
