Import prices API

Daniel Espinosa esodan at gmail.com
Fri Apr 13 18:03:25 EDT 2007


2007/4/7, Derek Atkins <warlord at mit.edu>:
> Quoting Bengt Thuree <bengt at thuree.com>:
>
> > Perhaps import history data ?
>
> There's a historical-data F::Q backend out there somewhere, IIRC.
>
> > Or data that F::Q is not handling? I have a few of those myself...
>
> Then write an F::Q backend for that and I'm sure that David will
> include it in the next F::Q release.

If you transfor GNCPrice as a GInterface, any one can implement this
interfaces using any desired method to get its data.

>
> > On Sat, 2007-04-07 at 09:35 -0400, Derek Atkins wrote:
> >> GnuCash calls the gnc-fq-helper application to get quotes.  You could
> >> replace that program with any other program you want to return quotes
> >> back to Gnucash.  Run the program by hand if you want to see the
> >> format of the returned data.
> >>
> >> I dont know if it expects to get one quote at a time or gets all quotes
> >> in one run.
> >>
> >> There's also the scheme API (and I API) you could use if you wanted to
> >> write code to install quotes.
> >>
> >> Also, F::Q itself has an API; it's a plugin architecture so you could plug
> >> in your own module.
> >>
> >> But I have to ask:   why would you want to NOT use F::Q?
> >>
> >> -derek
> >>
> >> Quoting nospamforas <nospamforas at gmx.net>:
> >>
> >> > Hi,
> >> >
> >> > gnucash imports prices using Finance::Quote. I don't want to use it.
> >> >
> >> > Suppose I got the quotes in some other way from somewhere and have
> >> > them stored
> >> > in a datastore, e.g. a file. It would be very nice, if I could import them
> >> > without Finance::Quote.
> >> >
> >> > I would prefer to have an API, so that one can switch the implementation
> >> > (program, application) from Finance::Quote to something other.
> >> >
> >> > It might help, if someone could describe the current interface to
> >> > Finance::Quote.
> >> >
> >> > - AS
> >> > _______________________________________________
> >> > gnucash-devel mailing list
> >> > gnucash-devel at gnucash.org
> >> > https://lists.gnucash.org/mailman/listinfo/gnucash-devel
> >> >
> >>
> >>
> >>
> >
> >
>
>
>
> --
>        Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
>        Member, MIT Student Information Processing Board  (SIPB)
>        URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
>        warlord at MIT.EDU                        PGP key available
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
>


-- 
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (entrámite, pero para los
cuates: LIBRE)



More information about the gnucash-devel mailing list