Markets Data API ReferenceDocument v19, API RST v1.4, SPv2.0 Markets Data API Reference Page | 6...

119
Document v19, API RST v1.4, SPv2.0 Markets Data API Reference Page | 1 Markets Data API Reference API: REST v1.5, SOAP v2.3 Document: v19 Status: For Release

Transcript of Markets Data API ReferenceDocument v19, API RST v1.4, SPv2.0 Markets Data API Reference Page | 6...

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 1 

MarketsDataAPIReference API: RESTv1.5,SOAPv2.3Document: v19Status: ForRelease

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 2 

   

ContentsIntroduction .................................................................................................................................................. 6 

Versioning & Release .................................................................................................................................... 6 

Locations ....................................................................................................................................................... 7 

Parameters .................................................................................................................................................... 7 

Response ....................................................................................................................................................... 8 

XML Schema .............................................................................................................................................. 8 

Soap Envelope XML Schema ............................................................................................................... 13 

Soap Encoding XML Schema ............................................................................................................... 15 

SDMX Common XML Schema ............................................................................................................. 20 

SDMX Message XML Schema .............................................................................................................. 22 

SDMX Generic XML Schema ................................................................................................................ 27 

SDMX Query XML Schema .................................................................................................................. 29 

SDMX Cross XML Schema ................................................................................................................... 34 

SDMX Compact XML Schema .............................................................................................................. 36 

SDMX Structure XML Schema ............................................................................................................. 38 

SDXML Securities Lending XML Schema ............................................................................................. 45 

SDXML Securities Lending Totals XML Schema .................................................................................. 53 

SDXML TOMO XML Schema ................................................................................................................ 58 

SDXML FX Rates XML Schema ............................................................................................................. 66 

SDXML CPFF Rates XML Schema ......................................................................................................... 73 

SDXML TSLF Rates XML Schema ......................................................................................................... 76 

SDXML OBFR‐EFFR SDXML Structure .................................................................................................. 84 

SDXML OBFR‐EFFR  XML Schema ........................................................................................................ 84 

SDXML OBFR‐EFFR  Common XML Schema ........................................................................................ 84 

CSV and Excel Formats ............................................................................................................................ 85 

Authentication ............................................................................................................................................ 85 

Method List ................................................................................................................................................. 85 

Primary Dealer Methods ......................................................................................................................... 85 

SOMA Methods ....................................................................................................................................... 85 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 3 

SOMA MBS Methods .............................................................................................................................. 85 

SOMA Non‐MBS Methods ...................................................................................................................... 85 

POMO Methods ...................................................................................................................................... 86 

TOMO Methods ...................................................................................................................................... 86 

Securities Lending Methods .................................................................................................................... 86 

FX Rates Methods ................................................................................................................................... 86 

CPFF Methods ......................................................................................................................................... 86 

TSLF Methods .......................................................................................................................................... 86 

EFFR Methods ......................................................................................................................................... 87 

OBFR Methods ........................................................................................................................................ 87 

Conventions ................................................................................................................................................ 88 

Terminology ............................................................................................................................................ 88 

Data Types ............................................................................................................................................... 88 

RSS Feeds ............................................................................................................................................ 89 

Reference .................................................................................................................................................... 90 

Primary Dealer Methods ..................................................................................................................... 90 

pd/get/menu.[FORMAT] ..................................................................................................................... 90 

pd/list/seriesbreaks.[FORMAT] ........................................................................................................... 91 

pd/list/timeseries.[FORMAT] .............................................................................................................. 91 

pd/get/[SERIESBREAK]/asof/[DATE].[FORMAT] ................................................................................. 91 

pd/get/[SERIESBREAK]/series/[TIMESERIES].[FORMAT] .................................................................... 92 

pd/get /all/timeseries.[FORMAT].zip .................................................................................................. 92 

SOMA Methods ....................................................................................................................................... 92 

soma/summary.[FORMAT] ................................................................................................................. 92 

SOMA MBS Methods .............................................................................................................................. 93 

soma/mbs/list/release.[FORMAT] ...................................................................................................... 93 

soma/mbs/list/asof.[FORMAT] ........................................................................................................... 93 

soma/mbs/get/release_log.[FORMAT] ............................................................................................... 94 

soma/mbs/get/release/[DATE].[FORMAT] ......................................................................................... 94 

soma/mbs/get/asof/[DATE].[FORMAT] .............................................................................................. 95 

soma/mbs/get/cusip/[CUSIP].[FORMAT] ........................................................................................... 95 

soma/mbs/get/quarterly.[FORMAT] .................................................................................................. 96 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 4 

SOMA Non‐MBS Methods ...................................................................................................................... 96 

soma/non‐mbs/list/release.[FORMAT] ............................................................................................... 96 

soma/non‐mbs/list/asof.[FORMAT] ................................................................................................... 96 

soma/non‐mbs/get/release_log.[FORMAT] ....................................................................................... 97 

soma/non‐mbs/get/[ SECURITYTYPE]/release/[DATE].[FORMAT] ..................................................... 97 

soma/non‐mbs/get/[SECURITYTYPE]/asof/[DATE].[FORMAT] ........................................................... 98 

soma/non‐mbs/get/cusip/[CUSIP].[FORMAT] .................................................................................... 98 

soma/non‐mbs/get/monthly.[FORMAT] ............................................................................................ 99 

POMO Methods ...................................................................................................................................... 99 

pomo/[OPERATION]/[RECORDTYPE]/[REPORTTYPE]/latest.[FORMAT] ............................................. 99 

pomo/[OPERATION]/results/[REPORTTYPE]/lastTwoWeeks.[FORMAT] .......................................... 100 

pomo/[OPERATION]/results/[REPORTTYPE]/search.[FORMAT] ....................................................... 101 

pomo/[OPERATION]/results/[REPORTTYPE]/last/[LASTAMOUNT].[FORMAT] ................................ 102 

TOMO Methods .................................................................................................................................... 103 

getTomo ............................................................................................................................................ 103 

getTomoUpdates .............................................................................................................................. 103 

getLastNTomo ................................................................................................................................... 104 

Securities Lending Methods .................................................................................................................. 105 

getSecuritiesLending ......................................................................................................................... 105 

getLastNSecuritiesLending ................................................................................................................ 105 

getSecuritiesLendingUpdates ........................................................................................................... 106 

TSLF Methods ........................................................................................................................................ 107 

getTSLF .............................................................................................................................................. 107 

getLastNTSLF ..................................................................................................................................... 107 

getTSLFUpdates ................................................................................................................................ 108 

getTSLFOneDate ................................................................................................................................ 108 

CPFF Methods ....................................................................................................................................... 110 

getCPFF ............................................................................................................................................. 110 

getLastNCPFF .................................................................................................................................... 110 

getCPFFOneDate ............................................................................................................................... 111 

FX‐Rates Methods ................................................................................................................................. 113 

getAllLatestNoonRates...................................................................................................................... 113 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 5 

getLatestNoonRate ........................................................................................................................... 113 

getNoonRates ................................................................................................................................... 113 

getAllNoonRates ............................................................................................................................... 114 

EFFR Methods ....................................................................................................................................... 115 

retrieve .............................................................................................................................................. 115 

retrieveLastN ..................................................................................................................................... 115 

OBFR Methods ...................................................................................................................................... 117 

retrieve .............................................................................................................................................. 117 

retrieveLastN ..................................................................................................................................... 117 

 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 6 

IntroductionThe Markets Data API provides an API for external users and applications to request data from the 

Federal Reserve Bank of New York about the System Open Market Account Holdings, Primary Dealer,

Temporay Open Market Operations(TOMO) and Securities Lending data. 

The API is architected using either a SOAP interface or a  RESTful interface, with structured semantic 

URLs. As these APIs are intended to be consumed by a variety of systems, the data they return is in 

multiple formats.  

Versioning&ReleaseRest. 

The Market Operations API will be versioned with a numeric version number consisting of 3 (three) 

integers representing the major, minor and release number in the form of Major.Minor.Release, for 

example 1.0.0 or 3.6.8. Each change of the numbers will be in increments of 1 (one), with the lesser 

significant numbers resetting to 0 (zero) at changes in Major and Minor numbers.  Details on the 

significance and meaning of changes in each number are detailed below. 

Soap: 

The Market Autorates Operations API will be versioned with a numeric version number in the url.   The 

first number is major.. the second is minor. 

Here is an example.  The ‘3’ is the major release number  and the ‘0’ is a minor release number. 

http://www.newyorkfed.org/markets/omo/dmm/tomo/webservice/v3_0/tomoWS.wsdl 

 

Changes in Release numbers 

Will maintain backward compatibility 

Should consist of bug fixes to be consistent with the published specification 

Will not contain additions or changes to the API 

Will not necessarily coincide with a new API specification 

Changes in Minor numbers 

Will maintain backward compatibility 

May include bug fixes 

May include additions or changes to the API such as additional functionality, parameters or 

fields data while maintaining backward compatibility 

Will be released with a new API specification 

Changes in Major numbers 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 7 

Does not maintain backward compatibility 

May include bug fixes 

Will include additions or changes to the API such as additional or changes to functionality, 

parameters or fields data that will not maintain backward compatibility 

Will be released with a new API specification 

LocationsRest: 

The APIs are available via HTTP.  

The base URL of the API is:  http://markets.newyorkfed.org/api/ 

For example to call soma/mbs/list/release use: 

http://markets.newyorkfed.org/api/soma/mbs/list/release.xml 

For example to call pd/rss/release.xml use: 

  http://markets.newyorkfed.org/api/pd/rss/release.xml  

Soap: 

TOMO  http://www.newyorkfed.org/markets/omo/dmm/tomo/webservice/v3_0/tomoWS.wsdl 

Securities Lending 

http://www.newyorkfed.org/markets/seclend/webservice/v3_0/securitiesLendingWS.wsdl

TSLF   http://www.newyorkfed.org/markets/tslf/webservice/v3_0/TSLFWS.wsdl 

CPFF   http://www.newyorkfed.org/markets/cpff/webservice/v3_0/CPFFWS.wsdl 

FX‐Rates   http://www.newyorkfed.org/markets/fxrates/WebService/v1_0/FXWS.wsdl 

 

ParametersRest: 

Each method of the API may be offered in multiple formats according to its specification. The format is 

specified via a file extension on the method’s URL and is  

Parameters to the API are sent via query string parameters in the standardized form:  

Each parameter is sent in a name‐value pair 

The name and value should be separated by an equals (=) sign and may be omitted if the value is 

blank.  

The set of name‐value pairs should be separated by an ampersand (&)  

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 8 

In some cases the API may specify required parameters to the method as part of the path. In these 

cases, you may replace the placeholder with the respective value in as noted.  

For example, in the case of: 

  soma/mbs/get/release/[DATE].[FORMAT] 

A sample request may be: 

soma/mbs/get/release/10‐19‐2011.xml 

Further details of parameters may be required or optional according to the method’s specification in this 

document. 

 

Soap: 

Each method of the api uses SOAP for both the request and response.  

Parameters to the API are sent using standard xml.   As with any qualified xml the namespaces of the 

operation you are calling must be used for each request. 

Further details of parameters that may be required or optional according to the method’s specification 

in this document. 

 

ResponseRest: 

The standard HTTP response codes will be used to handle high‐level error conditions from the API. A 200 

response will be the normal case.  If the requested item is not found, a 404 respond will be returned.   

Soap: 

A client can either get the SOAP response intended or a SOAP fault if there is an error.   A typical SOAP 

response will be a String.  The String will contain a complete XML document detailing the result. 

 

 

XMLSchemaRest: 

The following is the current XML schema for the XML formatted response. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 9 

<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="markets" type="MarketsType"></xs:element> <xs:complexType name="MarketsType"> <xs:all> <xs:element name="soma" type="somaType" maxOccurs="1" minOccurs="0"></xs:element>

<xs:element name="pd" type="pdType" maxOccurs="1" minOccurs="0"></xs:element> <xs:element name="error" type="errorType" maxOccurs="1" minOccurs="0"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="errorType"> <xs:all> <xs:element name="code" type="xs:integer" maxOccurs="1" minOccurs="1"></xs:element> <xs:element name="message" type="xs:string" maxOccurs="1" minOccurs="1"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="somaType"> <xs:sequence> <xs:element name="nonmbs" type="nonmbsType" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="mbs" type="mbsType" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="summary" type="summaryType" maxOccurs="unbounded" minOccurs="0"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="pdType"> <xs:sequence> <xs:element name="asOfDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="releaseDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="asOfDates" type="asOfDatesDetails" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="timeseries" type="timeseriesDetails" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="seriesBreaks" type="seriesBreaksDetails" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="asOfDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="seriesBreak" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="asOfDateData" type="asOfDateList" minOccurs="0" maxOccurs="unbounded"></xs:element> <xs:element name="timeSeriesData" type="timeSeriesList"

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 10 

minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="pdData"> <xs:all> <xs:element name="asOfDate" type="xs:date"></xs:element> <xs:element name="timeSeries" type="xs:string"></xs:element> <xs:element name="value" type="xs:decimal"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="asOfDetail"> <xs:all> <xs:element name="asOfDate" type="xs:date"></xs:element> <xs:element name="seriesBreak" type="xs:string"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="timeseriesDetail"> <xs:all> <xs:element name="timeSeries" type="xs:string"></xs:element> <xs:element name="seriesBreak" type="xs:string"></xs:element> <xs:element name="description" type="xs:string"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="seriesBreakDetail"> <xs:all> <xs:element name="label" type="xs:string"></xs:element> <xs:element name="seriesBreak" type="xs:string"></xs:element> <xs:element name="startDate" type="xs:date"></xs:element> <xs:element name="endDate" type="xs:date"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="asOfDateList"> <xs:sequence> <xs:element name="data" type="pdData" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="timeSeriesList"> <xs:sequence> <xs:element name="data" type="pdData" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="asOfDatesDetails">

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 11 

<xs:sequence> <xs:element name="data" type="asOfDateDetail" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="timeSeriesDetails"> <xs:sequence> <xs:element name="data" type="timeseriesDetail" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="seriesBreaksDetails"> <xs:sequence> <xs:element name="data" type="seriesBreakDetail" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="nonmbsType"> <xs:sequence> <xs:element name="releaseDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="asOfDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="holding" type="nonmbsHoldingType" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="mbsType"> <xs:sequence> <xs:element name="releaseDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="asOfDate" type="xs:date" maxOccurs="unbounded" minOccurs="0"></xs:element> <xs:element name="holding" type="mbsHoldingType" minOccurs="0" maxOccurs="unbounded"></xs:element> </xs:sequence> </xs:complexType> <xs:complexType name="nonmbsHoldingType"> <xs:all> <xs:element name="asOfDate" type="xs:date"></xs:element> <xs:element name="maturityDate" type="xs:date"></xs:element> <xs:element name="cusip" type="xs:string"></xs:element> <xs:element name="issuer" type="xs:string"></xs:element> <xs:element name="coupon" type="xs:decimal"></xs:element> <xs:element name="spread" type="xs:decimal"></xs:element> <xs:element name="parValue" type="xs:decimal"></xs:element>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 12 

<xs:element name="inflationCompensation" type="xs:decimal"></xs:element> <xs:element name="percentOutstanding" type="xs:decimal"></xs:element> <xs:element name="changeFromPriorWeek" type="xs:decimal"></xs:element> <xs:element name="changeFromPriorYear" type="xs:decimal"></xs:element> <xs:element name="securityType" type="xs:string"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="mbsHoldingType"> <xs:all> <xs:element name="asOfDate" type="xs:date"></xs:element> <xs:element name="cusip" type="xs:string"></xs:element> <xs:element name="securityDescription" type="xs:string"></xs:element> <xs:element name="term" type="xs:string"></xs:element> <xs:element name="currentFaceValue" type="xs:decimal"></xs:element> </xs:all> </xs:complexType> <xs:complexType name="summaryType"> <xs:all> <xs:element name="asOfDate" type="xs:date"></xs:element> <xs:element name="total" type="xs:decimal"></xs:element> <xs:element name="mbs" type="xs:decimal"></xs:element> <xs:element name="tips" type="xs:decimal"></xs:element> <xs:element name="notesbonds" type="xs:decimal"></xs:element> <xs:element name="bills" type="xs:decimal"></xs:element> <xs:element name="agencies" type="xs:decimal"></xs:element> </xs:all> </xs:complexType> <xs:element name="commentsType"> <xs:sequence> <xs:element name="comment" type="xs:string" maxOccurs="unbounded" minOccurs="0"></xs:element> </xs:sequence> </xs:element> </xs:schema>  

Soap: 

http://schemas.xmlsoap.org/soap/envelope/ 

http://schemas.xmlsoap.org/soap/encoding/ 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 13 

SoapEnvelopeXMLSchemahttp://schemas.xmlsoap.org/soap/envelope/ 

