Share and Money Management 0.18devel
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
smm.quote.raiffeisen.RaiffeisenFetchPlugin Class Reference

Share data tracker querying quotes of Raiffeisen fonds. More...

Inheritance diagram for smm.quote.raiffeisen.RaiffeisenFetchPlugin:

Public Member Functions

def getCurrent (self, request)
 Obtain information from the data provider. More...
 

Static Public Attributes

int interface_version = 2
 Version number of the interface to access and convert the data. More...
 
string logger_name = "smm.quote.raiffeisen"
 Name of the instance logger. More...
 
string name = "Raiffeisen Bankengruppe"
 Name of the data source. More...
 
int provider_id = 300
 Unique provider ID. More...
 
string dsep = ","
 Decimal separator for converting strings to decimal values. More...
 
 tsep = None
 Thousands separator for converting strings to decimal values. More...
 
tuple provider_url
 URL to query the data. More...
 
- Static Public Attributes inherited from smm.quote.base.FetchPluginBase
list properties = []
 List of supported properties. More...
 
bool check_robotfile = True
 Check and respect the robots.txt file. More...
 
bool active = True
 Set False to deactivate a plugin. More...
 
int interface_version = 2
 Version number of the interface to access and convert the data. More...
 
string logger_name = "smm.quote.base"
 Name of the instance logger. More...
 
string name = "Override in derivated class!"
 Name of the data source. More...
 
 provider_id = None
 Unique provider ID. More...
 
string dsep = ","
 Decimal separator for converting strings to decimal values. More...
 
 tsep = None
 Thousands separator for converting strings to decimal values. More...
 
 logger = None
 Instance logger. More...
 
int max_retries = 3
 Number of retries for temporary connection errors. More...
 
tuple user_agent
 Define an own user agent string. More...
 

Static Private Attributes

list _specific_properties
 

Detailed Description

Share data tracker querying quotes of Raiffeisen fonds.

The used source has some special attributes. The WKN is the austrian one and the date is without year. The date will complete using the current year.

Member Function Documentation

◆ getCurrent()

def smm.quote.raiffeisen.RaiffeisenFetchPlugin.getCurrent (   self,
  request 
)

Obtain information from the data provider.

Parameters
selfThe object instance itself
requestSee example
Example:
>>> import pprint
>>> pprint.pprint(request)
{u'AT0000936513': {'currency.code': u'EUR',
'share.isin': u'AT0000936513',
'share.wkn': u'973205'}}
>>> pprint.pprint(result)
{u'AT0000936513': {'currency.code': u'EUR',
'errormsg': None,
'kind': u'fond',
'quote.datetime': datetime.datetime(2010, 5, 14, 0, 0),
'quote.nchange': Decimal("10.59"),
'quote.pchange': Decimal("0.0427"),
'quote.price': Decimal("258.67"),
'share.isin': u'AT0000936513',
'share.issuer': u'Raiffeisen KAG',
'share.name': u'Raiffeisen-Osteuropa-Aktien R A',
'share.wkn': u'93651',
'source.id': 300,
'source.name': u'Raiffeisen Bankengruppe',
'success': True}}
Share data tracker querying quotes of Raiffeisen fonds.
Definition: raiffeisen.py:42

References smm.quote.base.FetchPluginBase.logger, smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url, smm.quote.yahoo.YahooCSVFetchPlugin.provider_url, smm.quote.yahoo.YahooWebFetchPlugin.provider_url, and smm.quote.yahoo.YahooQueryFetchPlugin.provider_url.

Member Data Documentation

◆ _specific_properties

list smm.quote.raiffeisen.RaiffeisenFetchPlugin._specific_properties
staticprivate
Initial value:
= [
"currency.code",
"share.isin",
"share.name",
"net",
"quote.pchange",
"quote.price",
"share.wkn",
]

◆ dsep

string smm.quote.raiffeisen.RaiffeisenFetchPlugin.dsep = ","
static

Decimal separator for converting strings to decimal values.

See also
attr2decimal()
tsep

◆ interface_version

int smm.quote.raiffeisen.RaiffeisenFetchPlugin.interface_version = 2
static

Version number of the interface to access and convert the data.

◆ logger_name

string smm.quote.raiffeisen.RaiffeisenFetchPlugin.logger_name = "smm.quote.raiffeisen"
static

Name of the instance logger.

◆ name

string smm.quote.raiffeisen.RaiffeisenFetchPlugin.name = "Raiffeisen Bankengruppe"
static

◆ provider_id

int smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_id = 300
static

Unique provider ID.

◆ provider_url

tuple smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url
static
Initial value:
= (
"http://rdg.ttweb.net/redesign/fundTool/kurzInfo.asp?ID=%(isin)s&output=print"
)

URL to query the data.

Referenced by smm.quote.raiffeisen.RaiffeisenFetchPlugin.getCurrent(), smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent(), smm.quote.yahoo.YahooWebFetchPlugin.getCurrent(), and smm.quote.yahoo.YahooQueryFetchPlugin.getCurrent().

◆ tsep

smm.quote.raiffeisen.RaiffeisenFetchPlugin.tsep = None
static

Thousands separator for converting strings to decimal values.

See also
attr2decimal()
dsep

The documentation for this class was generated from the following file: