﻿<?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">Custom MessageAdapter</title>
  <id>~/topic/12026/custom-messageadapter/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-21T22:38:41Z</updated>
  <logo>https://stocksharp.ru/images/logo.png</logo>
  <link href="https://stocksharp.ru/handlers/atom.ashx?category=topic&amp;id=12026" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.ru/posts/m/50921/</id>
    <title type="text">Hello, Thank you for the response. The current one only provides market data, does this connector en...</title>
    <published>2020-08-11T16:48:07Z</published>
    <updated>2020-08-11T18:27:36Z</updated>
    <author>
      <name>Rob</name>
      <uri>https://stocksharp.ru/users/130250/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Hello,&lt;br /&gt;&lt;br /&gt;Thank you for the response. The current one only provides market data, does this connector enable account transactions trading? If so, if you could publish it, I can use the .NET 4.8 version while I work through the course and will then try to finish a dotcore version later when I move to a cloud Linux server for 24/7 strategy execution. &lt;br /&gt;&lt;br /&gt;Thanks again!&lt;br /&gt;-Rob</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/50914/</id>
    <title type="text">Hello We have GainCapital connector and it is already passed the certification. Unfortunately, it is...</title>
    <published>2020-08-11T13:58:55Z</published>
    <updated>2020-08-11T13:58:55Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.ru/users/97869/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">Hello&lt;br /&gt;&lt;br /&gt;We have GainCapital connector and it is already passed the certification. Unfortunately, it is not compatible with .NET Core and not available on cross-platform mode. We can publish it for .NET 4.8 version if it necessary for you.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.ru/posts/m/50903/</id>
    <title type="text">I&amp;apos;m in the process of creating a custom adapter. After adding the adapter to the connector and attem...</title>
    <published>2020-08-11T06:01:01Z</published>
    <updated>2020-08-11T11:39:32Z</updated>
    <author>
      <name>Rob</name>
      <uri>https://stocksharp.ru/users/130250/</uri>
      <email>info@stocksharp.ru</email>
    </author>
    <content type="html">I&amp;#39;m in the process of creating a custom adapter. &lt;br /&gt;After adding the adapter to the connector and attempting to configure:&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt; &lt;br /&gt;    var gc = new GainCapitalMessageAdapter(_connector.TransactionIdGenerator);&lt;br /&gt;    _connector.Adapter.InnerAdapters.Add(gc);&lt;br /&gt;&lt;br /&gt;      if (_connector.Configure(this))&lt;br /&gt;        new XmlSerializer&amp;lt;SettingsStorage&amp;gt;().Serialize(_connector.Save(), _connectFile);&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;The following error is produced:&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt;&lt;br /&gt;  Message=Description of connection GainCapital.GainCapitalMessageAdapter not found. (Parameter &amp;#39;adapter&amp;#39;)&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;If added the following attributes to the custom MessageAdapter:&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt;&lt;br /&gt;  &amp;#91;CategoryLoc(&amp;quot;Forex&amp;quot;)&amp;#93;&lt;br /&gt;  &amp;#91;DescriptionLoc(&amp;quot;Str1770&amp;quot;, LocalizedStrings.GainCapitalKey)&amp;#93;&lt;br /&gt;  &amp;#91;DisplayNameLoc(LocalizedStrings.GainCapitalKey)&amp;#93;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Also, while Unit Testing, the connect event is not firing but sending the ConnectMessage works:&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Код&lt;/strong&gt;&lt;div class="innercode"&gt;&lt;br /&gt;      var gc = new GainCapitalMessageAdapter(_connector.TransactionIdGenerator);&lt;br /&gt;      _connector.Adapter.InnerAdapters.Add(gc);    &lt;br /&gt;      _connector.Connect();  //-- does not work&lt;br /&gt;      gc.SendInMessage(new ConnectMessage { Adapter = gc });  //-- works&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;If this is included in a lesson, let me know. Otherwise, any advice is appreciated.&lt;br /&gt;&lt;br /&gt;Thank you.</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>