<?xml version='1.0' encoding='UTF-8' ?> <!-- Schema for the SOAP/1.1 envelope Portions © 2001 DevelopMentor. © 2001 W3C (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. This document is governed by the W3C Software License [1] as described in the FAQ [2]. [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make: 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/" 3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) Original W3C files; http://www.w3.org/2001/06/soap-envelope Changes made: - reverted namespace to http://schemas.xmlsoap.org/soap/envelope/ - reverted mustUnderstand to only allow 0 and 1 as lexical values - made encodingStyle a global attribute 20020825 - removed default value from mustUnderstand attribute declaration THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.xmlsoap.org/soap/envelope/" targetNamespace="http://schemas.xmlsoap.org/soap/envelope/" > <!-- Envelope, header and body --> <xs:element name="Envelope" type="tns:Envelope" /> <xs:complexType name="Envelope" > <xs:sequence> <xs:element ref="tns:Header" minOccurs="0" /> <xs:element ref="tns:Body" minOccurs="1" /> <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> <xs:element name="Header" type="tns:Header" /> <xs:complexType name="Header" > <xs:sequence> <xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:complexType> <xs:element name="Body" type="tns:Body" /> <xs:complexType name="Body" > <xs:sequence> <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> </xs:sequence> <xs:anyAttribute namespace="##any" processContents="lax" > <xs:annotation> <xs:documentation> Prose in the spec does not specify that attributes are allowed on the Body element </xs:documentation>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 14 

</xs:annotation> </xs:anyAttribute> </xs:complexType> <!-- Global Attributes. The following attributes are intended to be usable via qualified attribute names on any complex type referencing them. --> <xs:attribute name="mustUnderstand" > <xs:simpleType> <xs:restriction base='xs:boolean'> <xs:pattern value='0|1' /> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="actor" type="xs:anyURI" /> <xs:simpleType name="encodingStyle" > <xs:annotation> <xs:documentation> 'encodingStyle' indicates any canonicalization conventions followed in the contents of the containing element. For example, the value 'http://schemas.xmlsoap.org/soap/encoding/' indicates the pattern described in SOAP specification </xs:documentation> </xs:annotation> <xs:list itemType="xs:anyURI" /> </xs:simpleType> <xs:attribute name="encodingStyle" type="tns:encodingStyle" /> <xs:attributeGroup name="encodingStyle" > <xs:attribute ref="tns:encodingStyle" /> </xs:attributeGroup> <xs:element name="Fault" type="tns:Fault" /> <xs:complexType name="Fault" final="extension" > <xs:annotation> <xs:documentation> Fault reporting structure </xs:documentation> </xs:annotation> <xs:sequence> <xs:element name="faultcode" type="xs:QName" /> <xs:element name="faultstring" type="xs:string" /> <xs:element name="faultactor" type="xs:anyURI" minOccurs="0" /> <xs:element name="detail" type="tns:detail" minOccurs="0" /> </xs:sequence> </xs:complexType> <xs:complexType name="detail"> <xs:sequence> <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> </xs:sequence> <xs:anyAttribute namespace="##any" processContents="lax" /> </xs:complexType> </xs:schema>    

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 15 

SoapEncodingXMLSchema 

http://schemas.xmlsoap.org/soap/encoding/ 

<?xml version='1.0' encoding='UTF-8' ?> <!-- Schema for the SOAP/1.1 encoding Portions © 2001 DevelopMentor. © 2001 W3C (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. This document is governed by the W3C Software License [1] as described in the FAQ [2]. [1] http://www.w3.org/Consortium/Legal/copyright-software-19980720 [2] http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620.html#DTD By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood, and will comply with the following terms and conditions: Permission to use, copy, modify, and distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications, that you make: 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. 2. Any pre-existing intellectual property disclaimers, notices, or terms and conditions. If none exist, a short notice of the following form (hypertext is preferred, text is permitted) should be used within the body of any redistributed or derivative code: "Copyright © 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. http://www.w3.org/Consortium/Legal/" 3. Notice of any changes or modifications to the W3C files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.) Original W3C files; http://www.w3.org/2001/06/soap-encoding Changes made: - reverted namespace to http://schemas.xmlsoap.org/soap/encoding/ - reverted root to only allow 0 and 1 as lexical values - removed default value from root attribute declaration THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION. The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders. --> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://schemas.xmlsoap.org/soap/encoding/" > <xs:attribute name="root" > <xs:annotation> <xs:documentation> 'root' can be used to distinguish serialization roots from other elements that are present in a serialization but are not roots of a serialized value graph </xs:documentation> </xs:annotation> <xs:simpleType> <xs:restriction base='xs:boolean'> <xs:pattern value='0|1' /> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attributeGroup name="commonAttributes" > <xs:annotation> <xs:documentation> Attributes common to all elements that function as accessors or represent independent (multi-ref) values. The href attribute is intended to be used in a manner like CONREF. That is, the element content should be empty iff the href attribute appears </xs:documentation> </xs:annotation> <xs:attribute name="id" type="xs:ID" /> <xs:attribute name="href" type="xs:anyURI" /> <xs:anyAttribute namespace="##other" processContents="lax" /> </xs:attributeGroup> <!-- Global Attributes. The following attributes are intended to be usable via qualified attribute names on any complex type referencing them. --> <!-- Array attributes. Needed to give the type

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 16 

and dimensions of an array's contents, and the offset for partially-transmitted arrays. --> <xs:simpleType name="arrayCoordinate" > <xs:restriction base="xs:string" /> </xs:simpleType> <xs:attribute name="arrayType" type="xs:string" /> <xs:attribute name="offset" type="tns:arrayCoordinate" /> <xs:attributeGroup name="arrayAttributes" > <xs:attribute ref="tns:arrayType" /> <xs:attribute ref="tns:offset" /> </xs:attributeGroup> <xs:attribute name="position" type="tns:arrayCoordinate" /> <xs:attributeGroup name="arrayMemberAttributes" > <xs:attribute ref="tns:position" /> </xs:attributeGroup> <xs:group name="Array" > <xs:sequence> <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> </xs:sequence> </xs:group> <xs:element name="Array" type="tns:Array" /> <xs:complexType name="Array" > <xs:annotation> <xs:documentation> 'Array' is a complex type for accessors identified by position </xs:documentation> </xs:annotation> <xs:group ref="tns:Array" minOccurs="0" /> <xs:attributeGroup ref="tns:arrayAttributes" /> <xs:attributeGroup ref="tns:commonAttributes" /> </xs:complexType> <!-- 'Struct' is a complex type for accessors identified by name. Constraint: No element may be have the same name as any other, nor may any element have a maxOccurs > 1. --> <xs:element name="Struct" type="tns:Struct" /> <xs:group name="Struct" > <xs:sequence> <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" /> </xs:sequence> </xs:group> <xs:complexType name="Struct" > <xs:group ref="tns:Struct" minOccurs="0" /> <xs:attributeGroup ref="tns:commonAttributes"/> </xs:complexType> <!-- 'Base64' can be used to serialize binary data using base64 encoding as defined in RFC2045 but without the MIME line length limitation. --> <xs:simpleType name="base64" > <xs:restriction base="xs:base64Binary" /> </xs:simpleType> <!-- Element declarations corresponding to each of the simple types in the XML Schemas Specification. --> <xs:element name="duration" type="tns:duration" /> <xs:complexType name="duration" > <xs:simpleContent> <xs:extension base="xs:duration" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="dateTime" type="tns:dateTime" /> <xs:complexType name="dateTime" > <xs:simpleContent> <xs:extension base="xs:dateTime" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="NOTATION" type="tns:NOTATION" /> <xs:complexType name="NOTATION" > <xs:simpleContent> <xs:extension base="xs:QName" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="time" type="tns:time" /> <xs:complexType name="time" > <xs:simpleContent> <xs:extension base="xs:time" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="date" type="tns:date" /> <xs:complexType name="date" > <xs:simpleContent> <xs:extension base="xs:date" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="gYearMonth" type="tns:gYearMonth" /> <xs:complexType name="gYearMonth" > <xs:simpleContent> <xs:extension base="xs:gYearMonth" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="gYear" type="tns:gYear" /> <xs:complexType name="gYear" > <xs:simpleContent> <xs:extension base="xs:gYear" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="gMonthDay" type="tns:gMonthDay" /> <xs:complexType name="gMonthDay" > <xs:simpleContent> <xs:extension base="xs:gMonthDay" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="gDay" type="tns:gDay" /> <xs:complexType name="gDay" > <xs:simpleContent> <xs:extension base="xs:gDay" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="gMonth"

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 17 

type="tns:gMonth" /> <xs:complexType name="gMonth" > <xs:simpleContent> <xs:extension base="xs:gMonth" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="boolean" type="tns:boolean" /> <xs:complexType name="boolean" > <xs:simpleContent> <xs:extension base="xs:boolean" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="base64Binary" type="tns:base64Binary" /> <xs:complexType name="base64Binary" > <xs:simpleContent> <xs:extension base="xs:base64Binary" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="hexBinary" type="tns:hexBinary" /> <xs:complexType name="hexBinary" > <xs:simpleContent> <xs:extension base="xs:hexBinary" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="float" type="tns:float" /> <xs:complexType name="float" > <xs:simpleContent> <xs:extension base="xs:float" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="double" type="tns:double" /> <xs:complexType name="double" > <xs:simpleContent> <xs:extension base="xs:double" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="anyURI" type="tns:anyURI" /> <xs:complexType name="anyURI" > <xs:simpleContent> <xs:extension base="xs:anyURI" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="QName" type="tns:QName" /> <xs:complexType name="QName" > <xs:simpleContent> <xs:extension base="xs:QName" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="string" type="tns:string" /> <xs:complexType name="string" > <xs:simpleContent> <xs:extension base="xs:string" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="normalizedString" type="tns:normalizedString" /> <xs:complexType name="normalizedString" > <xs:simpleContent> <xs:extension base="xs:normalizedString" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="token" type="tns:token" /> <xs:complexType name="token" > <xs:simpleContent> <xs:extension base="xs:token" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="language" type="tns:language" /> <xs:complexType name="language" > <xs:simpleContent> <xs:extension base="xs:language" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="Name" type="tns:Name" /> <xs:complexType name="Name" > <xs:simpleContent> <xs:extension base="xs:Name" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="NMTOKEN" type="tns:NMTOKEN" /> <xs:complexType name="NMTOKEN" > <xs:simpleContent> <xs:extension base="xs:NMTOKEN" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="NCName" type="tns:NCName" /> <xs:complexType name="NCName" > <xs:simpleContent> <xs:extension base="xs:NCName" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="NMTOKENS" type="tns:NMTOKENS" /> <xs:complexType name="NMTOKENS" > <xs:simpleContent> <xs:extension base="xs:NMTOKENS" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="ID" type="tns:ID" /> <xs:complexType name="ID" > <xs:simpleContent> <xs:extension base="xs:ID" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="IDREF"

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 18 

type="tns:IDREF" /> <xs:complexType name="IDREF" > <xs:simpleContent> <xs:extension base="xs:IDREF" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="ENTITY" type="tns:ENTITY" /> <xs:complexType name="ENTITY" > <xs:simpleContent> <xs:extension base="xs:ENTITY" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="IDREFS" type="tns:IDREFS" /> <xs:complexType name="IDREFS" > <xs:simpleContent> <xs:extension base="xs:IDREFS" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="ENTITIES" type="tns:ENTITIES" /> <xs:complexType name="ENTITIES" > <xs:simpleContent> <xs:extension base="xs:ENTITIES" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="decimal" type="tns:decimal" /> <xs:complexType name="decimal" > <xs:simpleContent> <xs:extension base="xs:decimal" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="integer" type="tns:integer" /> <xs:complexType name="integer" > <xs:simpleContent> <xs:extension base="xs:integer" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="nonPositiveInteger" type="tns:nonPositiveInteger" /> <xs:complexType name="nonPositiveInteger" > <xs:simpleContent> <xs:extension base="xs:nonPositiveInteger" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="negativeInteger" type="tns:negativeInteger" /> <xs:complexType name="negativeInteger" > <xs:simpleContent> <xs:extension base="xs:negativeInteger" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="long" type="tns:long" /> <xs:complexType name="long" > <xs:simpleContent> <xs:extension base="xs:long" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="int" type="tns:int" /> <xs:complexType name="int" > <xs:simpleContent> <xs:extension base="xs:int" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="short" type="tns:short" /> <xs:complexType name="short" > <xs:simpleContent> <xs:extension base="xs:short" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="byte" type="tns:byte" /> <xs:complexType name="byte" > <xs:simpleContent> <xs:extension base="xs:byte" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="nonNegativeInteger" type="tns:nonNegativeInteger" /> <xs:complexType name="nonNegativeInteger" > <xs:simpleContent> <xs:extension base="xs:nonNegativeInteger" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="unsignedLong" type="tns:unsignedLong" /> <xs:complexType name="unsignedLong" > <xs:simpleContent> <xs:extension base="xs:unsignedLong" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="unsignedInt" type="tns:unsignedInt" /> <xs:complexType name="unsignedInt" > <xs:simpleContent> <xs:extension base="xs:unsignedInt" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="unsignedShort" type="tns:unsignedShort" /> <xs:complexType name="unsignedShort" > <xs:simpleContent> <xs:extension base="xs:unsignedShort" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="unsignedByte" type="tns:unsignedByte" /> <xs:complexType name="unsignedByte" >

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 19 

<xs:simpleContent> <xs:extension base="xs:unsignedByte" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="positiveInteger" type="tns:positiveInteger" /> <xs:complexType name="positiveInteger" > <xs:simpleContent> <xs:extension base="xs:positiveInteger" > <xs:attributeGroup ref="tns:commonAttributes" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="anyType" /> </xs:schema>    

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 20 

SDMXCommonXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/common  

<?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" elementFormDefault="qualified" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" xmlns:xs="http://www.w3.org/2001/XMLSchema">   <!‐‐ Note: The following import statement sometimes causes problems with IE 6.* If you have this problem, comment it out. ‐‐>   <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>          <xs:complexType name="TextType">     <xs:annotation>       <xs:documentation>TextType provides for a set of language‐specific alternates to be provided for any human‐readable construct in the instance.</xs:documentation>     </xs:annotation>     <xs:simpleContent>       <xs:extension base="xs:string">         <xs:attribute ref="xml:lang" default="en"/>       </xs:extension>     </xs:simpleContent>   </xs:complexType>   <xs:complexType name="AnnotationType">     <xs:annotation>       <xs:documentation>AnnotationType provides for non‐documentation notes and annotations to be embedded in data and structure messages. It provides optional fields for providing a title, a type description, a URI, and the text of the annotation.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="AnnotationTitle" type="xs:string" minOccurs="0">         <xs:annotation>           <xs:documentation>AnnotationTitle provides a title for the annotation.</xs:documentation>         </xs:annotation>       </xs:element>       <xs:element name="AnnotationType" type="xs:string" minOccurs="0">         <xs:annotation>           <xs:documentation>AnnotationType is used to distinguish between annotations designed to support various uses. The types are not enumerated, as these can be specified by the user or creator of the annotations. The definitions and use of annotation types should be documented by their creator.</xs:documentation>         </xs:annotation>       </xs:element>       <xs:element name="AnnotationURL" type="xs:anyURI" minOccurs="0">         <xs:annotation>           <xs:documentation>This is a URI ‐ typically a URL ‐ which points to an external resource which may contain or supplement the annotation. If a specific behavior is desired, an annotation type should be defined which specifies the use of this field more exactly.</xs:documentation>         </xs:annotation>       </xs:element>       <xs:element name="AnnotationText" type="TextType" minOccurs="0" maxOccurs="unbounded"><!‐‐ Put back to TextType when you debug!‐‐>          <xs:annotation>           <xs:documentation>This is a language‐specific string which holds the text oif the annotation.</xs:documentation>         </xs:annotation>       </xs:element>     </xs:sequence>   </xs:complexType>   <xs:complexType name="AnnotationsType">     <xs:annotation>       <xs:documentation>AnnotationsType provides for a list of annotations to be attached to data and structure messages.</xs:documentation>     </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 21 

    <xs:sequence>       <xs:element name="Annotation" type="AnnotationType" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>      <xs:simpleType name="TimePeriodType">     <xs:annotation>       <xs:documentation>TIME_PERIOD is not completely expressable in XML Schema's date type: instead we use the union of dateTime, date, gYearMonth, and gYear. The default name for the concept is TIME_PERIOD. Semi‐annual and quarterly periods would be described in terms of their beginning month, weekly periods in terms of their Monday: e.g. the second quarter of 2002 as 2002‐04, since it starts with April.</xs:documentation>     </xs:annotation>     <xs:union memberTypes="xs:dateTime xs:date xs:gYearMonth xs:gYear"/>   </xs:simpleType>      <xs:simpleType name="ActionType">     <xs:annotation>       <xs:documentation>ActionType provides a list of actions, describing the intention of the data transmission from the sender's side. Each action applies to the entire dataset for which it is given.</xs:documentation>     </xs:annotation>     <xs:restriction base="xs:NMTOKEN">       <xs:enumeration value="Update">         <xs:annotation>           <xs:documentation>Data is an incremental update for an existing data setor the provision of new data or documentation (attribute values) formerly absent.</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Delete">         <xs:annotation>           <xs:documentation>Data is to be deleted.</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="AlphaType">     <xs:annotation>       <xs:documentation>This type is used for datatyping the contents of uncoded attributes. It places no restrictions on characters used, but carries the semantic of the key‐family designer in a fashion similar to that of the corresponding SDMX_EDI message.</xs:documentation>     </xs:annotation>     <xs:restriction base="xs:string"/>          </xs:simpleType>   <xs:simpleType name="AlphaNumericType">     <xs:annotation>       <xs:documentation>This type is used for datatyping the contents of uncoded attributes. It places no restrictions on characters used, but carries the semantic of the key‐family designer in a fashion similar to that of the corresponding SDMX_EDI message.</xs:documentation>     </xs:annotation>     <xs:restriction base="xs:string"/>          </xs:simpleType> </xs:schema>    

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 22 

SDMXMessageXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/message  

<?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message" xmlns:message="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/message" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure" xmlns:generic="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic" xmlns:utility="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/utility" xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" xmlns:query="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/query" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common">   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure" schemaLocation="SDMXStructure.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic" schemaLocation="SDMXGenericData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/utility" schemaLocation="SDMXUtilityData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact" schemaLocation="SDMXCompactData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" schemaLocation="SDMXCrossSectionalData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/query" schemaLocation="SDMXQuery.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:element name="Structure" type="StructureType">     <xs:annotation>       <xs:documentation>The Structure is a message that contains all the structural metadata about a data set. This can be key families, concepts, or codelists.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:element name="GenericData" type="GenericDataType">     <xs:annotation>       <xs:documentation>The GenericDataType is used to convey data in a cross‐key‐family form.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:element name="UtilityData" type="UtilityDataType">     <xs:annotation>       <xs:documentation>The UtilityData contains data in an XML form which is specific to each key family, according to standard mappings, and which is optimized to support guided editing tools and other applications which expect a "typical" XML schema. This format can be used to validate data in a key‐family‐specific fashion as is typically expected of XML schemas, and requires the entire data set. It cannot be used for incremental updates.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:element name="CompactData" type="CompactDataType">     <xs:annotation>       <xs:documentation>CompactData contains data in an XML format which is optimized for incremental updating, and the transfer of large data sets bilaterally. It is specific to each key family, according to standard mappings. It allows for key values to be expressed at a Group level.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:element name="CrossSectionalData" type="CrossSectionalDataType">     <xs:annotation>       <xs:documentation>CrossSectionalData contains data in an XML format which is optimized for describing many observations at a single point in time, and for the transfer of large data sets bilaterally. It is specific to each key family, according to standard mappings. It allows for key values to be expressed from the Group level down to the Observation level, and permits multiple observation values with different "measures". Time is attached at the DataSet level.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:element name="QueryMessage" type="QueryMessageType"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 23 

    <xs:annotation>       <xs:documentation>The QueryMessageType is used to query databases published on the web, and to invoke web services. It allows for queries to be made regarding both data and structural metadata.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:element name="MessageGroup" type="MessageGroupType">     <xs:annotation>       <xs:documentation>The MessageGroupType is used to allow for more than one data message of a single type to be included in a single transmission. This element arises from the requirement for some services to be able to exchange data which may come from more than one source, and be structured according to more than one key family.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:complexType name="MessageType" abstract="true">     <xs:annotation>       <xs:documentation>The Message is an abstract type which is used by all of the messages, to allow inheritance of common features. It also provides uniqueness constraints for the header fields.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Header" type="HeaderType">         <xs:unique name="SDMX_HeaderNameLanguageUniqueness">           <xs:selector xpath="message:Name"/>           <xs:field xpath="@xml:lang"/>         </xs:unique>         <xs:unique name="SDMX_HeaderSenderIDUniqueness">           <xs:selector xpath="message:Sender"/>           <xs:field xpath="@id"/>         </xs:unique>         <xs:unique name="SDMX_HeaderReceiverIDUniqueness">           <xs:selector xpath="message:Receiver"/>           <xs:field xpath="@id"/>         </xs:unique>         <xs:unique name="SDMX_HeaderDataSetIDUniqueness">           <xs:selector xpath="message:DataSetID"/>           <xs:field xpath="."/>         </xs:unique>       </xs:element>     </xs:sequence>   </xs:complexType>   <xs:complexType name="StructureType">     <xs:annotation>       <xs:documentation>StructureType defines the contents of a structure message.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:sequence>           <xs:element name="Agencies" type="structure:AgenciesType" minOccurs="0"/>           <xs:element name="CodeLists" type="structure:CodeListsType" minOccurs="0"/>           <xs:element name="Concepts" type="structure:ConceptsType" minOccurs="0"/>           <xs:element name="KeyFamilies" type="structure:KeyFamiliesType" minOccurs="0"/>         </xs:sequence>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:complexType name="GenericDataType">     <xs:annotation>       <xs:documentation>GenericDataType defines the contents of a GenericData message.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:sequence>           <xs:element name="DataSet" type="generic:DataSetType"/>         </xs:sequence>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:complexType name="UtilityDataType"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 24 

    <xs:annotation>       <xs:documentation>UtilityDataType defines the contents of a UtilityData message.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:sequence>           <xs:element ref="utility:DataSet"/>         </xs:sequence>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:complexType name="CompactDataType">     <xs:annotation>       <xs:documentation>CompactDataType defines the contents of a CompactData message.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:sequence>           <xs:element ref="compact:DataSet"/>         </xs:sequence>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:complexType name="CrossSectionalDataType">     <xs:annotation>       <xs:documentation>CrossSectionalDataType defines the contents of a CrossSectionalData message.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:sequence>           <xs:element ref="cross:DataSet"/>         </xs:sequence>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:complexType name="QueryMessageType">     <xs:annotation>       <xs:documentation>QueryMessageType defines the contents of a QueryMessage.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:sequence>           <xs:element name="Query" type="query:QueryType"/>         </xs:sequence>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:complexType name="MessageGroupType">     <xs:annotation>       <xs:documentation>MessageGroupType defines the contents of a MessageGroup message.</xs:documentation>     </xs:annotation>     <xs:complexContent>       <xs:extension base="MessageType">         <xs:choice>           <xs:element ref="generic:DataSet" maxOccurs="unbounded"/>           <xs:element ref="utility:DataSet" maxOccurs="unbounded"/>           <xs:element ref="compact:DataSet" maxOccurs="unbounded"/>           <xs:element ref="cross:DataSet" maxOccurs="unbounded"/>         </xs:choice>         <xs:attribute name="id" type="xs:NMTOKEN" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Header" type="HeaderType"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 25 

    <xs:annotation>       <xs:documentation>Header type is declared globally so that it can function as the head of a substitution group for schemas which are used internally. While this is an exception to the overall design of SDMX‐ML, many users feel this construct is useful. Note that when SDMX‐ML messages are exchanged outside an organization, the standard header should be used ‐ no assumptions about additional fields in substituted types should be made unless explicitly agreed‐to by counterparties.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:complexType name="HeaderType">     <xs:annotation>       <xs:documentation>HeaderType defines the header fields used for all messages. ID identifies a data flow definition, which, when combined with time, uniquely identifies the data set. Test indicates whather the message is for test purposes or not. Truncated is used in data messages which are responding to Query messages, and is set to true only if the response has been truncated to meet size limits suggested by the defaultLimit attribute in the Query mesage.  Name provides a name for the transmission. Prepared is the date prepared. Sender is information about the sender, and Receiver is information about the receiver. Agency provides the code identifier/abbreviation for the maintenance agency of a data set. Data set id provides an identifier for a contained data set. Action code provides a code for determining whether the enclosed message is an Update or Delete message (not to be used with the UtilityData message). KeyFamilyRef is used to reference a key family for a contained data set, using its id. (This information is required at the DataSet level for some messages, but is provided here as a convenience for those messages which do not require it.) KeyFamilyAgency specifies the agency of the key family using its coded id.  Fields which refer to a contained data set need not be used if the message contains a query or structural information ‐ these messages provide specific fields for holding this information. The ones here are not to be used as defaults. Extracted is a time‐stamp from the system rendering the data; ReportingBegin and ReportingEnd provide the time period covered by the message (in the case of data). Source provides human‐readable information about the source of the data.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="ID" type="xs:NCName"/>       <xs:element name="Test" type="xs:boolean" default="false"/>       <xs:element name="Truncated" type="xs:boolean" minOccurs="0"/>       <xs:element name="Name" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Prepared" type="HeaderTimeType"/>       <xs:element name="Sender" type="PartyType">         <xs:unique name="SDMX_SenderNameLanguageUniqueness">           <xs:selector xpath="message:Name"/>           <xs:field xpath="@xml:lang"/>         </xs:unique>       </xs:element>       <xs:element name="Receiver" type="PartyType" minOccurs="0" maxOccurs="unbounded">         <xs:unique name="SDMX_ReceiverNameLanguageUniqueness">           <xs:selector xpath="message:Name"/>           <xs:field xpath="@xml:lang"/>         </xs:unique>       </xs:element>       <xs:element name="KeyFamilyRef" type="xs:NMTOKEN" minOccurs="0"/>       <xs:element name="KeyFamilyAgency" type="xs:NMTOKEN" minOccurs="0"/>       <xs:element name="DataSetAgency" type="xs:NMTOKEN" minOccurs="0"/>       <xs:element name="DataSetID" type="xs:NMTOKEN" minOccurs="0"/>       <xs:element name="DataSetAction" type="common:ActionType" minOccurs="0"/>              <xs:element name="Extracted" type="xs:dateTime" minOccurs="0"/>       <xs:element name="ReportingBegin" type="HeaderTimeType" minOccurs="0"/>       <xs:element name="ReportingEnd" type="HeaderTimeType" minOccurs="0"/>       <xs:element name="Source" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>   <xs:complexType name="PartyType">     <xs:annotation>       <xs:documentation>PartyType defines the information which is sent about various parties such as senders and receivers of messages. The Name is the ID of the party, and Contact provides contact details.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Name" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <!‐‐ This is for the organization name, not the contact name ‐‐>       <xs:element name="Contact" type="ContactType" minOccurs="0" maxOccurs="unbounded"/>     </xs:sequence>     <xs:attribute name="id" type="xs:NMTOKEN" use="required"/>     <!‐‐ From organization codelist or agency codelist, depending on where used‐‐>   </xs:complexType> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 26 

  <xs:complexType name="ContactType">     <xs:annotation>       <xs:documentation>ContactType provides defines the contact information about a party. The Name provides a human‐readable name.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Name" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Department" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Role" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:choice minOccurs="0" maxOccurs="unbounded">         <xs:element name="Telephone" type="xs:string"/>         <xs:element name="Fax" type="xs:string"/>         <xs:element name="X400" type="xs:string"/>         <xs:element name="URI" type="xs:anyURI"/>         <xs:element name="Email" type="xs:string"/>       </xs:choice>     </xs:sequence>   </xs:complexType>   <xs:simpleType name="HeaderTimeType">     <xs:annotation>       <xs:documentation>Provides a union type of xs:date and xs:dateTime for the header fields in the message.</xs:documentation>     </xs:annotation>     <xs:union memberTypes="xs:dateTime xs:date"/>   </xs:simpleType> </xs:schema> 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 27 

SDMXGenericXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic  

<?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic" xmlns:generic="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/generic" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">   <xs:annotation>     <xs:documentation/>   </xs:annotation>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:element name="DataSet" type="DataSetType">     <xs:annotation>       <xs:documentation>The DataSet element contains one or more groups that comprise the data set.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:complexType name="DataSetType">     <xs:annotation>       <xs:documentation>DataSetType defines the structure of a data set. This consists of a key family reference which contains the ID of the key family, and the attribute values attached at the data set level. A DataSet may be used to transmit documentation (that is, only attribute values), data, or a combination of both. If providing only documentation, you need not send the complete set of attributes. If transmitting only data, the Group may be omitted if desired. Uniqueness constraints are defined for the attributes of the data set. If dataset‐level attributes are sent in a delete message, then any valid attribute value will indicate that the current attribute value should be deleted. The keyFamilyURI attribute is provided to allow a URI (typically a URL) to be provided, pointing to an SDMX‐ML Structure message describing the key family.   </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="KeyFamilyRef" type="xs:NCName" />       <xs:element name="Attributes" type="ValuesType" minOccurs="0">         <xs:unique name="SDMX_GenericDataSetAttributeUniqueness">           <xs:selector xpath="generic:Value"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>       <xs:choice minOccurs="0" maxOccurs="unbounded">       <xs:element name="Group" type="GroupType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Series" type="SeriesType" minOccurs="0" maxOccurs="unbounded"/>       </xs:choice>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>           </xs:sequence>     <xs:attribute name="keyFamilyURI" type="xs:anyURI" use="optional"/>    </xs:complexType>   <xs:complexType name="GroupType">     <xs:annotation>       <xs:documentation>The key values at the group level may be stated explicitly, and all which are not wildcarded listed in GroupKey ‐ they must also all be given a value at the series level. It is not necessary to specify the group key, however, as this may be inferred from the values repeated at the series level. If only documentation (group‐level attributes) are being transmitted, however, the GroupKey cannot be omitted. The type attribute contains the name of the declared group in the key family. If any group‐level attributes are specified in a delete message, then any valid value supplied for the attribute indicates that the current attribute value should be deleted for the specified attribute.   </xs:documentation>     </xs:annotation>     <xs:sequence>              <xs:element name="GroupKey" type="ValuesType" minOccurs="0">         <xs:unique name="SDMX_GenericGroupKeyUniqueness">           <xs:selector xpath="generic:Value"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 28 

          <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>        <xs:element name="Attributes" type="ValuesType" minOccurs="0">         <xs:unique name="SDMX_GenericGroupAttributeUniqueness">           <xs:selector xpath="generic:Value"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>       <xs:element name="Series" type="SeriesType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>            </xs:sequence>          <xs:attribute name="type" type="xs:NMTOKEN" use="required"/>   </xs:complexType>   <xs:complexType name="SeriesType">     <xs:annotation>       <xs:documentation>SeriesType specifies the structure of a series. This includes all of the key values, values for all the attributes, and the set of observations making up the series content. Messages may transmit only attributes, only data, or both. Regardless, the series key is always required. Key values appear at the Series level in an ordered sequence which corresponds to the key sequence in the key family. A series in a delete message need not supply more than the key, indicating that the entire series identified by that key should be deleted. If series attributes are sent in a delete message, any valid value specified for an attribute indicates that the attribute should be deleted.   </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="SeriesKey" type="SeriesKeyType">                  <xs:unique name="SDMX_GenericSeriesKeyUniqueness">           <xs:selector xpath="generic:Value"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>       <xs:element name="Attributes" type="ValuesType" minOccurs="0">         <xs:unique name="SDMX_GenericSeriesAttributeUniqueness">           <xs:selector xpath="generic:Value"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>       <xs:element name="Obs" type="ObsType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>           </xs:sequence>   </xs:complexType>      <xs:complexType name="SeriesKeyType">     <xs:annotation>       <xs:documentation>SeriesKeyType defines the contents of a series key. Each non‐time dimension must have a value supplied for it, in the order in which the dimensions are specified in the key family. </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Value" type="ValueType" maxOccurs="unbounded"/>     </xs:sequence>    </xs:complexType>   <xs:complexType name="ObsType">     <xs:annotation>       <xs:documentation>ObsType defines the structure of an observation. This includes a time and observation value, as well as values for each of the attributes assigned at the observation level by the key family. In a delete message, only the time need be given, indicating that the observation identified by the key and time should be deleted. For an update message, both time and observation value are required. If any attributes appear in a delete message, any valid value supplied for an attribute indicates that the current value should be deleted.       </xs:documentation>     </xs:annotation>     <xs:sequence> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 29 

      <xs:element name="Time" type="common:TimePeriodType"/>       <xs:element name="ObsValue" type="ObsValueType" minOccurs="0"/>       <xs:element name="Attributes" type="ValuesType" minOccurs="0">         <xs:unique name="SDMX_GenericObsAttributeUniqueness">           <xs:selector xpath="generic:Value"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>           </xs:sequence>   </xs:complexType>      <xs:complexType name="ValuesType">     <xs:sequence>       <xs:element name="Value" type="ValueType" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>   <xs:complexType name="ValueType">     <xs:annotation>       <xs:documentation>ValueType is used to assign a single value to a concept, as for attribute values and key values. It has no element content.     </xs:documentation>     </xs:annotation>     <xs:attribute name="concept" type="xs:NCName"/>     <xs:attribute name="value" type="xs:string"/>   </xs:complexType>         <xs:complexType name="ObsValueType">     <xs:annotation>       <xs:documentation>ObsValueType describes the information set for an observation value. This is associated with the primary measure concept declared in the key family.   </xs:documentation>     </xs:annotation>     <xs:attribute name="value" type="xs:double"/>        </xs:complexType>    </xs:schema> 

SDMXQueryXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/query  <?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/query" xmlns:query="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/query" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/query">  <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>    <xs:element name="Query" type="QueryType">     <xs:annotation>       <xs:documentation>The Query message allows standard querying of SDMX‐compliant databases and web services.        It allows queries to retrieve data, key families, codelists, and concepts.</xs:documentation>     </xs:annotation>   </xs:element>   <xs:complexType name="QueryType">     <xs:annotation>       <xs:documentation>The Query element is a top‐level element for this namespace, which is referenced by the SDMX message envelope, or could be put inside another envelope, such as SOAP. It contains a query. The defaultLimit attribute is the suggested maximum response size in kilobytes.</xs:documentation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 30 

    </xs:annotation>     <xs:sequence>       <xs:element name="DataWhere" type="DataWhereType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="KeyFamilyWhere" type="KeyFamilyWhereType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="CodelistWhere" type="CodelistWhereType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="ConceptWhere" type="ConceptWhereType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="AgencyWhere" type="AgencyWhereType" minOccurs="0" maxOccurs="unbounded"/>            </xs:sequence>     <xs:attribute name="defaultLimit" type="xs:integer" use="optional"/>   </xs:complexType>   <xs:complexType name="DataWhereType">     <xs:annotation>       <xs:documentation>The DataWhere element representes a query for data. It contains all of the clauses in that query, represented by its child elements.</xs:documentation>     </xs:annotation>     <xs:choice>       <xs:element name="DataSet" type="xs:string"/>       <xs:element name="KeyFamily" type="xs:string"/>       <xs:element name="Dimension" type="DimensionType"/>       <xs:element name="Attribute" type="AttributeType"/>       <xs:element name="Codelist" type="CodelistType"/>       <xs:element name="Time" type="TimeType"/>       <xs:element name="Category" type="CategoryType"/>       <xs:element name="Concept" type="xs:string"/>       <xs:element name="Agency" type="xs:string"/>       <xs:element name="Or" type="OrType"/>       <xs:element name="And" type="AndType"/>     </xs:choice>   </xs:complexType>   <xs:complexType name="AndType">     <xs:annotation>       <xs:documentation> For the And element, each of its immediate child elements represent clauses all of which represent conditions which must be satisfied. If children are A, B, and C, then any legitimate response will meet conditions A, B, and C.</xs:documentation>     </xs:annotation>                        <xs:sequence>       <xs:element name="DataSet" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="KeyFamily" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Dimension" type="DimensionType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Attribute" type="AttributeType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Codelist" type="CodelistType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Time" type="TimeType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Category" type="CategoryType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Concept" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Agency" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Or" type="OrType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="And" type="AndType" minOccurs="0" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>   <xs:complexType name="OrType">     <xs:annotation>       <xs:documentation>The Or element's immediate children represent clauses in the query any one of which is sufficient to satisfy the query. If these children are A,  B, and C, then any result which meets condition A, or condition B, or condition C is a match for that query.</xs:documentation>     </xs:annotation>       <xs:sequence>       <xs:element name="DataSet" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="KeyFamily" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Dimension" type="DimensionType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Attribute" type="AttributeType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Codelist" type="CodelistType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Time" type="TimeType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Category" type="CategoryType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Concept" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 31 

      <xs:element name="Agency" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Or" type="OrType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="And" type="AndType" minOccurs="0" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>   <xs:complexType name="DimensionType">     <xs:annotation>       <xs:documentation>Dimension elements contain the  (single) value being searched on within the key of data set. The name attribute holds the agency‐qualified ID of the dimension. If the content is empty, then the query is for any dimension with the given name. If the name attribute is not supplied, then the query is for the given key value within any dimension.</xs:documentation>     </xs:annotation>       <xs:simpleContent>       <xs:extension base="xs:string">         <xs:attribute name="name" type="xs:string" use="optional"/>       </xs:extension>     </xs:simpleContent>   </xs:complexType>   <xs:complexType name="AttributeType">     <xs:annotation>       <xs:documentation>Attribute elements contain the (single) value of an attribute being queried for. The name attribute contains the agency‐qualified name of the attribute. The attachmentLevel attribute specifies the attachment level of the attribute. If the content of Attribute is empty, then the search is for the specified attribute (and attachment level). If the name attribute is not specified, then the search is on any attribute. If the attachmentLevel attribute is not specified, then the query is for an attribute at any attachment level, as the value defaults to "Any".</xs:documentation>     </xs:annotation>       <xs:simpleContent>       <xs:extension base="xs:string">         <xs:attribute name="name" type="xs:string" use="optional"/>         <xs:attribute name="attachmentLevel" type="AttachmentLevelType" default="Any"/>       </xs:extension>     </xs:simpleContent>   </xs:complexType>   <xs:simpleType name="AttachmentLevelType">     <xs:annotation>       <xs:documentation>This type supplies an enumeration of attachment levels corresponding to those in the SDMX Information Model, plus a value of "Any" where the search is wildcarded.</xs:documentation>     </xs:annotation>       <xs:restriction base="xs:NMTOKEN">       <xs:enumeration value="DataSet">         <xs:annotation>           <xs:documentation>Attached at the Data Set level</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Group">         <xs:annotation>           <xs:documentation>Attached at the Group level</xs:documentation>         </xs:annotation>       </xs:enumeration>             <xs:enumeration value="Series">         <xs:annotation>           <xs:documentation>Attached at the Series level</xs:documentation>         </xs:annotation>       </xs:enumeration>             <xs:enumeration value="Observation">         <xs:annotation>           <xs:documentation>Attached at the Observation level</xs:documentation>         </xs:annotation>       </xs:enumeration>             <xs:enumeration value="Any">         <xs:annotation>           <xs:documentation>Attached at any attachment level</xs:documentation>         </xs:annotation>       </xs:enumeration>           </xs:restriction>   </xs:simpleType>   <xs:complexType name="CodelistType"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 32 

    <xs:annotation>       <xs:documentation>The Codelist element allows queries to specify a (single) value found within a codelist as the element content, and the agency‐qualified name of the codelist being queried for in the name attribute. If no content is supplied, then the query is for the named codelist. If the name attribute is left empty, then the value is searched for in any codelist.</xs:documentation>     </xs:annotation>       <xs:simpleContent>       <xs:extension base="xs:string">         <xs:attribute name="name" type="xs:string" use="optional"/>       </xs:extension>     </xs:simpleContent>   </xs:complexType>   <xs:complexType name="CategoryType">     <xs:annotation>       <xs:documentation>The Category element allows for a search to be made on the values within a specific category, which is specified (in agency‐qualified form) with the name attribute. If there is no element content, then the search is for the named Category; if the name is not supplied, then the category value supplied as content should be sought‐for in all available categories.</xs:documentation>     </xs:annotation>       <xs:simpleContent>       <xs:extension base="xs:string">         <xs:attribute name="name" type="xs:string" use="optional"/>         <xs:attribute name="agency" type="xs:NCName" use="optional"/>                </xs:extension>     </xs:simpleContent>   </xs:complexType>   <xs:complexType name="KeyFamilyWhereType">     <xs:annotation>       <xs:documentation>The KeyFamilyWhere element representes a query for a key family or key families. It contains all of the clauses in that query, represented by its child elements.</xs:documentation>     </xs:annotation>       <xs:choice>       <xs:element name="KeyFamily" type="xs:string"/>       <xs:element name="Dimension" type="DimensionType"/>       <xs:element name="Attribute" type="AttributeType"/>       <xs:element name="Codelist" type="CodelistType"/>       <xs:element name="Category" type="CategoryType"/>       <xs:element name="Concept" type="xs:string"/>       <xs:element name="Agency" type="xs:string"/>       <xs:element name="Or" type="OrType"/>       <xs:element name="And" type="AndType"/>     </xs:choice>   </xs:complexType>   <xs:complexType name="CodelistWhereType">       <xs:annotation>         <xs:documentation>The CodelistWhere element representes a query for a codelist or codelists. It contains all of the clauses in that query, represented by its child elements.</xs:documentation>       </xs:annotation>        <xs:choice>       <xs:element name="Codelist" type="CodelistType"/>       <xs:element name="Agency" type="xs:string"/>       <xs:element name="Or" type="OrType"/>       <xs:element name="And" type="AndType"/>     </xs:choice>   </xs:complexType>   <xs:complexType name="ConceptWhereType">     <xs:annotation>       <xs:documentation>The ConceptWhere element representes a query for a concept or concepts. It contains all of the clauses in that query, represented by its child elements.</xs:documentation>     </xs:annotation>          <xs:choice>       <xs:element name="Concept" type="xs:string"/>       <xs:element name="Agency" type="xs:string"/>       <xs:element name="Or" type="OrType"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 33 

      <xs:element name="And" type="AndType"/>     </xs:choice>   </xs:complexType>   <xs:complexType name="AgencyWhereType">     <xs:annotation>       <xs:documentation>The AgencyWhere element representes a query for details for an Agency. It contains all of the clauses in that query, represented by its child elements.</xs:documentation>     </xs:annotation>       <xs:choice>       <xs:element name="DataSet" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="KeyFamily" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Codelist" type="CodelistType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Category" type="CategoryType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Concept" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Agency" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Or" type="OrType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="And" type="AndType" minOccurs="0" maxOccurs="unbounded"/>     </xs:choice>   </xs:complexType>         <xs:complexType name="TimeType">     <xs:annotation>       <xs:documentation>TimeType contains the time point or period for which results should be supplied. When StartTime and EndTime are used, these must be understood as inclusive.</xs:documentation>     </xs:annotation>          <xs:choice>       <xs:sequence>         <xs:element name="StartTime" type="common:TimePeriodType"/>         <xs:element name="EndTime" type="common:TimePeriodType" minOccurs="0"/>            </xs:sequence>       <xs:element name="Time" type="common:TimePeriodType"/>     </xs:choice>   </xs:complexType> </xs:schema> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 34 

SDMXCrossXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross  <?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross"  xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross">  <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>    <xs:element name="DataSet" type="DataSetType">   <xs:annotation>     <xs:documentation>DataSet contains the data set.</xs:documentation>   </xs:annotation>       </xs:element>  <xs:complexType name="DataSetType" abstract="true">   <xs:annotation>     <xs:documentation>DataSetType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element.</xs:documentation>   </xs:annotation>   </xs:complexType>  <xs:element name="Group" type="GroupType">   <xs:annotation>     <xs:documentation>Group contains the group.</xs:documentation>   </xs:annotation>       </xs:element>   <xs:complexType name="GroupType" abstract="true">     <xs:annotation>       <xs:documentation>GroupType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element. The time attribute holds the value for the time dimension concept as specified in the key family. If time is not used as a concept in the key family, then no value need be provided.</xs:documentation>     </xs:annotation>     <xs:attribute name="time" type="common:TimePeriodType" use="optional"/> </xs:complexType>  <xs:element name="Section" type="SectionType">   <xs:annotation>     <xs:documentation>Section contains the data section.</xs:documentation>   </xs:annotation>       </xs:element>   <xs:complexType name="SectionType" abstract="true">     <xs:annotation>       <xs:documentation>SectionType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element.</xs:documentation>     </xs:annotation> </xs:complexType> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 35 

 <xs:element name="Obs" type="ObsType">   <xs:annotation>     <xs:documentation>Obs contains the observation, with one or more measures.</xs:documentation>   </xs:annotation>       </xs:element>   <xs:complexType name="ObsType" abstract="true">     <xs:annotation>       <xs:documentation>ObsType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element. It is capable of expressing the value and attributes of any single available cross‐sectional measure (when extended).</xs:documentation>     </xs:annotation>      </xs:complexType>  </xs:schema> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 36 

SDMXCompactXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact  <?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact" xmlns:compact="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact"  xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/compact">  <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>    <xs:element name="DataSet" type="DataSetType">   <xs:annotation>     <xs:documentation>The DataSet element contains the data set.</xs:documentation>   </xs:annotation>       </xs:element>  <xs:complexType name="DataSetType" abstract="true">   <xs:annotation>     <xs:documentation>DataSetType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element.</xs:documentation>   </xs:annotation>           </xs:complexType>  <xs:element name="Group" type="GroupType">   <xs:annotation>     <xs:documentation>The Group element contains the group.</xs:documentation>   </xs:annotation> </xs:element>  <xs:complexType name="GroupType" abstract="true">     <xs:annotation>       <xs:documentation>GroupType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element.</xs:documentation>     </xs:annotation>       </xs:complexType>  <xs:element name="Series" type="SeriesType">   <xs:annotation>     <xs:documentation>The Series element contains the series.</xs:documentation>   </xs:annotation> </xs:element>   <xs:complexType name="SeriesType" abstract="true">     <xs:annotation>       <xs:documentation>SeriesType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element.</xs:documentation>     </xs:annotation>       </xs:complexType>  

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 37 

<xs:element name="Obs" type="ObsType">   <xs:annotation>     <xs:documentation>The Obs element contains the observations.</xs:documentation>   </xs:annotation> </xs:element>   <xs:complexType name="ObsType" abstract="true">     <xs:annotation>       <xs:documentation>ObsType acts as a structural base, which is extended through the addition of attributes to reflect the particular needs of a specific key family using the xs:extends element.</xs:documentation>     </xs:annotation>      </xs:complexType>  </xs:schema>    

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 38 

SDMXStructureXMLSchemahttp://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure  <?xml version="1.0" encoding="UTF‐8"?> <!‐‐ Copyright SDMX 2004  ‐   www.sdmx.org ‐‐> <xs:schema targetNamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure" xmlns:structure="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/structure" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common">   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:complexType name="AgenciesType">     <xs:annotation>       <xs:documentation>AgenciesType contains one or more Agencies.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Agency" type="AgencyType" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>   <xs:complexType name="AgencyType">     <xs:annotation>       <xs:documentation>AgencyType provides a structure for describing agencies and their contact information. The id attribute carries a code identifying the agency. The version attribute indicates the version of the agency description. The uri attribute provides a uri for an alternate way of identifying the agency information (typically a URL resolving to an agency described in SDMX‐ML). Name is an element which provides for a human‐readable name for the organization. MaintenanceContact provides contact information for the agency when acting as a MaintenanceAgency; CollectorContact does the same when the agency is acting as a statistics collector; DisseminatorContact for when the agency functions as a statistics disseminator; and ReporterContact for when the Agency is functioning as a statistics reporter. OtherContact is used to describe any other role. Note that the Role field in the contact information structure should only be specified for OtherContact. It is allowable to reference full Agency information by using (at a minimum) only the id, name, and uri fields, with the uri pointing to an external description in a valid SDMX‐ML Structure message which provides more complete information. (This is termed an "external reference".) If an external reference is being made, the isExternalReference attribute must be set to “true”.</xs:documentation>     </xs:annotation>     <xs:sequence>        <xs:element name="Name" type="common:TextType" maxOccurs="unbounded"/>       <xs:element name="MaintenanceContact" type="ContactType" minOccurs="0"/>       <xs:element name="CollectorContact" type="ContactType" minOccurs="0"/>       <xs:element name="DisseminatorContact" type="ContactType" minOccurs="0"/>       <xs:element name="ReporterContact" type="ContactType" minOccurs="0"/>       <xs:element name="OtherContact" type="ContactType" minOccurs="0" maxOccurs="unbounded"/>     </xs:sequence>     <xs:attribute name="id" type="xs:NCName" use="required"/>     <xs:attribute name="version" type="xs:string" use="optional"/>     <xs:attribute name="uri" type="xs:anyURI" use="optional"/>     <xs:attribute name="isExternalReference" type="xs:boolean" use="optional"/>   </xs:complexType>   <xs:complexType name="ContactType">     <xs:annotation>       <xs:documentation>ContactType provides defines the contact information about a party. The id element is used to carry user id information for the contact, whereas Name provides a human‐readable name.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Name" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="id" type="xs:NMTOKEN" minOccurs="0"/>       <xs:element name="Department" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Role" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:choice minOccurs="0" maxOccurs="unbounded">         <xs:element name="Telephone" type="xs:string"/>         <xs:element name="Fax" type="xs:string"/>         <xs:element name="X400" type="xs:string"/>         <xs:element name="URI" type="xs:anyURI"/>         <xs:element name="Email" type="xs:string"/>       </xs:choice> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 39 

    </xs:sequence>   </xs:complexType>   <xs:complexType name="CodeListsType">     <xs:annotation>       <xs:documentation>CodelistsType contains one or more codelists. It also defines uniqueness constraints for codelist IDs.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="CodeList" type="CodeListType" minOccurs="0" maxOccurs="unbounded">         <xs:unique name="SDMX_CodeListsIDUniqueness">           <xs:selector xpath="structure:CodeList"/>           <xs:field xpath="@id"/>         </xs:unique>       </xs:element>     </xs:sequence>   </xs:complexType>   <xs:complexType name="CodeListType">     <xs:annotation>       <xs:documentation>CodeListType defines the contents of a codelist. This includes an ID, the agency which maintains the codelist, its version, and a URL where it is located. Elements are provided for supplying a name and the codes. It is acceptable to provide only the id, name, and uri fields at a minimum, with the uri pointing to an SDMX Structure message containing complete details on the codelist. (This is termed an "external reference".) If an external reference is being made, the isExternalReference attribute must be set to “true”.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Name" type="common:TextType" maxOccurs="unbounded"/>       <xs:element name="Code" type="CodeType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="id" type="xs:NCName" use="required"/>     <xs:attribute name="agency" type="xs:NMTOKEN" use="optional"/>     <xs:attribute name="version" type="xs:string" use="optional"/>     <xs:attribute name="uri" type="xs:anyURI" use="optional"/>     <xs:attribute name="isExternalReference" type="xs:boolean" use="optional"/>   </xs:complexType>   <xs:complexType name="CodeType">     <xs:annotation>       <xs:documentation>CodeType defines the structure of a code. This allows for plain‐text descriptions as element content, and the coded value as the value attribute. (Short descriptions or other presentational information may be added using Annotations with an indicative type field [eg, "ShortDescription"]).</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Description" type="common:TextType" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="value" type="xs:NMTOKEN" use="required"/>   </xs:complexType>   <xs:complexType name="ConceptsType">     <xs:annotation>       <xs:documentation>ConceptsType defines the structure of a set of Concepts.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Concept" type="ConceptType" maxOccurs="unbounded"/>     </xs:sequence>   </xs:complexType>   <xs:complexType name="ConceptType">     <xs:annotation>       <xs:documentation>ConceptType specifies the information provided for a single concept. This includes a name, as element content, and an ID. It is possible to use the uri field to point to the location of an SDMX‐ML Structure message which contains a more detailed version of the concept. (This is termed an "external reference".) If an external reference is being made, the isExternalReference attribute must be set to "true".</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Name" type="common:TextType" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 40 

    <xs:attribute name="id" type="xs:NCName" use="required"/>     <xs:attribute name="agency" type="xs:NMTOKEN" use="optional"/>     <xs:attribute name="version" type="xs:string" use="optional"/>     <xs:attribute name="uri" type="xs:anyURI" use="optional"/>     <xs:attribute name="isExternalReference" type="xs:boolean" use="optional"/>   </xs:complexType>   <xs:complexType name="KeyFamiliesType">     <xs:annotation>       <xs:documentation>KeyFamiliesType defines the structure for describing one or more key families. It also provides uniqueness constraints for each of the key family IDs.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="KeyFamily" type="KeyFamilyType" maxOccurs="unbounded">         <xs:unique name="SDMX_KeyFamilyIDUniqueness">           <xs:selector xpath="structure:KeyFamily"/>           <xs:field xpath="@id"/>         </xs:unique>       </xs:element>     </xs:sequence>   </xs:complexType>   <xs:complexType name="KeyFamilyType">     <xs:annotation>       <xs:documentation>KeyFamilyType defines the structure of a key‐family description. This includes the name and a set of components (attributes and dimensions) as element content, and an ID, agency, version, and the URL where located as attributes.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Name" type="common:TextType" maxOccurs="unbounded"/>       <xs:element name="Components" type="ComponentsType"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="id" type="xs:NCName" use="required"/>     <xs:attribute name="agency" type="xs:NMTOKEN" use="optional"/>     <xs:attribute name="version" type="xs:string" use="optional"/>     <xs:attribute name="uri" type="xs:anyURI" use="optional"/>   </xs:complexType>   <xs:complexType name="ComponentsType">     <xs:annotation>       <xs:documentation>ComponentsType describes the dimensions, groups, attributes, and measures of the key family. If TimeDimension is included in the key family ‐ which it must be if time series formats for the data (GenericData, CompactData, and UtilityData formats) are to be used ‐ then there must also be a frequency dimension. </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Dimension" type="DimensionType" minOccurs="0" maxOccurs="unbounded">         <xs:unique name="SDMX_DimensionConceptUniqueness">           <xs:selector xpath="structure:Dimension"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>       <xs:element name="TimeDimension" type="TimeDimensionType" minOccurs="0"/>       <xs:element name="Group" type="GroupType" minOccurs="0" maxOccurs="unbounded">         <xs:unique name="SDMX_GroupNameUniqueness">           <xs:selector xpath="structure:Group"/>           <xs:field xpath="@name"/>         </xs:unique>       </xs:element>       <xs:element name="PrimaryMeasure" type="PrimaryMeasureType"/>       <xs:element name="CrossSectionalMeasure" type="CrossSectionalMeasureType" minOccurs="0" maxOccurs="unbounded">         <xs:unique name="SDMX_CSMeasureConceptUniqueness">           <xs:selector xpath="structure:CrossSectionalMeasure"/>           <xs:field xpath="@concept"/>         </xs:unique>             </xs:element>       <xs:element name="Attribute" type="AttributeType" minOccurs="0" maxOccurs="unbounded">         <xs:unique name="SDMX_AttributeConceptUniqueness"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 41 

          <xs:selector xpath="structure:Attribute"/>           <xs:field xpath="@concept"/>         </xs:unique>       </xs:element>     </xs:sequence>   </xs:complexType>   <xs:complexType name="DimensionType">     <xs:annotation>       <xs:documentation>DimensionType describes the structure of non‐Time dimensions. The order of their declaration is significant: it is used to describe the order in which they will appear in data formats for which key values are supplied in an ordered fashion (exclusive of the Time dimension, which is not represented as a member of the ordered key). In the case of key families which are used for cross‐sectional data as well as time‐series data, any "measure" dimension must have the value of the "isMeasureDimension" attribute set to "true". If a dimension is declared to be a measure dimension, it must have a measure declared elsewhere in the key family which corresponds to each value in the codelist which represents it. Any dimension which corresponds to the frequency concept must have its isFrequencyDimension attribute set to "true". There may only be one such dimension in any key family. (Conventionally, it is the first dimension in the ordered set of dimensions ‐ the key.) If a key family describes cross‐sectional data, then for each non‐time dimension, the crossSectionalAttachDataSet, crossSectionalAttachGroup, crossSectionalAttachSection, and crossSectionalAttachObservation attributes must be given values. A value of "true" for any of these attributes indicates that the dimension may be provided a value at the indicated level within the cross‐sectional structure. Note that these attributes do not need to be provided for any dimension with the isFrequencyDimension set to "true", as these dimensions are always attached only at the group level, as is time. A key family designed for cross‐sectional use must be structured such that any observation's complete key can be unambiguously described by taking each dimension value from its observation level, section level, group level, and data set level, and ordered according to the sequence given in the key family. </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="concept" type="xs:NMTOKEN" use="required"/>     <xs:attribute name="codelist" type="xs:NMTOKEN" use="required"/>     <xs:attribute name="isMeasureDimension" type="xs:boolean" default="false"/>     <xs:attribute name="isFrequencyDimension" type="xs:boolean" default="false"/>     <xs:attribute name="crossSectionalAttachDataSet" type="xs:boolean" use="optional"/>     <xs:attribute name="crossSectionalAttachGroup" type="xs:boolean" use="optional"/>     <xs:attribute name="crossSectionalAttachSection" type="xs:boolean" use="optional"/>     <xs:attribute name="crossSectionalAttachObservation" type="xs:boolean" use="optional"/>   </xs:complexType>   <xs:complexType name="TimeDimensionType">     <xs:annotation>       <xs:documentation>TimeDimensionType describes the special Time dimension. Any key family which will be used for time‐series formats (GenericData, CompactData, and UtilityData) must include the time dimension. Any key family which uses the time dimension must also declare a frequency dimension, conventionally the first dimension in the key (the set of ordered non‐time dimensions). A TextFormat element may be included for indicating the representation of time in some non‐XML data formats. The concept attribute must contain the concept name of the time concept. The codelist attribute may provide the value of the concept name of a codelist if needed.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="TextFormat" type="TextFormatType" minOccurs="0"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="concept" type="xs:NMTOKEN" use="required"/>     <xs:attribute name="codelist" type="xs:NMTOKEN" use="optional"/>   </xs:complexType>   <xs:complexType name="GroupType">     <xs:annotation>       <xs:documentation>GroupType declares any useful groupings of data, based on a selection of the declared (non‐Time) dimensions (indicated with the DimensionRef element) which form partial keys to which attributes may be attached. The value of the DimensionRef element is the concept of the dimension ‐ that is, the value of the dimension's concept attribute. Thus, if data is to be presented as a set of time series which vary only according to their differing frequencies, a "sibling group" would be declared, with all dimensions except the frequency dimension in it. If data is commonly grouped as a set of all countries, then a "Country Group" could be declared, with all dimensions except the country dimension forming part of the partial key. Any dimension which is not part of a group has a value which varies at the series level (for time series formats). There is no requirement to have only a single dimension ommitted from a partial key ‐ it can be any subset of the set of ordered dimensions (that is, all dimensions except the time dimension, which may never be declared as belonging to a group partial key). All groups declared in the key family must be unique ‐ that is, you may not have duplicate partial keys. All groups must also be given unique names (id attributes). Although it is conventional to declare dimensions in the same order as they are declared in the ordered key, there is no requirement to do so ‐ the ordering of the values of the key are taken from the order in which the dimensions are declared. The Description element provides a human‐readable description (potentially in multiple, parallel languages) of the group. Note that for cross‐sectional formats, the named group mechanism is not used, but is instead replaced by a generic group which carries 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 42 

time and frequency values with it, and allows for any available group‐level attributes to be specified if desired. </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="DimensionRef" type="xs:NMTOKEN" maxOccurs="unbounded"/>       <xs:element name="Description" type="common:TextType" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="id" type="xs:NMTOKEN" use="required"/>   </xs:complexType>   <xs:complexType name="AttributeType">     <xs:annotation>       <xs:documentation>AttributeType describes the structure of attributes declared in the key family. If the codelist attribute is not used, then the attribute is uncoded. You may use the TextFormat element to specify constraints on the value of the uncoded attribute. The concept attribute contains the name of a concept. The codelist attribute supplies the id value of a codelist. The attachmentLevel attribute indicates the level to which the attribute is attached in time‐series formats (GenericData, CompactData, and UtilityData formats). The assignmentStatus attribute indicates whether a value must be provided for the attribute when sending documentation along with the data. The AttachmentGroup element is included only when the attribute is attached at the Group level, to indicate which declared group or groups the attribute may be attached to. For each such group, an AttachmentGroup element should appear, with the content of the element being the name of the group. The AttachmentMeasure element is similar, indicating for cross‐sectional formats which declared measure or measures the attribute attached at the observation level may be attached to. The isTimeFormat attribute indicates that the attribute represents the concept of time format (typically a mandatory series‐level attribute with a codelist representation taken from ISO 8601). For key families not used to structure cross‐sectional formats, this element may be ommitted. Each such element contains the name of the declared measure. The attributes crossSectionalAttachDataSet, crossSectionalAttachGroup, crossSectionalAttachSection, and crossSectionalAttachObservation indicate what the attachment level or levels are for cross‐sectional data formats, and may be ommitted if the key family will not be used to structure them. A value of "true" indicates that it is permissible to provide a value for the attribute at the specified level within the structure. Note that all groups in cross‐sectional formats are replaced by a generic group which has any values for time and frequency, and allows any group‐level attributes to be attached to it. </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="TextFormat" type="TextFormatType" minOccurs="0"/>       <xs:element name="AttachmentGroup" type="xs:NMTOKEN" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="AttachmentMeasure" type="xs:NMTOKEN" minOccurs="0" maxOccurs="unbounded"/>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="concept" type="xs:NMTOKEN" use="required"/>     <xs:attribute name="codelist" type="xs:NMTOKEN" use="optional"/>     <xs:attribute name="attachmentLevel" type="structure:AttachmentLevelType" use="required"/>     <xs:attribute name="assignmentStatus" type="structure:AssignmentStatusType" use="required"/>     <xs:attribute name="isTimeFormat" type="xs:boolean" default="false"/>     <xs:attribute name="crossSectionalAttachDataSet" type="xs:boolean" use="optional"/>     <xs:attribute name="crossSectionalAttachGroup" type="xs:boolean" use="optional"/>     <xs:attribute name="crossSectionalAttachSection" type="xs:boolean" use="optional"/>     <xs:attribute name="crossSectionalAttachObservation" type="xs:boolean" use="optional"/>        </xs:complexType>   <xs:simpleType name="AttachmentLevelType">     <xs:restriction base="xs:NMTOKEN">       <xs:enumeration value="DataSet">         <xs:annotation>           <xs:documentation>Data set level</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Group">         <xs:annotation>           <xs:documentation>Group level</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Series">         <xs:annotation>           <xs:documentation>Series level</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Observation">         <xs:annotation>           <xs:documentation>Observation level</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 43 

      </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="AssignmentStatusType">     <xs:restriction base="xs:NMTOKEN">       <xs:enumeration value="Mandatory">         <xs:annotation>           <xs:documentation>Providing attribute value is mandatory</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Conditional">         <xs:annotation>           <xs:documentation>Providing attribute value is optional</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:complexType name="TextFormatType">     <xs:annotation>       <xs:documentation>TextFormatType defines the information for describing a text format. If the TextType attribute is not specified, any valid characters may be included in the text field. (It corresponds to the xs:string datatype of W3C XML Schema.) In this case, the Length attribute is interpreted as a maximum length. Otherwise, length provides either maximum or set string lengths as per the TextType attribute value. The decimals attribute provides the precision (the number of decimal places) that numeric data must use. This is an integer indicating the number of digits to occur after the decimal separator ("."). If used, a missing digit in numeric data is to be interpreted as a 0. If not used, no restrictions on the number of digits provided in data exist for the purposes of exchange.</xs:documentation>     </xs:annotation>     <xs:attribute name="length" type="xs:integer" use="optional"/>     <xs:attribute name="decimals" type="xs:integer" use="optional"/>     <xs:attribute name="TextType" type="TextTypeType" use="optional"/>   </xs:complexType>   <xs:simpleType name="TextTypeType">     <xs:annotation>       <xs:documentation>TextTypeType provides an enumerated list of the types of characters allowed in a TextFormat field.</xs:documentation>     </xs:annotation>     <xs:restriction base="xs:NMTOKEN">       <xs:enumeration value="Alpha">         <xs:annotation>           <xs:documentation>Allows any non‐numeric characters to be used in the string, with a maximum as specified in the length attribute.</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="AlphaFixed">         <xs:annotation>           <xs:documentation>Allows any non‐numeric characters to be used in the string, with a set length as specified in the length attribute.</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="Num">         <xs:annotation>           <xs:documentation>Allows any numeric character (0 ‐ 9) to be used in the string, with a maximum as specified in the length attribute.</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="NumFixed">         <xs:annotation>           <xs:documentation>Allows any numeric character (0 ‐ 9) to be used in the string, with a set length as specified in the length attribute.</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="AlphaNum">         <xs:annotation>           <xs:documentation>Allows any numeric or non‐nuumeric characters to be used in the string, with a maximum as specified in the length attribute.</xs:documentation>         </xs:annotation>       </xs:enumeration> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 44 

      <xs:enumeration value="AlphaNumFixed">         <xs:annotation>           <xs:documentation>Allows any numeric or non‐numeric characters to be used in the string, with a set length as specified in the length attribute.</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:complexType name="PrimaryMeasureType">     <xs:annotation>       <xs:documentation>PrimaryMeasureType describes the observation values for all presentations of the data, except those cross‐sectional formats which have multiple measures (for which a set of cross‐sectional measures are used instead). The concept attribute points to the unique concept represented by the measure. The PrimaryMeasure  is conventionally associated with the OBS‐VALUE concept. </xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="concept" type="xs:NMTOKEN" use="required"/>   </xs:complexType>   <xs:complexType name="CrossSectionalMeasureType">     <xs:annotation>       <xs:documentation>CrossSectionalMeasureType describes the observation values for multiple‐measure cross‐sectional data formats. For non‐cross sectional key families, it is not necesary to specify any cross‐sectional measures.The concept attribute points to the unique concept represented by the measure. The measureDimension attribute contains the concept name of the measure dimension. The code attribute contains the value of its corresponding code in the codelist used to represent the measure dimension. A CrossSectionalMeasure must be declared for each code in the codelist used to represent the measure dimension ‐ these will replace the primary measure for multiple‐measure cross‐sectional data formats.</xs:documentation>     </xs:annotation>     <xs:sequence>       <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>     </xs:sequence>     <xs:attribute name="concept" type="xs:NMTOKEN" use="required"/>     <xs:attribute name="measureDimension" type="xs:NMTOKEN" use="required"/>     <xs:attribute name="code" type="xs:NMTOKEN" use="required"/>   </xs:complexType> </xs:schema> 

 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 45 

SDXMLSecuritiesLendingXMLSchemahttp://www.newyorkfed.org/xml/schemas/v3_0/SecLendingCross.xsd  <?xml version="1.0" encoding="UTF‐8"?> <xs:schema xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema‐instance" xmlns="http://www.newyorkfed.org/xml/schemas/SecLending" targetNamespace="http://www.newyorkfed.org/xml/schemas/SecLending" elementFormDefault="qualified" attributeFormDefault="unqualified">   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" schemaLocation="SDMXCrossSectionalData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:element name="DataSet" type="DataSetType" substitutionGroup="cross:DataSet"/>   <xs:complexType name="DataSetType">     <xs:complexContent>       <xs:extension base="cross:DataSetType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="Group"/>           <xs:element ref="Section"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Group" type="GroupType" substitutionGroup="cross:Group"/>   <xs:complexType name="GroupType">     <xs:complexContent>       <xs:extension base="cross:GroupType">         <xs:sequence>           <xs:element ref="Section" minOccurs="0" maxOccurs="unbounded"/>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="availability" type="CL_AVAILABILITY" use="optional"/>         <xs:attribute name="disclaimer" type="CL_FRBNY_DISCLAIMER" use="optional"/>         <xs:attribute name="freq" type="CL_FREQ" use="optional"/>         <xs:attribute name="generalMethod" type="CL_FRBNY_SL_GENERAL_METHOD" use="optional"/>         <xs:attribute name="lastUpdated" type="lastUpdatedType" use="optional"/>         <xs:attribute name="operationID" type="operationIDType" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="time_format" type="CL_TIME_FORMAT" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Section" type="SectionType" substitutionGroup="cross:Section"/>   <xs:complexType name="SectionType">     <xs:complexContent>       <xs:extension base="cross:SectionType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="actualAvailableToBorrow"/>           <xs:element ref="outstandingLoans"/>           <xs:element ref="parSubmitted"/>           <xs:element ref="parAccepted"/>           <xs:element ref="wtdAvgRate"/>           <xs:element ref="parExtended"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>         <xs:attribute name="securityType" type="CL_FRBNY_SECURITY_TYPE" use="optional"/>         <xs:attribute name="couponRate" type="CL_EIGHTHS" use="optional"/>         <xs:attribute name="securityMaturityDate" type="maturityType" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="actualAvailableToBorrow" type="actualAvailableToBorrowType" substitutionGroup="cross:Obs"/>   <xs:complexType name="actualAvailableToBorrowType"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 46 

    <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="outstandingLoans" type="outstandingLoansType" substitutionGroup="cross:Obs"/>   <xs:complexType name="outstandingLoansType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="parSubmitted" type="parSubmittedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="parSubmittedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="parAccepted" type="parAcceptedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="parAcceptedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 47 

        <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="wtdAvgRate" type="wtdAvgRateType" substitutionGroup="cross:Obs" nillable="true"/>   <xs:complexType name="wtdAvgRateType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="rate" type="CL_FRBNY_RATE_UNIT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="parExtended" type="parExtendedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="parExtendedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:simpleType name="maturityType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_SECURITY_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="B">         <xs:annotation>           <xs:documentation xml:lang="en">Bills</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TN">         <xs:annotation>           <xs:documentation xml:lang="en">Coupon Notes</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TB">         <xs:annotation>           <xs:documentation xml:lang="en">Coupon Bonds</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="IIB">         <xs:annotation>           <xs:documentation xml:lang="en">TIPS Bonds</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="IIN"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 48 

        <xs:annotation>           <xs:documentation xml:lang="en">TIPS Notes</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TFR">         <xs:annotation>           <xs:documentation xml:lang="en">Floating Rates</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="SP">         <xs:annotation>           <xs:documentation xml:lang="en">Spec Pool</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="BAS">         <xs:annotation>           <xs:documentation xml:lang="en">Basket</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TBA">         <xs:annotation>           <xs:documentation xml:lang="en">TBA</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FNMA">         <xs:annotation>           <xs:documentation xml:lang="en">Fannie</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FNM">         <xs:annotation>           <xs:documentation xml:lang="en">Fannie Coupon</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FNDN">         <xs:annotation>           <xs:documentation xml:lang="en">Fannie Discount Note</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FMCDN">         <xs:annotation>           <xs:documentation xml:lang="en">Freddie Discount Note</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FMC">         <xs:annotation>           <xs:documentation xml:lang="en">Freddie Coupon</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FHLMC">         <xs:annotation>           <xs:documentation xml:lang="en">Freddie</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FHLB">         <xs:annotation>           <xs:documentation xml:lang="en">FHLB</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FHL">         <xs:annotation>           <xs:documentation xml:lang="en">Federal Home Loan Coupon</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="FHDN">         <xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 49 

          <xs:documentation xml:lang="en">Federal Home Loan Discount</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_EIGHTHS">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_SL_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="AA">         <xs:annotation>           <xs:documentation xml:lang="en">pre‐auction ‐ actual available to borrow</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="OL">         <xs:annotation>           <xs:documentation xml:lang="en">pre‐auction ‐ outstanding loans</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PS">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PA">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions accepted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="AR">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ weighted average rate</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PE">         <xs:annotation>           <xs:documentation xml:lang="en">propositions extended</xs:documentation>         </xs:annotation>       </xs:enumeration>       </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FREQ">     <xs:restriction base="xs:string">       <xs:enumeration value="DP">         <xs:annotation>           <xs:documentation xml:lang="en">at least daily but multiple instances in one day are possible</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_TIME_FORMAT">     <xs:restriction base="xs:string">       <xs:enumeration value="PT1M">         <xs:annotation>           <xs:documentation xml:lang="en">minutely</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_DISCLAIMER"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 50 

    <xs:restriction base="xs:string">       <xs:enumeration value="G">         <xs:annotation>           <xs:documentation xml:lang="en">general disclaimer</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_AVAILABILITY">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_SL_GENERAL_METHOD">     <xs:restriction base="xs:string">       <xs:enumeration value="G">         <xs:annotation>           <xs:documentation xml:lang="en">general securities lending method</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_SL_METHOD">     <xs:restriction base="xs:string">       <xs:enumeration value="AA">         <xs:annotation>           <xs:documentation xml:lang="en">pre‐auction ‐ actual available to borrow</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="OL">         <xs:annotation>           <xs:documentation xml:lang="en">pre‐auction ‐ outstanding loans</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PS">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PA">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions accepted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="AR">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ weighted average rate</xs:documentation>         </xs:annotation>       </xs:enumeration>         </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_CURRENCY_UNIT">     <xs:restriction base="xs:string">       <xs:enumeration value="USD">         <xs:annotation>           <xs:documentation xml:lang="en">United States dollar</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 51 

      </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_RATE_UNIT">     <xs:restriction base="xs:string">       <xs:enumeration value="P">         <xs:annotation>           <xs:documentation xml:lang="en">percentage</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_UNIT_MULT">     <xs:restriction base="xs:string">       <xs:enumeration value="0">         <xs:annotation>           <xs:documentation xml:lang="en">units</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="5">         <xs:annotation>           <xs:documentation xml:lang="en">millions</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_DECIMALS">     <xs:restriction base="xs:string">       <xs:enumeration value="0">         <xs:annotation>           <xs:documentation xml:lang="en">zero</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="3">         <xs:annotation>           <xs:documentation xml:lang="en">three</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_CONF">     <xs:restriction base="xs:string">       <xs:enumeration value="F">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_STATUS">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">present</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="B">         <xs:annotation>           <xs:documentation xml:lang="en">missing, no propositions received</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="H">         <xs:annotation>           <xs:documentation xml:lang="en">missing, holiday</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 52 

      </xs:enumeration>       <xs:enumeration value="M">         <xs:annotation>           <xs:documentation xml:lang="en">missing, other</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="operationIDType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="lastUpdatedType">     <xs:restriction base="xs:dateTime"/>   </xs:simpleType> </xs:schema>    

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 53 

SDXMLSecuritiesLendingTotalsXMLSchema

http://www.newyorkfed.org/xml/schemas/v3_0/SecLendingTotalsCross.xsd  <?xml version="1.0" encoding="UTF‐8"?> <xs:schema xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema‐instance" xmlns="http://www.newyorkfed.org/xml/schemas/SecLendingTotals" targetNamespace="http://www.newyorkfed.org/xml/schemas/SecLendingTotals" elementFormDefault="qualified" attributeFormDefault="unqualified">   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" schemaLocation="SDMXCrossSectionalData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:element name="DataSet" type="DataSetType" substitutionGroup="cross:DataSet"/>   <xs:complexType name="DataSetType">     <xs:complexContent>       <xs:extension base="cross:DataSetType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="Group"/>           <xs:element ref="Section"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Group" type="GroupType" substitutionGroup="cross:Group"/>   <xs:complexType name="GroupType">     <xs:complexContent>       <xs:extension base="cross:GroupType">         <xs:sequence>           <xs:element ref="Section" minOccurs="0" maxOccurs="unbounded"/>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="availability" type="CL_AVAILABILITY" use="optional"/>         <xs:attribute name="disclaimer" type="CL_FRBNY_DISCLAIMER" use="optional"/>         <xs:attribute name="freq" type="CL_FREQ" use="optional"/>         <xs:attribute name="generalMethod" type="CL_FRBNY_SL_GENERAL_METHOD" use="optional"/>         <xs:attribute name="lastUpdated" type="lastUpdatedType" use="optional"/>         <xs:attribute name="operationID" type="operationIDType" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="time_format" type="CL_TIME_FORMAT" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Section" type="SectionType" substitutionGroup="cross:Section"/>   <xs:complexType name="SectionType">     <xs:complexContent>       <xs:extension base="cross:SectionType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="parSubmitted"/>           <xs:element ref="parAccepted"/>           <xs:element ref="parExtended"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="parSubmitted" type="parSubmittedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="parSubmittedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 54 

        <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="parAccepted" type="propositionsAcceptedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="propositionsAcceptedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="parExtended" type="parExtendedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="parExtendedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="method" type="CL_FRBNY_SL_METHOD" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="securityLendingType" type="CL_FRBNY_SL_TYPE" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:simpleType name="CL_FRBNY_SL_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="PS">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PA">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions accepted</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FREQ">     <xs:restriction base="xs:string">       <xs:enumeration value="DP"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 55 

        <xs:annotation>           <xs:documentation xml:lang="en">at least daily but multiple instances in one day are possible</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_TIME_FORMAT">     <xs:restriction base="xs:string">       <xs:enumeration value="PT1M">         <xs:annotation>           <xs:documentation xml:lang="en">minutely</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_DISCLAIMER">     <xs:restriction base="xs:string">       <xs:enumeration value="G">         <xs:annotation>           <xs:documentation xml:lang="en">general disclaimer</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_AVAILABILITY">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_SL_GENERAL_METHOD">     <xs:restriction base="xs:string">       <xs:enumeration value="G">         <xs:annotation>           <xs:documentation xml:lang="en">general securities lending method</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_SL_METHOD">     <xs:restriction base="xs:string">       <xs:enumeration value="PS">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PA">         <xs:annotation>           <xs:documentation xml:lang="en">auction results ‐ propositions accepted</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_CURRENCY_UNIT">     <xs:restriction base="xs:string">       <xs:enumeration value="USD">         <xs:annotation>           <xs:documentation xml:lang="en">United States dollar</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 56 

      </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_UNIT_MULT">     <xs:restriction base="xs:string">       <xs:enumeration value="5">         <xs:annotation>           <xs:documentation xml:lang="en">millions</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_DECIMALS">     <xs:restriction base="xs:string">       <xs:enumeration value="0">         <xs:annotation>           <xs:documentation xml:lang="en">zero</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_CONF">     <xs:restriction base="xs:string">       <xs:enumeration value="F">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_STATUS">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">present</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="B">         <xs:annotation>           <xs:documentation xml:lang="en">missing, no propositions received</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="H">         <xs:annotation>           <xs:documentation xml:lang="en">missing, holiday</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="M">         <xs:annotation>           <xs:documentation xml:lang="en">missing, other</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="operationIDType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="lastUpdatedType">     <xs:restriction base="xs:dateTime"/>   </xs:simpleType>   </xs:schema> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 57 

 

 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 58 

SDXML TOMO XML Schema 

http://www.newyorkfed.org/xml/schemas/v3_0/repoCrossSection.xsd 

 <?xml version="1.0" encoding="utf‐8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" xmlns:xsi="http://www.w3.org/2001/XMLSchema‐instance" xmlns="http://www.newyorkfed.org/xml/schemas/repoCrossSection" targetNamespace="http://www.newyorkfed.org/xml/schemas/repoCrossSection" elementFormDefault="qualified" attributeFormDefault="unqualified">   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/cross" schemaLocation="SDMXCrossSectionalData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:element name="DataSet" type="DataSetType" substitutionGroup="cross:DataSet"/>   <xs:complexType name="DataSetType">     <xs:complexContent>       <xs:extension base="cross:DataSetType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="Group"/>           <xs:element ref="Section"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Group" type="GroupType" substitutionGroup="cross:Group"/>   <xs:complexType name="GroupType">     <xs:complexContent>       <xs:extension base="cross:GroupType">         <xs:sequence>           <xs:element ref="Section" minOccurs="0" maxOccurs="unbounded"/>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="operationID" type="operationIDType" use="optional"/>         <xs:attribute name="auctionStatus" type="CL_AUCTION_STATUS" use="optional"/>         <xs:attribute name="auctionMethod" type="auctionMethodType" use="optional"/>         <xs:attribute name="operationTerm" type="operationTermType" use="optional"/>         <xs:attribute name="operationType" type="CL_OPERATION_TYPE" use="optional"/>         <xs:attribute name="dealDate" type="dealDateType" use="optional"/>         <xs:attribute name="maturityDate" type="maturityDateType" use="optional"/>         <xs:attribute name="settlementDate" type="settlementDateType" use="optional"/>         <xs:attribute name="operationCloseTime" type="operationCloseTimeType" use="optional"/>         <xs:attribute name="deliveryDate" type="deliveryDateType" use="optional"/>         <xs:attribute name="freq" type="CL_FREQ" use="optional"/>         <xs:attribute name="disclaimer" type="CL_FRBNY_DISCLAIMER" use="optional"/>         <xs:attribute name="lastUpdated" type="lastUpdatedType" use="optional"/>         <xs:attribute name="operationBusinessTerm" type="xs:string" use="optional"/>         <xs:attribute name="numberOfTranches" type="numberOfTranchesType" use="optional"/>         <xs:attribute name="operationLimit" type="targetAmountType" use="optional"/>         <xs:attribute name="targetAmountCurrency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="targetAmountMultiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="targetAmountDecimals" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="termBusinessDays" type="xs:int" use="optional"/>         <xs:attribute name="message" type="messageType" use="optional"/>         <xs:attribute name="participatingCounterparties" type="xs:int" use="optional"/>         <xs:attribute name="acceptedCounterparties" type="xs:int" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Section" type="SectionType" substitutionGroup="cross:Section"/>   <xs:complexType name="SectionType">     <xs:complexContent>       <xs:extension base="cross:SectionType">         <xs:choice minOccurs="0" maxOccurs="unbounded"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 59 

          <xs:element ref="totalPropositionsSubmitted"/>           <xs:element ref="totalPropositionsAccepted"/>           <xs:element ref="awardRate"/>           <xs:element ref="stopOutRate"/>           <xs:element ref="weightedAverageRate"/>           <xs:element ref="highestRateSubmitted"/>           <xs:element ref="lowestRateSubmitted"/>           <xs:element ref="pcntAtStopOut"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>         <xs:attribute name="repoMeasurementType" type="CL_MEASUREMENT_TYPE" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="totalPropositionsSubmitted" type="totalPropositionsSubmittedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="totalPropositionsSubmittedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="totalPropositionsAccepted" type="totalPropositionsAcceptedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="totalPropositionsAcceptedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="currency" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="stopOutRate" type="stopOutRateType" substitutionGroup="cross:Obs"/>   <xs:complexType name="stopOutRateType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="awardRate" type="awardRateType" substitutionGroup="cross:Obs"/>   <xs:complexType name="awardRateType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 60 

          <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="weightedAverageRate" type="weightedAverageRateType" substitutionGroup="cross:Obs"/>   <xs:complexType name="weightedAverageRateType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="highestRateSubmitted" type="highestRateSubmittedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="highestRateSubmittedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="lowestRateSubmitted" type="lowestRateSubmittedType" substitutionGroup="cross:Obs"/>   <xs:complexType name="lowestRateSubmittedType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/>         <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="pcntAtStopOut" type="pcntAtStopOutType" substitutionGroup="cross:Obs"/>   <xs:complexType name="pcntAtStopOutType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="multiplier" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="confidentiality" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="status" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:double" use="optional"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 61 

        <xs:attribute name="decimals" type="CL_DECIMALS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:simpleType name="operationIDType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="dealDateType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="deliveryDateType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="maturityDateType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="settlementDateType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="operationTermType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="operationCloseTimeType">     <xs:restriction base="xs:string"/>   </xs:simpleType>   <xs:simpleType name="lastUpdatedType">     <xs:restriction base="xs:dateTime"/>   </xs:simpleType>   <xs:simpleType name="auctionMethodType">     <xs:restriction base="xs:string"/>   </xs:simpleType>     <xs:simpleType name="CL_AVAILABILITY">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_CURRENCY_UNIT">     <xs:restriction base="xs:string">       <xs:enumeration value="USD">         <xs:annotation>           <xs:documentation xml:lang="en">United States dollar</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_UNIT_MULT">     <xs:restriction base="xs:string">       <xs:enumeration value="0">         <xs:annotation>           <xs:documentation xml:lang="en">units</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="6">         <xs:annotation>           <xs:documentation xml:lang="en">billions</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_DECIMALS">     <xs:restriction base="xs:string">       <xs:enumeration value="0"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 62 

        <xs:annotation>           <xs:documentation xml:lang="en">zero</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="2">         <xs:annotation>           <xs:documentation xml:lang="en">two</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="3">         <xs:annotation>           <xs:documentation xml:lang="en">three</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_CONF">     <xs:restriction base="xs:string">       <xs:enumeration value="F">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FREQ">     <xs:restriction base="xs:string">       <xs:enumeration value="I">         <xs:annotation>           <xs:documentation xml:lang="en">irregular</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_DISCLAIMER">     <xs:restriction base="xs:string">       <xs:enumeration value="G">         <xs:annotation>           <xs:documentation xml:lang="en">general disclaimer</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_FRBNY_RATE_UNIT">     <xs:restriction base="xs:string">       <xs:enumeration value="P">         <xs:annotation>           <xs:documentation xml:lang="en">percentage</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_STATUS">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">present</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="M">         <xs:annotation>           <xs:documentation xml:lang="en">missing, other</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 63 

  <xs:simpleType name="CL_BOOLEAN">     <xs:restriction base="xs:string">       <xs:enumeration value="true">         <xs:annotation>           <xs:documentation xml:lang="en">true</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="false">         <xs:annotation>           <xs:documentation xml:lang="en">false</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OPERATION_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="RP">         <xs:annotation>           <xs:documentation xml:lang="en">Repurchase Agreement</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="RRP">         <xs:annotation>           <xs:documentation xml:lang="en">Reverse Repurchase Agreement</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="MSP">         <xs:annotation>           <xs:documentation xml:lang="en">Matched Sale Purchase</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="O">         <xs:annotation>           <xs:documentation xml:lang="en">other</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>     <xs:simpleType name="CL_MEASUREMENT_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="AC">         <xs:annotation>           <xs:documentation xml:lang="en">Agency Collateral Operation</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TC">         <xs:annotation>           <xs:documentation xml:lang="en">Treasury  Collateral Operation</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="MB">         <xs:annotation>           <xs:documentation xml:lang="en">Mortgage‐Backed Collateral Operation</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="SO">         <xs:annotation>           <xs:documentation xml:lang="en">Stop Out Rate</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="WA">         <xs:annotation>           <xs:documentation xml:lang="en">Weighted Average Rate</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 64 

      </xs:enumeration>       <xs:enumeration value="HR">         <xs:annotation>           <xs:documentation xml:lang="en">Highest Rate Submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="LR">         <xs:annotation>           <xs:documentation xml:lang="en">Lowest Rate Submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TPS">         <xs:annotation>           <xs:documentation xml:lang="en">Total Propositions Submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="TPA">         <xs:annotation>           <xs:documentation xml:lang="en">Total Propositions Accepted</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_AUCTION_STATUS">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">announced</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="C">         <xs:annotation>           <xs:documentation xml:lang="en">completed</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="X">         <xs:annotation>           <xs:documentation xml:lang="en">cancelled</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="E">         <xs:annotation>           <xs:documentation xml:lang="en">extended</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>     <xs:simpleType name="targetAmountType">     <xs:restriction base="xs:double"/>   </xs:simpleType>   <xs:simpleType name="numberOfTranchesType">     <xs:restriction  base="xs:string"/>   </xs:simpleType>    <xs:simpleType name="messageType">       <xs:restriction  base="xs:string"/>     </xs:simpleType>     </xs:schema> 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 65 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 66 

 

 

 

SDXMLFXRatesXMLSchema  http://www.newyorkfed.org/xml/schemas/FX_Utility.xsd <?xmlversion="1.0"encoding="UTF‐8"?><xs:schema xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common" xmlns:utility="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/utility" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema‐instance" xmlns="http://www.newyorkfed.org/xml/schemas/FX/utility" targetNamespace="http://www.newyorkfed.org/xml/schemas/FX/utility" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:importnamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/utility"schemaLocation="SDMXUtilityData.xsd"/> <xs:importnamespace="http://www.SDMX.org/resources/SDMXML/schemas/v1_0/common"schemaLocation="SDMXCommon.xsd"/> <xs:elementname="DataSet"type="DataSetType"substitutionGroup="utility:DataSet"/> <xs:complexTypename="DataSetType"> <xs:complexContent> <xs:extensionbase="utility:DataSetType"> <xs:sequence> <xs:choicemaxOccurs="unbounded"> <xs:elementref="Series"/> </xs:choice> <xs:elementname="Annotations"type="common:AnnotationsType"minOccurs="0"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:elementname="Series"substitutionGroup="utility:Series"type="SeriesType"/> <xs:complexTypename="SeriesType"> <xs:complexContent> <xs:extensionbase="utility:SeriesType"> <xs:sequence> <xs:elementref="Key"/> <xs:elementref="Obs"maxOccurs="unbounded"/> <xs:elementname="Annotations"type="common:AnnotationsType"minOccurs="0"/> </xs:sequence> <xs:attributename="AVAILABILITY"type="CL_AVAILABILITY"use="required"/> <xs:attributename="DECIMALS"type="CL_DECIMALS"use="required"/> <xs:attributename="UNIT_MULT"type="CL_UNIT_MULT"use="required"/> <xs:attributename="TIME_FORMAT"type="CL_TIME_FORMAT"use="required"/> <xs:attributename="UNIT"type="CL_CURRENCY_UNIT"use="required"/> <xs:attributename="FX_METHOD"type="CL_FRBNY_FX_METHOD"use="required"/> <xs:attributename="DISCLAIMER"type="CL_FRBNY_DISCLAIMER"use="required"/> <xs:attributename="AUTHORITY"type="CL_FRBNY_AUTHORITY"use="optional"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:elementname="Key"substitutionGroup="utility:Key"type="KeyType"/> <xs:complexTypename="KeyType"> <xs:complexContent> <xs:extensionbase="utility:KeyType"> <xs:sequence>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 67 

<xs:elementname="FREQ"type="CL_FREQ"/> <xs:elementname="CURR"type="CL_CURRENCY_UNIT"/> <xs:elementname="FX_TIME"type="CL_FRBNY_FX_TIME"/> <xs:elementname="FX_TYPE"type="CL_FRBNY_FX_TYPE"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> <xs:elementname="Obs"substitutionGroup="utility:Obs"type="ObsType"/> <xs:complexTypename="ObsType"> <xs:complexContent> <xs:extensionbase="utility:ObsType"> <xs:sequence> <xs:elementname="TIME_PERIOD"type="common:TimePeriodType"/> <xs:elementname="OBS_VALUE"type="xs:double"nillable="true"/> <xs:elementname="Annotations"type="common:AnnotationsType"minOccurs="0"/> </xs:sequence> <xs:attributename="OBS_STATUS"type="CL_OBS_STATUS"use="required"/> <xs:attributename="OBS_CONF"type="CL_OBS_CONF"use="required"/> </xs:extension> </xs:complexContent> </xs:complexType> <xs:simpleTypename="CL_FREQ"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="D"> <xs:annotation> <xs:documentationxml:lang="en">daily</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_TIME_FORMAT"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="P1D"> <xs:annotation> <xs:documentationxml:lang="en">daily</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_FRBNY_DISCLAIMER"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="12"> <xs:annotation> <xs:documentationxml:lang="en">Thisinformationisintendedonlyforinformationalpurposes.Thedatawereobtainedfromsourcesbelievedtobereliablebutthisbankdoesnotguaranteetheiraccuracy,completenessorcorrectness.</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="S"> <xs:annotation> <xs:documentationxml:lang="en">Whiletheinformationcontainedhereinhasbeenobtainedfromsourcesweconsidertobereliable,itisfurnishedwithoutliabilityonourpart.</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_AVAILABILITY"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="A"> <xs:annotation> <xs:documentationxml:lang="en">free</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_CURRENCY_UNIT"> <xs:restrictionbase="xs:string">

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 68 

<xs:enumerationvalue="USD"> <xs:annotation> <xs:documentationxml:lang="en">UnitedStatesdollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="ATS"> <xs:annotation> <xs:documentationxml:lang="en">Austrianschilling</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="AUD"> <xs:annotation> <xs:documentationxml:lang="en">Australiandollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="BEF"> <xs:annotation> <xs:documentationxml:lang="en">Belgianfranc</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="BRL"> <xs:annotation> <xs:documentationxml:lang="en">Brazilianreal</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="CAD"> <xs:annotation> <xs:documentationxml:lang="en">Canadiandollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="CHF"> <xs:annotation> <xs:documentationxml:lang="en">Swissfranc</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="CNY"> <xs:annotation> <xs:documentationxml:lang="en">Chineseyuanrenminbi</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="DEM"> <xs:annotation> <xs:documentationxml:lang="en">Germanmark</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="DKK"> <xs:annotation> <xs:documentationxml:lang="en">Danishkrone</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="ESP"> <xs:annotation> <xs:documentationxml:lang="en">Spanishpeseta</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="EUR"> <xs:annotation> <xs:documentationxml:lang="en">Euro</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="FIM"> <xs:annotation> <xs:documentationxml:lang="en">Finnishmarkkha</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="FRF"> <xs:annotation> <xs:documentationxml:lang="en">Frenchfranc</xs:documentation> </xs:annotation>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 69 

</xs:enumeration> <xs:enumerationvalue="GBP"> <xs:annotation> <xs:documentationxml:lang="en">BritishpoundorPoundsterling</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="GRD"> <xs:annotation> <xs:documentationxml:lang="en">Greekdrachma</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="HKD"> <xs:annotation> <xs:documentationxml:lang="en">HongKongdollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="IEP"> <xs:annotation> <xs:documentationxml:lang="en">Irishpunt</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="ILP"> <xs:annotation> <xs:documentationxml:lang="en">IsrealShekel</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="INR"> <xs:annotation> <xs:documentationxml:lang="en">Indianrupee</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="ITL"> <xs:annotation> <xs:documentationxml:lang="en">Italianlira</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="JPY"> <xs:annotation> <xs:documentationxml:lang="en">Japaneseyen</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="KRW"> <xs:annotation> <xs:documentationxml:lang="en">SouthKoreanwon</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="LKR"> <xs:annotation> <xs:documentationxml:lang="en">SriLankanrupee</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="MXN"> <xs:annotation> <xs:documentationxml:lang="en">Mexicanpeso</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="MYR"> <xs:annotation> <xs:documentationxml:lang="en">Malaysianringgit</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="NLG"> <xs:annotation> <xs:documentationxml:lang="en">Dutchguilder</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="NOK"> <xs:annotation>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 70 

<xs:documentationxml:lang="en">UnitedStatesdollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="NZD"> <xs:annotation> <xs:documentationxml:lang="en">Norwegiankroner</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="PTE"> <xs:annotation> <xs:documentationxml:lang="en">Portugueseescudo</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="SEK"> <xs:annotation> <xs:documentationxml:lang="en">Swedishkrona</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="SGD"> <xs:annotation> <xs:documentationxml:lang="en">Singaporedollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="THB"> <xs:annotation> <xs:documentationxml:lang="en">Thaibaht</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="TWD"> <xs:annotation> <xs:documentationxml:lang="en">Taiwandollar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="VEB"> <xs:annotation> <xs:documentationxml:lang="en">Venezuelanbolivar</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="VEF"> <xs:annotation> <xs:documentationxml:lang="en">Venezuelanbolivarfuerte</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="ZAR"> <xs:annotation> <xs:documentationxml:lang="en">SouthAfricanrand</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_UNIT_MULT"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="0"> <xs:annotation> <xs:documentationxml:lang="en">units</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_DECIMALS"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="4"> <xs:annotation> <xs:documentationxml:lang="en">four</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="3"> <xs:annotation> <xs:documentationxml:lang="en">three</xs:documentation>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 71 

</xs:annotation> </xs:enumeration> <xs:enumerationvalue="2"> <xs:annotation> <xs:documentationxml:lang="en">two</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="1"> <xs:annotation> <xs:documentationxml:lang="en">one</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_OBS_CONF"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="F"> <xs:annotation> <xs:documentationxml:lang="en">free</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_OBS_STATUS"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="A"> <xs:annotation> <xs:documentationxml:lang="en">present</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="M"> <xs:annotation> <xs:documentationxml:lang="en">missing</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_FRBNY_FX_METHOD"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="S"> <xs:annotation> <xs:documentationxml:lang="en">spot</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="F"> <xs:annotation> <xs:documentationxml:lang="en">forward</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="12"> <xs:annotation> <xs:documentationxml:lang="en">noonbuying</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_FRBNY_AUTHORITY"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="12"> <xs:annotation> <xs:documentationxml:lang="en">noonbuying</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_FRBNY_FX_TIME"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="10"> <xs:annotation>

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 72 

<xs:documentationxml:lang="en">10am</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="12"> <xs:annotation> <xs:documentationxml:lang="en">12noon</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType> <xs:simpleTypename="CL_FRBNY_FX_TYPE"> <xs:restrictionbase="xs:string"> <xs:enumerationvalue="S"> <xs:annotation> <xs:documentationxml:lang="en">spot</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="3"> <xs:annotation> <xs:documentationxml:lang="en">3monthsforward</xs:documentation> </xs:annotation> </xs:enumeration> <xs:enumerationvalue="6"> <xs:annotation> <xs:documentationxml:lang="en">6monthsforward</xs:documentation> </xs:annotation> </xs:enumeration> </xs:restriction> </xs:simpleType></xs:schema>

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 73 

SDXMLCPFFRatesXMLSchema  http://www.newyorkfed.org/xml/schemas/CPFF/utility/CPFFSchema.xsd <?xml version="1.0" encoding="utf‐8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common" xmlns:utility="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility" xmlns:xsi="http://www.w3.org/2001/XMLSchema‐instance" xmlns="http://www.newyorkfed.org/xml/schemas/CPFF/utility" targetNamespace="http://www.newyorkfed.org/xml/schemas/CPFF/utility" elementFormDefault="qualified" attributeFormDefault="unqualified">    <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/utility" schemaLocation="SDMXUtilityData.xsd"/>    <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common" schemaLocation="SDMXCommon.xsd"/>    <xs:simpleType name="CL_RATE_TYPE">       <xs:restriction base="xs:string">          <xs:enumeration value="CPFFABCP">             <xs:annotation>                <xs:documentation>CPFF Secured Asset Backed Commercial Paper lending rate</xs:documentation>             </xs:annotation>          </xs:enumeration>          <xs:enumeration value="CPFFUNCP">             <xs:annotation>                <xs:documentation>CPFF Unsecured Commercial Paper lending rate</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_FREQ">       <xs:restriction base="xs:string">          <xs:enumeration value="D">             <xs:annotation>                <xs:documentation xml:lang="en">daily</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_TIME_FORMAT">       <xs:restriction base="xs:string">          <xs:enumeration value="P1D">             <xs:annotation>                <xs:documentation xml:lang="en">daily</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_AVAILABILITY">       <xs:restriction base="xs:string">          <xs:enumeration value="A">             <xs:annotation>                <xs:documentation xml:lang="en">free</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_RATE_UNIT">       <xs:restriction base="xs:string">          <xs:enumeration value="P">             <xs:annotation>                <xs:documentation xml:lang="en">percentage</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_UNIT_MULT">       <xs:restriction base="xs:string">          <xs:enumeration value="0"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 74 

            <xs:annotation>                <xs:documentation xml:lang="en">units</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_DECIMALS">       <xs:restriction base="xs:string">          <xs:enumeration value="2">             <xs:annotation>                <xs:documentation xml:lang="en">two</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_FRBNY_DISCLAIMER">       <xs:restriction base="xs:string">          <xs:enumeration value="G">             <xs:annotation>                <xs:documentation xml:lang="en">general disclaimer</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_OBS_STATUS">       <xs:restriction base="xs:string">          <xs:enumeration value="A">             <xs:annotation>                <xs:documentation xml:lang="en">present</xs:documentation>             </xs:annotation>          </xs:enumeration>          <xs:enumeration value="M">             <xs:annotation>                <xs:documentation xml:lang="en">missing</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:simpleType name="CL_OBS_CONF">       <xs:restriction base="xs:string">          <xs:enumeration value="F">             <xs:annotation>                <xs:documentation xml:lang="en">free</xs:documentation>             </xs:annotation>          </xs:enumeration>       </xs:restriction>    </xs:simpleType>    <xs:element name="DataSet" type="DataSetType" substitutionGroup="utility:DataSet"/>    <xs:complexType name="DataSetType">       <xs:complexContent>          <xs:extension base="utility:DataSetType">             <xs:sequence>                <xs:choice maxOccurs="unbounded">                   <xs:element ref="Series"/>                </xs:choice>                <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>             </xs:sequence>          </xs:extension>       </xs:complexContent>    </xs:complexType>    <xs:element name="Series" type="SeriesType" substitutionGroup="utility:Series"/>    <xs:complexType name="SeriesType">       <xs:complexContent>          <xs:extension base="utility:SeriesType">             <xs:sequence>                <xs:element ref="Key"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 75 

               <xs:element ref="Obs" maxOccurs="unbounded"/>                <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>             </xs:sequence>             <xs:attribute name="AVAILABILITY" type="CL_AVAILABILITY" use="required"/>             <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="required"/>             <xs:attribute name="DISCLAIMER" type="CL_FRBNY_DISCLAIMER" use="required"/>             <xs:attribute name="TIME_FORMAT" type="CL_TIME_FORMAT" use="required"/>             <xs:attribute name="UNIT" type="CL_RATE_UNIT" use="required"/>             <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="required"/>          </xs:extension>       </xs:complexContent>    </xs:complexType>    <xs:element name="Key" type="KeyType" substitutionGroup="utility:Key"/>    <xs:complexType name="KeyType">       <xs:complexContent>          <xs:extension base="utility:KeyType">             <xs:sequence>                <xs:element name="RATE_TYPE" type="CL_RATE_TYPE"/>                <xs:element name="FREQ" type="CL_FREQ"/>             </xs:sequence>          </xs:extension>       </xs:complexContent>    </xs:complexType>    <xs:element name="Obs" type="ObsType" substitutionGroup="utility:Obs"/>    <xs:complexType name="ObsType">       <xs:complexContent>          <xs:extension base="utility:ObsType">             <xs:sequence>                <xs:element name="TIME_PERIOD" type="common:TimePeriodType"/>                <xs:element name="OBS_VALUE" type="xs:string"/>                <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>             </xs:sequence>              <xs:attribute name="MATURITY_DATE" type="xs:string" use="required"/>              <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="required"/>              <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="required"/>                </xs:extension>       </xs:complexContent>    </xs:complexType> </xs:schema>     

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 76 

SDXMLTSLFRatesXMLSchema  

http://www.newyorkfed.org/xml/schemas/TSLF schema/TSLFSchema.xsd <?xml version="1.0" encoding="utf‐8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:common="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common" xmlns:cross="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross" xmlns:xsi="http://www.w3.org/2001/XMLSchema‐instance" xmlns="http://www.newyorkfed.org/xml/schemas/TSLF" targetNamespace="http://www.newyorkfed.org/xml/schemas/TSLF" elementFormDefault="qualified" attributeFormDefault="unqualified">   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/cross" schemaLocation="SDMXCrossSectionalData.xsd"/>   <xs:import namespace="http://www.SDMX.org/resources/SDMXML/schemas/v2_0/common" schemaLocation="SDMXCommon.xsd"/>   <xs:simpleType name="CL_FREQ">     <xs:restriction base="xs:string">       <xs:enumeration value="W">         <xs:annotation>           <xs:documentation xml:lang="en">weekly</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="OFFERING_AMOUNT">         <xs:annotation>           <xs:documentation xml:lang="en">announced offering amount</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="MAX_AWARD_AMOUNT">         <xs:annotation>           <xs:documentation xml:lang="en">announced maximum award amount</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="MIN_FEE_RATE">         <xs:annotation>           <xs:documentation xml:lang="en">announced minimum fee rate</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="SECURITY_AMOUNT_AVAILABLE_FOR_LOAN">         <xs:annotation>           <xs:documentation xml:lang="en">Treasury general collateral security amount available for loan</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PAR_SUBMITTED">         <xs:annotation>           <xs:documentation xml:lang="en">par submitted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="PAR_ACCEPTED">         <xs:annotation>           <xs:documentation xml:lang="en">par accepted</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="BID_TO_COVER">         <xs:annotation>           <xs:documentation xml:lang="en">bid‐to‐cover</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="STOP_OUT_RATE">         <xs:annotation>           <xs:documentation xml:lang="en">stop‐out rate</xs:documentation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 77 

        </xs:annotation>       </xs:enumeration>       <xs:enumeration value="RECALLED_SECURITY_AMOUNT_AVAILABLE_FOR_LOAN">         <xs:annotation>           <xs:documentation xml:lang="en">Recalled treasury general collateral security amount available for loan</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="REPLACEMENT_SECURITY_AMOUNT_AVAILABLE_FOR_LOAN">         <xs:annotation>           <xs:documentation xml:lang="en">Replacement treasury general collateral security amount available for loan</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="OBS_VALUEType">     <xs:restriction base="xs:double"/>   </xs:simpleType>   <xs:simpleType name="CL_AVAILABILITY">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_DISCLAIMER">     <xs:restriction base="xs:string">       <xs:enumeration value="G">         <xs:annotation>           <xs:documentation xml:lang="en">general disclaimer</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_CONF">     <xs:restriction base="xs:string">       <xs:enumeration value="F">         <xs:annotation>           <xs:documentation xml:lang="en">free</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_TIME_FORMAT">     <xs:restriction base="xs:string">       <xs:enumeration value="PT1M">         <xs:annotation>           <xs:documentation xml:lang="en">minutely</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_AUCTION_STATUS">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">announced</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="C">         <xs:annotation>           <xs:documentation xml:lang="en">completed</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 78 

      </xs:enumeration>       <xs:enumeration value="X">         <xs:annotation>           <xs:documentation xml:lang="en">cancelled</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="E">         <xs:annotation>           <xs:documentation xml:lang="en">extended</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_SECTION_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="ANNOUNCEMENT">         <xs:annotation>           <xs:documentation xml:lang="en">Announcement</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="RESULTS">         <xs:annotation>           <xs:documentation xml:lang="en">Results</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="SUBSTITUTIONS">         <xs:annotation>           <xs:documentation xml:lang="en">Substitutions</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_AUCTION_COLLATERAL_TYPE">     <xs:restriction base="xs:string">       <xs:enumeration value="S1">         <xs:annotation>           <xs:documentation xml:lang="en">Schedule 1</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="S2">         <xs:annotation>           <xs:documentation xml:lang="en">Schedule 2</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_TERM">     <xs:restriction base="xs:string">       <xs:enumeration value="28DAY">         <xs:annotation>           <xs:documentation xml:lang="en">28‐day</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="31DAY">         <xs:annotation>           <xs:documentation xml:lang="en">31‐day</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_DECIMALS">     <xs:restriction base="xs:string">       <xs:enumeration value="0">         <xs:annotation>           <xs:documentation xml:lang="en">zero</xs:documentation>         </xs:annotation> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 79 

      </xs:enumeration>       <xs:enumeration value="2">         <xs:annotation>           <xs:documentation xml:lang="en">two</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="4">         <xs:annotation>           <xs:documentation xml:lang="en">four</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_OBS_STATUS">     <xs:restriction base="xs:string">       <xs:enumeration value="A">         <xs:annotation>           <xs:documentation xml:lang="en">present</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="M">         <xs:annotation>           <xs:documentation xml:lang="en">missing</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_CURRENCY_UNIT">     <xs:restriction base="xs:string">       <xs:enumeration value="USD">         <xs:annotation>           <xs:documentation xml:lang="en">United States dollar</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:simpleType name="CL_UNIT_MULT">     <xs:restriction base="xs:string">       <xs:enumeration value="‐2">         <xs:annotation>           <xs:documentation xml:lang="en">percent</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="6">         <xs:annotation>           <xs:documentation xml:lang="en">millions</xs:documentation>         </xs:annotation>       </xs:enumeration>       <xs:enumeration value="9">         <xs:annotation>           <xs:documentation xml:lang="en">billions</xs:documentation>         </xs:annotation>       </xs:enumeration>     </xs:restriction>   </xs:simpleType>   <xs:element name="DataSet" type="DataSetType" substitutionGroup="cross:DataSet"/>   <xs:complexType name="DataSetType">     <xs:complexContent>       <xs:extension base="cross:DataSetType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="Group"/>           <xs:element ref="Section"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>       </xs:extension>     </xs:complexContent> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 80 

  </xs:complexType>   <xs:element name="Group" type="GroupType" substitutionGroup="cross:Group"/>   <xs:complexType name="GroupType">     <xs:complexContent>       <xs:extension base="cross:GroupType">         <xs:sequence>           <xs:element ref="Section" minOccurs="0" maxOccurs="unbounded"/>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="FREQ" type="CL_FREQ" use="optional"/>         <xs:attribute name="AVAILABILITY" type="CL_AVAILABILITY" use="optional"/>         <xs:attribute name="DISCLAIMER" type="CL_DISCLAIMER" use="optional"/>         <xs:attribute name="OPERATION_ID" type="xs:string" use="optional"/>         <xs:attribute name="LAST_UPDATED" type="xs:string" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="TIME_FORMAT" type="CL_TIME_FORMAT" use="optional"/>         <xs:attribute name="AUCTION_STATUS" type="CL_AUCTION_STATUS" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="Section" type="SectionType" substitutionGroup="cross:Section"/>   <xs:complexType name="SectionType">     <xs:complexContent>       <xs:extension base="cross:SectionType">         <xs:choice minOccurs="0" maxOccurs="unbounded">           <xs:element ref="OFFERING_AMOUNT"/>           <xs:element ref="MAX_AWARD_AMOUNT"/>           <xs:element ref="MIN_FEE_RATE"/>           <xs:element ref="SECURITY_AMOUNT_AVAILABLE_FOR_LOAN"/>           <xs:element ref="PAR_SUBMITTED"/>           <xs:element ref="PAR_ACCEPTED"/>           <xs:element ref="BID_TO_COVER"/>           <xs:element ref="STOP_OUT_RATE"/>           <xs:element ref="RECALLED_SECURITY_AMOUNT_AVAILABLE_FOR_LOAN"/>           <xs:element ref="REPLACEMENT_SECURITY_AMOUNT_AVAILABLE_FOR_LOAN"/>           <xs:element name="Annotations" type="common:AnnotationsType"/>         </xs:choice>         <xs:attribute name="TIME" type="xs:string" use="optional"/>         <xs:attribute name="SECTION_TYPE" type="CL_SECTION_TYPE" use="optional"/>         <xs:attribute name="AUCTION_COLLATERAL_TYPE" type="CL_AUCTION_COLLATERAL_TYPE" use="optional"/>         <xs:attribute name="AUCTION_START_TIME" type="xs:string" use="optional"/>         <xs:attribute name="AUCTION_CLOSE_TIME" type="xs:string" use="optional"/>         <xs:attribute name="SETTLEMENT_DATE" type="xs:string" use="optional"/>         <xs:attribute name="TERM" type="CL_TERM" use="optional"/>         <xs:attribute name="MATURITY_DATE" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="OFFERING_AMOUNT" type="OFFERING_AMOUNTObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="OFFERING_AMOUNTObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="MAX_AWARD_AMOUNT" type="MAX_AWARD_AMOUNTObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="MAX_AWARD_AMOUNTObsType"> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 81 

    <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="MIN_FEE_RATE" type="MIN_FEE_RATEObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="MIN_FEE_RATEObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="SECURITY_AMOUNT_AVAILABLE_FOR_LOAN" type="SECURITY_AMOUNT_AVAILABLE_FOR_LOANObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="SECURITY_AMOUNT_AVAILABLE_FOR_LOANObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="SECURITY_DESCRIPTION" type="xs:string" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="PAR_SUBMITTED" type="PAR_SUBMITTEDObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="PAR_SUBMITTEDObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="PAR_ACCEPTED" type="PAR_ACCEPTEDObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="PAR_ACCEPTEDObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 82 

        </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="BID_TO_COVER" type="BID_TO_COVERObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="BID_TO_COVERObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="STOP_OUT_RATE" type="STOP_OUT_RATEObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="STOP_OUT_RATEObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="DECIMALS" type="CL_DECIMALS" use="optional"/>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="RECALLED_SECURITY_AMOUNT_AVAILABLE_FOR_LOAN" type="RECALLED_SECURITY_AMOUNT_AVAILABLE_FOR_LOANObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="RECALLED_SECURITY_AMOUNT_AVAILABLE_FOR_LOANObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/>         <xs:attribute name="SECURITY_DESCRIPTION" type="xs:string" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType>   <xs:element name="REPLACEMENT_SECURITY_AMOUNT_AVAILABLE_FOR_LOAN" type="REPLACEMENT_SECURITY_AMOUNT_AVAILABLE_FOR_LOANObsType" substitutionGroup="cross:Obs"/>   <xs:complexType name="REPLACEMENT_SECURITY_AMOUNT_AVAILABLE_FOR_LOANObsType">     <xs:complexContent>       <xs:extension base="cross:ObsType">         <xs:sequence>           <xs:element name="Annotations" type="common:AnnotationsType" minOccurs="0"/>         </xs:sequence>         <xs:attribute name="OBS_CONF" type="CL_OBS_CONF" use="optional"/>         <xs:attribute name="OBS_STATUS" type="CL_OBS_STATUS" use="optional"/>         <xs:attribute name="CURRENCY_UNIT" type="CL_CURRENCY_UNIT" use="optional"/>         <xs:attribute name="UNIT_MULT" type="CL_UNIT_MULT" use="optional"/> 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 83 

        <xs:attribute name="SECURITY_DESCRIPTION" type="xs:string" use="optional"/>         <xs:attribute name="value" type="xs:string" use="optional"/>       </xs:extension>     </xs:complexContent>   </xs:complexType> </xs:schema> 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 84 

SDXMLOBFR‐EFFRSDXMLStructure  

https://www.newyorkfed.org/medialibrary/media/xml‐obfr/fundratestructure.xml 

SDXMLOBFR‐EFFRXMLSchema  

https://www.newyorkfed.org/medialibrary/media/xml‐obfr/fundRate.xsd

SDXMLOBFR‐EFFRCommonXMLSchema  

https://www.newyorkfed.org/medialibrary/media/xml‐obfr/fundRateCommon.xsd 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 85 

CSVandExcelFormatsThe CSV and Excel formats each start with a header row defining the columns of the data. Subsequent 

rows contain the data respective to the column headings. 

AuthenticationNo authentication is required for access to the Markets Operations API at this time.   

MethodListRest: 

PrimaryDealerMethods pd/rss/release.xml 

pd/get/menu.json (not public) 

pd/list/asof.[FORMAT] 

pd/list/seriesbreaks.[FORMAT] 

pd/list/timeseries.[FORMAT] 

pd/get/asof/[DATE].[FORMAT] 

pd/get/[SERIESBREAK]/timeseries/[TIMESERIES].[FORMAT] 

 

SOMAMethods soma/summary.[FORMAT] 

SOMAMBSMethods soma/mbs/list/release.[FORMAT] 

soma/mbs/list/asof.[FORMAT] 

soma/mbs/get/release_log.[FORMAT] 

soma/mbs/get/release/[DATE].[FORMAT] 

soma/mbs/get/asof/[DATE].[FORMAT] 

soma/mbs/get/cusip/[CUSIP].[FORMAT] 

soma/mbs/get/quarterly.[FORMAT] 

SOMANon‐MBSMethods soma/non‐mbs/list/release. [FORMAT] 

soma/non‐mbs/list/asof.[FORMAT] 

soma/non‐mbs/get/release_log.[FORMAT] 

soma/non‐mbs/get/[SECURITYTYPE]/release/[DATE].[FORMAT] 

soma/non‐mbs/get/[SECURITYTYPE]/asof/[DATE].[FORMAT] 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 86 

soma/non‐mbs/get/cusip/[CUSIP].[FORMAT] 

soma/non‐mbs/get/monthly.[FORMAT] 

POMOMethods pomo/[OPERATION]/[RECORDTYPE]/[REPORTTYPE]/latest.[FORMAT] 

pomo/[OPERATION]/results/[REPORTTYPE]/lastTwoWeeks.[FORMAT] 

pomo/[OPERATION]/results/[REPORTTYPE]/search.[FORMAT] 

pomo/[OPERATION]/results/[REPORTTYPE]/last/[LASTAMOUNT].[FORMAT] 

Soap: 

TOMOMethods getTomo 

getLatestTomo 

getTomoUpdates 

getLastNTomo 

SecuritiesLendingMethods getSecuritiesLending 

getLatestSecuritiesLending 

getLastNSecuritiesLending 

getSecuritiesLendingUpdates 

FXRatesMethods getAllLatestNoonRates 

getAllNoonRates 

getLatestNoonRate 

getNoonRates 

CPFFMethods getLatestCPFF 

getCPFFOneDate 

getLastNCPFF 

getCPFF 

TSLFMethods getLatestTSLF 

getTSLF 

getTSLFOneDate 

getTSLFUpdates 

getLastNTSLF 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 87 

EFFRMethods retrieve 

retrieveLastN 

 

OBFRMethods retrieve 

retrieveLastN 

 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 88 

Conventions

TerminologyAS OF DATE 

RELEASE DATE 

DataTypesType:   FORMAT 

Format:  STRING 

Details:  One of the following values. Please refer to the method’s specification for the available 

format according to that method. 

  SDMX.XML 

  XML 

  CSV 

  XLS 

  XLSX 

  JSON 

Type:   DATE 

Format:  YYYY‐MM‐DD 

Details:  (none) 

Type:  CUSIP 

Format:  9‐character alphanumeric 

Details:  (none) 

Type:  NONMBS‐SECURITYTYPE 

Format:  string 

Details:  One of the following values: 

  ALL 

  BILLS 

  NOTESBONDS 

  FRN 

  TIPS 

  AGENCIES 

Type:    TIMESERIES Format:   string Details:  Key representation of an available time series.  List of available time series can be 

retrieved using the Primary Dealer Method /pd/list/timeseries.[FORMAT] Type:  SERIESBREAK Format:  string 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 89 

Details:  Key representation of an available series break for the Primary Dealer Methods.   A detailed list of available Series breaks can be retrieved using the Primary Dealer method /pd/list/seriesbreak.[FORMAT] 

  One of the following values:   SBP2001 (Pre‐July 2001)   SBP2013 (Pre‐April 2013)   SBN2013 (Pre‐January 2015) 

SBN2015 (January 2015 and On)   Type:    OPERATION Format:   string Details:  Operation type; it can be one of the following values:  

all purchases sales 

 Type:    RECORDTYPE Format:   string Details:  Operation status; it can be one of the following values:  

preannouncements announcements results 

 Type:    REPORTTYPE Format:   string Details:  Specify details to include inclusions/exclusions in the response.  It can be one of the 

following values:  summary details 

   Type:    LASTAMOUNT Format:   number Details:  Specify the amount of records to return; it can be a value from 1‐100.    

RSSFeeds

pd/rss/release.xml

DescriptionThis feed provides RSS formatted information on the latest Primary Dealer Statistical releases based on 

as of date.  The RSS feed includes a link to the released data by as of date in XML format.  

/soma/rss/feeds/release.xml 

DescriptionThis feed provides information on the latest release based on as of date. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 90 

/soma/rss/feeds/soma.xml 

DescriptionThis feed provides the current total SOMA Holdings. 

All feeds adhere to the RSS‐CB specification which is defined here: 

http://www.cbwiki.net/wiki/index.php/RSS-CBMain 

ReferenceRest: 

PrimaryDealerMethods

pd/list/asof.[FORMAT]

DescriptionProvides a list of available As Of dates for Primary Dealer data releases paired with the associated Series 

Break.  

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of As Of dates its respective Series Break in the requested format for use as input to other 

API methods. 

pd/get/menu.[FORMAT]

DescriptionProvides metadata for building the Primary Dealer data browser GUI. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  JSON 

Response:  A hierarchical metadata structure (JSON) representing the available series breaks and time 

series paired with data informing the presentation tier for the GUI menu display. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 91 

pd/list/seriesbreaks.[FORMAT]

DescriptionProvides a list of available Series breaks identified by label, series break id, start date and end date.. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of Series breaks in the requested format. 

pd/list/timeseries.[FORMAT]

DescriptionProvides a list of available time series paired with the respective Series breaks for use as input to other 

API methods. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of time series and its respective Series breaks in the requested format. 

pd/get/[SERIESBREAK]/asof/[DATE].[FORMAT]

DescriptionRetrieves the full set of available time series data for a given Series Break and As Of date. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON, SDMX 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 92 

Response:  A list in the requested format of Time series and its respective value  for the requested Series 

Break and As Of date .  

pd/get/[SERIESBREAK]/series/[TIMESERIES].[FORMAT]

DescriptionRetrieves the full set of Time series data for a given Series Break.  A Time Series record is identified by As 

Of date and value. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON, SDMX 

Response:  A list in the requested format of As Of dates and its respective values for the requested series 

break and Time series.   A Times Series record is identified by As Of date and value. 

pd/get/all/timeseries.[FORMAT].zip

DescriptionRetrieves the full set of data for all Time series across all series breaks. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  CSV, SDMX, XML 

Response:  A zipped file containing a list in the requested format of all the Time series data across all series 

breaks.  A Time series record is identified by As Of date and value. 

 

SOMAMethods

soma/summary.[FORMAT]

DescriptionThis provides a time series summary of the historical SOMA holdings. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 93 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of as of dates and the respective holdings in the requested format. 

SOMAMBSMethods

soma/mbs/list/release.[FORMAT]

DescriptionThis provides a list of all available release dates available for request. These release dates may then be 

used as parameters for other methods. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of release dates in the requested format. 

 

soma/mbs/list/asof.[FORMAT]

DescriptionThis provides a list of all available as of dates available for request. These as of dates may then be used 

as parameters for other methods. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of as of dates in the requested format. 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 94 

soma/mbs/get/release_log.[FORMAT]

DescriptionThis provides a list of the past 14 weeks of release events, including the as‐of date and release date. 

Should an as of date be re‐released for correction or otherwise it will be listed here. These as of dates 

may then be used as parameters for other methods. NOTE: Because this method provides a list of all 

release events, not current releases, the release dates returned in the get/release_log response do 

not necessarily correlate to data available via the get/release method. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of as of and release dates in the requested format. 

soma/mbs/get/release/[DATE].[FORMAT]

DescriptionThis method provides the full details of an MBS release for the requested date and format. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

DATE 

  Required:  YES 

  Data Type:  DATE 

  Values:  All release dates from soma/mbs/list/release.[FORMAT] 

Response:  The release details in the requested format. 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 95 

soma/mbs/get/asof/[DATE].[FORMAT]

DescriptionThis method provides the full details of the most recent MBS release As Of requested date in the 

requested format. Please note: the As Of date and Release date may differ. The release offered will be 

the most recent release no later than the requested As Of date. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

DATE 

  Required:  YES 

  Data Type:  DATE 

  Values:  Any valid DATE 

Response:  The release details in the requested format. 

 

soma/mbs/get/cusip/[CUSIP].[FORMAT]

DescriptionThis method provides the ability to retrieve the MBS releases for a given CUSIP. Please note: given the 

potential size of the data, a limited number of records may be returned. Included in the response will be 

URLs to retrieve the full set of data programmatically. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

CUSIP 

  Required:  YES 

  Data Type:  string 

  Values:  9 alphanumeric characters 

Response:  The CUSIP holding’s details in the requested format. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 96 

soma/mbs/get/quarterly.[FORMAT]

DescriptionThis provides a detailed time series of the historical SOMA MBS holdings at quarterly intervals. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML.ZIP, CSV.ZIP 

Response:  The MBS release details, a set per quarter, in the requested format. 

 

 

SOMANon‐MBSMethods

soma/non‐mbs/list/release.[FORMAT]

DescriptionThis provides a list of all available non‐MBS release dates available for request. These release dates may 

then be used as parameters for other methods. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of as of dates of non‐MBS data in the requested format. 

 

soma/non‐mbs/list/asof.[FORMAT]

DescriptionThis provides a list of all available non‐MBS as of dates available for request. These as of dates may then 

be used as parameters for other methods. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 97 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of as of dates of non‐MBS data in the requested format. 

 

soma/non‐mbs/get/release_log.[FORMAT]

DescriptionThis provides a list of the past 14 weeks of releases, including the as of date and release date. Should a 

as of date be re‐released for correction or otherwise it will be listed here. These as of dates may then be 

used as parameters for other methods. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

Response:  A list of as of and release dates in the requested format. 

soma/non‐mbs/get/[SECURITYTYPE]/release/[DATE].[FORMAT]

DescriptionThis method provides the full details of a non‐MBS release for the requested date and format. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

DATE 

  Required:  YES 

  Data Type:  DATE 

  Values:  All release dates from soma/non‐mbs/list/release.[FORMAT] 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 98 

SECURITYTYPE 

  Required:  YES 

  Data Type:  NONMBS‐SECURITYTYPE 

  Values:  Per data type definition. Default use should be ALL 

Response:  The non‐MBS release details in the requested format. 

 

soma/non‐mbs/get/[SECURITYTYPE]/asof/[DATE].[FORMAT]

DescriptionThis method provides the full details of the most recent non‐MBS Release As Of requested date in the 

requested format. Please note: the As Of date and Release date may differ. The Release offered will be 

the most recent release no later than the requested As Of date. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

DATE 

  Required:  YES 

  Data Type:  DATE 

  Values:  Any valid DATE 

SECURITYTYPE 

  Required:  YES 

  Data Type:  NONMBS‐SECURITYTYPE 

  Values:  Per data type definition. Default use should be ALL 

Response:  The Release details in the requested format. 

 

soma/non‐mbs/get/cusip/[CUSIP].[FORMAT]

DescriptionThis method provides the ability to retrieve the non‐MBS releases for a given CUSIP. Please note: given 

the potential size of the data, a limited number of records may be returned. Included in the response 

will be URLs to retrieve the full set of data programmatically. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 99 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML, CSV, XLS, XLSX, JSON 

CUSIP 

  Required:  YES 

  Data Type:  string 

  Values:  9 alphanumeric characters 

Response:  The CUSIP holding’s details in the requested format. 

 

soma/non‐mbs/get/monthly.[FORMAT]

DescriptionThis provides a detailed time series of the historical SOMA non‐MBS holdings at monthly intervals. 

ParametersFORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  XML.ZIP, CSV.ZIP 

Response:  The non‐MBS release details, a set per quarter, in the requested format. 

 

POMOMethods

pomo/[OPERATION]/[RECORDTYPE]/[REPORTTYPE]/latest.[FORMAT]

DescriptionThis method provides the latest Permanent OMOs: Treasury operations. 

OPERATION 

  Required:  YES 

  Data Type:  OPERATION 

  Values:  all, sales, purchases 

RECORDTYPE 

  Required:  YES 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 100 

  Data Type:  RECORDTYPE 

  Values:  announcements, results, operations 

REPORTTYPE 

  Required:  YES 

  Data Type:  REPORTTYPE 

  Values:  summary, details 

FORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  SDMX.XML, CSV, XLS, XLSX, JSON 

Response:  A list of operations returned in the requested format. 

 

pomo/[OPERATION]/results/[REPORTTYPE]/lastTwoWeeks.[FORMAT]

DescriptionThis method provides the last two weeks of Permanent OMOs: Treasury operations from the current 

date. 

OPERATION 

  Required:  YES 

  Data Type:  OPERATION 

  Values:  all, sales, purchases 

REPORTTYPE 

  Required:  YES 

  Data Type:  REPORTTYPE 

  Values:  summary, details 

FORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  SDMX.XML, CSV, XLS, XLSX, JSON 

Response:  A list of operations returned in the requested format. 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 101 

pomo/[OPERATION]/results/[REPORTTYPE]/search.[FORMAT]

DescriptionThis method provides an advanced search to retrieve Permanent OMOs: Treasury operations.  

OPERATION 

  Required:  YES 

  Data Type:  OPERATION 

  Values:  all, sales, purchases 

REPORTTYPE 

  Required:  YES 

  Data Type:  REPORTTYPE 

  Values:  summary, details 

FORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  SDMX.XML, CSV, XLS, XLSX, JSON 

ADVANCED FILTER PARAMETERS  

  startdate 

    Required:  No 

    Data Type:  Date 

    Format :   MM/DD/YYYY 

  enddate 

    Required:  No 

    Data Type:  Date 

    Format :   MM/DD/YYYY 

  securityType:   

    Required:  No 

    Data Type:  String 

    Values :   treasury, ageny, both 

    *Note: ageny returns Agency type operations. 

  cusip 

    Required:  No 

Data Type:  string 

Values:    9 alphanumeric characters (partial included) 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 102 

  desc 

    Required:  No 

Data Type:  string 

*Note: This parameter will filter the Security Description field. 

Example: 

http://markets.newyorkfed.org/api/pomo/all/results/details/search.json?callback=search&startdate=10

/01/2014&enddate=11/21/2014&cusip=912810FT0   

Response:  A list of operations returned in the requested format. 

 

pomo/[OPERATION]/results/[REPORTTYPE]/last/[LASTAMOUNT].[FORMAT]

DescriptionThis method provides the last “X” amount of of Permanent OMOs: Treasury operations from the current 

date. 

OPERATION 

  Required:  YES 

  Data Type:  OPERATION 

  Values:  all, sales, purchases 

REPORTTYPE 

  Required:  YES 

  Data Type:  REPORTTYPE 

  Values:  summary, details 

LASTAMOUNT 

  Required:  YES 

  Data Type:  Number 

  Values:  1‐100 

FORMAT 

  Required:  YES 

  Data Type:  FORMAT 

  Values:  SDMX.XML, CSV, XLS, XLSX, JSON 

Response:  A list of operations returned in the requested format. 

Soap: 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 103 

TOMOMethods   

getLatestTomo

DescriptionProvides the latest TOMO operation 

Parameters(NONE) 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getTomo

DescriptionProvides TOMO operations between two dates (inclusive) 

ParametersDate1 

  Required:  YES 

  Data Type:  xsd:datetime 

Date2 

  Required:  YES 

  Data Type:  xsd:datetime 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getTomoUpdates

DescriptionProvides TOMO operations after the time specified 

ParametersstartTime 

  Required:  YES 

  Data Type:  xsd:datetime 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 104 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getLastNTomo

DescriptionProvides the last N TOMO operations where N is the number of operations 

Parametersn 

  Required:  YES 

  Data Type:  xsd:double 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 105 

SecuritiesLendingMethods   

getLatestSecuritiesLending

DescriptionProvides the latest operation 

Parameterstotals_or_details 

  Required:  YES 

  Data Type:  xsd:string 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getSecuritiesLending

DescriptionProvides operations between two dates (inclusive) 

Parameterstotals_or_details 

  Required:  YES 

  Data Type:  xsd:string 

Date1 

  Required:  YES 

  Data Type:  xsd:datetime 

Date2 

  Required:  YES 

  Data Type:  xsd:datetime 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getLastNSecuritiesLending

DescriptionProvides the last N operations where N is the number of operations 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 106 

Parameterstotals_or_details 

  Required:  YES 

  Data Type:  xsd:string 

  Required:  YES 

  Data Type:  xsd:double 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

getSecuritiesLendingUpdates

DescriptionProvides the updated securities lending information since a specified date 

Parameterstotals_or_details 

  Required:  YES 

  Data Type:  xsd:string 

startTime 

  Required:  YES 

  Data Type:  xsd:datetime 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 107 

 

TSLFMethods   

getLatestTSLF

DescriptionProvides the latest operation 

ParametersNone 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getTSLF

DescriptionProvides operations between two dates (inclusive) 

ParametersDate1 

  Required:  YES 

  Data Type:  xsd:datetime 

Date2 

  Required:  YES 

  Data Type:  xsd:datetime 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getLastNTSLF

DescriptionProvides the last N operations where N is the number of operations 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 108 

Parametersn 

  Required:  YES 

  Data Type:  xsd:double 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

getTSLFUpdates

DescriptionProvides the updated operation information since a specified date 

ParametersstartTime 

  Required:  YES 

  Data Type:  xsd:datetime 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

 

getTSLFOneDate

DescriptionProvides the operation information for a specified date 

ParametersstartTime 

  Required:  YES 

  Data Type:  xsd:datetime 

 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 109 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 110 

CPFFMethods   

getLatestCPFF

DescriptionProvides the latest operation 

ParametersNone 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getCPFF

DescriptionProvides operations between two dates (inclusive) 

ParametersDate1 

  Required:  YES 

  Data Type:  xsd:datetime 

Date2 

  Required:  YES 

  Data Type:  xsd:datetime 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

getLastNCPFF

DescriptionProvides the last N operations where N is the number of operations 

Parametersn 

  Required:  YES 

  Data Type:  xsd:double 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 111 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

getCPFFOneDate

DescriptionProvides the operation information for a specified date 

ParametersstartTime 

  Required:  YES 

  Data Type:  xsd:datetime 

 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 112 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 113 

FX‐RatesMethods

   

getAllLatestNoonRates

DescriptionProvides the latest noon rates  

ParametersNone 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

 

getLatestNoonRate

DescriptionProvides the noon rate for a specific day and currency 

Parametersdate1 

  Required:  YES 

  Data Type:  xsd:datetime 

currency_code 

  Required:  YES 

  Data Type:  xsd:string 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

 

getNoonRates

DescriptionProvides the noon rates for a specific date range and currency 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 114 

Parametersdate1 

  Required:  YES 

  Data Type:  xsd:datetime 

date2 

  Required:  YES 

  Data Type:  xsd:datetime 

currency_code 

  Required:  YES 

  Data Type:  xsd:string 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

 

 

getAllNoonRates

DescriptionProvides the noon rates for a specific day 

Parametersdate1 

  Required:  YES 

  Data Type:  xsd:datetime 

Response:  A String containing an SDMXML Response.   The SDMXML response contains the operation 

detail requested. 

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 115 

EFFRMethods

retrieve/autorates_fedfunds_external/services/v1_0/fedfunds/xml/retrieve 

DescriptionProvides operations between the times specified.  

Parametersf – The Date to search from    Required:  YES   Data Type:  String    Format:    MMDDYYYY 

   

t ‐‐ The Date to search to    Required:  YES   Data Type:  String    Format:    MMDDYYYY 

 

typ ‐‐ The Document type    Required:  YES   Data Type:  String    Format:    One of the following:  

[VOLUME, RATE, TARGET,DAILY_HIGH, DAILY_LOW, DAILY_AVERAGE, 

STANDARD_DEVIATION] 

 

Note:  TARGET,DAILY_HIGH, DAILY_LOW, DAILY_AVERAGE, STANDARD_DEVIATION are only 

available prior to series break (3/1/2016) 

Response:  An SDMXML Response containing the operation detail requested. 

 

retrieveLastN/autorates_fedfunds_external/services/v1_0/fedfunds/xml/retrieveLastN 

DescriptionProvides the specified number of the latest  

Parameters 

typ ‐‐ The Document type    Required:  YES   Data Type:  String  

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 116 

  Format:    One of the following:  

[VOLUME, RATE, TARGET,DAILY_HIGH, DAILY_LOW, DAILY_AVERAGE, 

STANDARD_DEVIATION] 

 

Note:  TARGET,DAILY_HIGH, DAILY_LOW, DAILY_AVERAGE, STANDARD_DEVIATION are only 

available prior to series break (3/1/2016) 

 

Response:  An SDMXML Response containing the operation detail requested. 

 

 

 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 117 

OBFRMethods

retrieve/autorates_obfr_external/services/v1_0/obfr/excel/retrieve 

DescriptionProvides operations between the times specified.  

Parametersf – The Date to search from    Required:  YES   Data Type:  String    Format:    MMDDYYYY 

   

t ‐‐ The Date to search to    Required:  YES   Data Type:  String    Format:    MMDDYYYY 

 

typ ‐‐ The Document type    Required:  YES   Data Type:  String    Format:    One of the following:  

[VOLUME, RATE] 

 

Response:  An SDMXML Response containing the operation detail requested. 

 

retrieveLastN/autorates_obfr_external/services/v1_0/obfr/xml/retrieveLastN 

DescriptionProvides the specified number of the latest  

Parameters 

typ ‐‐ The Document type    Required:  YES   Data Type:  String  

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 118 

  Format:    One of the following:  

[VOLUME, RATE] 

 

Response:  An SDMXML Response containing the operation detail requested. 

 

 

 

   

Document v19, API RST v1.4, SPv2.0   Markets Data API Reference  P a g e  | 119 

 

 

Version History Party  Date Change Made

MOMA Portal  8/23 Updated with Autorates/MOMA release information.  Includes TOMO and Securities Lending interfaces 

MOMA Portal  12/5 Updated with Autorates/MOMA release information.  Includes TOMO interface updates. 

MOMA Portal 1/30 Updated with Autorates/MOMA release information.  

Includes TSLF, CPFF and FX‐Rates interface updates. 

MOMA Portal 2/29 Updated with Autorates/MOMA release information.  

Includes EFFR and OBFR interface updates.