FYI there is an open bug report about this.
https://bugs.gnucash.org/show_bug.cgi?id=798815

And yes I confirm it works for me also with a namespace but not without. It
seems that with no namespace, the code is parsing the filename in the wrong
variable, hence the missing filename message.

On Sun, Apr 2, 2023 at 4:33 PM David H <[email protected]> wrote:

> Murugan/Jon,
>
> I'm having the same issue which isn't really an issue for me as I usually
> just run Get Quotes from within GnuCash itself.  I was able to get updated
> quotes however by including the namespace parameter as follows:-
>
> flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get
> --namespace=NYSE /home/<<user name>>/Documents/Test.gnucash
> Found Finance::Quote version 1.5301.
>
> Hope this helps, Cheers David H.
>
>
>
> On Mon, 3 Apr 2023 at 05:25, Murugan Muruganandam <
> [email protected]> wrote:
>
> > Can you run this in debug mode and see what error you are getting
> >
> > gnucash-cli --debug  --quotes get --namespace <insert your namespace from
> > securities editor> <your gnucash data file>
> >
> >
> >
> >
> > Saludos Cordiales
> >
> >
> > Murugan
> >
> > ________________________________
> > From: Jon Schewe <[email protected]>
> > Sent: Sunday, April 2, 2023 2:48 PM
> > To: Murugan Muruganandam <[email protected]>;
> > [email protected] <[email protected]>
> > Subject: Re: [GNC] Fetching quotes with flatpak
> >
> > That works as expected
> >
> > >flatpak run --command=gnucash-cli org.gnucash.GnuCash --verbose -Q
> > dump yahoo_json acn
> > acn:
> >         date => 03/31/2023
> >           pe => 26.31768
> >         type => EQUITY
> >      isodate => 2023-03-31
> >          low => 282.61
> >   year_range =>        242.8 - 345.3
> >         high => 285.96
> >       symbol => acn
> >         open => 283.12
> >          eps => 10.86
> >     exchange => Sourced from Yahoo Finance (as JSON)
> >      success => 1
> >    div_yield => 1.5318757
> >         name => acn (Accenture plc)
> >       method => yahoo_json
> >       volume => 3009370
> >     currency => USD
> >         last => 285.81
> >        close => 282.66
> >
> >
> > On Sun, 2023-04-02 at 18:05 +0000, Murugan Muruganandam wrote:
> > > can you try the following and check
> > >
> > > gnucash-cli --verbose -Q dump yahoo_json acn
> > >
> > >
> > >
> > > Saludos Cordiales
> > >
> > > Murugan
> > >
> > > From: gnucash-user <gnucash-user-
> > > [email protected]> on behalf of Jon
> > > Schewe <[email protected]>
> > > Sent: Sunday, April 2, 2023 10:53 AM
> > > To: [email protected] <[email protected]>
> > > Subject: [GNC] Fetching quotes with flatpak
> > >
> > > I'm looking to use gnucash-cli to fetch quotes, however I'm told I'm
> > > missing a parameter. The commandline help documentation states to use
> > > "get" and then the datafile. I believe that I've done it correctly
> > > here, what am I missing?
> > >
> > > > flatpak run --command=gnucash-cli org.gnucash.GnuCash --quotes get
> > > /home/jpschewe/Documents/banking/gnucash/accounts.gnucash
> > > Missing data file parameter
> > >
> > > Thank you,
> > > Jon
> > >
> > > _______________________________________________
> > > gnucash-user mailing list
> > > [email protected]
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > -----
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> >
> > _______________________________________________
> > gnucash-user mailing list
> > [email protected]
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > -----
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> >
> _______________________________________________
> gnucash-user mailing list
> [email protected]
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
_______________________________________________
gnucash-user mailing list
[email protected]
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to