Share and Money Management 0.18devel
|
Share data tracker querying Yahoo finance data. More...
Public Member Functions | |
def | __init__ (self) |
def | getCurrent (self, request) |
Obtain information from the data provider. More... | |
Public Attributes | |
properties | |
Static Public Attributes | |
list | field_symbols |
Yahoo encoded property names. More... | |
list | field_names |
Property names. More... | |
tuple | yahoo2smm |
Mapping of Yahoo properties to SMM properties. More... | |
list | decimal_properties |
Decimal values. More... | |
list | unicode_properties |
Unicode values. More... | |
bool | active = False |
Yahoo has retired this service in November 2017. More... | |
int | interface_version = 2 |
Version number of the interface to access and convert the data. More... | |
string | logger_name = "smm.quote.yahoocsv" |
Name of the instance logger. More... | |
string | name = "Yahoo Finance CSV" |
Name of the data source. More... | |
int | provider_id = 100 |
Unique provider ID. More... | |
string | provider_url = "http://download.finance.yahoo.com/d/quotes.csv" |
URL to query the data. More... | |
string | dsep = "," |
Decimal separator for converting strings to decimal values. More... | |
tsep = None | |
Thousands separator for converting strings to decimal values. 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... | |
Share data tracker querying Yahoo finance data.
This tracker uses the Yahoo CSV API.
def smm.quote.yahoo.YahooCSVFetchPlugin.__init__ | ( | self | ) |
def smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent | ( | self, | |
request | |||
) |
Obtain information from the data provider.
self | The object instance itself |
request | See example |
References smm.quote.yahoo.YahooCSVFetchPlugin.decimal_properties, smm.quote.yahoo.YahooWebFetchPlugin.decimal_properties, smm.quote.yahoo.YahooCSVFetchPlugin.field_names, smm.quote.yahoo.YahooCSVFetchPlugin.field_symbols, smm.quote.base.FetchPluginBase.logger, smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url, smm.quote.yahoo.YahooCSVFetchPlugin.provider_url, smm.quote.yahoo.YahooWebFetchPlugin.provider_url, smm.quote.yahoo.YahooQueryFetchPlugin.provider_url, smm.quote.yahoo.YahooCSVFetchPlugin.unicode_properties, and smm.quote.yahoo.YahooCSVFetchPlugin.yahoo2smm.
|
static |
Yahoo has retired this service in November 2017.
|
static |
Decimal values.
Those returned values will be converted into decimal.Decimal values
Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent(), and smm.quote.yahoo.YahooWebFetchPlugin.getCurrent().
|
static |
Decimal separator for converting strings to decimal values.
|
static |
Property names.
A symbol corresponds with the symbol listed at the same position in field_symbols.
Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.__init__(), and smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent().
|
static |
Yahoo encoded property names.
A property corresponds with the name listed at the same position in field_names.
Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent().
|
static |
Version number of the interface to access and convert the data.
|
static |
Name of the instance logger.
|
static |
Name of the data source.
Referenced by smm.objects.Share.__str__(), and smm.quote.yahoo.YahooQueryFetchPlugin.getCurrent().
smm.quote.yahoo.YahooCSVFetchPlugin.properties |
Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.__init__().
|
static |
Unique provider ID.
|
static |
URL to query the data.
Referenced by smm.quote.raiffeisen.RaiffeisenFetchPlugin.getCurrent(), smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent(), smm.quote.yahoo.YahooWebFetchPlugin.getCurrent(), and smm.quote.yahoo.YahooQueryFetchPlugin.getCurrent().
|
static |
Thousands separator for converting strings to decimal values.
|
static |
Unicode values.
Those returned values will be converted into Unicode values
Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent().
|
static |
Mapping of Yahoo properties to SMM properties.
Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent().