API Specifications

Specifications to interact with Fynd server

GET /v1/health - Health check endpoint.

get

Returns the current health status of the service.

Responses
chevron-right
200

Service healthy

application/json

Health check response.

healthybooleanRequired

Whether the service is healthy.

Example: true
last_update_msinteger · int64Required

Time since last market update in milliseconds.

Example: 1250
num_solver_poolsintegerRequired

Number of active solver pools.

Example: 2
get
/v1/health

POST /v1/solve - Submit a solve request.

post

Accepts a SolutionRequest and returns a Solution with the best routes found, or an error if the request could not be filled.

Errors

  • 400 Bad Request: Invalid request format

  • 422 Unprocessable Entity: No routes found

  • 503 Service Unavailable: Queue full or service overloaded

  • 504 Gateway Timeout: Solve timeout

Body

Request to solve one or more swap orders.

Responses
chevron-right
200

Solve completed

application/json

Complete solution for a [SolutionRequest].

Contains a solution for each order in the request, along with aggregate gas estimates and timing information.

solve_time_msinteger · int64Required

Time taken to compute this solution, in milliseconds.

Example: 12
total_gas_estimatestringRequired

Total estimated gas for executing all swaps (as decimal string).

Example: 150000
post
/v1/solve

Last updated