Lock Rate
POST
/trade-service/api/v1/fx-rates/lock-rate
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
id
string
required
sourceAccountId
string
required
targetAccountId
string
required
amount
number
required
Example
{
"id": "fxr_7m2ScBy6TZI6Qh",
"sourceAccountId": "AZ99gZadFmmw5Z5W5FDXy",
"targetAccountId": "jKp7XzQ3WvMl2Rt8Y9GnB",
"amount": 100
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api-gateway-uat.mmacs.io/platform/trade-service/api/v1/fx-rates/lock-rate' \
--header 'Content-Type: application/json' \
--data-raw '{
"id": "fxr_7m2ScBy6TZI6Qh",
"sourceAccountId": "AZ99gZadFmmw5Z5W5FDXy",
"targetAccountId": "jKp7XzQ3WvMl2Rt8Y9GnB",
"amount": 100
}'
Responses
🟢200OK
application/json
Body
message
string
required
id
string
required
valueDate
string
required
sourceAmount
string
required
sourceCurrency
string
required
rate
string
required
targetAmount
string
required
targetCurrency
string
required
tradeReference
string
required
status
enum<string>
required
Allowed values:
processingcompleted
sourceAccountNumber
string
required
targetAccountNumber
string
required
createdAt
string
required
updatedAt
string
required
Example
{
"message": "The FX rate has been successfully locked.",
"id": "fxr_lck_Bpp4QwX77UfMhE",
"valueDate": "2025-04-03T22:29:11.679Z",
"sourceAmount": "163634.25",
"sourceCurrency": "NGN",
"rate": "0.0006111189998765252",
"targetAmount": "100",
"targetCurrency": "USD",
"tradeReference": "fxr_5bDRH6DeaUyYNU",
"status": "processing",
"sourceAccountNumber": "0018251053",
"targetAccountNumber": "0378576798",
"createdAt": "2025-04-03T22:29:11.679Z",
"updatedAt": "2025-04-03T22:29:11.679Z"
}
🟠400Invalid input