> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.6mm.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server.

# Embedded API / SDK Trading System

The Embedded API / SDK Trading System is designed for partners that already own traffic, users, or business workflows and want to add trading without building a full exchange from scratch.

<h2 id="what-it-provides">
  What it provides
</h2>

* Embedded trading terminal through the Trading Widget SDK
* Partner backend integration through Agent SDKs
* User identity binding and entry-token flows
* Asset transfer, order, position, and account API access
* Event, webhook, and lifecycle integration for operational systems

<h2 id="recommended-architecture">
  Recommended architecture
</h2>

| Layer                      | Responsibility                                                                       |
| -------------------------- | ------------------------------------------------------------------------------------ |
| Partner frontend           | Hosts the entry point and embeds the 6MM trading interface.                          |
| Partner backend            | Keeps API secrets, validates users, issues embed tokens, and processes webhooks.     |
| 6MM trading infrastructure | Handles trading UI, matching, risk, liquidity, account state, and trading lifecycle. |

<h2 id="start-here">
  Start here
</h2>

Create the embedded trading interface.

Issue short-lived tokens from your backend.

Understand API conventions and backend integration.