StatPro Revolution Web API


The Liquidity Risk History Resource


Overview

The Liquidity Risk History resource represents the historic set of liquidity risk results for a platinum portfolio. It will contain total level results only.

See annotated representations below for further details of the results output by this resource.


Media types

The Liquidity Risk History resource is exposed via XML and JSON representations, which have the following media type names:-

application/vnd.statpro.revolution.api.portfolio-liquidity-risk-history+json

application/vnd.statpro.revolution.api.portfolio-liquidity-risk-history+xml

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

Content-Type: application/vnd.statpro.revolution.api.portfolio-liquidity-risk-history+json; charset=utf-8

Content-Type: application/vnd.statpro.revolution.api.portfolio-liquidity-risk-history+xml; charset=utf-8


Related resources

The Liquidity Risk History resource always links to the Service and Porfolios resources (and to itself). To access these resources use the link relations:-

  • self
  • service
  • portfolios-query

The self link relation identifies the link to the current Liquidity Risk History resource.

The service link relation identifies the Service resource link.

The portfolios-query link relation identifies the link that allows a new query for portfolios to be made.


Update history

  • Initial Version - June 2017

Annotated Representation (JSON)

Legend

{
  "liquidityRiskHistory": {
    "links": {
      "service": {
        "rel": "service",
        "href": "...",
        "type": "application/vnd.statpro.revolution.api.service+json"
      },
      "portfoliosQuery": {
        "rel": "portfolios-query",
        "href": "...?$filter={filter}&$orderby={orderby}&$skip={skip}&$top={top}&includePublishedPortfolios=false&portfolioClassifierCode=",
        "type": "application/vnd.statpro.revolution.api.portfolios+json"
      },
      "self": {
        "rel": "self",
        "href": "...",
        "type": "application/vnd.statpro.revolution.api.portfolio-liquidity-risk-history+json"
      }
    },
    "liquidityRiskDataPoints": [
      {
        "d": "2017-05-12",
        "n": 0.127708179479268,
        "s": 0.239361810584098,
        "h": 0.369380835248195
      },
      {
        "d": "2017-05-11",
        "n": 0.127773222938437,
        "s": 0.239452788384371,
        "h": 0.369555356486197
      }
    ]
  }
}


Annotated Representation (XML)

Legend

<?xml version="1.0" encoding="utf-8"?>
<liquidityRiskHistory xmlns="http://statpro.com/2012/Revolution">
  <link rel="service"
        href="..."
        type="application/vnd.statpro.revolution.api.service+xml" />
  <link rel="portfolios-query"
        href="...?$filter={filter}&amp;$orderby={orderby}&amp;$skip={skip}&amp;$top={top}&amp;includePublishedPortfolios=false&amp;portfolioClassifierCode="
        type="application/vnd.statpro.revolution.api.portfolios+xml" />
  <link rel="self"
        href="..."
        type="application/vnd.statpro.revolution.api.portfolio-liquidity-risk-history+xml" />
  <liquidityRiskDataPoints>
    <dp d="2017-05-12">
      <n>0.127708179479268</n>
      <s>0.239361810584098</s>
      <h>0.369380835248195</h>
    </dp>
    <dp d="2017-05-11">
      <n>0.127773222938437</n>
      <s>0.239452788384371</s>
      <h>0.369555356486197</h>
    </dp>
  </liquidityRiskDataPoints>
</liquidityRiskHistory>


Last updated: June 2017


To Top