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
 Obtain information from the data provider.

Static Public Attributes

int interface_version = 2
 Version number of the interface to access and convert the data.
string logger_name = 'smm.quote.raiffeisen'
 Name of the instance logger.
string name = u'Raiffeisen Bankengruppe'
 Name of the data source.
int provider_id = 300
 Unique provider ID.
string dsep = u','
 Decimal separator for converting strings to decimal values.
 tsep = None
 Thousands separator for converting strings to decimal values.
 provider_url = \
 URL to query the data.

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

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.base.FetchPluginBase.attr2decimal(), smm.quote.base.FetchPluginBase.getHTML(), smm.quote.base.FetchPluginBase.getSoup(), smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url, and smm.quote.base.FetchPluginBase.timestamp2datetime().

Here is the call graph for this function:

Member Data Documentation

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

Decimal separator for converting strings to decimal values.

See Also
attr2decimal()
tsep
int smm.quote.raiffeisen.RaiffeisenFetchPlugin.interface_version = 2
static

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

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

Name of the instance logger.

string smm.quote.raiffeisen.RaiffeisenFetchPlugin.name = u'Raiffeisen Bankengruppe'
static

Name of the data source.

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

Unique provider ID.

smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url = \
static
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: