Skip to main content

ISO 20022 FX API Mapping Reference

  • Base URL: https://api.hyperrail.io/api/v1/partners/fx
  • Content-Type: application/xml
  • Authentication: Authorization: Bearer sk_…

1. Initiate FX Trade

Endpoint POST /trades ISO 20022 Message Type fxtr.014.001.05 - FXTradeInstruction

Field Mapping

  • BaseCcy = Source currency (NGN)
  • QtdCcy = Destination currency (USDT)
  • TradgCcyAmt = Trade amount
  • XchgRate = Exchange rate
  • TxId = Transaction ID
  • Sts = Status (NEWT = New Trade)
  • TTL = Time to live (seconds)

2. Get FX Trade Status

Endpoint GET /trades/{transactionId} ISO 20022 Message Type fxtr.017.001.05 - FXTradeStatusAndDetailsNotification

Status Codes

  • NEWT = New Trade (pending acceptance)
  • SETT = Settling (payment in progress)
  • COMP = Completed
  • CANC = Cancelled

3. Cancel FX Trade

Endpoint PUT /trades/{transactionId}/cancellation ISO 20022 Message Type fxtr.016.001.05 - FXTradeCancellationResponse

4. Complete FX Trade

Endpoint POST /trades/{transactionId}/confirmation ISO 20022 Message Type fxtr.037.001.02 - FXTradeConfirmationStatusAdvice

5. Accept FX Trade - Bank Settlement

Endpoint POST /trades/{transactionId}/accept ISO 20022 Message Type fxtr.014.001.05 - FXTradeAcceptRequest

6. Accept FX Trade - Internal Balance Settlement

Endpoint POST /trades/{transactionId}/accept ISO 20022 Message Type fxtr.014.001.05 - FXTradeAcceptRequest
Response: Same as Bank Settlement with TradSts/Sts = SETT

7. Accept FX Trade - Blockchain Settlement

Endpoint POST /trades/{transactionId}/accept ISO 20022 Message Type fxtr.014.001.05 - FXTradeAcceptRequest
Response: Same as Bank Settlement with TradSts/Sts = SETT

8. Get FX Listings

Endpoint GET /listings?source=NGN&destination=USDT&page=0&pageSize=10 ISO 20022 Message Type reda.041.001.01 - FundProcessingPassportReport

Field Mapping

  • Id = Listing ID
  • Nm = Pool name
  • CcyPair = Currency pair
  • XchgRate = Exchange rate
  • AvlblBal = Available balance/liquidity
  • TradsCnt = Total trades count
  • CmpltnRate = Completion rate percentage

9. Get Market Maker Rates

Endpoint GET /rates/makers?from=USDT&to=NGN ISO 20022 Message Type fxtr.014.001.05 - FXTradeStatusAndDetails

Field Mapping

  • SrcCcy = Source currency
  • TrgtCcy = Target currency
  • XchgRate = Exchange rate
  • RateSrc = Rate source (market_maker)
  • TmStmp = Timestamp
  • AgeSecs = Rate age in seconds
  • PctChg24H = 24-hour percentage change

Quick Reference

Common Fields Across All Responses:

  • UnqTxIdr/TxId = Unique transaction identifier
  • TradSts/Sts = Trade status code
  • XchgRate = Exchange rate
  • CcyPair = Currency pair (BaseCcy/QtdCcy)
  • TTL = Time to live (seconds)
  • OprgMd = Operating mode (live/sandbox)