{
  "x402Version": 2,
  "id": 33404,
  "slug": "33404",
  "resource": "https://api.edifiedlab.com/v1/market/fx-convert",
  "description": "Convert an amount between currencies using public daily/historical FX rates backed by ECB reference data.",
  "type": "http",
  "serviceName": "FX Currency Converter",
  "resourceType": "Market Data",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x5037546753d64F77A6fA95B6f85659B6a4A7F6FD",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "11000",
      "amountUsd": 0.011,
      "maxTimeoutSeconds": 600
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "action": {
            "enum": [
              "convert",
              "latest",
              "historical",
              "currencies"
            ],
            "type": "string"
          },
          "amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "base": {
            "type": "string"
          },
          "converted": {
            "type": [
              "number",
              "null"
            ]
          },
          "currencies": {
            "type": "object"
          },
          "date": {
            "type": [
              "string",
              "null"
            ]
          },
          "from": {
            "type": "string"
          },
          "payload": {
            "const": "fx_convert",
            "type": "string"
          },
          "rate": {
            "type": [
              "number",
              "null"
            ]
          },
          "rates": {
            "type": "object"
          },
          "source": {
            "enum": [
              "ecb_reference",
              "local_identity"
            ],
            "type": "string"
          },
          "to": {
            "type": "string"
          }
        },
        "required": [
          "payload",
          "action",
          "source"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "action": "convert",
            "amount": 100,
            "from": "USD",
            "to": "EUR"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "action": "convert",
            "amount": 100,
            "converted": 92,
            "from": "USD",
            "payload": "fx_convert",
            "rate": 0.92,
            "source": "ecb_reference",
            "to": "EUR"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "allOf": [
                  {
                    "if": {
                      "properties": {
                        "action": {
                          "enum": [
                            "",
                            "convert"
                          ]
                        }
                      }
                    },
                    "then": {
                      "properties": {
                        "to": {
                          "pattern": "^[A-Za-z]{3}$",
                          "type": "string"
                        }
                      },
                      "required": [
                        "from",
                        "to",
                        "amount"
                      ]
                    }
                  },
                  {
                    "if": {
                      "properties": {
                        "action": {
                          "const": "historical"
                        }
                      },
                      "required": [
                        "action"
                      ]
                    },
                    "then": {
                      "required": [
                        "date"
                      ]
                    }
                  }
                ],
                "properties": {
                  "action": {
                    "description": "Empty string is treated as convert.",
                    "enum": [
                      "",
                      "convert",
                      "latest",
                      "historical",
                      "currencies"
                    ],
                    "type": "string"
                  },
                  "amount": {
                    "exclusiveMinimum": 0,
                    "type": "number"
                  },
                  "base": {
                    "pattern": "^[A-Za-z]{3}$",
                    "type": "string"
                  },
                  "date": {
                    "format": "date",
                    "type": "string"
                  },
                  "from": {
                    "pattern": "^[A-Za-z]{3}$",
                    "type": "string"
                  },
                  "symbols": {
                    "oneOf": [
                      {
                        "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
                        "type": "string"
                      },
                      {
                        "items": {
                          "pattern": "^[A-Za-z]{3}$",
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      }
                    ]
                  },
                  "to": {
                    "oneOf": [
                      {
                        "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
                        "type": "string"
                      },
                      {
                        "items": {
                          "pattern": "^[A-Za-z]{3}$",
                          "type": "string"
                        },
                        "minItems": 1,
                        "type": "array"
                      }
                    ]
                  }
                },
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "action": {
                    "enum": [
                      "convert",
                      "latest",
                      "historical",
                      "currencies"
                    ],
                    "type": "string"
                  },
                  "amount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "base": {
                    "type": "string"
                  },
                  "converted": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "currencies": {
                    "type": "object"
                  },
                  "date": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "payload": {
                    "const": "fx_convert",
                    "type": "string"
                  },
                  "rate": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "rates": {
                    "type": "object"
                  },
                  "source": {
                    "enum": [
                      "ecb_reference",
                      "local_identity"
                    ],
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  }
                },
                "required": [
                  "payload",
                  "action",
                  "source"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "finance",
    "foreign-exchange",
    "currency",
    "rates",
    "x402",
    "bazaar"
  ],
  "sourceHost": "api.edifiedlab.com",
  "lastUpdated": "2026-09-19T15:32:04.876Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-09-19T15:32:04.612Z"
  },
  "metadata": {
    "serviceName": "FX Currency Converter",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "action": "convert",
              "amount": 100,
              "from": "USD",
              "to": "EUR"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "action": "convert",
              "amount": 100,
              "converted": 92,
              "from": "USD",
              "payload": "fx_convert",
              "rate": 0.92,
              "source": "ecb_reference",
              "to": "EUR"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "action": {
                            "enum": [
                              "",
                              "convert"
                            ]
                          }
                        }
                      },
                      "then": {
                        "properties": {
                          "to": {
                            "pattern": "^[A-Za-z]{3}$",
                            "type": "string"
                          }
                        },
                        "required": [
                          "from",
                          "to",
                          "amount"
                        ]
                      }
                    },
                    {
                      "if": {
                        "properties": {
                          "action": {
                            "const": "historical"
                          }
                        },
                        "required": [
                          "action"
                        ]
                      },
                      "then": {
                        "required": [
                          "date"
                        ]
                      }
                    }
                  ],
                  "properties": {
                    "action": {
                      "description": "Empty string is treated as convert.",
                      "enum": [
                        "",
                        "convert",
                        "latest",
                        "historical",
                        "currencies"
                      ],
                      "type": "string"
                    },
                    "amount": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "base": {
                      "pattern": "^[A-Za-z]{3}$",
                      "type": "string"
                    },
                    "date": {
                      "format": "date",
                      "type": "string"
                    },
                    "from": {
                      "pattern": "^[A-Za-z]{3}$",
                      "type": "string"
                    },
                    "symbols": {
                      "oneOf": [
                        {
                          "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
                          "type": "string"
                        },
                        {
                          "items": {
                            "pattern": "^[A-Za-z]{3}$",
                            "type": "string"
                          },
                          "minItems": 1,
                          "type": "array"
                        }
                      ]
                    },
                    "to": {
                      "oneOf": [
                        {
                          "pattern": "^[A-Za-z]{3}(,[A-Za-z]{3})*$",
                          "type": "string"
                        },
                        {
                          "items": {
                            "pattern": "^[A-Za-z]{3}$",
                            "type": "string"
                          },
                          "minItems": 1,
                          "type": "array"
                        }
                      ]
                    }
                  },
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "action": {
                      "enum": [
                        "convert",
                        "latest",
                        "historical",
                        "currencies"
                      ],
                      "type": "string"
                    },
                    "amount": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "base": {
                      "type": "string"
                    },
                    "converted": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "currencies": {
                      "type": "object"
                    },
                    "date": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "from": {
                      "type": "string"
                    },
                    "payload": {
                      "const": "fx_convert",
                      "type": "string"
                    },
                    "rate": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "rates": {
                      "type": "object"
                    },
                    "source": {
                      "enum": [
                        "ecb_reference",
                        "local_identity"
                      ],
                      "type": "string"
                    },
                    "to": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "payload",
                    "action",
                    "source"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.edifiedlab.com",
    "manifest_name": "api.edifiedlab.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "action": "convert",
    "amount": 100,
    "converted": 92,
    "from": "USD",
    "payload": "fx_convert",
    "rate": 0.92,
    "source": "ecb_reference",
    "to": "EUR"
  }
}