# FX

> Convert between COP and USD with a 30-second quote you execute once and settle the same, the next or the second business day.

[Sandbox · coming soon]

FX converts balance between Colombian pesos and US dollars. It takes two steps: you request a **quote** with a locked rate and you **execute** it before it expires.

## The flow

1. `GET /v1/quotes` with `from`, `to` and the settlement term: you get `quote`, `factor` and `expiresAt`.
2. `POST /v1/transactions` with the `quote` and the origin or destination amount: zulu debits the origin currency from your balance.
3. On the settlement date zulu credits the destination currency and the conversion turns `COMPLETED`.

**GET** `/v1/quotes` — Quote a conversion · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/get-quote.md)

**POST** `/v1/transactions` — Convert with a quote · [Sandbox · coming soon] · [See the reference](https://developers.zulu.com.co/en/reference/create-fx-transaction.md)

## The essentials

- **`factor` is always COP per USD**, whatever the direction. Buying and selling USD it includes zulu's margin.
- **A quote lives 30 seconds and serves a single conversion.** If it expires, request another.
- **Send one amount**: `originAmount` (what you hand over) or `destinationAmount` (what you want to receive). zulu computes the other with the factor.
- **The term sets the date**: `SAME_DAY`, `NEXT_DAY` or `SECOND_DAY` business day, with Colombian holidays.

| Limit | Value |
| --- | --- |
| COP side of a conversion | 4,000 – 4,000,000,000 COP |
| USD side of a conversion | 1 – 1,000,000 USD |
| `REAL` FX hours (business days, Bogotá) | 08:05 – 15:30 |
| Last time to quote `SAME_DAY` | 13:00 |
| Life of a quote (single use) | 30 seconds |

## In the sandbox

The rate is synthetic: it comes from a configurable mid rate plus a spread per term. It is not a real quote, and you should use it only to test your integration.

| Rule | Operations |
| --- | --- |
| The rate is synthetic and deterministic: the workspace mid rate (3,950.00) plus the term's spread when buying USD, or minus it when selling. Not a real quote. | [`getQuote`](https://developers.zulu.com.co/en/reference/get-quote.md), [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md) |
| A quote lives 30 seconds and serves a single conversion. | [`getQuote`](https://developers.zulu.com.co/en/reference/get-quote.md), [`createFxTransaction`](https://developers.zulu.com.co/en/reference/create-fx-transaction.md) |

## Guides

- [Quotes](https://developers.zulu.com.co/en/docs/fx/quotes.md): request and read a quote.
- [Conversions](https://developers.zulu.com.co/en/docs/fx/conversions.md): execute it and understand the rounding.
- [Settlement and market hours](https://developers.zulu.com.co/en/docs/fx/settlement.md): terms, dates and market hours.

## Use cases

- [An importer buys USD](https://developers.zulu.com.co/en/docs/fx/use-cases/importer-buys-usd.md)
- [An exporter sells USD](https://developers.zulu.com.co/en/docs/fx/use-cases/exporter-sells-usd.md)
- [Treasury: quote and execute](https://developers.zulu.com.co/en/docs/fx/use-cases/treasury-quote-and-execute.md)
