<?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="120"/>
		</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>Тип: "Hаименование фирмы" / Type: "Clearing Member name"</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="0"/>
      <xs:maxLength value="120"/>
    </xs:restriction>
  </xs:simpleType>
	
	<xs:simpleType name="FIRM_INN_Type">
		<xs:annotation>
			<xs:documentation>Тип: "ИНН / TIN участника клиринга" / Type: "Clearing Member INN / TIN"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="128"/>
		</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="Понедельник"/>
      <xs:enumeration value="Вторник"/>
      <xs:enumeration value="Среда"/>
      <xs:enumeration value="Четверг"/>
      <xs:enumeration value="Пятница"/>
      <xs:enumeration value="Суббота"/>
      <xs:enumeration value="Воскресенье"/>
	  <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="SECURITYID_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Идентификатор ценной бумаги" / Type: "Security Identifier of the supplied asset" / Type: "Security Identifier"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="12"/>
		</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="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="YES_NO_Type">
		<xs:annotation>
			<xs:documentation>Тип: " "Y"-YES, "N"-NO" / 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="POSTYPE_Type">
    <xs:annotation>
      <xs:documentation>Тип "1 - Позиция по денежным средствам" / Type " 1- Cash position "</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="1"/>
      <xs:enumeration value="1"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="COMTYPE_Type">
    <xs:annotation>
      <xs:documentation>
      	Тип: "1 - Комиссионное вознаграждение за организацию торгов,
        2 - Клиринговая комиссия,
        3 - Лицензионное вознаграждение"
		Type : "1	Trade arrangement fees 2	- Clearing fees 3	- License fee "
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="1"/>
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="3"/>
    </xs:restriction>
  </xs:simpleType>
	
	<xs:simpleType name="FLOAT_20.2_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Вещественное число с длиной дробной части = 2" / 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>Тип: "Вещественное число с длиной дробной части = 4" / 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="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="6"/>
		</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="BANKACCCODE_Type">
    <xs:annotation>
      <xs:documentation>Тип "Код денежного регистра" /  Type: "Cash Register code"</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="32"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="DEPUNITID_Type">
    <xs:annotation>
      <xs:documentation>Тип "Счет (субсчет) депо для учета ценных бумаг" / Type: "Custody (sub-account) account for securities record"</xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:maxLength value="17"/>
    </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">
		<!--Время формирования документа MSK-->
	</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="ОАО Отправитель" 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:simpleType name="FEE_Type">
		<xs:annotation>
			<xs:documentation>
					0 - всего по денежной позиции
					1 - оборотная часть с уплатой в день заключения договора
					2 - постоянная часть 
					3 - возвратная премия по данному типу комиссии 
					4 - штраф за возникновение задолженности 
					5 – комиссия за принудительное закрытие позиции
					6 - оборотная часть с уплатой в день исполнения договора
					7 – комиссия за проведение процедуры замены валюты денежных средств обеспечения  
					8 – комиссия за списание с Торгового счета/Субсчета депо ценных бумаг иностранного эмитента, учитываемых в качестве Средств обеспечения Участника клиринга, на основании поручения на списание ценных бумаг в количестве, превышающем совокупное количество ценных бумаг данного иностранного эмитента, внесенных в  качестве Средств обеспечения данным Участником клиринга
					9 – комиссия за прием Поручений на клиринг внебиржевых договоров по заключенным Конверсионным договорам с уплатой в день заключения договораприема поручения
					10 – комиссия за прием Поручений на клиринг внебиржевых договоров по заключенным Конверсионным договорам с уплатой в день исполнения Конверсионного договора
					11 – комиссия за прием Поручений на клиринг внебиржевых договоров по заключенным Внебиржевым электронным договорам
					12 – комиссия за договоры репо с акциями, ДР и ETF, заключённые на основании Заявок репо, в которых указаны Торгово-клиринговые счета, зарегистрированные на одного Участника торгов
					13 – комиссия за договоры репо с облигациями, заключённые на основании Заявок репо, в которых указаны Торгово-клиринговые счета, зарегистрированные на одного Участника торгов
					14 - ежемесячный биржевой сбор
					15 - клиринговый сбор за возврат Средств обеспечения УК в иностранной валюте
					16 - клиринговый сбор за ведение клиринговых регистров УК в целях ведения отдельного учета в рамках ТКС, зарегистрированного для отдельного клиента УК
					17 - ведение клиринговых регистров в части внесения записей по клиринговым регистрам, связанных с исполнением нетто-обязательств				
					18 - биржевой сбор за торговлю в дополнительную утреннюю сессию
					19 - клиринговый сбор за обработку поручений на внесение, списание и перевод ценных бумаг на/c субсчета депо
					20 - иные сборы
					21 - списание клиринговой комиссии за учет индивидуального клирингового обеспечения в Евро
					22 - списание клиринговой комиссии за учет коллективного клирингового обеспечения в Евро
					23 - списание клиринговой комиссии за обработку форм W8BEN
					24 - списание клиринговой комиссии за обработку форм при выплате доходов и раскрытие бенефициаров
					25 - возмещение расходов МФБ, связанных с выплатой дохода по ценным бумагам
					26 - возмещение иных расходов МФБ
					0 - total cash position
					1	- negotiable part with payment on the day of agreement
					2	- fixed fee for maintenance of clearing registers
					3	- refundable premium for this type of fee
					5	- fee for forced closing of a position
					6	- negotiable part with payment on the day of agreement
					7	– fee for replacing the currency of collateral funds
					8	– fee for debiting a Trading Account/custody sub-account of foreign securities recorded as the Collateral Assets of the Clearing Member by order for debiting securities in the amount exceeding the total number of securities of such foreign issuer deposited as the Collateral Assets of such Clearing Member
					9	- fee for acceptance of OTC Contracts Clearing Orders under Conversion Agreements, payable on the day of acceptance
					10	- fee for acceptance of OTC Contracts Clearing Orders under Conversion Agreements, payable on the day of Conversion Agreement performance
					12 – fee for repurchase agreements executed in the Targeted Repo with Central Counterparty trading mode by Orders specifying trading and clearing accounts registered for one Trading Member
					13 - fee for repurchase agreements executed in the Targeted Repo with Central Counterparty trading mode by Orders specifying trading and clearing accounts registered for one Trading Member
					14	- monthly exchange fee
					15	- clearing fee for repayment of the Collateral Assets of the Clearing Member in foreign currency
					16	- clearing fees for maintaining clearing registers of the Clearing Member for separate records within TCA registered for an individual client of the Clearing Member
					17	- clearing fee for settlements based on the results of agreement clearing
					18	- exchange fee for trading in the additional morning session
					19	- clearing fee for processing orders for crediting/debiting/transferring securities to/from the Custody Sub-Account
					20	- other fees
					21	- debiting clearing fees for accounting of individual clearing collateral in EUR
					22	- debiting clearing fees for accounting of collective clearing collateral in EUR 
					23	- debiting clearing fees for processing W8-BEN identification forms
					24	- debiting clearing fees for processing forms upon income payment and beneficiary disclosure
					25	- reimbursement of the CC expenses related to the payment of income on securities
					26	- reimbursement of other expenses of the CC
			</xs:documentation>
		</xs:annotation>		
		<xs:restriction base="xs:string">
			<xs:maxLength value="3"/>
			<xs:enumeration value="0"/>
			<xs:enumeration value="1"/>
			<xs:enumeration value="2"/>
			<xs:enumeration value="3"/>
			<xs:enumeration value="4"/>
			<xs:enumeration value="5"/>
			<xs:enumeration value="6"/>
			<xs:enumeration value="7"/>
			<xs:enumeration value="8"/>
			<xs:enumeration value="9"/>
			<xs:enumeration value="10"/>			
			<xs:enumeration value="11"/>
			<xs:enumeration value="12"/>			
			<xs:enumeration value="13"/>
			<xs:enumeration value="14"/>
			<xs:enumeration value="15"/>
			<xs:enumeration value="16"/>
			<xs:enumeration value="17"/>          	
			<xs:enumeration value="18"/>
			<xs:enumeration value="19"/>
			<xs:enumeration value="20"/>
			<xs:enumeration value="21"/>
			<xs:enumeration value="22"/>          	
			<xs:enumeration value="23"/>	
			<xs:enumeration value="24"/>
			<xs:enumeration value="25"/>
			<xs:enumeration value="26"/>   		
		</xs:restriction>
	</xs:simpleType>
		
	
	<xs:element name="RTS_DOC">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="DOC_REQUISITES"/>
				<xs:element ref="MFB15"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
	<xs:element name="MFB15">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="FIRM" 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="MainFirmId" type="FIRMID_Type" use="required"/>
      <xs:attribute name="FirmName" type="FIRMNAME_LONG_Type" use="required"/>
	  <xs:attribute name="MainFirmName" type="FIRMNAME_LONG_Type" use="optional"/>
	  <xs:attribute name="MainFirmINN" type="FIRM_INN_Type" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="FIRM">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="SETTLE" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="FirmID" type="FIRMID_Type" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="SETTLE">
    <xs:complexType>
      <xs:sequence>
      	<xs:element ref="TYPE" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="ClrAccCode" type="ClrAccCode_Type" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="TYPE">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="CURRENCY" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="ComType" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string"><!--1 - Комиссионное вознаграждение за организацию торгов, 2 - Клиринговая комиссия,3 - Лицензионное вознаграждение;-->
            <xs:length value="1"/>
            <xs:enumeration value="1"/>
            <xs:enumeration value="2"/>
            <xs:enumeration value="3"/>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="CURRENCY">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="FEE" 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="FEE">
    <xs:complexType>
      <xs:attribute name="FeeType" type="FEE_Type" use="required" />      
      <xs:attribute name="TotComm" type="FLOAT_20.2_Type" use="required"/>
      <xs:attribute name="TotVAT" type="FLOAT_20.2_Type" use="optional"/>
      <xs:attribute name="Executed" type="YES_NO_Type" use="optional"/>
      <xs:attribute name="DateFrom" type="xs:date" use="optional"/>
      <xs:attribute name="DateTo" type="xs:date" use="optional"/>
    </xs:complexType>
  </xs:element>
</xs:schema>