﻿<!-- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
    <xs:simpleType name="DOCTYPEID_Type">
		<xs:annotation>
			<xs:documentation>Type: "Unique document type in the Electronic Document Management System"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="20"/>
			<xs:pattern value="[A-Z,0-9,_,//,А-Я]{1,20}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DOCNO_Type">
		<xs:annotation>
			<xs:documentation>Type: "Unique document tracking number in the Electronic Document Management System"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="20"/>
			<xs:pattern value="[A-Z,0-9,//]{1,20}"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SENDERID_Type">
		<xs:annotation>
			<xs:documentation> Type: "Sender Identifier"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="7"/>
			<xs:minLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SENDERNAME_Type">
		<xs:annotation>
			<xs:documentation>Short name of the sender</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="512"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="REMARKS_Type">
		<xs:annotation>
			<xs:documentation>Type: "Notes to the document"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="120"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="RECNO_Type">
		<xs:annotation>
			<xs:documentation>Type "Record number"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="11"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FIRMID_Type">
		<xs:annotation>
			<xs:documentation>Type: "Clearing Member Identifier"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FIRMNAME_Type">
		<xs:annotation>
			<xs:documentation>Type: "Short name of member"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="512"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FIRMNAME_LONG_Type">
		<xs:annotation>
			<xs:documentation>Type: "Clearing Member name"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="1024"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FIRM_INN_Type">
		<xs:annotation>
			<xs:documentation>Type: "Clearing Member INN"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="BOARDID_Type">
		<xs:annotation>
			<xs:documentation>
			Instrument group code:
                ITS - ITS Qualified Investments
      </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="16"/>
			<xs:enumeration value="ITS"/>
		</xs:restriction>
	</xs:simpleType>
  <xs:simpleType name="BOARDTYPE_Type">
    <xs:annotation>
      <xs:documentation>
		  Instrument group number:
          7 - ITS Qualified Investments
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:integer">
      <xs:enumeration value="7"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="BOARD_NAME_Type">    
		<xs:annotation>
			<xs:documentation> Type: "Name of trading mode"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="64"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SECURITYID_Type">
		<xs:annotation>
			<xs:documentation>Type: "Security Identifier of the supplied asset"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SEC_SHORT_NAME_Type">
		<xs:annotation>
			<xs:documentation>Type: "Short name of the supplied asset "</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="256"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SEC_TYPE_Type">
		<xs:annotation>
			<xs:documentation> Type: "Security type"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SECURITY_TYPE_Type">
		<xs:annotation>
			<xs:documentation>
				Security category:
				101 - Ordinary shares or REIT
				102 - Preferred shares
				105 - ETF
				107 - ADR
				108 - GDR
				110 – Mortgage Note
				201 - Government Bonds
				202 - Municipal Bonds
				203 – Central Bank Bonds 
				204 - Corporate Bonds
				205 – Credit Institution bonds
				206 – Exchange bonds	
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:enumeration value="101"/>
			<xs:enumeration value="102"/>
			<xs:enumeration value="105"/>
			<xs:enumeration value="107"/>
			<xs:enumeration value="108"/>
			<xs:enumeration value="110"/>
			<xs:enumeration value="201"/>
			<xs:enumeration value="202"/>
			<xs:enumeration value="203"/>
			<xs:enumeration value="204"/>
			<xs:enumeration value="205"/>
			<xs:enumeration value="206"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRDACCID_Type">
		<xs:annotation>
			<xs:documentation> Type: "Trade account identifier"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CURRENCYID_Type">
		<xs:annotation>
			<xs:documentation>Type: "Currency identifier"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CURRENCYNAME_Type">
		<xs:annotation>
			<xs:documentation>Type: "Currency name"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="30"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SETTLECODE_Type">
		<xs:annotation>
			<xs:documentation>ТType: "Settle code"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="BUYSELL_Type">
		<xs:annotation>
			<xs:documentation>Type: "Deal type 'B'-Buy, 'S'- Sell"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="B"/>
			<xs:enumeration value="S"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="YES_NO_Type">
		<xs:annotation>
			<xs:documentation>Type: " "Y"-YES, "N"-NO"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="Y"/>
			<xs:enumeration value="N"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADE_PERIOD_Type">
		<xs:annotation>
			<xs:documentation>
			Trading session:
				MAIN – The main trading session.
				EVE – Additional evening trading session.
				MORN – Additional morning trading session.
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="5"/>
			<xs:enumeration value="MAIN"/>
			<xs:enumeration value="MORN"/>
			<xs:enumeration value="EVE"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DECIMALS_Type">
		<xs:annotation>
			<xs:documentation>Type "Number of significant decimal places"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="1"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="QUANTITY_Type">
		<xs:annotation>
			<xs:documentation>Type: "Quantity"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FLOAT_20.2_Type">
		<xs:annotation>
			<xs:documentation>Type: "Real number with fractional length = 2"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="2"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FLOAT_20.4_Type">
		<xs:annotation>
			<xs:documentation>Type: "Real number with fractional length = 4"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FLOAT_20.6_Type">
		<xs:annotation>
			<xs:documentation>Type: "Real number with fractional length = 6"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="6"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="FLOAT_20.8_Type">
		<xs:annotation>
			<xs:documentation>Type: "Real number with fractional length = 8"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="8"/>
		</xs:restriction>
	</xs:simpleType>	
	<xs:simpleType name="PRICE_Type">
		<xs:annotation>
			<xs:documentation>Type: "Price, rate"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="8"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PRICETYPE_Type">
		<xs:annotation>
			<xs:documentation>
				Type: "Price type:
				PERC - percentage, CASH – in settlement currency
				"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
			<xs:enumeration value="PERC"/>
			<xs:enumeration value="CASH"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="WEEKDAY_Type">
		<xs:annotation>
			<xs:documentation>Type: "Weekday"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="20"/>
			<xs:enumeration value="Monday"/>
			<xs:enumeration value="Tuesday"/>
			<xs:enumeration value="Wednesday"/>
			<xs:enumeration value="Thursday"/>
			<xs:enumeration value="Friday"/>
			<xs:enumeration value="Saturday"/>
			<xs:enumeration value="Sunday"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADENO_Type">
		<xs:annotation>
			<xs:documentation>Type: "Deal/order/report number in trade system"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="20"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ORDER_TYPE_Type">
		<xs:annotation>
			<xs:documentation>
				Order type:
				Market Order (MARKET) = 1
				Limit Order (LIMIT) = 2
				Hidden Order (HIDDEN) = 100
				Iceberg Order (ICEBERG) = 101
				Hidden Order with dynamic price (HIDDEN_DYNAMIC) = 102
				Negotiated Order (NEGOTIATED) = 103
				Additional Liquidity Order (OUT-OF-BOOK) = 104
				Closing Auction Order (CLOSING_AUCTION) = 123
				Offset Order (CLOSING_OFFSET) = 124
				Quotation Order (PROTO_RFQ_INITIATE) = 125
				Non-Quotation Order (PROTO_RFQ_CONFIRM) = 126
				Special (SPECIAL) = 127
				Liquidity monger order(LIQUIDITY_MONGER) = 133
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="100"/>
			<xs:enumeration value="101"/>
			<xs:enumeration value="102"/>
			<xs:enumeration value="103"/>
			<xs:enumeration value="104"/>
			<xs:enumeration value="123"/>
			<xs:enumeration value="124"/>
			<xs:enumeration value="125"/>
			<xs:enumeration value="126"/>
			<xs:enumeration value="127"/>
			<xs:enumeration value="133"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADE_TYPE_Type">
		<xs:annotation>
			<xs:documentation>
			Agreement type:
				T – concluded on the basis of a public Order.
				N – concluded on the basis of a targeted Order.
				D – concluded without submission of an Order
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="1"/>
			<xs:enumeration value="T"/>
			<xs:enumeration value="N"/>
			<xs:enumeration value="D"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="EXCHANGEID_Type">
		<xs:annotation>
			<xs:documentation>Type: "Marker place identifier"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CLIENT_CODE_Type">
		<xs:annotation>
			<xs:documentation>Type: "Client short code"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="CLIENT_DETAILS_Type">
		<xs:annotation>
			<xs:documentation>Type "INN or Passort number of client or Cliaring Member"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="41"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DETAILS_Type">
		<xs:annotation>
			<xs:documentation>Type: "Client/member identification data (INN or Passort number)"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="20"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Версия 1.0 Широкова О.-->
	<xs:simpleType name="TradePlaceName_Type">
		<xs:annotation>
			<xs:documentation>Type: "Name of the trade organizer who registered the contract"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="64"/>
		</xs:restriction>
	</xs:simpleType>
    <xs:simpleType name="TYPET_type">
    <xs:annotation>
      <xs:documentation>
		  Type of agreement entered into for settling a potential default and for performance of obligations under the agreements:  
		  1 – repurchase agreement in case of default by the Clearing Member; 2 – purchase and sale agreement in case of default by the Clearing Member;
		  3	- repurchase agreement in case of default by the CC;
		  4	- sale and purchase agreement in case of default by the CC;
		  5	- repurchase agreement executed by the CC to attract assets to settle defaults;
		  6	- sale and purchase agreement executed by the CC to forcibly close the Clearing Member's position;
		  7	- sale and purchase agreement executed for fulfillment of obligations (agreement executed for position transfer to another trading operator);
		  8	- agreement executed to close the position after performance of the supply/settlement futures contract;
		  9	–agreement executed after performance of an option contract
	  </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="1"/>
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
      <xs:enumeration value="4"/>
      <xs:enumeration value="6"/>
      <xs:enumeration value="7"/>
      <xs:enumeration value="8"/>
      <xs:enumeration value="9"/>
    </xs:restriction>
  </xs:simpleType>

	<xs:simpleType name="TRADETYPE_Type">
		<xs:annotation>
			<xs:documentation>
				Agreement type:
				T – by untargeted order;
				N – by targeted order;
				D – without order;
				O – OTC contract executed on the basis of Type 1 OTC Offer
				P – OTC contract executed on the basis of Type 2 OTC Offer
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:minLength value="1"/>
			<xs:maxLength value="1"/>
			<xs:enumeration value="T"/>
			<xs:enumeration value="N"/>
      <xs:enumeration value="D"/>
      <xs:enumeration value="O"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="INFTYPE_Type">
		<xs:annotation>
			<xs:documentation>
		Type "Information type:"
		1	- earlier performed agreements;
		2	- performed agreements of the current day;
		3	- agreements to be performed.
      </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:minInclusive value="1"/>
			<xs:maxInclusive value="3"/>
		</xs:restriction>
	</xs:simpleType>

  <xs:simpleType name="TRADE_INSTRUMENT_TYPE_Type">
  <xs:annotation>
    <xs:documentation>
		Trading instrument type:
		1	– futures
		2	– options.
		3	– instruments with partial coverage.
		4	– repurchase agreements.
		5 – pair of sale and purchase agreements.
		9 – instruments with full coverage.
    </xs:documentation>
  </xs:annotation>
  <xs:restriction base="xs:string">
    <xs:length value="1"/>
    <xs:enumeration value="1"/>
    <xs:enumeration value="2"/>
    <xs:enumeration value="3"/>
    <xs:enumeration value="4"/>
    <xs:enumeration value="5"/>
    <xs:enumeration value="9"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="CLEARINGTYPE_Type">
		<xs:annotation>
			<xs:documentation>
				Type "Type of clearing pool"
                    C - clearing pool with partial coverage
      </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:length value="1"/>
			<xs:enumeration value="C"/>
		</xs:restriction>
	</xs:simpleType>
  
	<xs:simpleType name="SESSION_Type">
		<xs:annotation>
			<xs:documentation>
        Type "Clearing session number"
        1 - for agreements with clearing on trading results and contracts with partial collateral
      </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="1"/>
		</xs:restriction>
	</xs:simpleType>
  
	<xs:simpleType name="REPOPART_Type">
		<xs:annotation>
			<xs:documentation>Type "Repo part (first or second)"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:minInclusive value="1"/>
			<xs:maxInclusive value="2"/>
		</xs:restriction>
	</xs:simpleType>
	
	<xs:simpleType name="REPOPERIOD_Type">
		<xs:annotation>
			<xs:documentation>Type "Repo period"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:totalDigits value="11"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="ClrAccCode_Type">
		<xs:annotation>
			<xs:documentation>Type "TCA Code"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="16"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADE_MODEID_Type">
		<xs:annotation>
			<xs:documentation>
				Trading mode/OTC contract Identifier
					1	- Main trading mode
					2	- Negotiated Transaction Mode
					3	- Negotiated repurchase with the Central Counterparty
					10	- RFQ trading mode
					12	- Open-market repurchase with the Central Counterparty
					13  - Negotiated currency swap agreements with the Central Counterparty
					14	- Open-market currency swap agreements with the Central Counterparty 
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="10"/>
			<xs:enumeration value="12"/>
			<xs:enumeration value="13"/>
			<xs:enumeration value="14"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADE_MODENAME_Type">
		<xs:annotation>
			<xs:documentation>
				Trading mode/OTC contract Identifier
					1	- Main trading mode
					2	- Negotiated Transaction Mode
					3	- Negotiated repurchase with the Central Counterparty
					10	- RFQ trading mode
					12	- Open-market repurchase with the Central Counterparty
					13  - Negotiated currency swap agreements with the Central Counterparty
					14	- Open-market currency swap agreements with the Central Counterparty 					
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="64"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="REGNUMBER_Type">
		<xs:annotation>
			<xs:documentation>Type "State registration number"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="64"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="STRING16_Type">
		<xs:annotation>
			<xs:documentation>Type "Login from order"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="16"/>
		</xs:restriction>
	</xs:simpleType>
	
	<xs:complexType name="DOC_REQUISITES_Type">
		<xs:annotation>
			<xs:documentation>Details of the document in the electronic document management system</xs:documentation>
		</xs:annotation>
		<xs:attribute name="DOC_DATE" type="xs:date" use="required"> 

	<!--Дата формирования документа-->
	</xs:attribute>
	<xs:attribute name="DOC_TIME" type="xs:time" use="required">
		<!--Время формирования документа-->
	</xs:attribute>
	<xs:attribute name="DOC_NO" type="DOCNO_Type" use="required">
		<!--Уникальный учетный номер документа-->
	</xs:attribute>
	<xs:attribute name="DOC_TYPE_ID" type="DOCTYPEID_Type"  use="optional">
		<!--Идентификатор типа документа-->
	</xs:attribute>
	<xs:attribute name="SENDER_ID" type="SENDERID_Type" use="required">
		<!--Идентификатор фирмы-отправителя документа-->
	</xs:attribute>
	<xs:attribute name="SENDER_NAME" type="SENDERNAME_Type" default="OAO SENDER" use="optional">
		<!--Краткое наименование отправителя-->
	</xs:attribute>
	<xs:attribute name="RECEIVER_ID" type="SENDERID_Type" use="required">
		<!--Код ЭДО РТС получателя -->
	</xs:attribute>
	<xs:attribute name="REMARKS" type="REMARKS_Type" use="optional">
		<!--Текст примечания к документу-->
	</xs:attribute>
	</xs:complexType>
	
	
	<xs:element name="RTS_DOC">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="DOC_REQUISITES"/>
				<xs:element ref="ITS03"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
	<xs:element name="ITS03">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="CLRACC" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ReportDate" type="xs:date" use="required"/>
			<xs:attribute name="ReportDesc" type="xs:string" use="optional"/>
			<xs:attribute name="ReportVersion" type="xs:string" use="optional"/>
			<xs:attribute name="Weekday" type="WEEKDAY_Type" use="optional"/>
			<xs:attribute name="FirmId" type="FIRMID_Type" use="required"/>
			<xs:attribute name="FirmName" type="FIRMNAME_LONG_Type" use="required"/>
			<xs:attribute name="FirmINN" type="FIRM_INN_Type" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="CLRACC">
		<xs:complexType>			
			<xs:sequence>
				<xs:element ref="SUBCLRACC" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ClrAccCode" type="ClrAccCode_Type" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="SUBCLRACC">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="CURRENCY" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="SubClrAccCode" type="ClrAccCode_Type" use="optional"/>
		</xs:complexType>
	</xs:element>

	<xs:element name="CURRENCY">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="BOARD" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="CurrencyId" type="CURRENCYID_Type" use="required"/>
			<xs:attribute name="CurrencyName" type="CURRENCYNAME_Type" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="BOARD">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="SETTLEDATE" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="BoardId" type="BOARDID_Type" use="required"/>
			<xs:attribute name="BoardType" type="BOARDTYPE_Type" use="optional"/>
			<xs:attribute name="BoardName" type="BOARD_NAME_Type" use="optional"/>
		</xs:complexType>
	</xs:element>	
	<xs:element name="SETTLEDATE">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="SECURITY" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="SettleDate" type="xs:string" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="SECURITY">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="RECORDS" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="SecurityId" type="SECURITYID_Type" use="required"/>
			<xs:attribute name="SecShortName" type="SEC_SHORT_NAME_Type" use="required"/>
			<xs:attribute name="ISIN" type="SECURITYID_Type" use="optional"/>
			<xs:attribute name="RegNumber" type="REGNUMBER_Type" use="optional"/>
			<xs:attribute name="FaceValue" type="FLOAT_20.8_Type" use="optional"/>
			<xs:attribute name="SecCurrencyId" type="CURRENCYID_Type" use="required"/>
			<xs:attribute name="SecurityType" type="SECURITY_TYPE_Type" use="optional"/>
			<xs:attribute name="PriceType" type="PRICETYPE_Type" use="optional"/>
     </xs:complexType>
	</xs:element>
	<xs:element name="RECORDS">
		<xs:complexType>
			<xs:attribute name="RecNo" type="RECNO_Type" use="required"/>
			<xs:attribute name="TradeNo" type="TRADENO_Type" use="required"/>
			<xs:attribute name="PrimaryTradeNo" type="TRADENO_Type" use="optional"/>
			<xs:attribute name="TradeDate" type="xs:date" use="required"/>
			<xs:attribute name="TradeTime" type="xs:time" use="required"/>
			<xs:attribute name="TradePeriod" type="TRADE_PERIOD_Type" use="required"/>
			<xs:attribute name="SpecialPeriod" type="xs:string" use="optional"/>
			<xs:attribute name="PrimaryOrderID" type="xs:integer" use="optional"/>
			<xs:attribute name="IsExtraLiquidity" type="YES_NO_Type" use="optional"/>
			<xs:attribute name="OrderID" type="xs:integer" use="optional"/>
			<xs:attribute name="OrderType" type="ORDER_TYPE_Type" use="optional"/>
			<xs:attribute name="UserId" type="STRING16_Type" use="optional"/>
			<xs:attribute name="Comment" type="xs:string" use="optional"/>
			<xs:attribute name="IsMM" type="YES_NO_Type" use="optional"/>
			<xs:attribute name="BuySell" type="BUYSELL_Type" use="required"/>
			<xs:attribute name="SettleCode" type="STRING16_Type" use="required"/>
			<xs:attribute name="TradeType" type="TRADETYPE_Type" use="optional"/>
			<xs:attribute name="TradeInstrumentType" type="TRADE_INSTRUMENT_TYPE_Type" use="optional"/>
			<xs:attribute name="TradeModeId" type="TRADE_MODEID_Type" use="optional"/>
			<xs:attribute name="TradeModeName" type="TRADE_MODENAME_Type" use="optional"/>				
			<xs:attribute name="Decimals" type="DECIMALS_Type" use="optional"/>
			<xs:attribute name="Price" type="PRICE_Type" use="optional"/>
			<xs:attribute name="Quantity" type="QUANTITY_Type" use="required"/>
			<xs:attribute name="Value" type="FLOAT_20.2_Type" use="required"/>
			<xs:attribute name="Amount" type="FLOAT_20.2_Type" use="required"/>
			<xs:attribute name="Balance" type="QUANTITY_Type" use="required"/>
			<xs:attribute name="ExchComm" type="FLOAT_20.4_Type" use="optional"/>
			<xs:attribute name="ClrComm" type="FLOAT_20.4_Type" use="optional"/>
			<xs:attribute name="ClientDetails" type="CLIENT_DETAILS_Type" use="optional"/>
			<xs:attribute name="CcpCode" type="FIRMID_Type" use="optional"/>
			<xs:attribute name="CCPShortName" type="FIRMNAME_Type" use="optional"/>
			<xs:attribute name="CCPDetails" type="CLIENT_DETAILS_Type" use="optional"/>	
			<xs:attribute name="CPFirmId" type="FIRMID_Type" use="optional"/>
			<xs:attribute name="CPFirmShortName" type="FIRMNAME_Type" use="optional"/>
			<xs:attribute name="CPFirmDetails" type="CLIENT_DETAILS_Type" use="optional"/>			
			<xs:attribute name="OtcCodeInitiator" type="STRING16_Type" use="optional"/>
			<xs:attribute name="OtcCodeConfirmator" type="STRING16_Type" use="optional"/>
			<xs:attribute name="ClientCode" type="CLIENT_CODE_Type" use="optional"/>
			<xs:attribute name="AccInt" type="FLOAT_20.2_Type" use="optional"/>
			<xs:attribute name="Price2" type="PRICE_Type" use="optional"/>
			<xs:attribute name="RepoRate" type="FLOAT_20.8_Type" use="optional"/>
			<xs:attribute name="RepoPart" type="REPOPART_Type" use="optional"/>
			<xs:attribute name="RepoPeriod" type="REPOPERIOD_Type" use="optional"/>
			<xs:attribute name="Type" type="TYPET_type" use="optional"/>
			<xs:attribute name="StampDuty" type="FLOAT_20.2_Type" use="optional"/>
			<xs:attribute name="StampDutyPrice" type="FLOAT_20.8_Type" use="optional"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
