﻿<?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>Тип: "Идентификатор типа документа в системе электронного документооборота"</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>Тип: "Уникальный учетный номер документа в системе ЭДО"</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>Тип: "Идентификатор фирмы отправителя/получателя ЭДО"</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>Тип: "Краткое наименование отправителя"</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>Тип: "Примечание к документу"</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>Тип "Номер записи"</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>Тип: "Идентификатор фирмы"</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>Тип: "Краткое наименование фирмы"</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аименование участника клиринга"</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>Тип: "ИНН фирмы"</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>
				Группы торговых инструментов:
				EQR – Российские ЦБ
				EQF – Иностранные ЦБ
				EBOND – Еврооблигации
				EQCIS - Иностранные ценные бумаги эмитентов из стран СНГ
				OTC - Инструменты ОТС
				CRCY_F - Конверсионные инструменты
      </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="OTCBOND"/>
			<xs:enumeration value="EQCIS"/>
			<xs:enumeration value="CRCY_F"/>	
		</xs:restriction>
	</xs:simpleType>
  <xs:simpleType name="BOARDTYPE_Type">
    <xs:annotation>
      <xs:documentation>
      	Группы торговых инструментов:
      	1 – Фондовая российская секция
      	2 – Фондовая зарубежная секция
      	4 - Конверсионные инструменты
      	5 – Еврооблигации
      	6 - ЦБ стран СНГ
      	7 - Инструменты ОТС
      	8 - Инструменты ОТС (Облигации)
      </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>Тип: "Наименование режима торгов"</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>Тип: "Идентификатор ценной бумаги"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="SEC_SHORT_NAME_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Краткое наименование ценной бумаги"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="256"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="BASE_CURRENCY_Id_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Наименование валюты лота (базовой валюты)"</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="4"/>
		</xs:restriction>
	</xs:simpleType>
		<xs:simpleType name="SEC_TYPE_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Тип ценной бумаги"</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>
				Категория ЦБ:
				1 - Валюта
				101 - Акции обыкновенные
				102 - Акции привилегированные
				103 - Пай открытого ПИФ
				104 - Пай закрытого ПИФ
				105 - ETF
				106 - RDR
				107 - ADR
				108 - GDR
				109 - Пай интервального ПИФ
				110 – Ипотечный Вексель (Mortgage Note)
				201 - Государственные Облигации
				202 - Муниципальные Облигации
				203 – Облигации Центрального Банка
				204 - Корпоративные Облигации
				205 – Облигации Кредитной Организации
				206 – Биржевые Облигации
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:integer">
		    <xs:enumeration value="1"/>
			<xs:enumeration value="101"/>
			<xs:enumeration value="102"/>
			<xs:enumeration value="103"/>
			<xs:enumeration value="104"/>
			<xs:enumeration value="105"/>
			<xs:enumeration value="106"/>
			<xs:enumeration value="107"/>
			<xs:enumeration value="108"/>
			<xs:enumeration value="109"/>
			<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>Тип: "Идентификатор торгового счета"</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>Тип: "Идентификатор вылюты"</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>Тип "Наименование валюты"</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>Тип: "Вид сделки 'B'-покупка, 'S'-продажа"</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>Тип: " "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>
				Тип: "Торговый период
				MAIN - основной
				EVE - дополнительный
				CLOSE – аукцион закрытия"
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="5"/>
			<xs:enumeration value="MAIN"/>
			<xs:enumeration value="EVE"/>
			<xs:enumeration value="CLOSE"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="DECIMALS_Type">
		<xs:annotation>
			<xs:documentation>Тип "Число значимых знаков после запятой"</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>Тип: "Количество"</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>Тип: "Вещественное число с длиной дробной части = 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"</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"</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"</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>Тип: "Цена, ставка"</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>
				Тип: "Тип цены:
				PERC - процент от номинала, CASH – в валюте расчетов
				"</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>Тип: "Наименование дня недели"</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:restriction>
	</xs:simpleType>
	<xs:simpleType name="TRADENO_Type">
		<xs:annotation>
			<xs:documentation>Тип: "Номер сделки/заявки/отчета в торговой системе"</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>
				Тип: Тип заявки
				заявка без указания цены (MARKET) = 1
				заявка с указанием цены  (LIMIT) = 2
				скрытая заявка (HIDDEN) = 100
				заявка-айсберг (ICEBERG) = 101
				скрытая динамическая заявка (HIDDEN_DYNAMIC) = 102
				адресная (NEGOTIATED) = 103
				заявка дополнительной ликвидности (OUT_OF_BOOK) = 104
				заявка аукциона закрытия  (CLOSING_AUCTION) = 123
				оффсетная заявка (CLOSING_OFFSET) = 124
				котировочная заявка (PROTO_RFQ_INITIATE) = 125
				некотировочная заявка (PROTO_RFQ_CONFIRM) = 126
				специальная (SPECIAL) = 127
				заявка провайдера ликвидности (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>
				Тип: "Тип договора:
				•	T – заключен на основании безадресной заявки
				•	N – заключен на основании адресной заявки
				•	D – заключен без подачи заявки
				"</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>Тип: "Идентификатор торговой площадки"</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>Тип: "Код клиента"</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>Тип "ИНН или № паспорта клиента"</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>Тип: "Идентификационные данные клиента (ИНН или номер паспорта)"</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>Тип: "Наименование организатора торгов, зарегистрировавшего договор"</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>
		  Тип договора, заключенной в целях урегулирования неисполнения обязательств и в целях исполнения обязательств по договорам:
		  1 - договор репо в случае неисполнения обязательств Участником клиринга;
		  2 – договор купли-продажи в случае неисполнения обязательств Участником клиринга;
		  3 - договор репо в случае неисполнения обязательств Клиринговым центром;
		  4 – договор купли-продажи в случае неисполнения обязательств Клиринговым центром;
		  5 - договор репо, заключенный Клиринговым центром с целью привлечения активов для урегулирования неисполнения обязательств;
		  6 – договор купли-продажи, заключенный Клиринговым центром с целью принудительного закрытия позиции Участника клиринга;
		  7 – договор купли-продажи, заключенный в целях исполнения обязательств (договор, заключаемый в целях переноса позиции на другого организатора торгов);
		  8 – договор, заключенный в целях закрытия позиции в результате исполнения поставочного/расчетного фьючерсного контракта;
		  9 – договор, заключенный в результате исполнения опционного контракта
	  </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>
				Тип договора:
				T – заключен на основании безадресной заявки;
				N – заключен на основании адресной заявки;
				D – заключен без подачи заявки;
				O - внебиржевой договор.
			</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>
        Тип "Тип информации"
        1 – Исполненные договора предыдущих дней;
        2 - Исполненные договора текущего дня;
        3 - Договора, подлежащие исполнению.
      </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>
      Тип группы инструментов:
      1 – фьючерсные инструменты
      2 – опционы
      3 - инструменты с частичным обеспечением
      4 – репо
      5 – связанные сделки купли-продажи валюты
      6 – договор валютный своп (swap)
      9 - инструменты с полным обеспечением
    </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="6"/>
    <xs:enumeration value="9"/>
  </xs:restriction>
</xs:simpleType>

<xs:simpleType name="CLEARINGTYPE_Type">
		<xs:annotation>
			<xs:documentation>
        Тип "Тип клиринга"
        С – клиринг по договорам с частичным обеспечением
      </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>
        Тип "Номер клиринговой сессии"
        1 - для договоров с клирингом по итогам торгов и договоров с частичным обеспечением
      </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>Тип "Часть РЕПО (первая или вторая)"</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>Тип "Срок сделки РЕПО"</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>Тип "Код ТКС"</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>
				Идентификатор режима торгов
				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="TRADE_MODENAME_Type">
		<xs:annotation>
			<xs:documentation>
				Тип "Режим торгов
			</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:maxLength value="128"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="REGNUMBER_Type">
		<xs:annotation>
			<xs:documentation>Тип "Государственный регистрационный номер"</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>Тип "Логин из заявки"</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>Реквизиты документа в системе электронного документооборота</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="ОАО Отправитель" 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="BE03"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="DOC_REQUISITES" type="DOC_REQUISITES_Type"/>
	<xs:element name="BE03">
		<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="optional"/>
			<xs:attribute name="FirmName" type="FIRMNAME_LONG_Type" use="optional"/>
			<xs:attribute name="FirmINN" type="FIRM_INN_Type" use="optional"/>
		</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="BaseCurrencyId" type="BASE_CURRENCY_Id_Type" use="optional"/>
			<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="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="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="required"/>
			<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="optional"/>
			<xs:attribute name="Balance" type="FLOAT_20.8_Type" use="required"/>
			<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>
