﻿<?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">subscribemarketdepth. StockSharp</title>
  <id>https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=subscribemarketdepth&amp;type=community</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-16T08:21:43Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=subscribemarketdepth&amp;type=community" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/topic/12380/</id>
    <title type="text">Rithmic connection CPU Usage &amp;amp; Refreshspeed of SubscribeMarketDepth</title>
    <published>2020-09-02T18:47:42Z</published>
    <updated>2020-09-02T20:53:39Z</updated>
    <author>
      <name>Tobias Born</name>
      <uri>https://stocksharp.com/users/127923/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="Rithmic" />
    <category term="-" />
    <category term="SubscribeMarketDepth" />
    <content type="html">Dear S# Community,&lt;br /&gt;&lt;br /&gt;i have a question regarding the S# Rithmic Connection. I have realised that it needs a lot of CPU Usage (up to 50%) when i am subscribing to the SubscribeMarketDepth.&lt;br /&gt;It seems the method is sync and is blocking the other threads in between. It would be better to call it async but that is not implemented right now in s#[crying].&lt;br /&gt;&lt;br /&gt;Does anybody make the same experience?&lt;br /&gt;&lt;br /&gt;Also the second question i have is about the refreshspeed of this subscription. &lt;a href="https://doc.stocksharp.com/html/M_StockSharp_Algo_IMarketDataProviderEx_SubscribeMarketDepth.htm
" title="https://doc.stocksharp.com/html/M_StockSharp_Algo_IMarketDataProviderEx_SubscribeMarketDepth.htm
"&gt;https://doc.stocksharp.c...ubscribeMarketDepth.htm
&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;i gave a refreshspeed of 3 seconds,but it seems the data update comes more frequently, less than 1 second i guess.&lt;br /&gt;&lt;br /&gt;TimeSpan span = new TimeSpan(0, 0, 0, 3, 0);&lt;br /&gt;Connector.SubscribeMarketDepth(security, null, null, null, MarketDataBuildModes.LoadAndBuild,null, 25, &lt;b&gt;span&lt;/b&gt;, null, false, null);&lt;br /&gt;&lt;br /&gt;Am i using it wrong?&lt;br /&gt;&lt;br /&gt;Thanks in advance &amp;amp; best regards&lt;br /&gt;Tobias</content>
  </entry>
</feed>