<?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="30"/>
		</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="BOARDID_Type">
		<xs:annotation>
			<xs:documentation>
				Режим торгов:
				EQR – Российские ЦБ
				EQF – Иностранные ЦБ
				EBOND – Еврооблигации
				CRCY_F – Иностранная валюта
				EQCIS - Иностранные ценные бумаги эмитентов из стран СНГ
				OTC - Инструменты ОТС (может применяться для рынка Казахстан)
				OTCBOND – Инструменты ОТС (облигации) (может применяться для рынка Казахстан)
				Instrument group code:
				EQR – Russian securities
				EQF – Foreign Securities 
				EBOND – Eurobonds
				EQCIS - ИForeign securities of issuers from CIS countries 
                OTC - OTC instruments
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="16"/>
			<xs:enumeration value="EQR"/>
			<xs:enumeration value="EQF"/>
			<xs:enumeration value="EBOND"/>
			<xs:enumeration value="OTC"/>
			<xs:enumeration value="EQCIS"/>
			<xs:enumeration value="OTCBOND"/>			
		</xs:restriction>
	</xs:simpleType>
  <xs:simpleType name="BOARDTYPE_Type">
    <xs:annotation>
      <xs:documentation>
      	Группы торговых инструментов:
      	1 – Фондовая российская секция
      	2 – Фондовая зарубежная секция
      	4 - Конверсионные инструменты
      	5 – Еврооблигации
      	6 - ЦБ стран СНГ
      	7 - Инструменты ОТС (может применяться для рынка Казахстан)
      	8 - Инструменты ОТС (облигации) (может применяться для рынка Казахстан)
		Instrument group number:
		1 – Russian securities
		2 – Foreign securities 
		4 - Foreign currency
		5 – Eurobonds
		6 - Foreign securities of issuers from CIS countries 
        7 - OTC instruments
        8 - OTC instruments (bonds)
	  </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:integer">      
      <xs:enumeration value="1"/>
      <xs:enumeration value="2"/>
      <xs:enumeration value="4"/>
      <xs:enumeration value="5"/>
      <xs:enumeration value="6"/>
      <xs:enumeration value="7"/>
      <xs:enumeration value="8"/>
    </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:maxLength value="32"/>
		</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>
				Категория ЦБ:
				101 - Акции обыкновенные (может применяться для рынка Казахстан)
				102 - Акции привилегированные (может применяться для рынка Казахстан)
				103 - Пай открытого ПИФ
				104 - Пай закрытого ПИФ
				105 - ETF (может применяться для рынка Казахстан)
				106 - RDR
				107 - ADR (может применяться для рынка Казахстан)
				108 - GDR (может применяться для рынка Казахстан)
				109 - Пай интервального ПИФ
				110 – Ипотечный Вексель (Mortgage Note) (может применяться для рынка Казахстан)
				201 - Государственные Облигации (может применяться для рынка Казахстан)
				202 - Муниципальные Облигации (может применяться для рынка Казахстан)
				203 – Облигации Центрального Банка
				204 - Корпоративные Облигации (может применяться для рынка Казахстан)
				205 – Облигации Кредитной Организации (может применяться для рынка Казахстан)
				206 – Биржевые Облигации (может применяться для рынка Казахстан)
				Security category:
				101 - Ordinary shares or REIT
				102 - Preferred shares
				103 - Shares of open MIF
				104 - Share of closed MIF 
				105 - ETF
				106 - RDR
				107 - ADR
				108 - GDR
				109 - Share of interval MIF
				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: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="STRING32_Type">
		<xs:annotation>
			<xs:documentation>Тип: "ИНН фирмы" / Type: "Clearing Member INN"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="32"/>
		</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>Тип: "Код расчётов"</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: "Settle code"</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="CORP_EVENT_Type">
		<xs:annotation>
			<xs:documentation>
				Проведение корпоративного события:
				S – дробление
				RS – консолидация
				SO – выделение
				D – выплата дивидендов
				N – выплата купона
				MA - слияние и поглощение
				Corporate event holding:
				S – splitting
				RS – consolidation
				D – dividend payment
				SO – spin-off
				N – coupon payment
				MA - mergers and acquisitions					
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="16"/>
			<xs:enumeration value="S"/>
			<xs:enumeration value="RS"/>
			<xs:enumeration value="SO"/>
			<xs:enumeration value="D"/>
			<xs:enumeration value="N"/>
			<xs:enumeration value="MA"/>
		</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="TRADE_PERIOD_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Период торгов" / Type: "Trade period"</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="DECIMALS_Type">
		<xs:annotation>
			<xs:documentation>Тип "Число значТип "Число значимых знаков после запятой. Для сделок РЕПО данный показатель показывает точность ставки РЕПО. Число знаков в цене первой и второй частей РЕПО равно 8 знаков." / 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="28"/>
			<xs:fractionDigits value="8"/>
		</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="FLOAT_20.6_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Вещественное число с длиной дробной части = 6" / 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>Тип: "Вещественное число с длиной дробной части = 8" / 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="6"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="PRICETYPE_Type">
		<xs:annotation>
			<xs:documentation>
				Тип: "Тип цены:
				PERC - процент от номинала, CASH – в валюте расчетов
				"
				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="Понедельник"/>
			<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="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>Тип: "Тип заявки" / Type: "Order type"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="3"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADE_TYPE_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Тип сделки" / Type: "Deal type"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="1"/>
		</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 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="TRADETYPE_Type">
    <xs:annotation>
      <xs:documentation>
        Тип договора:
        T – заключен на основании безадресной заявки;
        N – заключен на основании адресной заявки;
        D – заключен без подачи заявки;
        O - внебиржевой безадресный договор
        P - внебиржевой адресный договор      
		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:enumeration value="P"/>
    </xs:restriction>
  </xs:simpleType>
  
  <xs:simpleType name="INFTYPE_Type">
    <xs:annotation>
      <xs:documentation>
        Тип "Тип информации"
        1 – Исполненные договора предыдущих дней;
        2 - Исполненные договора текущего дня;
        3 - Договора, подлежащие исполнению.
		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="CLEARINGTYPE_Type">
    <xs:annotation>
      <xs:documentation>
            Тип клирингового пула:
            C - Расчетный клиринговый пул
            A - Клиринговый пул по Внутриброкерским Договорам
            I - Клиринг по Договорам размещения и выкупа
            D - Клиринговый пул по Договорам с полным обеспечением с ЦК и клирингового пула по Договорам с полным обеспечением без ЦК
            O - Клиринговый пул ОТС 
            N - Клиринговый пул по Договорам без Центрального контрагента
            B - Клиринговый пул по Внебиржевым электронным договорам    
            Type "Type of clearing pool"
            C - settlement clearing pool
            A - clearing pool for Intra-Brokerage Agreements
            I - Clearing pool for Placement and Buyback Agreements 
            D - Clearing pool for Fully Collateralised Agreements with CC and clearing pool for Fully Collateralised Agreements without CC
            O - ОТС Clearing pool 
            N - Clearing pool for Agreements without the Central Counterparty
            B - Clearing pool for OTC electronic contracts   										
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:length value="1"/>
      <xs:enumeration value="C"/>
      <xs:enumeration value="A"/>
      <xs:enumeration value="I"/>
      <xs:enumeration value="D"/>
      <xs:enumeration value="O"/>
      <xs:enumeration value="N"/>
      <xs:enumeration value="B"/>
    </xs:restriction>
  </xs:simpleType>

  <xs:simpleType name="TRADE_INSTRUMENT_TYPE_Type">
    <xs:annotation>
      <xs:documentation>
        Тип группы инструментов:
        1 – фьючерсные инструменты
        2 – опционы
        3 - инструменты с частичным обеспечением
        4 – репо
        5 – связанные сделки купли-продажи
        9 - инструменты с полным обеспечением
		Trade type of instrument
		1 – futeres instruments
		2 – options
		3 – partially collaterised instruments
		4 – repo
		5 – related sales and purchases 
        6 – currency swap agreement                
		9 - fully collaterised instruments
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
      <xs:maxLength value="3"/>
      <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="TYPET_type">
    <xs:annotation>
      <xs:documentation>
        Тип договора, заключенной в целях урегулирования неисполнения обязательств и в целях исполнения обязательств по договорам:
        1 – договор РЕПО в случае неисполнения обязательств Участником клиринга;
        2 – договор купли-продажи в случае неисполнения обязательств Участником клиринга;
        3 – договор РЕПО в случае неисполнения обязательств Клиринговым центром;
        4 – договор купли-продажи в случае неисполнения обязательств Клиринговым центром;
        5 – договор РЕПО, заключенный Клиринговым центром с целью привлечения активов для урегулирования неисполнения обязательств;
        6 – договор купли-продажи, заключенный Клиринговым центром с целью принудительного закрытия позиции Участника клиринга;
        7 – договор купли-продажи, заключенный в целях исполнения обязательств (договор, заключаемый в целях переноса позиции на другого организатора торгов);
        8 – договор, заключенный в целях закрытия позиции в результате исполнения поставочного/расчетного фьючерсного контракта;
        9 – договор, заключенный в результате исполнения опционного контракта  
		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:minLength value="1"/>
      <xs:maxLength 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="6"/>
      <xs:enumeration value="7"/>
      <xs:enumeration value="8"/>
      <xs:enumeration value="9"/>
    </xs:restriction>
  </xs:simpleType>
	
	<xs:simpleType name="STRING64_Type">
		<xs:annotation>
			<xs:documentation>Тип: "ИНН фирмы" / Type: "Clearing Member INN"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="64"/>
		</xs:restriction>
	</xs:simpleType>

	<xs:simpleType name="TRADEMODE_Type">
		<xs:annotation>
			<xs:documentation>
				Идентификатор режима торгов
                                1 - Режим основных торгов
                                2 - Режим переговорных сделок
                                3 - Режим торгов адресное репо
                                4 - Режим торгов Аукцион размещения
                                5 - Режим торгов Адресное размещение
                                6 - Режим торгов аукцион по выкупу
                                7 - Режим торгов Адресный выкуп
                                8 - Режим торгов РПС без ЦК
                                9 - Режим торгов адресное репо без ЦК
                                10 - Режим торгов RFQ
                                11 - Заключение Конверсионных договоров с передачей на клиринг
                                12 - Режим торгов анонимное репо
                                13 - Заключение Внебиржевых договоров с передачей на клиринг
                                14 - Заключение Внебиржевых договоров ОТС/ Внебиржевых договоров репо ОТС (может применяться для рынка Казахстан)
                                15 - Заключение Внебиржевых электронных договоров с передачей на клиринг                                
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
			<xs:minInclusive value="1"/>
			<xs:maxInclusive value="15"/>
		</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: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:element name="RTS_DOC">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="DOC_REQUISITES"/>
				<xs:element ref="MFB06C"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
	<xs:element name="MFB06C">
		<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="FirmINN" type="FIRM_INN_Type" use="optional"/>
			<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="CLIENT" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="FirmID" type="FIRMID_Type" use="required"/>
	  <xs:attribute name="FirmTradeINN" type="FIRM_INN_Type" use="optional"/>
		</xs:complexType>
	</xs:element>
  <xs:element name="CLIENT">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="CURRENCY" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="ClientCode" type="CLIENT_CODE_Type" use="required"/>
      <xs:attribute name="ClientDetails" type="CLIENT_DETAILS_Type" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="CURRENCY">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="INFTYPE" 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="INFTYPE">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="CLEARINGTYPE" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="InfType" type="INFTYPE_Type" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="CLEARINGTYPE">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="SESSION" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ClearingType" type="CLEARINGTYPE_Type" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="SESSION">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="SETTLEDATE" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="ClearingTime" type="xs:time" use="optional"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="SETTLEDATE">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="BOARD" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="SettleDate" type="xs:date" use="required"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="BOARD">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="SECURITY" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="BoardType" type="BOARDTYPE_Type" use="optional"/>
			<xs:attribute name="BoardId" type="BOARDID_Type" use="required"/>
			<xs:attribute name="BoardName" type="BOARD_NAME_Type" use="optional"/>
		</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="BaseSecurityCode" type="SECURITYID_Type" use="optional"/>
			<xs:attribute name="ISIN" type="SECURITYID_Type" use="optional"/>
			<xs:attribute name="SecShortName" type="SEC_SHORT_NAME_Type" use="required"/>
			<xs:attribute name="BalanceSecurityId" type="STRING32_Type" use="optional"/>
			<xs:attribute name="FaceValue" type="STRING32_Type" use="optional"/>
			<xs:attribute name="SecCurrencyId" type="CURRENCYID_Type" use="optional"/>
			<xs:attribute name="PriceCurrencyId" type="CURRENCYID_Type" use="optional"/>
			<xs:attribute name="SecurityType" type="SEC_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="TradeNoExtra" 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="TradePlace" type="xs:integer" use="optional"/>
			<xs:attribute name="TradePlaceName" type="xs:string" use="optional"/>			
			<xs:attribute name="PrimaryOrderID" type="xs:integer" use="optional"/>
			<xs:attribute name="OrderID" type="xs:integer" use="optional"/>	
			<xs:attribute name="Comment" type="xs:string" use="optional"/>
			<xs:attribute name="CorpEvent" type="CORP_EVENT_Type" use="optional"/>
			<xs:attribute name="BuySell" type="BUYSELL_Type" use="required"/>			
			<xs:attribute name="SettleCode" type="SETTLECODE_Type" use="required"/>
			<xs:attribute name="TradePeriod" type="TRADE_PERIOD_Type" use="optional"/>
			<xs:attribute name="SpecialPeriod" type="xs:string" use="optional"/>	            
			<xs:attribute name="TradeType" type="TRADETYPE_Type" use="optional"/>
			<xs:attribute name="TradeModeId" type="TRADEMODE_Type" use="optional"/>
			<xs:attribute name="TradeModeName" type="xs:string" use="optional"/>				
			<xs:attribute name="TradeInstrumentType" type="TRADE_INSTRUMENT_TYPE_Type" use="optional"/>
			<xs:attribute name="Decimals" type="DECIMALS_Type" use="required"/>
			<xs:attribute name="Price" type="PRICE_Type" use="required"/>
			<xs:attribute name="Quantity" type="QUANTITY_Type" use="required"/>
			<xs:attribute name="Value" type="FLOAT_20.2_Type" use="required"/>
			<xs:attribute name="ConversionRate" type="FLOAT_20.4_Type" use="optional"/>
			<xs:attribute name="Amount" type="FLOAT_20.2_Type" use="optional"/>
			<xs:attribute name="AmountOTC" type="FLOAT_20.2_Type" use="optional"/>			
			<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.2_Type" use="optional"/>
			<xs:attribute name="LicComm" type="FLOAT_20.2_Type" use="optional"/>
			<xs:attribute name="ClrAccCode" type="TRDACCID_Type" use="required"/>
			<xs:attribute name="ClientDetails" type="CLIENT_DETAILS_Type" use="optional"/>
			<xs:attribute name="SubClrAccCode " type="TRDACCID_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="ClientCode" type="CLIENT_CODE_Type" use="optional"/>
            <xs:attribute name="DueDate" type="xs:date" use="required"/>
            <xs:attribute name="AccInt" type="FLOAT_20.2_Type" use="optional"/>
            <xs:attribute name="VarMarginDebit" type="FLOAT_20.2_Type" use="optional"/>
            <xs:attribute name="VarMarginCredit" type="FLOAT_20.2_Type" use="optional"/>		  
            <xs:attribute name="TradePart" type="xs:integer" use="optional"/>
            <xs:attribute name="Price2" type="PRICE_Type" use="optional"/>
            <xs:attribute name="RepoPart" type="REPOPART_Type" use="optional"/>
            <xs:attribute name="RepoPeriod" type="REPOPERIOD_Type" use="optional"/>
            <xs:attribute name="RepoRate" type="FLOAT_20.6_Type" use="optional"/>
            <xs:attribute name="Type" type="TYPET_type" use="optional"/>
            <xs:attribute name="FineDebit" type="FLOAT_20.2_Type" use="optional"/>
            <xs:attribute name="FineCredit" type="FLOAT_20.2_Type" use="optional"/>
			<xs:attribute name="RepositoryNumber" type="STRING64_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>
