StatPro Revolution Web API


The Exchange Rate Sources Resource


Overview

The Exchange Rate Sources resource lists the set of Exchange Rate Sources available to the user. If the Exchange Rate Source is a Custom Source, a link relation is provided for that source allowing extraction Exchange Rate Series for that Source.


Media types

The Exchange Rate Sources resource is exposed via XML and JSON representations, which have the following media type names:-

application/vnd.statpro.revolution.api.exchange-rate-sources+xml

application/vnd.statpro.revolution.api.exchange-rate-sources+json

When a response is received from the web service with status 200 (= OK), the fact that the response contains a Exchange Rate Sources resource representation is indicated by the presence of one of these two response headers:-

Content-Type: application/vnd.statpro.revolution.api.time-series+json; charset=utf-8

Content-Type: application/vnd.statpro.revolution.api.time-series+xml; charset=utf-8


Related resources

The Exchange Rate Sources resource links to the Service resource, the **Exchange Rate Series" resource (and to itself). To do so, its resource representations use link relations:-

  • self
  • service
  • exchange-rate-sources-query
  • exchange-rate-series-query

The self link relation identifies the Exchange Rate Sources resource link, in which the representation is the same as the one that has been currently retrieved (so long as the underlying data on the server hasn't changed).

The service link relation identifies the Service resource link.

All related resources are accessed using the HTTP GET method.


Update history

  • Initial Version - March 2018

Annotated Representations (JSON)

Legend

{
  "exchangeRateSources": {
    "links": {
      "service": {
        "rel": "service",
        "href": "...",
        "type": "application/vnd.statpro.revolution.api.service+json"
      },
      "exchangeRateSourcesQuery": {
        "rel": "exchange-rate-sources-query",
        "href": "...",
        "type": "application/vnd.statpro.revolution.api.exchange-rate-sources+json"
      }
    },
    "items": [
      {
        "name": "WMR LONDON 1600",
        "id": "41967c6c-a0af-41d2-a4e2-4d025a17f1a9",
        "code": "LONDON1600",
        "owner": null,
        "description": "WMR LONDON 1600",
        "localDeliveryTime": "1600",
        "timeZoneCode": "1600",
        "fromCurrencyCode": "USD",
        "toCurrencyCodes": [
          "USD",
          "EUR",
          "HKD",
          "GBP"
        ]
      },
      {
        "name": "WMR LONDON 1200",
        "id": "bba8093c-6251-464b-8383-6e3de02c710c",
        "code": "LONDON1200",
        "owner": null,
        "description": "WMR LONDON 1200",
        "localDeliveryTime": "1200",
        "timeZoneCode": "1200",
        "fromCurrencyCode": "USD",
        "toCurrencyCodes": [
          "USD",
          "EUR",
          "HKD",
          "GBP"
        ]
      },
      {
        "name": "WMR NEW YORK 1600",
        "id": "47cdbea0-4555-450b-afb5-116546217707",
        "code": "NEWYORK1600",
        "owner": null,
        "description": "WMR NEW YORK 1600",
        "localDeliveryTime": "1600",
        "timeZoneCode": "1600",
        "fromCurrencyCode": "USD",
        "toCurrencyCodes": [
          "USD",
          "EUR",
          "HKD",
          "GBP"
        ]
      },
      {
        "name": "WMR SYDNEY 1600",
        "id": "427d07ca-331c-4b0d-9f72-e4126ef7517d",
        "code": "SYDNEY1600",
        "owner": null,
        "description": "WMR SYDNEY 1600",
        "localDeliveryTime": "1600",
        "timeZoneCode": "1600",
        "fromCurrencyCode": "USD",
        "toCurrencyCodes": [
          "USD",
          "EUR",
          "HKD",
          "GBP"
        ]
      }
    ]
  }
}


Annotated Representations (XML)

Legend

<?xml version="1.0" encoding="utf-8"?>
<exchangeRateSources xmlns="http://statpro.com/2012/Revolution">
  <link rel="service"
        href="..."
        type="application/vnd.statpro.revolution.api.service+xml" />
  <link rel="exchange-rate-sources-query"
        href="..."
        type="application/vnd.statpro.revolution.api.exchange-rate-sources+xml" />
  <exchangeRateSource>
    <name>WMR LONDON 1600</name>
    <id>41967c6c-a0af-41d2-a4e2-4d025a17f1a9</id>
    <code>LONDON1600</code>
    <owner />
    <description>WMR LONDON 1600</description>
    <localDeliveryTime>1600</localDeliveryTime>
    <timeZoneCode>1600</timeZoneCode>
    <fromCurrencyCode>USD</fromCurrencyCode>
    <toCurrencyCodes>
      <toCurrency>USD</toCurrency>
      <toCurrency>EUR</toCurrency>
      <toCurrency>HKD</toCurrency>
      <toCurrency>GBP</toCurrency>
    </toCurrencyCodes>
  </exchangeRateSource>
  <exchangeRateSource>
    <name>WMR LONDON 1200</name>
    <id>bba8093c-6251-464b-8383-6e3de02c710c</id>
    <code>LONDON1200</code>
    <owner />
    <description>WMR LONDON 1200</description>
    <localDeliveryTime>1200</localDeliveryTime>
    <timeZoneCode>1200</timeZoneCode>
    <fromCurrencyCode>USD</fromCurrencyCode>
    <toCurrencyCodes>
      <toCurrency>USD</toCurrency>
      <toCurrency>EUR</toCurrency>
      <toCurrency>HKD</toCurrency>
      <toCurrency>GBP</toCurrency>
    </toCurrencyCodes>
  </exchangeRateSource>
  <exchangeRateSource>
    <name>WMR NEW YORK 1600</name>
    <id>47cdbea0-4555-450b-afb5-116546217707</id>
    <code>NEWYORK1600</code>
    <owner />
    <description>WMR NEW YORK 1600</description>
    <localDeliveryTime>1600</localDeliveryTime>
    <timeZoneCode>1600</timeZoneCode>
    <fromCurrencyCode>USD</fromCurrencyCode>
    <toCurrencyCodes>
      <toCurrency>USD</toCurrency>
      <toCurrency>EUR</toCurrency>
      <toCurrency>HKD</toCurrency>
      <toCurrency>GBP</toCurrency>
    </toCurrencyCodes>
  </exchangeRateSource>
  <exchangeRateSource>
    <name>WMR SYDNEY 1600</name>
    <id>427d07ca-331c-4b0d-9f72-e4126ef7517d</id>
    <code>SYDNEY1600</code>
    <owner />
    <description>WMR SYDNEY 1600</description>
    <localDeliveryTime>1600</localDeliveryTime>
    <timeZoneCode>1600</timeZoneCode>
    <fromCurrencyCode>USD</fromCurrencyCode>
    <toCurrencyCodes>
      <toCurrency>USD</toCurrency>
      <toCurrency>EUR</toCurrency>
      <toCurrency>HKD</toCurrency>
      <toCurrency>GBP</toCurrency>
    </toCurrencyCodes>
  </exchangeRateSource>
</exchangeRateSources>


Last updated: March 2018


To Top