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 (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.vwd'
 Name of the instance logger. More...
 
string name = u'vwd'
 Name of the data source. More...
 
int provider_id = 200
 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...
 
string provider_url_base = 'http://www.finanztreff.de'
 URL base to query the data. More...
 
string provider_url_request_1 = 'ftreff/kurse_einzelkurs_uebersicht.htm?s=%(wkn)s'
 Reqest to get the first data page. More...
 
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. 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 finance data provided by VWD AG.

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

Member Function Documentation

◆ getCurrent()

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.vwd.VwdFetchPlugin.provider_url_base, smm.quote.vwd.VwdFetchPlugin.provider_url_request_1, and smm.quote.vwd.VwdFetchPlugin.provider_url_request_2.

Member Data Documentation

◆ _specific_properties

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', ]

◆ dsep

string smm.quote.vwd.VwdFetchPlugin.dsep = u','
static

Decimal separator for converting strings to decimal values.

See also
attr2decimal()
tsep

◆ interface_version

int smm.quote.vwd.VwdFetchPlugin.interface_version = 2
static

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

◆ logger_name

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

Name of the instance logger.

◆ name

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

Name of the data source.

◆ provider_id

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

Unique provider ID.

◆ provider_url_base

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().

◆ provider_url_request_1

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().

◆ provider_url_request_2

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().

◆ tsep

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: