Part of the FX Service. Used by FXPs.
Nexus provides three APIs to FX Providers:
POST /rates/- to issue new rates
POST /improvements/tiers/- to register or update a tier-based improvement for a specific currency
POST /improvements/psps/- to register or update an improvement for a specific PSP
In a production system, APIs would also be provided to allow to see FXP to “delete” or withdraw PSP-based and tier-based improvements. Rates could be withdrawn / expired by an FXP, but this is equivalent to the FXP exiting the market and should only be used in certain circumstances.
An FXP will submit a new rate using the
RatesAPI. Note: FXPs cannot update existing rates; instead they simply submit a new rate that takes effect immediately.
Post a new rate
When processing the rate update request, Nexus will:
- validate the request (by checking that the FX Provider is set up to rate for that currency pair and has nominated validated Settlement Account Providers in both the Source and Destination Country)
- save the new rate in the rates table
- set any existing rates for this FXP-corridor combination to expire immediately
- retrieve any tier-based improvements set by the FXP for this Source Currency
- for each tier, calculate the improved rate
- save a new rate in the rates table with the threshold defined in this tier and the new improved rate
The new rate is immediately shown to Source PSPs when they use the
GET /rates/API (alongside rates for that corridor from other FXPs).
The Nexus Gateway will send a response message to the FX Provider to confirm that a rate has been successfully accepted and saved. The response message includes the newly created quote.
The response message also includes the current best available rate on the market (but not the identity of the FX Provider offering that rate). This allows each FX Provider to see whether the rates they offer are competitive, and to adjust those rates if necessary.
FXPs are NOT permitted to use the GET Rate API to see the full list of rates offered by their competitors; this will be enforced by both API permissions and the Nexus scheme rulebook.
FXPs can set tier-based improvements using the API:
Post a new tier improvement
Each tier-based improvement must specify:
- FXP Id – the FXP offering the improvement
- UnitCcy – the Source Currency to which the improvement applies. (Tier-based improvements are always based on the Source Currency, not the Destination Currency)
- Threshold – the smallest amount, in the Source Currency, at which the improvement rate applies. The Source Currency Amount of the payment must be greater than or equal to the threshold.
- Improvement – a rate of improvement, recorded in basis points, which should be applied to the base rate.
For transaction values below the lowest threshold, the base rate provided by the FXP in
APIs to delete or “revoke” tier-based improvements have not yet been built and would need to be added to a production version.
FXPs can improvements for specific PSPs using the API below.
PSP-specific improvements are additional to any tier-based improvements. (Nexus calculates relevant tier-based improvements first, then applies any PSP-based improvements.)
A PSP-specific improvement needs to specify:
- FXP Id – the FXP offering the improvement to a PSP
- PSP Id – the PSP to which the improvement is being offered
- Improvement – the improvement, in basis points, which should be applied to any rate offered by this PSP.
Post a new PSP improvement
APIs to delete or “revoke” PSP-specific improvements have not yet been built.
Whenever Nexus successfully processes a payment (ie. receives a pacs.002 with a “ACCC” status code from the Destination IPS), it will send a notification to FX Provider whose rate was referenced. This notification should be used by the FXP to update its internal records of the balances of all its settlement accounts.
The FXP will provide the API endpoints or message queue to which these notifications should be sent during technical onboarding to Nexus.
This notification is structured as an ISO 20022
fxtr.017message. The key elements of the fxtr.017 are described below:
A production version of Nexus would also include the ability for FXPs to generate aggregate reports on all transactions for which they provided FX in a certain time period. These reports would also include a breakdown of the calculation of the final rate, showing how the base rate, any tier improvements and any PSP improvements were applied to each quote. This functionality has not yet been built.