So I guess you could use it to trigger the "There's balance information in the 
import, do you want to use it?" dialog and feed the units into the reconcile 
information dialog. I wouldn't think it worth the effort, but I'm not the sort 
to spend hours automating something that takes a few seconds once a month to do 
manually.

Regards,
John Ralls


> On Nov 30, 2021, at 4:07 PM, Jean Laroche <rip...@gmail.com> wrote:
> 
> Yes, both of the brokers I use export to OFX and include position data with 
> units, unit price, and market value (of which only the units is really 
> relevant to GC).
> 
> 
> On 11/30/21 3:22 PM, John Ralls wrote:
>> 
>>> On Nov 30, 2021, at 2:19 PM, Jean L <rip...@gmail.com> wrote:
>>> 
>>> Devs,
>>> 
>>> I was looking inside *libofx *and saw that a new callback has been added 
>>> *ofx_set_position_cb *which can be use to gain information about security 
>>> positions.
>>> (2021-01-03, LibOFX 0.10.0)
>>> 
>>> I think it'd be really useful to add this to gnc-ofx-import.c as currently, 
>>> reconciling security positions can only be done manually even when 
>>> importing transactions from an OFX file.
>>> Do you guys think it's a waste of time? Useful?
>> Very few of the elements in a struct OfxPositionData 
>> (https://github.com/libofx/libofx/blob/56e12a3016072204b771d0c4b0d2f4e5a4568a0e/inc/libofx.h.in#L1161)
>>  seem relevant to GnuCash.
>> 
>> Does your broker export OFX files with INVPOS elements? If not it will be 
>> hard for you to test and harder still to make much use of it. FWIW mine 
>> (Charles Schwab) exports only CSV.
>> 
>> Regards,
>> John Ralls
>> 

_______________________________________________
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

Reply via email to