Getting Live Data

28 views
Skip to first unread message

Ingo Dahn

unread,
Feb 5, 2019, 10:56:29 AM2/5/19
to sage-support
Some time ago Sage had a function to pull live stock exchange data and that broke. 
Is there again any way to pull live data from some source?

Dima Pasechnik

unread,
Feb 5, 2019, 11:01:13 AM2/5/19
to sage-support
It might help to see the error message - not many people here would
have an idea where this could come from.

On Tue, Feb 5, 2019 at 10:56 AM Ingo Dahn <ingo...@gmail.com> wrote:
>
> Some time ago Sage had a function to pull live stock exchange data and that broke.
> Is there again any way to pull live data from some source?
>
> --
> You received this message because you are subscribed to the Google Groups "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-support...@googlegroups.com.
> To post to this group, send email to sage-s...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

Ingo Dahn

unread,
Feb 5, 2019, 11:14:56 AM2/5/19
to sage-s...@googlegroups.com
See http://doc.sagemath.org/html/en/reference/finance/sage/finance/stock.html. I'd be interested in any alternative source for live data for use in statistics classes.

You received this message because you are subscribed to a topic in the Google Groups "sage-support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sage-support/Xdn43GBKhRI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sage-support...@googlegroups.com.

Dima Pasechnik

unread,
Feb 5, 2019, 11:33:51 AM2/5/19
to sage-support
On Tue, Feb 5, 2019 at 11:14 AM Ingo Dahn <ingo...@gmail.com> wrote:
>
> See http://doc.sagemath.org/html/en/reference/finance/sage/finance/stock.html. I'd be interested in any alternative source for live data for use in statistics classes.

You see that it refers to a number of Sage tickets...

We can propose this as a Google Summer of Code project, to fix
some of what's fixable there.


Perhaps it would be better to rely on a special Python package for
this than to roll your own...

Nils Bruin

unread,
Feb 5, 2019, 5:42:42 PM2/5/19
to sage-support
On Tuesday, February 5, 2019 at 3:14:56 AM UTC-8, Ingo Dahn wrote:
See http://doc.sagemath.org/html/en/reference/finance/sage/finance/stock.html. I'd be interested in any alternative source for live data for use in statistics classes.

Haven't used it so I can't vouch for the quality, but https://pypi.org/project/yahoo-fin/ looks like it's been updated recently. At least installing it should be easy and then reshaping the data to fit in pandas or some sage data structure should be straightforward.

I don't think we'd want it to be a dependency for sage, but we certainly wouldn't want to *replicate* it in sage without a good reason.

slelievre

unread,
Feb 5, 2019, 10:11:55 PM2/5/19
to sage-support
2019-02-05 10:56:29 UTC, Ingo Dahn:
>
> Some time ago Sage had a function to pull live
> stock exchange data and that broke. Is there again
> any way to pull live data from some source?

Tickets whose summary includes "finance":


have some information on the topic. The lost functionality
has not been recovered at this stage. If yahoo_fin provides
some of that functionality, it would be nice to include that
information in the discussion on those tickets, and ideally
in Sage's documentation.
Reply all
Reply to author
Forward
0 new messages