[GNC-dev] Investment position from OFX files

Jean Laroche ripngo at gmail.com
Tue Nov 30 19:07:11 EST 2021


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 <ripngo at 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
>


More information about the gnucash-devel mailing list