﻿<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/style.css'?>
<?xml-stylesheet type='text/css' href='https://stocksharp.ru/css/bbeditor.css'?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="html">Не понимаю работу метода FinamHistorySource.Refresh</title>
  <id>~/topic/8281/ne-ponimayu-rabotu-metoda-finamhistorysource_refresh/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-05T12:05:02Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=8281" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/40037/</id>
    <title type="text">Security security = new Security { Type = SecurityTypes.Future };</title>
    <published>2017-05-30T12:54:11Z</published>
    <updated>2017-05-30T12:54:11Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Security security = new Security { Type = SecurityTypes.Future };</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40028/</id>
    <title type="text">Всё работает, просто хочу увеличить эффективность загрузки. Думал, как фильтр (criteria) может помоч...</title>
    <published>2017-05-29T13:12:04Z</published>
    <updated>2017-05-29T13:12:04Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Всё работает, просто хочу увеличить эффективность загрузки. Думал, как фильтр (criteria) может помочь с этим?&lt;br /&gt;Покажите пожалуйста на примере, как сделать так, чтобы в securityStorage сохранились, допустим, только фьючерсы FORTS.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40027/</id>
    <title type="text">Функция FinamHistorySource.Refresh неправильно работает или приводит к возникновению ошибки?</title>
    <published>2017-05-29T12:51:00Z</published>
    <updated>2017-05-29T12:51:00Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Функция FinamHistorySource.Refresh неправильно работает или приводит к возникновению ошибки?</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40015/</id>
    <title type="text">2) Имел ввиду, что используя фильтр Security security = new Security { Id = &amp;quot;SBER@TQBR&amp;quot;, Board = Exc...</title>
    <published>2017-05-26T19:23:09Z</published>
    <updated>2017-05-26T19:23:09Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">2) Имел ввиду, что используя фильтр&lt;br /&gt;Security security = new Security { Id = &amp;quot;SBER@TQBR&amp;quot;, Board = ExchangeBoard.Micex };&lt;br /&gt;в securityStorage сохранятся все 14787 инструментов, корме SBER@TQBR. Поэтому &amp;quot;Зачем отфильтровывать 1 инструмент? &amp;quot;&lt;br /&gt;Сейчас прояснилось, что в securityStorage сохранится только SBER@TQBR&lt;br /&gt;5) Security security = new Security { Id = &amp;quot;@TQBR&amp;quot;}; - данный фильтр не оставляет в securityStorage инструменты с Id = &amp;quot;@TQBR&amp;quot;.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40014/</id>
    <title type="text">1) фильтр только по типу инструмента 2) вопрос не понятен 3) securityStorage 4) см. п1. 5) Security ...</title>
    <published>2017-05-26T16:25:26Z</published>
    <updated>2017-05-26T16:25:26Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">1) фильтр только по типу инструмента&lt;br /&gt;2) вопрос не понятен&lt;br /&gt;3) securityStorage&lt;br /&gt;4) см. п1.&lt;br /&gt;5) Security security = new Security { Id = &amp;quot;@TQBR&amp;quot;};&lt;br /&gt;</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40013/</id>
    <title type="text">5) &amp;quot;2) Работает как поиск подстроки, т.е. можно использовать &amp;quot;@TQBS&amp;quot; &amp;quot; - покажите пожалуйста на прим...</title>
    <published>2017-05-25T17:17:55Z</published>
    <updated>2017-05-25T17:22:48Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">5) &amp;quot;2) Работает как поиск подстроки, т.е. можно использовать &amp;quot;@TQBS&amp;quot; &amp;quot; - покажите пожалуйста на примере</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40012/</id>
    <title type="text">1) Какая практическая ценность criteria (зачем он нужен), если в любом случае будут загружены все ин...</title>
    <published>2017-05-25T17:17:54Z</published>
    <updated>2017-05-25T17:17:54Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">1) Какая практическая ценность criteria (зачем он нужен), если в любом случае будут загружены все инструменты? (покажите на примере)&lt;br /&gt;2) Зачем отфильтровывать 1 инструмент? &lt;br /&gt;3) Куда сохраняются отфильтроавнные инструменты?&lt;br /&gt;4) В чём разница между:&lt;br /&gt;Security security = new Security { Id = &amp;quot;SBER@TQBR&amp;quot;, Board = ExchangeBoard.Micex };&lt;br /&gt;FinamHistorySource.Refresh(securityStorage, security, s =&amp;gt; { isCanceled = UpdateLoadingProgressBar(s, security, ++step); }, () =&amp;gt; isCanceled);&lt;br /&gt;и&lt;br /&gt;Security security = new Security ();&lt;br /&gt;FinamHistorySource.Refresh(securityStorage, security, s =&amp;gt; { isCanceled = UpdateLoadingProgressBar(s, security, ++step); }, () =&amp;gt; isCanceled);&lt;br /&gt;если потом, я всё равно могу получить данные &lt;br /&gt;var dataSecurity = historySource.GetCandles(security, timeFrame, from, to);?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40008/</id>
    <title type="text">1) В любом случае будут загружены все инструменты, т.к. criteria - это фильтр.. 2) Работает как поис...</title>
    <published>2017-05-25T13:53:41Z</published>
    <updated>2017-05-25T13:53:41Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">1) В любом случае будут загружены все инструменты, т.к. criteria - это фильтр..&lt;br /&gt;2) Работает как поиск подстроки, т.е. можно использовать  &amp;quot;@TQBS&amp;quot;&lt;br /&gt;3) Что бы прервать загрузку в момент получения нужного инструмента используйте делегат isCanceled&lt;br /&gt;</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/40003/</id>
    <title type="text">Здравствуйте. Его описание: http://doc.stocksharp.ru/html/M_StockSharp_Algo_History_Russian_Finam_Fi...</title>
    <published>2017-05-24T17:53:22Z</published>
    <updated>2017-05-24T17:54:56Z</updated>
    <author>
      <name>Дмитрий_</name>
      <uri>https://stocksharp.ru/users/62269/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Здравствуйте. &lt;br /&gt;&lt;br /&gt;Его описание:&lt;br /&gt;&lt;a href="http://doc.stocksharp.ru/html/M_StockSharp_Algo_History_Russian_Finam_FinamHistorySource_Refresh.htm
