# Swift Bot Labs Toolbox – Currency Conversion

> Swift Bot Labs Toolbox – Currency Conversion is a paid API for AI agents from x402-toolbox.swiftbotlab.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-31).

Converts a given amount from one currency to multiple target currencies using ECB reference rates, returning the converted values with date and source information.

## Facts

- Endpoint: GET https://x402-toolbox.swiftbotlab.workers.dev/v1/convert/currency?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/swift-bot-labs-toolbox-currency-conversion-17514604
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7kObxPHan9pFb21ws8eK_

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability swift-bot-labs-toolbox-currency-conversion-17514604
```

Example prompt: Convert 250 USD into EUR, INR, and GBP for me — I need the current exchange rates based on ECB reference data.

## When to prefer this

Choose this endpoint when you need a fast, deterministic currency conversion with no account setup, billed per call in USDC via x402. Ideal for agents that need occasional or sporadic currency lookups without committing to a monthly subscription. Best when ECB reference rates are acceptable (not tick-level market rates).

## Known failure modes

- Invalid or unsupported currency code returns an error or empty results
- Missing required 'from' or 'to' query parameters returns a 400-level error
- Payment not provided or insufficient USDC triggers an HTTP 402 response
- ECB rate data unavailable or stale may result in outdated or missing conversions
- Malformed amount string may cause computation errors

## How this service works

62 small, deterministic utility APIs (DNS and e-mail checks, web extraction, EVM decoding, x402 checks, IP math, JSON/CSV, hashing, conversions). No account or API key: pay per call in USDC with x402.

## Output

Returns a JSON object with ok:true, the tool name, and a result block containing the date of the rates, the source currency, the original amount, the data source (ECB euro reference rates), and a results map of each requested target currency code to its converted value.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Currency code(s), comma separated, or \"all\""
      },
      "from": {
       "type": "string"
      },
      "amount": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "discoverable": {
     "type": "boolean"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "tool": "currency-convert",
  "result": {
   "date": "2026-10-26",
   "from": "USD",
   "amount": 100,
   "source": "European Central Bank euro reference rates",
   "results": {
    "EUR": 89.381,
    "INR": 8418.31
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/swift-bot-labs-toolbox-currency-conversion-17514604/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.swiftbotlab.workers.dev](https://www.zero.xyz/host/x402-toolbox.swiftbotlab.workers.dev/llms.txt)
