π°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:
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:
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 Solver4. Authentication
All Solver requests to platform APIs must include the following parameters.
(solverCode and solverSecret need to be obtained from the platform.)
solverCode
Solver identifier
solverSecret
Solver authentication key
timestamp
Current timestamp in milliseconds
Last updated