# Dimes

## Documentation

- [What is Multiply](https://docs.dimes.fi/overview/readme.md): Empowering onchain front-ends to natively offer their users up to 10x exposure on prediction market positions.
- [Levered Exposure Demand](https://docs.dimes.fi/overview/publish-your-docs.md): Why leverage matters for prediction market growth.
- [Supported Markets](https://docs.dimes.fi/overview/supported-markets.md): Markets are supported based on event type, liquidity microstructure, and safe margining.
- [Position Management](https://docs.dimes.fi/overview/position-management.md): Real-time controls to maintain solvency and enforce the trader's intended exposure.
- [Position Lifecycle](https://docs.dimes.fi/positions/position-lifecycle.md): How positions are opened, monitored, hedged, and settled.
- [Fees](https://docs.dimes.fi/positions/fees-and-revenue-share.md): How funding is priced for each leveraged position.
- [Integration with Front-Ends](https://docs.dimes.fi/positions/integration-with-front-ends.md): Drop-in margin infrastructure for prediction market terminals.
- [CFD Abstraction](https://docs.dimes.fi/positions/cfd-abstraction.md): Multiply's leveraged prediction market design.
- [Introduction](https://docs.dimes.fi/risk-engine/introduction.md): How leverage and liquidation safety are determined across the platform.
- [Data Pipeline](https://docs.dimes.fi/risk-engine/data-pipeline.md): Key parameters that inform margining, hedging, and allowable exposure.
- [Maximum Leverage](https://docs.dimes.fi/risk-engine/maximum-leverage.md): Exposure calibrated to depth, slippage, and concentration.
- [Global Limits and Circuit Breakers](https://docs.dimes.fi/risk-engine/global-limits-and-circuit-breakers.md): Protocol-wide controls beyond user-level and market-level limits.
- [Levered Exposure](https://docs.dimes.fi/leverage-and-risk/synthetic-exposure.md): How collateral and hedging combine to form each position.
- [Contract-for-Difference](https://docs.dimes.fi/leverage-and-risk/contract-for-difference.md): Why CFDs are the right instrument for leveraged prediction market exposure.
- [Leverage Decay (J-factor)](https://docs.dimes.fi/leverage-and-risk/leverage-decay-j-factor.md): Automated exposure reduction driven by market microstructure.
- [Margin Requirement](https://docs.dimes.fi/leverage-and-risk/margin-requirement.md): Enforcing safe leverage by tying position size to posted collateral.
- [Liquidation Proofs](https://docs.dimes.fi/leverage-and-risk/liquidation-proofs.md): Onchain proofs that each liquidation followed the engine's rules.
- [Liquidation Trigger](https://docs.dimes.fi/leverage-and-risk/liquidation-trigger.md): When collateral, leverage, and market conditions no longer support the open position.
- [Quickstart](https://docs.dimes.fi/for-developers/quickstart.md): The six-step integration path. Authenticate, list markets, quote, open, monitor, close.
- [SDK Installation](https://docs.dimes.fi/for-developers/sdk-installation.md): Install the TypeScript SDK and set up the client for server-side, browser, or React applications.
- [Environments](https://docs.dimes.fi/for-developers/environments.md): Dimes Multiply runs two fully isolated environments: production and sandbox. Pick one per integration and point all your traffic (REST, WebSocket, API keys) at the same environment.
- [Sandbox](https://docs.dimes.fi/for-developers/sandbox.md): Sandbox is a fully deployed, isolated Multiply environment running on Polygon mainnet against test pUSD and fake outcome tokens. Build and test your integration end-to-end with no funds at risk.
- [Contract Addresses](https://docs.dimes.fi/for-developers/contract-addresses.md): Canonical list of Dimes Multiply contract and token addresses on Polygon mainnet. Use these to verify on Polygonscan before approving any spend.
- [Authentication](https://docs.dimes.fi/for-developers/authentication.md): Dimes uses a two-tier authentication model: API keys for partner-level operations and short-lived JWTs for user-scoped actions.
- [On-Chain Integration](https://docs.dimes.fi/for-developers/on-chain-integration.md): How to submit on-chain transactions to open and close leveraged positions, and what the backend handles automatically after each step.
- [Smart Wallet Integration](https://docs.dimes.fi/for-developers/smart-wallet-integration.md): How to open and close leveraged positions from Polymarket smart-contract wallets — Safe, Proxy, and the push-funded deposit wallet flow used by new API users.
- [Privy Integration](https://docs.dimes.fi/for-developers/privy-integration.md): Open and close leveraged positions from a Privy wallet — an embedded EOA via the wagmi connector, or an ERC-4337 smart account via batched userOps.
- [Turnkey Integration (coming soon)](https://docs.dimes.fi/for-developers/turnkey-integration.md): How to open and close leveraged positions from a Turnkey embedded wallet by bridging Turnkey's signer into wagmi with a small custom connector.
- [API Reference](https://docs.dimes.fi/for-developers/api-reference.md): Complete reference for all Dimes Multiply endpoints. For a guided walkthrough, see Quickstart.
- [Partial-Open (FAK) (coming soon)](https://docs.dimes.fi/for-developers/partial-open.md)
- [WebSocket Events](https://docs.dimes.fi/for-developers/websocket.md): Receive real-time position updates via WebSocket. All position state changes are delivered as events over a persistent Socket.IO connection.
- [Error Handling](https://docs.dimes.fi/for-developers/error-handling.md): All errors follow a consistent format. Every error response includes an error type, a machine-readable code, and a human-readable message.
- [UI Guidelines](https://docs.dimes.fi/for-developers/ui-guidelines.md): Reference implementations for the key interface elements in a Multiply integration. Each component below includes a visual reference and the corresponding API fields mapped.
- [Media](https://docs.dimes.fi/for-developers/media.md): Dimes media assets
- [Integration Agreement](https://docs.dimes.fi/legal/integration-agreement.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information, you can query the documentation dynamically by asking a question.
Perform an HTTP GET request on a page URL with the `ask` query parameter:
```
GET https://docs.dimes.fi/overview/readme.md?ask=<question>
```
The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.
Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
