Share and Money Management 0.18devel
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 = "vwd"
 Name of the data source. More...
 
int provider_id = 200
 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...
 
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"
 Request 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"
 Request 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...
 
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 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'}}
Share data tracker querying finance data provided by VWD AG.
Definition: vwd.py:40

References smm.quote.base.FetchPluginBase.logger, 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 = ","
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 = "vwd"
static

◆ 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

Request 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

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