﻿<?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">StockSharp.BusinessEntities</title>
  <id>~/topic/8047/stocksharp_businessentities/</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-07-02T19:08:56Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=topic&amp;id=8047" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/posts/m/39068/</id>
    <title type="text">Support: Значения в полях Level1 появляются после регистрации... Зарегистрировать можно так; private...</title>
    <published>2017-02-01T17:30:29Z</published>
    <updated>2017-02-01T17:30:29Z</updated>
    <author>
      <name>klim95vlad</name>
      <uri>https://stocksharp.com/users/97469/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(39059)" rel="nofollow" target="_blank"&gt;Support&lt;/a&gt;:&lt;/strong&gt;
Значения в полях Level1 появляются после регистрации... Зарегистрировать можно так;
private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var security =  (Security)comboBox.SelectedItem;
if (Trader.RegisteredSecurities.Contains(security))
return;
Trader.RegisterSecurity(security);
}
Получилось! Спасибо большое!!&lt;/p&gt;
&lt;/blockquote&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/39059/</id>
    <title type="text">Значения в полях Level1 появляются после регистрации... Зарегистрировать можно так; private void com...</title>
    <published>2017-02-01T12:34:43Z</published>
    <updated>2017-02-01T12:35:24Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.com/users/97869/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Значения в полях Level1 появляются после регистрации... Зарегистрировать можно так;
private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
var security =  (Security)comboBox.SelectedItem;
if (Trader.RegisteredSecurities.Contains(security))
return;
Trader.RegisterSecurity(security);
}&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/39043/</id>
    <title type="text">Support: Вы инструменты регистрировали при помощи Connector.RegisterSecurity(Security)? Пробовал, но...</title>
    <published>2017-01-31T13:42:30Z</published>
    <updated>2017-01-31T13:42:30Z</updated>
    <author>
      <name>klim95vlad</name>
      <uri>https://stocksharp.com/users/97469/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;&lt;a href="@message(39034)" rel="nofollow" target="_blank"&gt;Support&lt;/a&gt;:&lt;/strong&gt;
Вы инструменты регистрировали при помощи Connector.RegisterSecurity(Security)?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Пробовал, но я не совсем понимаю где и как это стоит использовать. Подскажите, пожалуйста.
Вот код.
namespace WpfApplication2
{
/// &amp;lt;summary&amp;gt;
/// Логика взаимодействия для MainWindow.xaml
/// &amp;lt;/summary&amp;gt;
public partial class MainWindow : Window
{
public QuikTrader Trader;
public MainWindow()
{
InitializeComponent();
}&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    private void button_Click(object sender, RoutedEventArgs e)
    {
        Trader = new QuikTrader(QuikTerminal.GetDefaultPath())
        {
            LuaFixServerAddress = &amp;quot;127.0.0.1:5001&amp;quot;.To&amp;lt;EndPoint&amp;gt;(),
            LuaLogin = &amp;quot;quik&amp;quot;,
            LuaPassword = &amp;quot;quik&amp;quot;.To&amp;lt;SecureString&amp;gt;()
        };

        Trader.Connect();

        Trader.NewSecurities += securities =&amp;gt; this.GuiAsync(() =&amp;gt;
        {
            comboBox.ItemsSource = Trader.Securities;

        });

    }

    private void comboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
    {

    }

    private void textBox_TextChanged(object sender, TextChangedEventArgs e)
    {

    }

    private void button1_Click(object sender, RoutedEventArgs e)
    {
        decimal X = ((Security)comboBox.SelectedItem).BestBid.Price;
        textBox.Text = Convert.ToString(X);
    }
}
&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/39034/</id>
    <title type="text">Вы инструменты регистрировали при помощи Connector.RegisterSecurity(Security)? </title>
    <published>2017-01-31T12:04:26Z</published>
    <updated>2017-01-31T12:04:26Z</updated>
    <author>
      <name>Support</name>
      <uri>https://stocksharp.com/users/97869/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Вы инструменты регистрировали при помощи Connector.RegisterSecurity(Security)?&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
  <entry>
    <id>https://stocksharp.com/posts/m/39019/</id>
    <title type="text">Добрый день. Возникла проблема с инструментами, практически все значения равны null. С Quik соединен...</title>
    <published>2017-01-30T14:07:19Z</published>
    <updated>2017-01-30T14:07:19Z</updated>
    <author>
      <name>klim95vlad</name>
      <uri>https://stocksharp.com/users/97469/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <content type="html">&lt;p&gt;Добрый день. Возникла проблема с инструментами, практически все значения равны null. С Quik соединение есть, все портфели и инструменты в combobox загружаются, по рыночной цене заявки выставляются, но пытаюсь вытащить цену лучшего бида и выдает ошибку (decimal x = Security.BestBid.Price).&lt;/p&gt;
</content>
    <rights type="html">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  </entry>
</feed>