FOREX API Documentation (V1)
API Base Url
https://www.nrb.org.np/api/forex/v1/
Endpoints
GET /rates
Returns Foreign Exchange Rates for a given range
Parameters
page
Current Pageper_page
Number of items to show per pagefrom
Starting date (In Y-m-d format)to
Endingdate (In Y-m-d format)
Example Response
{"status":{"code":400},"errors":{"validation":{"per_page":["Per Page is required","Per Page must be an integer","Per Page must be at least 1","Per Page must be no more than 100"],"page":["Page is required","Page must be an integer"],"from":["From is required","From must be date with format 'Y-m-d'","From must be date with format 'Y-m-d'"],"to":["To is required"]}},"params":{"from":"","to":"","per_page":"","page":""},"data":{"payload":null},"pagination":{"page":null,"pages":null,"per_page":null,"total":null,"links":{"prev":null,"next":null}}}
Responses Description
-
statusStatus-
codeStatus Code200OK400Bad Request / Invalid Arguments
-
-
errorsErrors-
validationValidation Errorsper_pagepagefromto
-
-
paramsGET Parameters of the api endpointper_pagepagefromto
-
dataContains the main response-
payloadContains array of Foreign Exchange rates of different datesdateFOREX Rates for this datepublished_onFOREX Rates publish datemodified_onFOREX Rates last modified date-
ratesArray of rates-
currencyCurrencyunitnameISO3
buyCurrency Buying Rate (in NRs.)sellCurrency Selling Rate (in NRs.)
-
-
-
paginationPagination DatapageCurrent Page (Cursor)pagesTotal number of pagesper_pageItems per pagetotalTotal number of items-
linksPagination LinksprevLink for previous pagenextLink for next page