Share and Money Management 0.18devel
Namespaces | Functions | Variables
smm.quote Namespace Reference

Functions to import and register data tracker modules. More...

Namespaces

namespace  base
 Basic functionality to handle finance data provided by public resources.
 
namespace  onvista
 Functionality to query the finance database of OnVista.
 
namespace  raiffeisen
 Functionality to query the finance database of Raiffeisen Bankengruppe.
 
namespace  vwd
 Functionality to query the finance database of VWD AG.
 
namespace  yahoo
 Classes to handle finance data provided by Yahoo.
 

Functions

def search_and_register ()
 Search, import and register FetchPlugins. More...
 
def _modules_from_zip (filename)
 Extract a list of plugins from a module zip archive. More...
 
def _modules_from_filesystem ()
 Search in the installation directory for plugins. More...
 
def fetchQuote (klass, share_list)
 Generic function to fetch quotes using a FetchPlugin. More...
 

Variables

dictionary source2class = {}
 Mapping of source id to a FetchPlugin. More...
 
dictionary source2name = {}
 Mapping of the source id to the name of the data fetcher. More...
 

Detailed Description

Functions to import and register data tracker modules.

Author
Carsten Grohmann <mail (at) carstengrohmann (dot) de>

Function Documentation

◆ _modules_from_filesystem()

def smm.quote._modules_from_filesystem ( )
private

Search in the installation directory for plugins.

Returns
List of module names

Referenced by smm.quote.search_and_register().

Here is the caller graph for this function:

◆ _modules_from_zip()

def smm.quote._modules_from_zip (   filename)
private

Extract a list of plugins from a module zip archive.

Parameters
filenamePath and Name of the module zip archive
Returns
List of module names

Referenced by smm.quote.search_and_register().

Here is the caller graph for this function:

◆ fetchQuote()

def smm.quote.fetchQuote (   klass,
  share_list 
)

Generic function to fetch quotes using a FetchPlugin.

The quotations are fetched and converted to daily quotes automatically.

Parameters
klassClass of the FetchPlugin
share_listList of Shares

References smm.math.round_and_remove_exponent().

Here is the call graph for this function:

◆ search_and_register()

def smm.quote.search_and_register ( )

Search, import and register FetchPlugins.

See also
_modules_from_zip()
_modules_from_filesystem()
source2class
source2name

References smm.quote._modules_from_filesystem(), and smm.quote._modules_from_zip().

Referenced by tests.test_misc.TestMisc.setUp().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ source2class

dictionary smm.quote.source2class = {}

Mapping of source id to a FetchPlugin.

See also
getPrimarySourceID()
source2name

◆ source2name

dictionary smm.quote.source2name = {}

Mapping of the source id to the name of the data fetcher.

See also
source2class