Skip to main content
Version: v2

Pairs

Enumerate trading pairs. Pair naming ({to}{from}) and availability semantics are explained in Rates & Pricing.

List Pairs

GET /pair/

Request

curl -X GET "https://api.n.exchange/en/api/v2/pair/" \
-H "Accept: application/json" \
-H "Authorization: ApiKey YOUR_API_KEY"

Authentication: API key required — see Authentication.

Parameters: none. The response is a plain array (no pagination).

Response

FieldTypeDescription
namestringPair name, {to}{from} — e.g. BTCUSDC = send USDC, receive BTC
tostringCurrency you receive
fromstringCurrency you send
disabledbooleanWhether the pair is currently disabled (computed dynamically)

Example response:

[
{
"name": "BTCUSDC",
"to": "BTC",
"from": "USDC",
"disabled": false
},
{
"name": "ETHBTC",
"to": "ETH",
"from": "BTC",
"disabled": false
}
]
Use /rate/ for tradability

GET /pair/ lists every configured pair; disabled: false does not guarantee live liquidity right now, and availability can differ per direction. The set of pairs actually quotable at this moment is whatever GET /rate/ returns for your filters.

Get Pair Details

GET /pair/{name}/

Path parameters:

ParameterTypeRequiredDescription
namestringYesPair name (e.g. BTCUSDC), or a special value below

Special values:

  • random — a random active pair (user-specific when authenticated)
  • most_traded — the most traded pair
curl -X GET "https://api.n.exchange/en/api/v2/pair/BTCUSDC/" \
-H "Accept: application/json" \
-H "Authorization: ApiKey YOUR_API_KEY"
{
"name": "BTCUSDC",
"to": "BTC",
"from": "USDC",
"disabled": false
}

Errors

StatusMeaningBody
401Missing/invalid API key{"detail": "Authentication credentials were not provided."}
404Unknown pair name{"detail": "Not found"}
417random failed to find an active pair after several attempts{"detail": "Exceeded random pair getting attempts."}

Next steps