Integration with Front-Ends
Drop-in margin infrastructure terminals can activate with minimal changes.
Front-ends integrate Multiply by adding a small set of UI components and interacting with Dimes' API surface. Front-ends never handle collateral, never underwrite risk, and never participate in hedging; they only route user intent and render Multiply’s state updates.
As the system evolves, new features, APIs, and simplified integration paths may be introduced. Front-ends will always interact with Multiply through a narrow, stable interface, but specific parameters: leverage availability, liquidation bands, supported markets, and state feeds, may change as we expand to additional venues and improve hedging infrastructure.
All integration updates will be backward-compatible or accompanied by clear migration guidelines.
Front-ends Requirements
Front-ends display basic leveraged-position functionality:
market selection
direction (YES/NO)
leverage selection
position size input
required collateral
liquidation price and buffer
fees
live PnL and risk indicators
ability to close a position
Front-ends do not compute any of these values themselves; they simply render outputs received from Multiply.
What Multiply Provides
Multiply provides:
quotes for opening/adjusting positions
execution and settlement of synthetic positions
real-time PnL and margin updates
leverage decay, liquidation triggers and events
settlement events at market resolution
clear error codes for unhedgeable or invalid requests
Terminals consume these updates and render them; they do not enforce any risk logic or state transitions.
API endpoints, streaming formats, and error schemas will be published as part of the v1 integration package and may evolve as new markets and venues are added.
End-to-End Flow
A typical end-to-end flow includes:
Terminal requests a quote for a leveraged position.
Multiply responds with required collateral, fees, liquidation price, and allowable size.
User confirms, and the terminal sends an execution request.
Multiply locks collateral, executes the hedge, and activates the synthetic position.
Terminal displays ongoing PnL and buffer updates.
Positions are closed by the user, by liquidation, or at market resolution.
Multiply finalizes PnL and releases collateral.
Sandbox and Testing Checklist
Front-ends can integrate and test using a sandbox API environment.
Testing steps:
Quote / Execute flow
Early close
Partial close
Margin-call display
Liquidation event
Settlement event
Error handling (all variants)
UI consistency checks across price movements
Last updated

