# 6MM Docs ## Instructions for AI Agents - For clean Markdown of any page, append `.md` to the page URL - For section-specific indexes, append `/llms.txt` to any section URL - For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.6mm.com/_mcp/server ## Docs - [6MM Trading Infrastructure Documentation](https://docs.6mm.com/.md): Explore official 6MM documentation for digital asset trading solutions, the Developer API, Trading Widget SDK, Agent SDK, security, compliance, and partner support. - [6MM Trading Solutions](https://docs.6mm.com/solutions/overview.md): Compare 6MM solutions for embedded trading, white-label exchanges, institutional liquidity, and compliance, built for blockchain platforms and partners. - [Embedded API / SDK Trading System](https://docs.6mm.com/solutions/embedded-trading.md): Embed professional perpetual trading capabilities into an existing product through 6MM APIs and SDKs. - [Embedded Trading Infrastructure](https://docs.6mm.com/solutions/embedded-trading-infrastructure.md): Understand the 6MM embedded trading infrastructure for adding perpetual trading, liquidity, risk controls, and operations to partner platforms. - [Integration Scenarios](https://docs.6mm.com/solutions/integration-scenarios.md): Map common partner business models to the right 6MM embedded trading integration path. - [Architecture & Responsibilities](https://docs.6mm.com/solutions/architecture-responsibilities.md): Clarify what the partner system owns and what 6MM infrastructure provides in embedded trading deployments. - [Institutional Liquidity Solutions](https://docs.6mm.com/solutions/institutional-liquidity.md): Use 6MM liquidity infrastructure to improve market depth, execution quality, and trading stability. - [6 Market Maker — Professional Market Making & Liquidity Infrastructure](https://docs.6mm.com/solutions/6-market-maker.md): Explore the 6 Market Maker engine for professional digital asset market making, liquidity provision, spread management, and risk-aware quoting. - [Market Depth & Spread](https://docs.6mm.com/solutions/market-depth-spread.md): Understand how liquidity depth, spread quality, and execution reliability shape the end-user trading experience. - [Risk-aware Quoting](https://docs.6mm.com/solutions/risk-aware-quoting.md): Use liquidity and risk controls together so quoting remains useful during active or volatile markets. - [White-label Exchange System](https://docs.6mm.com/solutions/white-label-exchange.md): Launch a branded exchange experience using 6MM exchange infrastructure, liquidity, and operational capabilities. - [Matching Engine & Core Modules](https://docs.6mm.com/solutions/matching-engine.md): Understand the core exchange modules behind a white-label trading platform. - [Operations Console](https://docs.6mm.com/solutions/operations-console.md): Plan the operational views and workflows required to run a white-label exchange. - [Brand Customization](https://docs.6mm.com/solutions/brand-customization.md): Prepare the visual and content assets needed for a consistent white-label exchange experience. - [Compliance, Licensing & Trading Technology](https://docs.6mm.com/solutions/compliance-licensing.md): Plan the technical controls, operating model, and licensing workstreams required for a digital asset trading launch. - [License Support](https://docs.6mm.com/security-compliance/license-support.md): Understand how licensing planning fits into a 6MM trading infrastructure launch. - [Partner Integration Security Architecture](https://docs.6mm.com/solutions/security-architecture.md): Design trust boundaries and production controls for embedded trading, API, SDK, webhook, asset-transfer, and operational integrations. - [Solution Launch Checklist](https://docs.6mm.com/solutions/production-launch-checklist.md): Review business, technical, security, and operations readiness before going live. - [6MM Trading Guide](https://docs.6mm.com/trading/overview.md): Understand the 6MM perpetual trading journey, core product mechanics, order behavior, fees, and risk controls. - [Start Trading](https://docs.6mm.com/trading/getting-started/start-trading.md): This section outlines the complete workflow for placing a first perpetual contract trade on 6MM. - [Trading Workflow](https://docs.6mm.com/trading/getting-started/trading-workflow.md): 6MM supports U-margined perpetual contracts, allowing users to trade perpetual futures settled and margined in stablecoins (e.g. USDT). - [Trading Account Access](https://docs.6mm.com/trading/getting-started/authentication.md): Understand the partner-managed registration and account access model used to connect users to 6MM trading while preserving responsibility boundaries. - [Asset Transfer](https://docs.6mm.com/trading/getting-started/asset-transfer.md): Learn how assets move between partner systems and 6MM trading accounts, including transfer responsibilities, status handling, and operational checks. - [Perpetual Contracts](https://docs.6mm.com/trading/perpetual-contracts.md): Learn how 6MM U-margined perpetual contracts work, including leverage, margin, funding, positions, and the risks of derivatives trading. - [Leverage Mechanics](https://docs.6mm.com/trading/leverage-mechanics.md): Leverage allows traders to open positions that are larger than their actual capital by using borrowed funds. - [Margin Rules](https://docs.6mm.com/trading/margin-rules.md): Margin is the amount of funds required to open and maintain a leveraged position. - [Order Types](https://docs.6mm.com/trading/order-types.md): An order defines how and at what price you want to buy or sell a perpetual contract. - [Take Profit / Stop Loss (TP/SL)](https://docs.6mm.com/trading/take-profit-stop-loss.md): Take Profit (TP) and Stop Loss (SL) are automated orders designed to help traders lock in profits and limit losses without constantly monitoring the market. - [Trading Costs: Fees & Slippage](https://docs.6mm.com/trading/fees-and-slippage.md): Estimate perpetual trading costs by understanding execution fees, order-book slippage, liquidity, order size, and order type. - [Perpetual Trading Fee Structure](https://docs.6mm.com/trading/fee-structure.md): Reference the 6MM maker, taker, funding, liquidation, and settlement fee model for U-margined perpetual contracts. - [Risk & Liquidations](https://docs.6mm.com/trading/risk-and-liquidations.md): Perpetual contract trading involves leverage, which amplifies both potential gains and potential losses. - [6MM Developer API](https://docs.6mm.com/developer-api/overview.md): Learn how to integrate with the 6MM Developer API, including authentication, request signing, REST endpoints, WebSocket streams, errors, and production guidance. - [Integration Overview](https://docs.6mm.com/developer-api/integration-overview.md): Start a 6MM API integration with the recommended environment, authentication, signing, REST, WebSocket, testing, and production-readiness sequence. - [Environments and Common Conventions](https://docs.6mm.com/developer-api/environments-and-common-conventions.md): Review 6MM API environments and shared conventions for base URLs, timestamps, numeric fields, symbols, request IDs, pagination, and responses. - [6MM API Authentication: JWT and API Keys](https://docs.6mm.com/developer-api/authentication.md): Learn how to authenticate private 6MM API requests with JWT access tokens or API keys and choose the appropriate method for each integration. - [API Key Management](https://docs.6mm.com/developer-api/api-key-management.md): Create, inspect, update, and revoke 6MM API keys while applying appropriate permissions, IP restrictions, secret storage, and rotation practices. - [Request Signing](https://docs.6mm.com/developer-api/request-signing.md): Sign 6MM API requests with HMAC-SHA256 using the required payload, timestamp, API key, signature headers, and verification rules. - [REST API](https://docs.6mm.com/developer-api/rest-api.md): Review the 6MM REST API conventions, authentication options, request formats, response structures, permissions, and endpoint groups. - [Public Endpoints](https://docs.6mm.com/developer-api/rest-api/public-endpoints.md): Access public 6MM API endpoints for instruments, tickers, order books, trades, and other unauthenticated market information. - [User and Account](https://docs.6mm.com/developer-api/rest-api/user-and-account.md): Use 6MM user and account endpoints to retrieve profiles, balances, account state, permissions, and partner-linked account information. - [Order](https://docs.6mm.com/developer-api/rest-api/order.md): Use 6MM order endpoints to create, query, cancel, and manage perpetual orders while handling permissions, identifiers, and lifecycle states. - [Position](https://docs.6mm.com/developer-api/rest-api/position.md): Use 6MM position endpoints to query open positions, margin details, leverage, unrealized profit and loss, and position-related operations. - [Market Data](https://docs.6mm.com/developer-api/rest-api/market-data.md): Use unauthenticated 6MM market data REST endpoints to retrieve symbols, tickers, order books, trades, and other public trading information. - [WebSocket](https://docs.6mm.com/developer-api/websocket.md): Connect to the 6MM WebSocket service for public market streams and private account events, with heartbeat and subscription guidance. - [Connection, Subscription & Heartbeat](https://docs.6mm.com/developer-api/websocket/connection-subscription-and-heartbeat.md): Connect to 6MM WebSocket streams, subscribe to topics, keep connections alive, and process message envelopes safely. - [WebSocket Public Market Data Channels](https://docs.6mm.com/developer-api/websocket/public-market-channels.md): Stream 6MM order books, trades, candlesticks, and ticker data through public WebSocket channels with subscription and reconnect guidance. - [Private User Channel](https://docs.6mm.com/developer-api/websocket/private-user-channel.md): Subscribe to authenticated 6MM WebSocket events for orders, positions, balances, and account changes by creating and maintaining a listen key. - [Common Enums](https://docs.6mm.com/developer-api/common-enums.md): Reference common 6MM API enums for order states, sides, order types, time in force, position modes, transfers, and integration responses. - [Error Codes and Troubleshooting](https://docs.6mm.com/developer-api/error-codes-and-troubleshooting.md): Diagnose 6MM API errors using response codes, messages, request IDs, retry guidance, authentication checks, and integration troubleshooting steps. - [Integration Recommendations](https://docs.6mm.com/developer-api/integration-recommendations.md): Apply recommended 6MM practices for authentication, retries, idempotency, logging, rate handling, monitoring, security, and launch readiness. - [Embed the 6MM Trading Widget: Quick Start](https://docs.6mm.com/sdk/trading-widget/quick-start.md): Add the trading terminal to a web page with a container, the v1 script, and TradingWidget.create(). - [6MM Agent SDK](https://docs.6mm.com/sdk/agent-sdk/overview.md): Learn how to use the 6MM Agent SDK in Java and PHP backend services to send signed requests, bind users, transfer assets, create entry URLs, and verify webhooks. - [Java Quick Start](https://docs.6mm.com/sdk/agent-sdk/java/quick-start.md): Install and initialize the Java SDK from a backend service. - [PHP Quick Start](https://docs.6mm.com/sdk/agent-sdk/php/quick-start.md): Install and initialize the PHP SDK from a backend service. - [Agent SDK Secrets & HMAC Signing](https://docs.6mm.com/sdk/security/secrets-signing.md): Protect Agent API credentials and understand how the SDK generates timestamped, replay-resistant HMAC-SHA256 request signatures. - [Webhook Signature Verification & Idempotency](https://docs.6mm.com/sdk/security/webhooks-idempotency.md): Verify 6MM Agent webhooks with the raw request body and process retries, timeouts, and repeated events without duplicate business actions. - [Partner Production Launch Checklist](https://docs.6mm.com/resources/production-launch-checklist.md): Confirm integration, asset, security, compliance, and support readiness before a 6MM partner launch. - [Technical Support Request Template](https://docs.6mm.com/resources/support-request-template.md): Submit a complete, safely redacted report for 6MM API, SDK, WebSocket, webhook, trading, security, or production issues. - [6MM SDKs](https://docs.6mm.com/sdk/overview.md): Choose the right 6MM SDK path for embedded trading, backend token issuance, account linkage, webhooks, and production operations. - [Trading Widget SDK](https://docs.6mm.com/sdk/trading-widget/overview.md): Learn how to embed the 6MM digital asset trading terminal in a partner website, with secure authentication, display controls, runtime methods, and lifecycle events. - [Trading Widget Authentication](https://docs.6mm.com/sdk/trading-widget/authentication.md): Use partner-token for new embedded trading SSO integrations. - [Options & Events](https://docs.6mm.com/sdk/trading-widget/options-events.md): Initialization options, runtime events, and common error codes. - [Instance Methods](https://docs.6mm.com/sdk/trading-widget/instance-methods.md): Control a created widget instance after TradingWidget.create(). - [Agent Java SDK](https://docs.6mm.com/sdk/agent-sdk/java/overview.md): Install the 6MM Agent Java SDK and use signed backend APIs for user binding, transfers, entry credentials, and webhook verification. - [Create Embed Token](https://docs.6mm.com/sdk/agent-sdk/java/embed-token.md): Issue short-lived embed tokens for Trading Widget partner-token mode. - [Agent PHP SDK](https://docs.6mm.com/sdk/agent-sdk/php/overview.md): Use the approved 6MM Agent PHP package from backend services for user binding, transfers, entry URLs, and webhook verification. - [SDK Integration Troubleshooting](https://docs.6mm.com/sdk/security/troubleshooting.md): Diagnose Trading Widget, Agent SDK, signing, webhook, timeout, and environment problems before escalating a support request. - [Security & Compliance](https://docs.6mm.com/security-compliance/overview.md): Prepare a secure and compliant 6MM integration by reviewing security architecture, partner responsibilities, legal boundaries, API controls, and launch requirements. - [Platform Security Architecture](https://docs.6mm.com/security-compliance/security-architecture.md): Understand the security layers used across 6MM trading infrastructure, APIs, SDKs, webhooks, and partner integrations. - [Security Policies](https://docs.6mm.com/security-compliance/security-policies.md): Review 6MM security policies for infrastructure, access control, encryption, monitoring, vulnerability management, and partner responsibilities. - [Incident Response](https://docs.6mm.com/security-compliance/incident-response.md): Understand the 6MM incident response process for identifying, containing, communicating, resolving, and reviewing security or operational events. - [Bug Bounty Program](https://docs.6mm.com/security-compliance/bug-bounty-program.md): Learn how to report security vulnerabilities to 6MM responsibly, including scope, submission expectations, safe-harbor principles, and response handling. - [Compliance Overview](https://docs.6mm.com/security-compliance/compliance-overview.md): Review how compliance support, licensing context, and partner responsibilities fit into 6MM integrations. - [6MM & Partner Responsibility Matrix](https://docs.6mm.com/security-compliance/partner-responsibilities.md): Clarify ownership for trading infrastructure, integration security, end-user operations, monitoring, support, incidents, and compliance. - [Terms & Conditions](https://docs.6mm.com/security-compliance/legal/terms-and-conditions.md): These Terms & Conditions govern the access to and use of the 6MM trading infrastructure by platforms, agents, and authorized partners. - [Privacy Policy](https://docs.6mm.com/security-compliance/legal/privacy-policy.md): 6MM respects privacy and is committed to protecting data processed within its trading infrastructure. - [Integration & Support](https://docs.6mm.com/resources/overview.md): Find 6MM integration and launch resources, including templates, production checklists, brand assets, operational handoff guidance, contacts, and partner support. - [Usage Guidelines](https://docs.6mm.com/resources/brand-assets/usage-guidelines.md): This page defines the scope, applicable scenarios, and basic rules for using 6MM Embedded Exchange Design & Visual Assets. - [Asset Downloads](https://docs.6mm.com/resources/brand-assets/asset-downloads.md): Download approved 6MM logos, entry banners, card assets, and white-label materials for embedded trading and partner launch scenarios. - [White-label Support](https://docs.6mm.com/resources/brand-assets/white-label-support.md): Understand how branded and white-label 6MM assets should be used in partner products. - [Integration Information Template](https://docs.6mm.com/resources/integration-information-template.md): Collect the partner information needed for technical review, production configuration, and support handoff. - [About 6MM](https://docs.6mm.com/resources/company/overview.md): Learn how 6MM positions its trading infrastructure, liquidity ecosystem, compliance support, and partner network. - [Partner Onboarding](https://docs.6mm.com/resources/company/partnerships.md): Understand the typical path from business evaluation to production launch with 6MM. - [Support & Escalation](https://docs.6mm.com/resources/support/support-overview.md): Use the right support path for integration questions, production incidents, operational changes, and security reports. - [Report a Security Vulnerability or Incident](https://docs.6mm.com/resources/support/security-reporting.md): Privately report vulnerabilities, credential exposure, suspicious behavior, or urgent security incidents to 6MM with actionable evidence. - [Business Inquiries](https://docs.6mm.com/resources/contact/business-inquiries.md): 6MM welcomes business inquiries from platforms, agents, and ecosystem partners interested in integration, collaboration, or commercial cooperation. - [Support](https://docs.6mm.com/resources/contact/support.md): Find the 6MM support path for integration, trading, account, production, and security issues, including the information required for escalation.