<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>Форум QUIK [тема: Снять заявку]</title>
		<link>http://forum.quik.ru</link>
		<description>Новое в теме Снять заявку форума  на сайте Форум QUIK [forum.quik.ru]</description>
		<language>ru</language>
		<docs>http://backend.userland.com/rss2</docs>
		<pubDate>Wed, 22 Apr 2026 06:57:50 +0300</pubDate>
		<item>
			<title>Снять заявку</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message19691/topic2216/">Снять заявку</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_Bg9RqYf8" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />1. Какие варианты снятия существуют: 1-перебор таблицы заявок, 2-снятие по ["ORDER_KEY"], 3-какие еще?<br /><br />=============<br /><br />Снять заявку через LUA можно только по номеру заявки. Как его узнать уже другой вопрос.<br /><br /><br />====quote====<br /><a class="blog-p-user-name" id="bp_upVYJfs3" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />2. не могу найти описание ВСЕХ полей таблицы Transaction, в одних примерах нет поля ["ORDER_KEY"], в других оно есть <br /><br />=============<br />См документацию на терминал, "Раздел 6. Совместная работа с другими приложениями" - "Импорт транзакций"<br />"Формат .tri-файла с параметрами транзакций"<br /><br /><br />====quote====<br /><a class="blog-p-user-name" id="bp_LX8w3afO" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />3 при выставлении определенных видов заявок, требуется заполнение полей, которые лишены смысла при таком типе заявки и эти поля не помечены как "обязательные"<br /><br />=============<br />Этот пункт совершенно непонятен.<br /><br />====quote====<br /><a class="blog-p-user-name" id="bp_s449MB6h" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />Если я устанавливаю ['ACTION'] = "KILL_ORDER", то такие поля как OPERATION, TYPE, QUANTITY, PRICE (может и другие) вообще теряют смысл? Важно только поле ORDER_KEY - номер снимаемой заявки(если я правильно понимаю назначение этого поля), или и другие поля необходимо заполнять?.<br /><br />=============<br /><br />Согласно нашей документации, в транзакции "KILL_ORDER" должны быть следующие поля:<br />CLASSCODE, SECCODE, TRANS_ID, ACTION, ORDER_KEY<br />Если в других источниках написано как-то иначе, это вопрос к автору этих источников.<br /><br /><br />====quote====<br /><a class="blog-p-user-name" id="bp_3Wya9rtS" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />но хотелось &nbsp;бы &nbsp;видеть примеры реализации простейших вещей: выставление заявок<br />=============<br />См документацию на терминал, "Раздел 6. Совместная работа с другими приложениями" - "Импорт транзакций"<br />"Формат .tri-файла с параметрами транзакций" - "Примеры строк, которые могут содержаться в файле"<br />Единственное синтаксис нужно использовать LUA<br /><br /><br />====quote====<br /><a class="blog-p-user-name" id="bp_0x0Y1HC4" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />Вопрос: Если OnTransReply не дойдет, то как узнать номер заявки, которая была выставлена по транзакции TRANS_ID?<br />=============<br /><br />По таблице заявок.<br /><br /><br />====quote====<br /><a class="blog-p-user-name" id="bp_gxrMA12S" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />Чем дальше в лес, тем ......<br />В функции OnOrder(order) в таблице order есть<table class="data-table"><tr><td>trans_id </td><td>NUMBER </td><td>Идентификатор транзакции </td></tr></table>Это номер транзакции, отправленный в sendTransaction?<br />=============<br /><br />trans_id в таблице заявок это тоже самое что trans_id в транзакции <br />
			<i>24.10.2016 06:43:41, Sergey Gorokhov.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message19691/topic2216/</link>
			<guid>http://forum.quik.ru/messages/forum10/message19691/topic2216/</guid>
			<pubDate>Mon, 24 Oct 2016 06:43:41 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Снять заявку</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message19687/topic2216/">Снять заявку</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Чем дальше в лес, тем ......<br />В функции OnOrder(order) в таблице order есть<table class="data-table"><tr><td>trans_id </td><td>NUMBER </td><td>Идентификатор транзакции </td></tr></table>Это номер транзакции, отправленный в sendTransaction? <br />
			<i>23.10.2016 14:51:20, Владимир Б****ов.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message19687/topic2216/</link>
			<guid>http://forum.quik.ru/messages/forum10/message19687/topic2216/</guid>
			<pubDate>Sun, 23 Oct 2016 14:51:20 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Снять заявку</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message19684/topic2216/">Снять заявку</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Еще один вопрос.<br />1 отправка транзакции на сервер Идентификатор транзакции -&gt;TRANS_ID<br />2 по OnTransReply(trans_reply) Получаем номер заявки -&gt;orderNum = trans_reply.order_num<br /><br />Вопрос: Если OnTransReply не дойдет, то как узнать номер заявки, которая была выставлена по транзакции TRANS_ID? <br />
			<i>23.10.2016 13:40:31, Владимир Б****ов.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message19684/topic2216/</link>
			<guid>http://forum.quik.ru/messages/forum10/message19684/topic2216/</guid>
			<pubDate>Sun, 23 Oct 2016 13:40:31 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Снять заявку</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message19683/topic2216/">Снять заявку</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<noindex><a href="https://forum.quik.ru/messages/forum10/message11477/topic996/#message11477" target="_blank" rel="nofollow">https://forum.quik.ru/messages/forum10/message11477/topic996/#message11477</a></noindex><br />Вот в этом примере в ф-ции заполняются только эти поля<br /> &nbsp; &nbsp; &nbsp; &nbsp; local transaction={<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;&quot;TRANS_ID&quot;&#93;=tostring(1000*os.clock()),<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;&quot;ACTION&quot;&#93;=&quot;KILL_ORDER&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;&quot;CLASSCODE&quot;&#93;=classCode,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;&quot;SECCODE&quot;&#93;=secCode,<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#91;&quot;ORDER_KEY&quot;&#93;=tostring(getItem(ord,orders&#91;i&#93;).order_num)<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />Для не посвященного сплошной мрак &nbsp;<img src="http://forum.quik.ru/upload/main/smiles/5/icon_sad.png" border="0" data-code=":sad:" data-definition="SD" alt=":sad:" style="width:16px;height:16px;" title="Печально" class="bx-smile" /> <br />
			<i>23.10.2016 13:30:50, Владимир Б****ов.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message19683/topic2216/</link>
			<guid>http://forum.quik.ru/messages/forum10/message19683/topic2216/</guid>
			<pubDate>Sun, 23 Oct 2016 13:30:50 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Снять заявку</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message19677/topic2216/">Снять заявку</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			<br />====quote====<br /><a class="blog-p-user-name" id="bp_LR8Jadpt" href="/user/131/" bx-tooltip-user-id="131">Владимир Б****ов</a> написал:<br />или и другие поля необходимо заполнять?.<br /><br />=============<br />Поля, определяющие счет, код класса, код бумаги - обязательны к заполнению (я это понимаю &nbsp;<img src="http://forum.quik.ru/upload/main/smiles/5/icon_smile.png" border="0" data-code=":smile:" data-definition="SD" alt=":smile:" style="width:16px;height:16px;" title="С улыбкой" class="bx-smile" /> ) <br />
			<i>23.10.2016 11:17:41, Владимир Б****ов.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message19677/topic2216/</link>
			<guid>http://forum.quik.ru/messages/forum10/message19677/topic2216/</guid>
			<pubDate>Sun, 23 Oct 2016 11:17:41 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
		<item>
			<title>Снять заявку</title>
			<description><![CDATA[<b><a href="http://forum.quik.ru/messages/forum10/message19676/topic2216/">Снять заявку</a></b> в форуме <a href="http://forum.quik.ru/forum10/">Программирование на языке Lua</a>. <br />
			Добрый день<br />Не могу разобраться<br />я выставил заявку (не смотрите, что она рыночная)<br /> &nbsp; &nbsp; &nbsp;local Transaction={<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'TRANS_ID'&#93; &nbsp;= tostring(TRANS_ID), &nbsp; -- Номер транзакции<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'ACCOUNT'&#93; &nbsp; = ACCOUNT, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Код счета<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'CLASSCODE'&#93; = CLASS_CODE, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Код класса<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'SECCODE'&#93; &nbsp; = SEC_CODE, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Код инструмента<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'ACTION'&#93; &nbsp; &nbsp;= &quot;NEW_ORDER&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Тип транзакции ('NEW_ORDER' - новая заявка)<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'OPERATION'&#93; = &quot;S&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Операция ('B' - buy, или 'S' - sell)<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'TYPE'&#93; &nbsp; &nbsp; &nbsp;= &quot;M&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Тип ('L' - лимитированная, 'M' - рыночная)<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'QUANTITY'&#93; &nbsp;= &quot;1&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Количество<br /> &nbsp; &nbsp; &nbsp; &nbsp;&#91;'PRICE'&#93; &nbsp; &nbsp; = tostring(OpenPrice) &nbsp; -- Цена<br /> &nbsp; &nbsp; &nbsp;}<br /><br />Теперь мне надо ее снять<br /> &nbsp;local Transaction={<br /> &nbsp; &nbsp;&#91;'TRANS_ID'&#93; &nbsp;= tostring(TRANS_ID), &nbsp; &nbsp; &nbsp; -- Номер транзакции<br /> &nbsp; &nbsp;&#91;'ACCOUNT'&#93; &nbsp; = ACCOUNT, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Код счета<br /> &nbsp; &nbsp;&#91;'CLASSCODE'&#93; = CLASS_CODE, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Код класса<br /> &nbsp; &nbsp;&#91;'SECCODE'&#93; &nbsp; = SEC_CODE, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Код инструмента<br /> &nbsp; &nbsp;&#91;'ACTION'&#93; &nbsp; &nbsp;= &quot;KILL_ORDER&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Тип транзакции ('NEW_ORDER' - новая заявка)<br /> &nbsp; &nbsp;&#91;'OPERATION'&#93; = &quot;B&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Операция ('B' - buy, или 'S' - sell)<br /> &nbsp; &nbsp;&#91;'TYPE'&#93; &nbsp; &nbsp; &nbsp;= &quot;M&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Тип ('L' - лимитированная, 'M' - рыночная)<br /> &nbsp; &nbsp;&#91;'QUANTITY'&#93; &nbsp;= &quot;1&quot;, &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Количество<br /> &nbsp; &nbsp;&#91;'PRICE'&#93; &nbsp; &nbsp; = &quot;0&quot; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -- Цена<br /> &nbsp; &nbsp;&#91;&quot;ORDER_KEY&quot;&#93; = TRANS_ID_OLD &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- &quot;&lt;номер снимаемой заявки&gt;&quot;<br /> }<br /><br />1. Какие варианты снятия существуют: 1-перебор таблицы заявок, 2-снятие по &#91;&quot;ORDER_KEY&quot;&#93;, 3-какие еще?<br />2. не могу найти описание ВСЕХ полей таблицы Transaction, в одних примерах нет поля &#91;&quot;ORDER_KEY&quot;&#93;, в других оно есть <br />3 при выставлении определенных видов заявок, требуется заполнение полей, которые лишены смысла при таком типе заявки и эти поля не помечены как &quot;обязательные&quot;<br />4.Если я устанавливаю &#91;'ACTION'&#93; = &quot;KILL_ORDER&quot;, то такие поля как OPERATION, TYPE, QUANTITY, PRICE (может и другие) вообще теряют смысл? Важно только поле ORDER_KEY - номер снимаемой заявки(если я правильно понимаю назначение этого поля), или и другие поля необходимо заполнять?.<br /><br />Для тех.поддержки по поводу хелпа к луа<br />Я, думаю, тут не так много людей, которые пишут что-то подобное игре в &quot;крестики-нолики&quot;. Пример этой программы, безусловно, интересен и позволит расширить функционал интерфейса программ на Lua, но хотелось &nbsp;бы &nbsp;видеть примеры реализации простейших вещей: выставление заявок(рыночных, лимитированных, условных,...), снятие этих заявок, отслеживание исполнения заявок.<br /><br />Спасибо <br />
			<i>23.10.2016 11:13:28, Владимир Б****ов.</i>]]></description>
			<link>http://forum.quik.ru/messages/forum10/message19676/topic2216/</link>
			<guid>http://forum.quik.ru/messages/forum10/message19676/topic2216/</guid>
			<pubDate>Sun, 23 Oct 2016 11:13:28 +0300</pubDate>
			<category>Программирование на языке Lua</category>
		</item>
	</channel>
</rss>
