﻿<?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">positions. StockSharp</title>
  <id>https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=positions&amp;type=community</id>
  <rights type="text">Copyright @ StockSharp Platform LLC 2010 - 2025</rights>
  <updated>2026-04-13T19:55:43Z</updated>
  <logo>https://stocksharp.com/images/logo.png</logo>
  <link href="https://stocksharp.com/handlers/atom.ashx?category=tag&amp;id=positions&amp;type=community" rel="self" type="application/rss+xml" />
  <entry>
    <id>https://stocksharp.com/topic/8867/</id>
    <title type="text">How can request more details about the existing positions?</title>
    <published>2017-11-27T06:03:38Z</published>
    <updated>2018-01-18T11:09:23Z</updated>
    <author>
      <name>Jose</name>
      <uri>https://stocksharp.com/users/99429/</uri>
      <email>info@stocksharp.com</email>
    </author>
    <category term="FXCM" />
    <category term="connection" />
    <category term="positions" />
    <content type="html">Hello Mikhail and hi all!&lt;br /&gt;&lt;br /&gt;This StockSharp project looks very-very exciting and I started to look through some source codes and I tried some examples.&lt;br /&gt;Unfortunately I cannot find the way, how can I get details about the active (opened) positions?&lt;br /&gt;For example I made a connection to FXCM (by the SampleFxcm project) and I subscribed to the NewPosition event with a new function: Trader_NewPosition(Position pos)&lt;br /&gt;&lt;div class="code"&gt;&lt;strong&gt;Code&lt;/strong&gt;&lt;div class="innercode"&gt;&lt;br /&gt;Trader.NewPosition += position =&amp;gt; Trader_NewPosition(position);&lt;br /&gt;Trader.NewPosition += position =&amp;gt; _portfoliosWindow.PortfolioGrid.Positions.Add(position);&lt;br /&gt;...&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;private void Trader_NewPosition(Position pos)&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;MessageBox.Show(&amp;quot;cval: &amp;quot; + pos.CurrentValue.ToString() + &amp;quot; | desc: &amp;quot; + pos.Description + &amp;quot; | Currency: &amp;quot; + pos.Currency.ToString() + &amp;quot; | RealizedPnL: &amp;quot; + pos.RealizedPnL.ToString() + &amp;quot; | BlockedValue: &amp;quot; + pos.BlockedValue.ToString());&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;}&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;Kind of every values in the Position object are null, so I could not get the entry price and the direction values.&lt;br /&gt;Or this limited data problem is only related to the FXCM connections? &lt;em&gt;...because in fact I plan to use the CQG and/or the Rithmic connections.&lt;/em&gt;&lt;br /&gt;Please help me, how can I get the existing positions details after a new connection?&lt;br /&gt;&lt;br /&gt;Thanks in advance!&lt;br /&gt;Jose&lt;br /&gt;</content>
  </entry>
</feed>