getCrossRates()

Returns the cross rates for selected currency pairs.

Syntax

getCrossRatesResponse = 
	getCrossRates(CrossRequestParameters);

Usage

Use getCrossRates to retrieve cross rates for currency pairs. The valid series ID's used as series ID 1 & 2 below
are retrieved using getAllCrossNames().

Example-SOAP UI


<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://swea.riksbank.se/xsd">
   <soap:Header/>
   <soap:Body>
      <xsd:getCrossRates>
         <crossRequestParameters>
            <aggregateMethod>D</aggregateMethod>
            <!--1 or more repetitions:-->
            <crossPair>
               <seriesid1>SEKNOKPMI</seriesid1>
               <seriesid2>SEK</seriesid2>
            </crossPair>
            <datefrom>2011-01-01</datefrom>
            <dateto>2011-03-01</dateto>
            <languageid>en</languageid>
         </crossRequestParameters>
      </xsd:getCrossRates>
   </soap:Body>
</soap:Envelope>

Arguments

Name Type Description
CrossRequestParameters CrossRequestParameters structure containing the query parameters

Faults

Calling this method with illegal parameters, will return a permission denied

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /sweaWS/services/SweaWebServiceHttpSoap12Endpoint
on this server.</p>
</body></html>