" title="http://doc.stocksharp.ru/html/M_StockSharp_Algo_History_Russian_Finam_FinamHistorySource_Refresh.htm
"&gt;http://doc.stocksharp.ru...storySource_Refresh.htm
&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;int step = 0;&lt;br /&gt;Security security = new Security { Id = &amp;quot;SBER@TQBR&amp;quot;, Board = ExchangeBoard.Micex };&lt;br /&gt;При вызове метода FinamHistorySource.Refresh(securityStorage, security, s =&amp;gt; { isCanceled = UpdateLoadingProgressBar(s, security, ++step); }, () =&amp;gt; isCanceled); всегда загружается 14787 инструментов, что занимает приличное время.&lt;br /&gt;1) Как правильно использовать параметр criteria&lt;br /&gt;(Тип: StockSharp.BusinessEntities.Security Инструмент, поля которого будут использоваться в качестве фильтра.),&lt;br /&gt;чтобы загружался только нужный security?&lt;br /&gt;2) Какой параметр criteria использовать для групповой загрузки инструментов (например: GAZP@TQBS, SBER@TQBS и SBERP@TQBS)?&lt;br /&gt;&lt;br /&gt;3) Если правильно понимаю логику метода:&lt;br /&gt;Допустим&lt;br /&gt;Security security = new Security { Board = ExchangeBoard.Spb};&lt;br /&gt;и FinamHistorySource.Refresh(securityStorage, security, s =&amp;gt; { isCanceled = UpdateLoadingProgressBar(s, security, ++step); }, () =&amp;gt; isCanceled); то перебор (поиск) инструментов будет только среди бумаг, где ExchangeBoard = Spb? На практике, всё равно грузит все 14787 инструментов.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>