For the complete documentation index, see llms.txt. This page is also available as Markdown.

πŸ“°Solver integration

1. Introduction

A Solver is a service node responsible for providing quotes and executing exchanges.

The platform will request quotes from multiple Solvers simultaneously, select the Solver with the best quote, and then the selected Solver will independently complete the exchange for that order.


2. Integration Process

A Solver needs to implement the following four APIs:

API
Direction

Solver Quote API

Platform β†’ Solver

Solver Order API

Platform β†’ Solver

Solver Order Notification API

Platform β†’ Solver

Solver Settlement Notification API

Platform β†’ Solver

At the same time, the Solver needs to call the following two APIs provided by the platform:

API
Direction

Solver Submit Order API

Solver β†’ Platform

Solver Query Order API

Solver β†’ Platform

3. Workflow

Platform
 β”‚
 β”œβ”€β”€β–Ί Request quotes from multiple Solvers
 β”‚
 β”œβ”€β”€β–Ί Select the best Solver
 β”‚
 β”œβ”€β”€β–Ί Create order
 β”‚
 β”œβ”€β”€β–Ί Notify Solver to create order
 β”‚
 β–Ό
User deposits tokens
 β”‚
 β–Ό
Platform confirms deposit
 β”‚
 β”œβ”€β”€β–Ί Notify Solver to start execution
 β”‚
 β–Ό
Solver sends tokens to user
 β”‚
 β”œβ”€β”€β–Ί Submit transaction hash
 β”‚
 β–Ό
Platform verifies transaction
 β”‚
 β–Ό
Platform settles funds to Solver

4. Authentication

All Solver requests to platform APIs must include the following parameters.

(solverCode and solverSecret need to be obtained from the platform.)

Parameter
Description

solverCode

Solver identifier

solverSecret

Solver authentication key

timestamp

Current timestamp in milliseconds

Last updated