Skip to main content

Get FX rate signature

Get the currently available FX rate along with rate signature.

Definition

URL
GET  https://api-test.instarem.com:4803/api/v1/lockFx/getFxRate

Headers Parameters

ParameterDescriptionTypeRequired
authorizationAuthentication TokenStringYes
content-typeThe Content-Type entity header is used to indicate the media type of the resource. Expected value is application/json.StringYes
X-CLIENT-IDUnique id for client generated by Nium, Required only in case of partner based model (E.g. 593feb7c7c52bb2357b2df6c).StringNo

Example Request

curl --request get \\
--url "https://api-test.instarem.com:4803/api/v1/lockFx/getFxRate?source_currency=&destination_currency=" \\
--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTgxMzQ4OTQsImRhdGEiOnsic3ViIjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWE1IiwiY2xpZW50IjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWExIn0sImlhdCI6MTQ5ODA0ODQ5NH0.pevwSDpk-JDNtVIpqFu_m0Xu1UnDVumrAYStcrxf8sM' \\
--header 'content-type: application/json' \\

Query Parameters

ParameterDescriptionTypeRequired
source_currencySource currency (3-letter ISO-4217 code).StringYes
destination_currencyDestination currency (3-letter ISO-4217 code).StringYes
scheduleValid value is SCHEDULE1 or SCHEDULE2StringNo

Example Response

{
"source_currency": "INR",
"destination_currency": "USD",
"base_fx_rate": 74.884041,
"margin": 0.25,
"fx_rate": 74.6968309,
"rate_signature": "TYY9KqN7PYLG+ynsN67bmwBsFLbtQU3Nud0T0PS1tnEU7SDuf5oTMzqEprHq53k+XZrTEHJVkaBaOH14agsDy_j1xxQbooimihQ6JCV0HhjOz80ioCbaJjQb8Mp1otH9mDiF1Fe29ibiaSAsrEoMByD9PzcWU1TMJlqxBxvnRK73S7SaP_DqP4Ck7dbOEY4a4+haUxZgJXMyQinztHM9jpEgsQ9JxX_cmKjNH03C_JclgBATP4Qz+FfBb1iAgFyE+ZEUlSgO4siDWjswB0XVKc6LeL1ykC9_JhX0WclHSbXVK1vWsMIWcx6NxYlxRiJy2N8E5Jac",
"lock_expiry_at": ""
}

Response Parameters

ParameterDescriptionType
source_currencySource currency (3-letter ISO-4217 code).String
destination_currencyDestination currency (3-letter ISO-4217 code).String
base_fx_rateReturns real time FX provider rate.Number
marginReturns margin percent as specified in the agreement for the book FX pair.Number
fx_rateReturns Instarem FX rate.Number
rate_signatureA string containing the encrypted rate details.String
lock_expiry_atDatetime of lock expiry.String
schedule_marginReturns margin percent as specified in the agreement for the book FX pair for the option Schedule 1 or Schedule 2.