Skip to content

Quotes

Learn how to retrieve and interpret quotes from the Mach API.

Endpoints

POST /v1/quotes

  • Description: Request a quote for a specific asset swap.
  • Request Body:
    {
      "src_asset": "string",
      "dst_asset": "string",
      "amount": 0
    }
    
  • Responses:
  • 200: Quote details
    {
      "quote_id": "string",
      "src_amount": 0,
      "dst_amount": 0,
      "rate": "string",
      "expires_at": "string"
    }
    
  • 422: Validation Error
    {
      "detail": [
        {
          "loc": ["string", 0],
          "msg": "string",
          "type": "string"
        }
      ]
    }
    
Back to top