Share and Money Management  0.16
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 = u'Raiffeisen Bankengruppe'
 Name of the data source. More...
 
int provider_id = 300
 Unique provider ID. More...
 
string dsep = u','
 Decimal separator for converting strings to decimal values. More...
 
 tsep = None
 Thousands separator for converting strings to decimal values. More...
 
 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...
 
string encoding = 'ascii'
 Default encoding of all returned strings. 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 = u','
 Decimal separator for converting strings to decimal values. More...
 
 tsep = None
 Thousands separator for converting strings to decimal values. More...
 
int max_retries = 3
 Number of retries for temporary connection errors. More...
 
string user_agent = 'Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6'
 Define a 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}}

References smm.quote.raiffeisen.RaiffeisenFetchPlugin.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 = u','
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 = u'Raiffeisen Bankengruppe'
static

Name of the data source.

◆ provider_id

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

Unique provider ID.

◆ provider_url

smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url = \
static

◆ 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: