pywind.roc
¶
pywind.roc.eroc
¶
-
class
pywind.roc.eroc.
EROCPrices
[source]¶ Bases:
object
The EROCPrices class provides access to the auction data from the eRIC website. Once created the
get_prices()
is called to get the latest information from their website and parse the results into period prices.Once parsed period information can be accessed by using the class object as a dict, i.e. eroc[200701] would return the average proce for auction(s) held in Jan 2007.
>>> from pywind.roc.eroc import EROCPrices >>> eroc = EROCPrices() >>> eroc.get_prices() True >>> eroc[200701] 46.17
-
URL
= 'http://www.epowerauctions.co.uk/erocrecord.htm'¶
-
prices
()[source]¶ Generator to return the calculated price data.
Returns: Tuple of period, price Return type: tuple
-