Conventions
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 — use a test key, or an account you don't mind trading on.
| Base URL | https://api.fxapis.com |
| Authentication | Authorization: Bearer fx_live_… — see 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 |
The machine-readable description is at
api.fxapis.com/docs/json — import it
into Postman or Insomnia, or generate a client from it.