tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2023-how-to-access-the-current-price-field-in-the-currencysecurity-history-dialogInfinite Kind: Discussion 2018-10-18T14:10:09Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/445530642018-01-21T13:26:54Z2018-09-18T12:18:51ZHow to access the "Current Price" field in the "Currency/Security History" dialog<div><p>Sorry I truncated the code block and file. The correct file is attached</p></div>md_oztag:infinitekind.tenderapp.com,2009-01-14:Comment/445530642018-01-21T14:37:17Z2018-09-18T12:18:51ZHow to access the "Current Price" field in the "Currency/Security History" dialog<div><p>The Current Price value appears to be represented by the rate field in the output file (which can also be accessed by getRawRate()).</p>
<p>The Current Price can be calculated by:</p>
<p>Current_Price = 100 / rate</p>
<p>I attached my final code for reference.</p></div>md_oztag:infinitekind.tenderapp.com,2009-01-14:Comment/445530642018-01-21T20:20:19Z2018-09-18T12:18:51ZHow to access the "Current Price" field in the "Currency/Security History" dialog<div><p>I was a little premature on my last post. If the security currency is different from the base currency, the method suggested above is invalid.</p>
<p>So my original question remains, how do a get the displayed Current Price in the currency of the security?</p>
<p>Thank you</p></div>md_oz