Class to handle watch list entries.
More...
◆ __init__()
def smm.objects.Watch.__init__ |
( |
|
self, |
|
|
|
share, |
|
|
|
created = datetime.date.today() , |
|
|
|
expire = None , |
|
|
|
notes = None |
|
) |
| |
◆ __str__()
def smm.objects.Watch.__str__ |
( |
|
self | ) |
|
Returns the content of this instance as string.
References smm.objects.Watch.created, smm.objects.Watch.expire, 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, smm.objects.Position.id, gui.dialogs.DlgTrade.share, gui.dialogs.DlgShare.share, smm.objects.DailyQuote.share, smm.objects.Watch.share, and smm.objects.Position.share.
Referenced by smm.objects.SMMBaseObject.__repr__().
◆ get()
def smm.objects.Watch.get |
( |
|
id = None , |
|
|
|
expired = False , |
|
|
|
share = None |
|
) |
| |
|
static |
Query Watch objects.
There are three ways for querying objects:
- Querying by
id
returns a Watch object or None
- Query special entries described using
share
and/or expired
- Querying without parameters to get all Watch objects
The last two ways returns always a storm.store.ResultSet.
- Parameters
-
id | Returns a watch list entry specified by id. |
expired | Boolean flag to returns all expired watch list entries. |
share | Returns a watch list entry specified by share. |
- Sorting:
- The result are unsorted
- Test:
- tests.test_objects.TestObjects.test_Watch_get()
◆ remove()
def smm.objects.Watch.remove |
( |
|
self | ) |
|
◆ __storm_table__
string smm.objects.Watch.__storm_table__ = "t_watch" |
|
staticprivate |
Use given table to store all of this class inside.
◆ arguments
dictionary smm.objects.Watch.arguments |
|
static |
◆ created
smm.objects.Watch.created = Date() |
|
static |
◆ expire
smm.objects.Watch.expire = Date() |
|
static |
◆ id
smm.objects.Watch.id = Int(default=AutoReload, primary=True) |
|
static |
◆ notes
smm.objects.Watch.notes = Unicode() |
|
static |
◆ psTopic
string smm.objects.Watch.psTopic = "smm.watch" |
|
static |
◆ share
Reference to the Share object
This uses a backwards references to prevent trouble with cross- references
Referenced by smm.objects.Watch.__init__(), smm.objects.DailyQuote.__str__(), smm.objects.Watch.__str__(), smm.objects.Position.__str__(), gui.dialogs.DlgTrade._prepareBuy(), gui.dialogs.DlgShare._processInput(), gui.dialogs.DlgShare._setShare(), gui.dialogs.DlgShare._validateInput(), smm.objects.Position.getLastQuote(), smm.objects.Position.getPerf(), gui.dialogs.DlgTrade.OnUpdateExistingPosition(), gui.dialogs.DlgTrade.OnUpdateNewPosition(), smm.objects.Watch.remove(), and smm.objects.Position.split().
The documentation for this class was generated from the following file: