﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.com/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">QuikLua и список инструментов</title>
  <id>~/topic/4762/quiklua-i-spisok-instrumentov/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-06-04T14:05:01Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=4762" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/32010/</id>
    <title type="text">Чтобы получать инструменты по заданному БА: Способ 1) [code]trader.LookupSecurities(new Security );[...</title>
    <published>2014-10-23T06:51:46Z</published>
    <updated>2014-10-23T06:51:46Z</updated>
    <author>
      <name>rtDen</name>
      <uri>https://stocksharp.com/users/733/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p UnderlyingSecurityId="RIZ4@FORTS"&gt;Чтобы получать инструменты по заданному БА:
Способ 1)
[code]trader.LookupSecurities(new Security );[/code]&lt;/p&gt;
&lt;p&gt;Способ 2)
[code]SecurityLookupMessage mes = new SecurityLookupMessage()
{
UnderlyingSecurityCode = &amp;quot;RIZ4&amp;quot;,
TransactionId = trader.TransactionIdGenerator.GetNextId(),
};
trader.LookupSecurities(mes);[/code]&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31936/</id>
    <title type="text">[quote=Dmitry;31935]Trader.LookupSecurities(new Security );[/quote] Тоже не работает. </title>
    <published>2014-10-17T07:38:31Z</published>
    <updated>2014-10-17T07:38:31Z</updated>
    <author>
      <name>longtrades</name>
      <uri>https://stocksharp.com/users/6094/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p Code="RIZ4@FORTS"&gt;[quote=Dmitry;31935]Trader.LookupSecurities(new Security );[/quote]&lt;/p&gt;
&lt;p&gt;Тоже не работает.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31935/</id>
    <title type="text">Trader.LookupSecurities(new Security ); </title>
    <published>2014-10-17T07:00:34Z</published>
    <updated>2014-10-17T07:00:34Z</updated>
    <author>
      <name>Dmitry</name>
      <uri>https://stocksharp.com/users/51480/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p Code="RIZ4@FORTS"&gt;Trader.LookupSecurities(new Security );&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31934/</id>
    <title type="text">Stocksharp 4.2.31 Фича не работает : пример Сампле так //Trader.RequestAllSecurities = false; есть в...</title>
    <published>2014-10-17T06:48:50Z</published>
    <updated>2014-10-17T06:50:22Z</updated>
    <author>
      <name>longtrades</name>
      <uri>https://stocksharp.com/users/6094/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Stocksharp 4.2.31 Фича не работает :
пример Сампле&lt;/p&gt;
&lt;p&gt;так
//Trader.RequestAllSecurities = false;
есть  все инструменты.&lt;/p&gt;
&lt;p&gt;Так&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;				// отключение автоматического запроса всех инструментов.
				Trader.RequestAllSecurities = false;


                Trader.LookupSecurities(new Security { Code = &amp;quot;RIZ4&amp;quot; });
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Нету ни одного.&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31895/</id>
    <title type="text">Присоединюсь к вопросу, как получить все инстурменты с заданным базовым активом? Код [code] Security...</title>
    <published>2014-10-13T08:46:26Z</published>
    <updated>2014-10-13T08:46:26Z</updated>
    <author>
      <name>rtDen</name>
      <uri>https://stocksharp.com/users/733/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Присоединюсь к вопросу, как получить все инстурменты с заданным базовым активом? Код
[code]
SecurityLookupMessage criteria = new SecurityLookupMessage()
{
UnderlyingSecurityCode = &amp;quot;RIZ4&amp;quot;, //также пробовал RIZ4@FORTS
};
trader.LookupSecurities(criteria);
[/code]
не работает.
Также заметил следующую особенность, вызовы LookupSecurities с параметром типа SecurityLookupMessage &amp;quot;накапливаются&amp;quot;, с каждым следующим запуском робота событие LookupSecuritiesResult возникает на один раз больше, и так до перезапуска квика.&lt;/p&gt;
&lt;p&gt;S#: 4.2.28&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31887/</id>
    <title type="text">А если мне нужно вытянуть все существующие опционы по даному инструменту , вы предлагаете мне каждый...</title>
    <published>2014-10-12T09:13:19Z</published>
    <updated>2014-10-12T09:13:19Z</updated>
    <author>
      <name>longtrades</name>
      <uri>https://stocksharp.com/users/6094/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;А если мне нужно вытянуть все существующие опционы по даному инструменту , вы предлагаете мне каждый указывать по коду ? Да я и не представляю себе какие ихние коды пока не посмотрю какие есть :)&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/31853/</id>
    <title type="text">Чтобы исключить получение списка всех инструментов для Lua подключения, для QuikTrader необходимо от...</title>
    <published>2014-10-09T13:58:56Z</published>
    <updated>2014-10-09T13:59:16Z</updated>
    <author>
      <name>esper</name>
      <uri>https://stocksharp.com/users/5990/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p Code="RIZ4"&gt;Чтобы исключить получение списка всех инструментов для Lua подключения, для QuikTrader необходимо отключить автоматический запрос инструментов при подключении:
[code=csharp]Trader.RequestAllSecurities = false;[/code]
Далее, все необходимые для работы инструменты можно запросить через метод:
[code=csharp]Trader.LookupSecurities(new Security );[/code]&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>