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

Request

Use this endpoint to:

  • Access the complete list of available currency pairs to trade
  • Retrieve specifications on trading limits and possible trade directions by currency
Security
bearerAuth
Path
orgIdstringrequired
curl -i -X GET \
  'https://api.sandbox.openfx.com/v1/brokerage/{orgId}/available_markets' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

success

Bodyapplication/json
statusstring
Enum"success""error"
Example: "success"
dataobject or null
data.​tradingPairsArray of objects

List of available trading pairs with their buy and sell currencies

data.​tradingPairs[].​buystring

Currency used to buy the asset (quote currency)

Example: "USDC"
data.​tradingPairs[].​sellstring

Currency being sold (base currency)

Example: "USD"
data.​tradeLimitsArray of objects

Trade limits for each trading pair, keyed by pair symbol (e.g., 'USDC/USD')

data.​tradeLimits[].​property name*objectadditional property
data.​tradeLimits[].​property name*.​minTradeLimitnumber

Minimum trade amount allowed for this trading pair

Example: 100
data.​tradeLimits[].​property name*.​maxTradeLimitnumber

Maximum trade amount allowed for this trading pair

Example: 10000000
messagestring
Example: "Data fetched successfully"
Response
application/json
{ "status": "success", "data": { "tradingPairs": [ { "buy": "USD", "sell": "USDC" }, { "buy": "USDC", "sell": "USD" } ], "tradeLimits": [ { "USD": { "minTradeLimit": 100, "maxTradeLimit": 100000000 } }, { "USDC": { "minTradeLimit": 100, "maxTradeLimit": 10000000 } } ] } }

Balances

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

Operations

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