GET api/InterestRateCurve/GetCurves?p={p}&t={t}
Retrieve a list of interest rate curves for a given country id, curve type, and dates.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
p |
The query string. Format: currencyCode3,curve_type,dates -curve_type can be 0 for SWAP curve or 1 for LIBOR curve. -dates are list of dates in format of YYYYMMDD delimited by colon. |
string |
Required |
t |
Authentication token. |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of InterestRateCurveName | Description | Type | Additional information |
---|---|---|---|
Date | integer |
None. |
|
Rates | Collection of decimal number |
None. |
Response Formats
application/json, text/json
Sample:
[ { "Date": 1, "Rates": [ 1.1, 2.1 ] }, { "Date": 1, "Rates": [ 1.1, 2.1 ] } ]
application/xml, text/xml
Sample:
<ArrayOfInterestRateCurve xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BondEdge.Equity"> <InterestRateCurve> <Date>1</Date> <Rates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:double>1.1</d3p1:double> <d3p1:double>2.1</d3p1:double> </Rates> </InterestRateCurve> <InterestRateCurve> <Date>1</Date> <Rates xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:double>1.1</d3p1:double> <d3p1:double>2.1</d3p1:double> </Rates> </InterestRateCurve> </ArrayOfInterestRateCurve>