> 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.

# Options & Events

<h2 id="options">
  Options
</h2>

| Field   | Type                 | Default           | Notes                                            |
| ------- | -------------------- | ----------------- | ------------------------------------------------ |
| baseUrl | string               | SDK script origin | iframe domain. Pass explicitly in partner pages. |
| symbol  | string               | BTCUSDT           | Normalized to uppercase and strips - / \_.       |
| theme   | dark \| light        | dark              | Initial theme parameter.                         |
| locale  | en \| en-US \| zh-CN | Browser/default   | English and Simplified Chinese are supported.    |
| layout  | default \| compact   | default           | Reserved layout option.                          |
| auth    | object               | none              | Use partner-token for new SSO integrations.      |

<h2 id="events">
  Events
</h2>

| Event                | Trigger                                  |
| -------------------- | ---------------------------------------- |
| ready                | iframe initialization finished.          |
| error                | SDK, iframe, or authentication error.    |
| state\_changed       | SDK lifecycle state changed.             |
| auth\_state\_changed | partner-token auth state changed.        |
| symbol\_changed      | Actual iframe symbol changed.            |
| locale\_changed      | Actual iframe locale changed.            |
| order\_created       | User created an order inside the iframe. |
| order\_failed        | Order submission failed.                 |
| destroyed            | SDK instance destroyed.                  |