Execute FX
Partner Auth: EIP-191 signature by the partner's registered backend key, with X-Api-Deadline and optional X-Api-PublicKey headers. See the Signature and verify guide.
0x-prefixed 65-byte hex EIP-191 signature over the Partner Auth message. See the Signature and verify guide.
Unix seconds. UR rejects the request when the current time is past the deadline. Keep the validity window at or under 5 minutes.
0x-prefixed partner signer address registered with UR.
Send at least one of X-Ur-Id or X-External-User-Id. When both are present, UR resolves the user by X-Ur-Id first.
Send at least one of X-Ur-Id or X-External-User-Id. When both are present, UR resolves the user by X-Ur-Id first.
Partner-supplied idempotency key. Keep it stable across retries of the same logical operation.
Input fiat currency symbol.
Output fiat currency symbol.
Amount to convert, as a human-readable decimal string.
Slippage protection lower bound. If omitted, UR applies a default 0.5% slippage buffer based on the submitted amount.
Standard envelope. Business errors return HTTP 200 with a non-zero code.
Standard UR OpenAPI response envelope. code 0 means success; a non-zero code is a business error described by message.
0 on success; non-zero business error code.
Human-readable explanation. May be empty on success.
POST /api/fma/v1/fx-exchange HTTP/1.1
Host: openapi.ur.app
X-Api-Signature: text
X-Api-Deadline: text
X-Api-PublicKey: text
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"reqId": "fx-20260423-0001",
"fromCurrency": "EUR",
"toCurrency": "CHF",
"amount": "50",
"amountOutMinimum": "49.75"
}Standard envelope. Business errors return HTTP 200 with a non-zero code.
{
"code": 0,
"message": "",
"data": {
"txHash": "0xabc123def456..."
}
}Last updated