Skip to content

Overview of OpenFX APIs (v1.0.0)

OpenFX provides a robust and secure API suite engineered for high performance and reliability, enabling programmatic access to real-time market data, trade execution, and money movement functionalities. This guide will walk through the step-by-step process of deposits, quoting, trading, settlements and monitoring using OpenFX APIs.

Languages
Servers
OpenFX API Server

https://api.sandbox.openfx.com/

MarketData

This endpoint retrieves a complete list of all tradable fiat and stablecoin currency pairs on the OpenFX platform.

Operations

Balances

The Balance endpoints enable real-time tracking and management of currency holdings within an account.

Operations

Request

Use this endpoint to:

  • View real-time balances
  • Track multi-currency holdings
  • Monitor available trading funds
  • Reconcile account positions
Security
bearerAuth
Path
orgIdstringrequired
curl -i -X GET \
  'https://api.sandbox.openfx.com/v1/brokerage/{orgId}/balances' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

success

Bodyapplication/json
statusstring
Enum"success""error"
Example: "success"
dataArray of objects or null
data[].​idstring(uuid)

Unique identifier for the currency balance record

Example: "a9504caf-6888-409c-b841-da5127334070"
data[].​amountnumber

Available balance amount in the specified currency

Example: 5264
data[].​currencystring

Currency symbol of this balance object

Example: "USD"
data[].​createdAtstring

UTC Timestamp when the balance record was created

Example: "2024-02-03T08:04:12.045Z"
data[].​updatedAtstring

UTC Timestamp when the balance record was last updated

Example: "2024-02-03T08:04:12.045Z"
messagestring
Example: "Data fetched successfully"
Response
application/json
{ "status": "success", "data": [ { "id": "7b12aea1-3a8f-42bb-b789-7502b80e705e", "amount": -595164.919935321, "currency": "USD", "createdAt": "2024-02-07T03:30:21.045Z", "updatedAt": "2025-02-07T18:08:08.509Z" }, { "id": "1fcebbe0-f6f6-4a93-89d3-8ccd99d75c17", "amount": -9893164.59296976, "currency": "USDC", "createdAt": "2024-02-07T03:30:21.045Z", "updatedAt": "2025-02-07T18:08:08.509Z" } ] }

Trade

The Trade APIs facilitate programmatic currency exchange through a quote-then-trade workflow, ensuring price transparency and guaranteed execution at quoted rates.

Operations

Deposits

Deposit endpoints enable secure funding of trading accounts across multiple supported currencies and methods.

Operations

Withdrawals

The Withdrawal API facilitates secure fund withdrawals for both fiat and stablecoins.

Operations