# Conventions

URL: https://docs.fxapis.com/api-reference

> Every endpoint of the fxapis API, generated from its OpenAPI description.



Each page in this section shows one endpoint: its parameters, its body, every
response it can give, and a request in the language you choose. **Send** tries
it against the live API with the key you enter. Every key reaches real brokers,
so try it with a broker **demo account**.

|                   |                                                                           |
| ----------------- | ------------------------------------------------------------------------- |
| Base URL          | `https://api.fxapis.com`                                                  |
| Authentication    | `Authorization: Bearer fx_live_…` — see [Authentication](/authentication) |
| Format            | JSON in, JSON out; the payload is under `data`                            |
| Money and volumes | Decimal strings (`"0.01"`, `"1.13426"`), never floats                     |
| Retries           | Send an `Idempotency-Key` with every order                                |
| Errors            | One shape everywhere, with a stable `code` — see [Errors](/errors)        |

The machine-readable description is at
[`api.fxapis.com/docs/json`](https://api.fxapis.com/docs/json) — import it
into Postman or Insomnia, or generate a client from it. A ready-made
[Postman collection](https://github.com/FXapis/fxapis-integrations/tree/main/postman) covering
every endpoint is on GitHub ([how to use it](https://fxapis.com/blog/mt5-api-postman-tradingview-n8n)), and the
official [SDKs](/sdks) are generated from the same description.
