﻿<?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-06-06T21:42:21Z</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">&lt;p&gt;Dear S# Community,&lt;/p&gt;
&lt;p&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.
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;/p&gt;
&lt;p&gt;Does anybody make the same experience?&lt;/p&gt;
&lt;p&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"&gt;https://doc.stocksharp.com/html/M_StockSharp_Algo_IMarketDataProviderEx_SubscribeMarketDepth.htm&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;i gave a refreshspeed of 3 seconds,but it seems the data update comes more frequently, less than 1 second i guess.&lt;/p&gt;
&lt;p&gt;TimeSpan span = new TimeSpan(0, 0, 0, 3, 0);
Connector.SubscribeMarketDepth(security, null, null, null, MarketDataBuildModes.LoadAndBuild,null, 25, &lt;strong&gt;span&lt;/strong&gt;, null, false, null);&lt;/p&gt;
&lt;p&gt;Am i using it wrong?&lt;/p&gt;
&lt;p&gt;Thanks in advance &amp;amp; best regards
Tobias&lt;/p&gt;
</content>
  </entry>
</feed>