<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.moex.com/spfi-1" xmlns:ms="http://www.moex.com/spfi-1" xmlns:fpml="http://www.fpml.org/FpML-5/confirmation" targetNamespace="http://www.moex.com/spfi-1" elementFormDefault="qualified" version="1.1">
<xs:annotation>
<xs:documentation xml:lang="ru">Xsd-схема отчета о заявках на рынке СФПИ. Версия: 1.1.</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd">
<xs:annotation>
<xs:documentation xml:lang="ru">Импортируем пространство имён XML.</xs:documentation>
</xs:annotation>
</xs:import>
<!--  ms:moexOrderReport  -->
<xs:element name="OrdersReport">
<xs:annotation>
<xs:documentation xml:lang="ru">Корневой элемент.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="header" type="Header"/>
<xs:element name="ordersList" type="OrdersList" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<!--  Header type  -->
<xs:complexType name="Header">
<xs:annotation>
<xs:documentation xml:lang="ru">Заголовок сообщения.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="messageId" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Номер сообщения.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="sentBy" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Отправитель.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="sendTo" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Получатель.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TradeDate" type="xs:date" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Торговая дата.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="creationTimestamp" type="xs:dateTime">
<xs:annotation>
<xs:documentation xml:lang="ru">Время генерации отчета.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<!--  OrderList type  -->
<xs:complexType name="OrdersList">
<xs:annotation>
<xs:documentation xml:lang="ru">Список заявок на СПФИ от участника в течение торгового дня.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="OrderNumber" type="xs:integer">
<xs:annotation>
<xs:documentation xml:lang="ru">Уникальный идентификатор ордера.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TradeDate" type="xs:dateTime">
<xs:annotation>
<xs:documentation xml:lang="ru">Дата и время регистрации ордера.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="OwnerParty" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Фирма-владелец торгового счета, на котором зарегистрирован ордер.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Client" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Код клиента.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CounterParty" type="xs:string" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Контрагент. Заполняется только для адресных ордеров.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Product">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="IRS"/>
<xs:enumeration value="OIS"/>
<xs:enumeration value="XCCY"/>
<xs:enumeration value="Basis"/>
<xs:enumeration value="FX Swap"/>
<xs:enumeration value="FX Ndf"/>
<xs:enumeration value="FX Fwd"/>		  
</xs:restriction>
</xs:simpleType>
<xs:annotation>
<xs:documentation xml:lang="ru">Продукт.</xs:documentation>
</xs:annotation>   
</xs:element>
<xs:element name="Instrument" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Инструмент.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Direction">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Buy"/>
<xs:enumeration value="Sell"/>		  
</xs:restriction>
</xs:simpleType>
<xs:annotation>
<xs:documentation xml:lang="ru">Направление.</xs:documentation>
</xs:annotation>   
</xs:element>
<xs:element name="Price" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="ru">Цена.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="FxRate" type="xs:decimal" minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Курс.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Term" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Срок.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Date1" type="xs:date">
<xs:annotation>
<xs:documentation xml:lang="ru">Дата 1.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Date2" type="xs:date">
<xs:annotation>
<xs:documentation xml:lang="ru">Дата 2.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Amount1" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="ru">Сумма 1.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="InitialAmount" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="ru">Первоначальный объем.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="ExecutedAmount" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="ru">Исполненный объем.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Remainder" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="ru">Остаточный объем.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Currency1" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Валюта 1.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Amount2" type="xs:decimal">
<xs:annotation>
<xs:documentation xml:lang="ru">Сумма 2.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Currency2" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Валюта 2.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Csa" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Валюта CSA.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CounterPartyFullName" type="xs:string"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Полное наименование контрагента. Заполняется только адресных ордеров.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TradeTime" type="xs:time">
<xs:annotation>
<xs:documentation xml:lang="ru">Время регистрации ордера.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Account" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Счет, на котором зарегистрирован ордер.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="User" type="xs:string">
<xs:annotation>
<xs:documentation xml:lang="ru">Логин, под которым зарегистрирован ордер.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Comment" type="xs:string"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Текстовый комментарий.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Status">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Active"/>
<xs:enumeration value="Draft"/>
<xs:enumeration value="Calcelled"/>		  
<xs:enumeration value="Executed"/>		
<xs:enumeration value="Rejected"/>		
</xs:restriction>
</xs:simpleType>
<xs:annotation>
<xs:documentation xml:lang="ru">Статус.</xs:documentation>
</xs:annotation>   
</xs:element>
<xs:element name="Board">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Public"/>
<xs:enumeration value="Address"/>
</xs:restriction>
</xs:simpleType>
<xs:annotation>
<xs:documentation xml:lang="ru">Режим торгов.</xs:documentation>
</xs:annotation>   
</xs:element>
<xs:element name="AdditionalPaymentAmount" type="xs:decimal"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Сумма платежа премии.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AdditionalPaymentDate" type="xs:date"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Дата платежа премии.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="AdditionalPaymentCurrency" type="xs:string"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Валюта платежа премии.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="RejectionReason" type="xs:string"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Причина отклонения.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Broker" type="xs:string"  minOccurs="0">
<xs:annotation>
<xs:documentation xml:lang="ru">Брокер.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>