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.

derived_data_readybooleanOptional

Whether derived data has been computed at least once.

This indicates overall readiness, not per-block freshness. Some algorithms require fresh derived data for each block — they are ready to receive orders but will wait for recomputation before solving.

Example: true
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/quote - Request a quote.

post

Accepts a QuoteRequest and returns a Quote 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: Quote timeout

Body

Request to solve one or more swap orders.

Responses
chevron-right
200

Quote completed

application/json

Complete solution for a [QuoteRequest].

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/quote

Last updated