Skip to main content

Get FX rates

Get FX rates for a particular currency pair.

Definition

URL
GET https://api-test.instarem.com:4803/api/v1/bookfx/rate?sell/currency=USD&buy/currency=INR&type=

Example Request

curl --request get \\
--url "https://api-test.instarem.com:4803/api/v1/bookfx/rate?sell/currency=&buy/currency=&type=" \\

--header 'authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE0OTgxMzQ4OTQsImRhdGEiOnsic3ViIjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWE1IiwiY2xpZW50IjoiNTk0MjNmMzZjZWEyMTQ2OTI2ODczOWExIn0sImlhdCI6MTQ5ODA0ODQ5NH0.pevwSDpk-JDNtVIpqFu_m0Xu1UnDVumrAYStcrxf8sM' \\
--header 'content-type: application/json' \\

Header Parameters

ParameterDescriptionTypeRequired
authorizationauth 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

Query Parameters

ParameterDescriptionTypeRequired
sell_currencyReturn sell currency (3-letter ISO-4217 code)StringYes
buy_currencyReturn buy currency (3-letter ISO-4217 code)StringYes
typeOne of ["", PREFUNDING, SCHEDULED1, SCHEDULED2]. If left empty, this field defaults to PREFUNDINGStringNo

Example Response

{
"sell_currency": "USD",
"buy_currency": "INR",
"fx_rate": 64.5132,
"margin": 0.5,
"instarem_fx_rate": 64.1874,
"expiry_at": ""
}

Response Parameters

ParameterDescriptionType
sell_currencyReturn sell currency (3-letter ISO-4217 code)String
buy_currencyReturn buy currency (3-letter ISO-4217 code)String
fx_rateReturns real time FX provider rateNumber
marginReturns margin percent as specified in the agreement for the Book FX pairNumber
instarem_fx_rateReturns Instarem FX rate.Number
expiry_atexpiry time of a potential scheduled FX if booked nowString