---
title: "Real-time Currency Conversion"
method: GET
path: "/v1/conversion/{from}/{to}"
tags: ["fx:conversion"]
---

# Real-time Currency Conversion

`GET /v1/conversion/{from}/{to}`

Get currency conversions using the latest market conversion rates. Note than you can convert in both directions. For example USD to CAD or CAD to USD.

## Path parameters

- `from` string, required
- `to` string, required

## Query parameters

- `amount` number
- `precision` 0 | 1 | 2 | 3 | 4

## Response `200`

The last tick for this currency pair, plus the converted amount for the requested amount.

- object
  - `converted` number, double, required — The result of the conversion.
  - `from` string, required — The "from" currency symbol.
  - `initialAmount` number, double, required — The amount to convert.
  - `last` object — Contains the requested quote data for the specified forex currency pair.
    - `ask` number, double, required — The ask price.
    - `bid` number, double, required — The bid price.
    - `exchange` integer, required — The exchange ID. See <a href="https://massive.com/docs/rest/forex/market-operations/exchanges" alt="Exchanges">Exchanges</a> for Massive's mapping of exchange IDs.
    - `timestamp` integer, required — The Unix millisecond timestamp.
  - `request_id` string, required — A request id assigned by the server.
  - `status` string, required — The status of this request's response.
  - `symbol` string, required — The symbol pair that was evaluated from the request.
  - `to` string, required — The "to" currency symbol.

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/massive/apis/polygon-api.md) · [All operations](https://skmtc.net/massive/apis/polygon-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/massive/polygon-api/revisions/ad6f143e43aa/schema)
