Share and Money Management  0.16
Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
smm.quote.vwd.VwdFetchPlugin Class Reference

Share data tracker querying finance data provided by VWD AG. More...

Inheritance diagram for smm.quote.vwd.VwdFetchPlugin:

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.vwd'
 Name of the instance logger.
string name = u'vwd'
 Name of the data source.
int provider_id = 200
 Unique provider ID.
string dsep = u','
 Decimal separator for converting strings to decimal values.
 tsep = None
 Thousands separator for converting strings to decimal values.
string provider_url_base = 'http://www.finanztreff.de'
 URL base to query the data.
string provider_url_request_1 = 'ftreff/kurse_einzelkurs_uebersicht.htm?s=%(wkn)s'
 Reqest to get the first data page.
string provider_url_request_2 = 'ftreff/redirect.htm?kurs=%(wkn)s&fonds=&zertifikate=&os=&turbos=&u=0&p=0&k=0&suche=1'
 Reqest to get another data page.

Static Private Attributes

list _specific_properties

Detailed Description

Share data tracker querying finance data provided by VWD AG.

Note
The website has been changed. Thereby the class doesn't work currently.

Member Function Documentation

def smm.quote.vwd.VwdFetchPlugin.getCurrent (   self,
  request 
)

Obtain information from the data provider.

Parameters
selfThe object instance itself
requestSee example
Example:
>>> import pprint
>>> pprint.pprint(request)
{u'DE0005003404': {'exchange.symbol': u'DE',
'share.isin': u'DE0005003404',
'share.symbol': u'ADS',
'share.wkn': u'500340'}}
>>> result = provider.getCurrent(request)
>>> pprint.pprint(result)
{'500340': {'currency.code': u'EUR',
'quote.datetime': datetime.datetime(2008, 1, 25, 19, 43, 52),
'errormsg': None,
'exchange.name': u'Frankfurt',
'share.isin': u'DE0005003404',
'share.name': u'Adidas',
'quote.nchange': Decimal("-1.00"),
'quote.pchange': Decimal("-0.1"),
'quote.price': 'Decimal("1.21"),
'source.id': 200,
'source.name': u'vwd',
'success': True,
'share.symbol': u'ADS',
'share.wkn': u'500340'}}

References smm.quote.base.FetchPluginBase.attr2decimal(), smm.quote.base.FetchPluginBase.getRemotePage(), smm.quote.base.FetchPluginBase.getSoup(), smm.quote.base.FetchPluginBase.initShareStruct(), smm.quote.vwd.VwdFetchPlugin.provider_url_base, smm.quote.vwd.VwdFetchPlugin.provider_url_request_1, smm.quote.vwd.VwdFetchPlugin.provider_url_request_2, and smm.quote.base.FetchPluginBase.timestamp2datetime().

Here is the call graph for this function:

Member Data Documentation

list smm.quote.vwd.VwdFetchPlugin._specific_properties
staticprivate
Initial value:
['quote.ask', 'quote.bid', 'currency.code',
'quote.datetime', 'exchange.name', 'share.isin',
'share.name', 'quote.nchange', 'quote.pchange',
'quote.price', 'share.symbol', 'share.wkn', ]
string smm.quote.vwd.VwdFetchPlugin.dsep = u','
static

Decimal separator for converting strings to decimal values.

See Also
attr2decimal()
tsep
int smm.quote.vwd.VwdFetchPlugin.interface_version = 2
static

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

string smm.quote.vwd.VwdFetchPlugin.logger_name = 'smm.quote.vwd'
static

Name of the instance logger.

string smm.quote.vwd.VwdFetchPlugin.name = u'vwd'
static

Name of the data source.

int smm.quote.vwd.VwdFetchPlugin.provider_id = 200
static

Unique provider ID.

string smm.quote.vwd.VwdFetchPlugin.provider_url_base = 'http://www.finanztreff.de'
static

URL base to query the data.

Referenced by smm.quote.vwd.VwdFetchPlugin.getCurrent().

string smm.quote.vwd.VwdFetchPlugin.provider_url_request_1 = 'ftreff/kurse_einzelkurs_uebersicht.htm?s=%(wkn)s'
static

Reqest to get the first data page.

Referenced by smm.quote.vwd.VwdFetchPlugin.getCurrent().

string smm.quote.vwd.VwdFetchPlugin.provider_url_request_2 = 'ftreff/redirect.htm?kurs=%(wkn)s&fonds=&zertifikate=&os=&turbos=&u=0&p=0&k=0&suche=1'
static

Reqest to get another data page.

Referenced by smm.quote.vwd.VwdFetchPlugin.getCurrent().

smm.quote.vwd.VwdFetchPlugin.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: