Share and Money Management 0.18devel
|
Class to handle Currency data. More...
Public Member Functions | |
def | __str__ (self) |
Returns the content of this instance as string. More... | |
Public Member Functions inherited from smm.objects.SMMBaseObject | |
def | __init__ (self, **kwargs) |
Initialise the instance and set attributes optionally. More... | |
def | __repr__ (self) |
Returns the representation of this object as string. More... | |
def | update (self, **kwargs) |
Update instance arguments. More... | |
def | add2db (self) |
Add an object to the database. More... | |
Static Public Member Functions | |
def | get (id=None, code=None, sign=None) |
Query Currency objects. More... | |
def | getCount () |
Returns the number of known currencies. More... | |
Static Public Attributes | |
dictionary | arguments |
string | psTopic = "smm.currency" |
id = Int(default=AutoReload, primary=True) | |
Unique ID for each object. More... | |
code = Unicode() | |
ISO 4217 currency code. More... | |
sign = Unicode() | |
Short sign. More... | |
description = Unicode() | |
Detailed description. More... | |
Static Public Attributes inherited from smm.objects.SMMBaseObject | |
dictionary | arguments |
Set of argument names for keyword arguments. More... | |
encoding = sys.stdout.encoding or sys.getdefaultencoding() | |
Encoding of all character strings. More... | |
psTopic = None | |
Publish Subscribe Topic for this class. More... | |
id = None | |
Unique ID for each object. More... | |
Static Private Attributes | |
string | __storm_table__ = "t_currency" |
Use given table to store all of this class inside. More... | |
Class to handle Currency data.
def smm.objects.Currency.__str__ | ( | self | ) |
Returns the content of this instance as string.
References smm.objects.Currency.code, smm.objects.SMMBaseObject.id, smm.objects.Exchange.id, smm.objects.Currency.id, smm.objects.Share.id, smm.objects.DailyQuote.id, smm.objects.Transaction.id, smm.objects.Watch.id, and smm.objects.Position.id.
Referenced by smm.objects.SMMBaseObject.__repr__().
|
static |
Query Currency objects.
There are two ways for querying objects:
id
returns a Currency object or None
code
returns a Currency object or None
sign
returns a Currency object or None
The last way returns always a storm.store.ResultSet.
id | Returns a Currency object specified by id |
code | Returns a Currency object specified by code |
sign | Returns a Currency object specified by sign |
|
static |
Returns the number of known currencies.
|
staticprivate |
Use given table to store all of this class inside.
|
static |
Referenced by smm.objects.SMMBaseObject._setAttrs().
|
static |
ISO 4217 currency code.
Referenced by smm.objects.Currency.__str__().
|
static |
Detailed description.
Referenced by smm.objects.Exchange.__str__().
|
static |
Unique ID for each object.
Referenced by smm.objects.Exchange.__str__(), smm.objects.Currency.__str__(), smm.objects.Share.__str__(), smm.objects.DailyQuote.__str__(), smm.objects.Transaction.__str__(), smm.objects.Watch.__str__(), smm.objects.Position.__str__(), smm.objects.SMMBaseObject._remove(), and smm.objects.Transaction.getVolume().
|
static |
|
static |
Short sign.