Share and Money Management  0.16
Namespaces | Functions
migration_db_v2_v3.py File Reference

Namespaces

 contrib.migration_db_v2_v3
 

Functions

def contrib.migration_db_v2_v3.migrate_data ()
 Create relationships between transactions and new introduced position objects. More...
 

Detailed Description

Convert data to new DB and object structure

Use reversion smm/objects.py Revision 1.57 to perform the update. This revision has the old and the new structures.

Author
Carsten Grohmann <mail (at) carstengrohmann (dot) de>
License:
GPL version 2.0
gui.dialogs.DlgPreferences.OnCreateDatabase
def OnCreateDatabase(self, event)
Create a new database.
Definition: dialogs.py:2118
smm.objects.Transaction.count
count
Number of shares to buy or sell.
Definition: objects.py:964
gui.UIPositionReport.UIPositionReport.static_line
static_line
Definition: UIPositionReport.py:40
gui.SMMGui.__init__
def __init__(self, redirect=False, filename=None)
Constructor.
Definition: __init__.py:124
tests.test_objects.TestObjects.test_Config_objects
def test_Config_objects(self)
Tests creating, searching and destroying smm.objects.Config objects.
Definition: test_objects.py:1995
gui.MainWindow.OnCloseIndex
def OnCloseIndex(self, event)
Cleanup / udate actions on closing indices panel.
Definition: __init__.py:898
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.pn_Details
pn_Details
Definition: UIBasePanelOpenPositionDetails.py:38
gui.UITrade.UITrade.dp_DividendDate
dp_DividendDate
Definition: UITrade.py:128
gui.dialogs.DlgTrade.OnUpdateExistingPosition
def OnUpdateExistingPosition(self, unused=None)
Update position related widgets.
Definition: dialogs.py:952
gui.dialogs.DlgShare.setFixedShareKind
def setFixedShareKind(self, kind)
Set the specified share kind and disable changing the kind.
Definition: dialogs.py:1628
gui.helper.formatCurrencyLong
def formatCurrencyLong(currency)
Returns the formatted currency or an empty string.
Definition: helper.py:167
gui.UITrade.UITrade.st_SwapColon2
st_SwapColon2
Definition: UITrade.py:159
setup
Definition: setup.py:1
gui.controls.NotEmptyChoiceValidator.Clone
def Clone(self)
Standard cloner.
Definition: controls.py:1078
smm.objects.Position.getLastQuote
def getLastQuote(self)
Returns the latest quotation of a share.
Definition: objects.py:1686
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bm_Trend
bm_Trend
Definition: UIBasePanelOpenPositionDetails.py:127
gui.controls.ShareDetailsPanel.tc_Name
tc_Name
Definition: controls.py:1132
gui.panel.PanelOpenPositionDetails.psUpdateContent
def psUpdateContent(self)
Update the panel if new quotes are available.
Definition: panel.py:1267
gui.UIPortfolioReport.UIPortfolioReport.bn_Cancel
bn_Cancel
Definition: UIPortfolioReport.py:62
gui.dialogs.DlgFetchQuotes._calc_and_show_delta
def _calc_and_show_delta(self, prev_value, current_value, row, column)
Calculate the different between previous and current value and show it in percent.
Definition: dialogs.py:295
gui.panel.PanelShare
Panel to show and maintain all shares.
Definition: panel.py:248
smm.quote.base.FetchPluginBase.dsep
string dsep
Decimal separator for converting strings to decimal values.
Definition: base.py:98
tests.test_objects.TestObjects.test_Config_get
def test_Config_get(self)
Test the smm.objects.Config.get() command.
Definition: test_objects.py:2021
tests.test_objects.TestObjects.test_Watch_objects
def test_Watch_objects(self)
Tests creating smm.objects.Watch objects.
Definition: test_objects.py:900
tests.test_maskededit.TestMasked.test_processMask
def test_processMask(self)
Definition: test_maskededit.py:55
gui.log.getBufferAsList
def getBufferAsList(clean=True)
Returns all buffered messages.
Definition: log.py:415
gui.controls.SortedListPanel.createList
def createList(self)
Create list, add header and enable sorting.
Definition: controls.py:239
tests.test_maskededit.TestMasked.tearDown
def tearDown(self)
Definition: test_maskededit.py:52
gui.UITrade.UITrade.tc_BuySum
tc_BuySum
Definition: UITrade.py:109
gui.images.getSmallUpArrowBitmap
def getSmallUpArrowBitmap()
Definition: images.py:76
gui.UITrade.UITrade.st_SwapPrefixDate
st_SwapPrefixDate
Definition: UITrade.py:153
gui.UIFetchQuotes.UIFetchQuotes.bn_fetch
bn_fetch
Definition: UIFetchQuotes.py:93
gui.panel.PanelCurrency._addCurrency
def _addCurrency(self, currency)
Add a smm.objects.Currency object to the list control.
Definition: panel.py:161
smm.objects.SMMBaseObject.__init__
def __init__(self, **kwargs)
Initialise the instance and set attributes optionally.
Definition: objects.py:96
gui.UITrade.UITrade.st_BuyPlus2
st_BuyPlus2
Definition: UITrade.py:106
gui.UITrade.UITrade.tc_DividendSum
tc_DividendSum
Definition: UITrade.py:138
gui.dialogs.DlgTrade._prepareSwap
def _prepareSwap(self)
Prepare "Swap" transaction by storing all related values in results.
Definition: dialogs.py:1446
smm.objects.SMMBaseObject.update
def update(self, **kwargs)
Update instance arguments.
Definition: objects.py:326
smm.quote.base.FetchPluginBase._specific_properties
list _specific_properties
Property names.
Definition: base.py:69
gui.controls.BaseChoice._formatElement
def _formatElement(self, obj)
Return the formatted object.
Definition: controls.py:691
smm.objects.Transaction.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:1049
smm.objects.Share.watch
watch
Reference to the Watch list object
Definition: objects.py:603
gui.helper.formatShare
def formatShare(share)
Returns the formatted share or an empty string.
Definition: helper.py:338
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList
Definition: UIBasePanelOpenPositionList.py:16
gui.controls.BaseChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:666
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_ProfitRelative_1Y
tc_ProfitRelative_1Y
Definition: UIBasePanelOpenPositionDetails.py:152
gui.dialogs.DlgPreferences.__init__
def __init__(self, parent, db_file, log_level)
Initialise dialog.
Definition: dialogs.py:2080
gui.helper.formatTransactionKind
def formatTransactionKind(transaction)
Returns the transaction type as a string or an empty string.
Definition: helper.py:394
tests.test_database.TestDatabase.setUp
def setUp(self)
Creates a in-memory database.
Definition: test_database.py:43
gui.UITrade.UITrade.st_SwapNewShare
st_SwapNewShare
Definition: UITrade.py:161
gui.MainWindow.OnCloseShare
def OnCloseShare(self, event)
Cleanup / udate actions on closing share panel.
Definition: __init__.py:886
gui.helper.ReverseDict.__setitem__
def __setitem__(self, key, value)
Set a new key / value pair.
Definition: helper.py:96
gui.panel.PanelShare.populateList
def populateList(self)
Fill the share list.
Definition: panel.py:300
gui.MainWindow.OnClosePositionDetails
def OnClosePositionDetails(self, event)
Cleanup / udate actions on closing open position panel.
Definition: __init__.py:910
gui.dialogs.DlgPreferences.log_level
log_level
Definition: dialogs.py:2086
gui.controls.SortedListCtrl.GetSortImages
def GetSortImages(self)
Returns a tuple of images that shows the sorting order in the column header.
Definition: controls.py:377
gui.panel.PanelShare.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: panel.py:254
smm.objects.Config.value
value
Configuration value.
Definition: objects.py:2107
gui.controls.PositionDetailsPanel.tc_Notes
tc_Notes
Definition: controls.py:1198
tests.test_gui.TestGui
Test processing of masked for maskededit controls.
Definition: test_gui.py:43
gui.controls.EncodingChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:812
smm.objects.DailyQuote.high
high
Highest value of the day.
Definition: objects.py:822
gui.controls.ShareDetailsPanel.tc_Symbol
tc_Symbol
Definition: controls.py:1135
smm.quote.base.FetchPluginBase.logger_name
string logger_name
Name of the instance logger.
Definition: base.py:87
gui.dialogs.DlgPositionReport.__init__
def __init__(self, parent)
Initialise dialog.
Definition: dialogs.py:1972
gui.dialogs.DlgPositionReport.OnShowReport
def OnShowReport(self, event)
Show the report for the selected position.
Definition: dialogs.py:2051
gui.panel.PanelOpenPositionList.red_arrow_idx
red_arrow_idx
Definition: panel.py:815
gui.panel.PanelWatchList
Panel to show all open positions.
Definition: panel.py:1315
gui.dialogs.DlgFetchQuotes._show_selected_shares
def _show_selected_shares(self)
Show all currently selected shares in the shares grid.
Definition: dialogs.py:263
smm.objects.DailyQuote.getLast
def getLast(share, currency=None)
Returns the latest DailyQuote for a share.
Definition: objects.py:928
gui.UIHtml.UIHtml.OnPrintPreview
def OnPrintPreview(self, event)
Definition: UIHtml.py:66
gui.dialogs.DlgPortfolioReport.getEndDate
def getEndDate(self)
Return the end date for a report.
Definition: dialogs.py:1932
gui.controls.SortedListCtrl
Sortable ListCtrl.
Definition: controls.py:282
gui.UITrade.UITrade.rbn_existing_position
rbn_existing_position
Definition: UITrade.py:58
gui.UITrade.UITrade.st_BuyPrefixDate
st_BuyPrefixDate
Definition: UITrade.py:90
gui.MainWindow.helpmenu
helpmenu
Definition: __init__.py:292
smm.objects.DailyQuote.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:850
gui.panel.PanelExchange
Panel to show and maintain all exchanges.
Definition: panel.py:181
gui.panel.PanelOpenPositionDetails.OnSave
def OnSave(self, event)
Write changes back to the share.
Definition: panel.py:1286
gui.UITrade.UITrade.st_BuyMultiSign1
st_BuyMultiSign1
Definition: UITrade.py:97
gui.controls.ShareChoice
Choice widget to select a share.
Definition: controls.py:782
smm.objects.SMMBaseObject.arguments
dictionary arguments
Set of argument names for keyword arguments.
Definition: objects.py:66
smm.objects.Position.buy
def buy(self, count, value, fee=None, exchange=None, date=datetime.date.today())
Buy shares for the current Position.
Definition: objects.py:1806
gui.controls.PositionChoice.open_pos
open_pos
Flag to list open, closed or all positions.
Definition: controls.py:753
smm.objects.Transaction.getSwapDetails
def getSwapDetails(self)
Get details of a swap transaction.
Definition: objects.py:1179
gui.panel.PanelTransaction.populateList
def populateList(self)
Fill the transaction list.
Definition: panel.py:538
smm.objects
Definition: objects.py:1
smm.objects.Share.wkn
wkn
WKN of the share.
Definition: objects.py:570
tests.test_objects.TestObjects.store
store
Definition: test_objects.py:54
gui.dialogs.DlgShowPositionReport.ShowModal
def ShowModal(self, pos)
Show the dialog modal.
Definition: dialogs.py:2228
gui.controls.BaseChoice
A class derivated from the wx.Choice widget to filling with a set of objects.
Definition: controls.py:647
smm.objects.SMMBaseObject._toUnicode
def _toUnicode(self, value)
Convert any value into a unicode string.
Definition: objects.py:116
tests.test_gui.TestGui.test_DlgTrade_NoTransPos
def test_DlgTrade_NoTransPos(self)
Test DlgTrade with a position without transactions.
Definition: test_gui.py:66
gui.panel.PanelOpenPositionList.yellow_arrow_idx
yellow_arrow_idx
Definition: panel.py:813
smm.objects.Position.get
def get(id=None, open=None, share=None, currency=None)
Query Position objects.
Definition: objects.py:1478
smm.objects.Transaction.value
value
Value of one share.
Definition: objects.py:967
gui.UIBasePanelSummary.UIBasePanelSummary.tc_TotalCount
tc_TotalCount
Definition: UIBasePanelSummary.py:95
smm.objects.DailyQuote
Class to handle quotes.
Definition: objects.py:770
gui.MainWindow.ID_MANAGEMENU_FETCHQUOTES
ID_MANAGEMENU_FETCHQUOTES
Definition: __init__.py:254
gui.UITrade.UITrade.rbn_Buy
rbn_Buy
Definition: UITrade.py:83
smm.objects.Config.get
def get(key)
Get configuration values.
Definition: objects.py:2123
smm.quote.vwd.VwdFetchPlugin.getCurrent
def getCurrent(self, request)
Obtain information from the data provider.
Definition: vwd.py:108
gui.UIBasePanelSummary.UIBasePanelSummary
Definition: UIBasePanelSummary.py:14
smm.quote.yahoo.YahooCSVFetchPlugin.provider_url
string provider_url
URL to query the data.
Definition: yahoo.py:182
gui.dialogs.DlgTrade.calc_mode
calc_mode
Mode for calculation buy sum / sell sum.
Definition: dialogs.py:470
gui.helper
Definition: helper.py:1
tests.test_gui.TestGui.app
app
Definition: test_gui.py:49
gui.panel.PanelOpenPositionDetails.createListOpenPosition
def createListOpenPosition(self)
Create a header only list for all open positions.
Definition: panel.py:1112
gui.dialogs.DlgTrade.integer_width
integer_width
Width of the formatted integer part of a value.
Definition: dialogs.py:492
smm.math
Definition: math.py:1
gui.UIPortfolioReport.UIPortfolioReport.rbn_FromTo
rbn_FromTo
Definition: UIPortfolioReport.py:34
gui.controls.BaseValidator.TransferToWindow
def TransferToWindow(self)
Transfer data from validator to window.
Definition: controls.py:953
gui.controls.BaseChoice._addElements
def _addElements(self, elements)
Add the given elements to the Choice box.
Definition: controls.py:711
gui.MainWindow.createHelpMenu
def createHelpMenu(self)
Create "Help" menu.
Definition: __init__.py:544
gui.UITrade.UITrade.st_DividendPrefixDate
st_DividendPrefixDate
Definition: UITrade.py:127
smm.objects.Transaction.id
id
Unique ID for each object.
Definition: objects.py:961
gui.controls.BaseListSmall.popupmenu
popupmenu
Definition: controls.py:442
gui.UIShare.UIShare.cc_Source
cc_Source
Definition: UIShare.py:84
gui.controls.BaseDialog.OnOK
def OnOK(self, event)
Own OK button handler to validate the dialog logically using validateDialog()
Definition: controls.py:92
gui.controls.LogLevelChoice
Choice widget to select verbosity (count) of log messages.
Definition: controls.py:843
tests.test_database.TestDatabase.test_filling
def test_filling(self)
Tests initial loading using objects.
Definition: test_database.py:47
smm.objects.Position.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:1442
gui.panel.PanelShare.pmenu_editshare
pmenu_editshare
Definition: panel.py:274
gui.MainWindow.restoreSMMConfig
def restoreSMMConfig(self)
Restore GUI configuration of all SMM elements.
Definition: __init__.py:977
gui.panel.PanelWatchList.populateQuoteList
def populateQuoteList(self)
List all quotes refered by the selectet share.
Definition: panel.py:1435
gui.controls.DecimalValidator.Clone
def Clone(self)
Standard cloner.
Definition: controls.py:993
smm.objects.Share.getPrefCurrency
def getPrefCurrency(self)
Returns the preferred currency of a share.
Definition: objects.py:750
gui.UIPreferences.UIPreferences.bn_CreateNewDatabase
bn_CreateNewDatabase
Definition: UIPreferences.py:62
gui.MainWindow.OnPreferences
def OnPreferences(self, event)
Open preferences dialog.
Definition: __init__.py:661
gui.panel.PanelExchange._addExchange
def _addExchange(self, exchange)
Add a smm.objects.Exchange object to the list control.
Definition: panel.py:231
gui.UIBasePanelSummary.UIBasePanelSummary.tc_ExchangeCount
tc_ExchangeCount
Definition: UIBasePanelSummary.py:107
gui.controls.EncodingChoice
Choice widget to select encoding of a file.
Definition: controls.py:809
smm.objects.SMMBaseObject._checkAttrs
def _checkAttrs(self, **kwargs)
Check keyword arguments for completeness, types and value ranges.
Definition: objects.py:199
gui.UITrade.UITrade.tc_BuyCount
tc_BuyCount
Definition: UITrade.py:103
gui.panel.PanelShare.OnNewShare
def OnNewShare(self, event)
Show a dialog to create a new share.
Definition: panel.py:404
tests.test_objects.TestObjects.test_SMMBaseObject_AttributeConversion
def test_SMMBaseObject_AttributeConversion(self)
Tests the automatic conversion of attributes.
Definition: test_objects.py:643
gui.helper.moneyfmt
def moneyfmt(value, places=2, curr='', sep=',', dp='.', pos='', neg='-', trailneg='')
Convert Decimal to a money formatted string.
Definition: helper.py:450
gui.dialogs.DlgTrade._updateDateRangeShare
def _updateDateRangeShare(self)
Update date ranges triggered by setting / selecting a share.
Definition: dialogs.py:1202
gui.panel.PanelTransaction.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: panel.py:506
smm.quote.vwd.VwdFetchPlugin.provider_url_request_2
string provider_url_request_2
Reqest to get another data page.
Definition: vwd.py:75
gui.UITrade.UITrade.st_DividendCount
st_DividendCount
Definition: UITrade.py:129
gui.UITrade.UITrade.st_BuyValue
st_BuyValue
Definition: UITrade.py:98
gui.UIPreferences.UIPreferences.bn_OK
bn_OK
Definition: UIPreferences.py:71
gui.UIBasePanelSummary.UIBasePanelSummary.tc_ShareCount
tc_ShareCount
Definition: UIBasePanelSummary.py:77
gui.controls.BaseListSmall
Base class for a simple list to fill with elements of smm.objects.
Definition: controls.py:430
gui.MainWindow.menubar
menubar
Main menubar with all submenus.
Definition: __init__.py:296
gui.MainWindow.ID_FILEMENU_PREFERENCES
ID_FILEMENU_PREFERENCES
Definition: __init__.py:252
test.run_tests
def run_tests()
Create test suites and run all tests.
Definition: test.py:39
gui.controls.TransactionListSmall.createPopupMenu
def createPopupMenu(self)
Create the popup menu.
Definition: controls.py:579
gui.log.flush
def flush()
Empty the buffer.
Definition: log.py:429
gui.UIShare.UIShare.tc_Name
tc_Name
Definition: UIShare.py:36
gui.dialogs.DlgPreferences.db_file
db_file
Definition: dialogs.py:2084
gui.dialogs.DlgTrade.epoch_wx
epoch_wx
Earliest date for date controls (wx format)
Definition: dialogs.py:510
smm.objects.Watch
Class to handle watch list entries.
Definition: objects.py:1284
smm.objects.Share.currency
currency
Preferred currency.
Definition: objects.py:581
gui.UITrade.UITrade.__init__
def __init__(self, *args, **kwds)
Initialise dialog.
Definition: UITrade.py:46
gui.controls.BaseChoice.SetSelection
def SetSelection(self, obj)
Select an other object.
Definition: controls.py:724
tests.test_objects.TestObjects.setUp
def setUp(self)
Creates and initialise a (temporary) in-memory database.
Definition: test_objects.py:50
smm.objects.Currency.get
def get(id=None, code=None, sign=None)
Query Currency objects.
Definition: objects.py:503
gui.controls.TransactionListSmall.createHeader
def createHeader(self)
Creates a header only list.
Definition: controls.py:569
gui.UITrade.UITrade.st_BuyPlus1
st_BuyPlus1
Definition: UITrade.py:99
gui.UITrade.UITrade.tc_SwapOldRatio
tc_SwapOldRatio
Definition: UITrade.py:162
smm.objects.Exchange.get
def get(id=None, symbol=None, city=None)
Query Exchange objects.
Definition: objects.py:408
gui.panel.PanelOpenPositionDetails.OnCancel
def OnCancel(self, event)
Revert changes.
Definition: panel.py:1282
contrib.migration_db_v4_v5.migrate_data
def migrate_data()
Set event attributes of all split transactions.
Definition: migration_db_v4_v5.py:35
gui.panel.PanelIndex
Panel to show and maintain all indices.
Definition: panel.py:625
gui.controls.BaseChoice._getElements
def _getElements(self)
Return a list / iterator of all object to add to the choice control.
Definition: controls.py:695
gui.log.StringHandler.emit
def emit(self, record)
Emit a record.
Definition: log.py:137
tests.test_objects.TestObjects.test_Currency_get
def test_Currency_get(self)
Test the smm.objects.Currency.get() command.
Definition: test_objects.py:271
smm.quote.onvista.OnvistaFetchPlugin
Share data tracker querying quotes using OnVista service.
Definition: onvista.py:43
gui.log.StringHandler
Stores the log records as a list of strings.
Definition: log.py:67
gui.panel.PanelWatchList.OnDelete
def OnDelete(self, event)
Delete watch list entry.
Definition: panel.py:1597
gui.images.getSmallRedArrowBitmap
def getSmallRedArrowBitmap()
Definition: images.py:177
gui.controls.PositionDetailsPanel
A panel show show all information of a position.
Definition: controls.py:1179
gui.dialogs.DlgTrade.epoch
epoch
Earliest date for date controls (native Python)
Definition: dialogs.py:507
gui.log.deinstallExceptionHandler
def deinstallExceptionHandler()
Restore the original exception handler from sys.__excepthook__.
Definition: log.py:447
gui.UITrade.UITrade.sb_trade
sb_trade
Definition: UITrade.py:82
gui.UITrade.UITrade.bn_OK
bn_OK
Definition: UITrade.py:53
gui.MainWindow.ID_VIEWMENU_EXCHANGE
ID_VIEWMENU_EXCHANGE
Definition: __init__.py:264
smm.quote.yahoo.YahooCSVFetchPlugin.decimal_properties
list decimal_properties
Decimal values.
Definition: yahoo.py:151
gui.log.StringHandler.storeAsUnicode
bool storeAsUnicode
Stores the log records as unicode strings.
Definition: log.py:70
gui.dialogs.DlgPortfolioReport.OnRadio
def OnRadio(self, event)
Enable / disable widgets depending on the active radio button.
Definition: dialogs.py:1908
gui.dialogs.DlgTrade._processInput
def _processInput(self)
Create a transaction using all data.
Definition: dialogs.py:1537
gui.UIFetchQuotes.UIFetchQuotes.static_line_3
static_line_3
Definition: UIFetchQuotes.py:87
gui.dialogs.DlgTrade.OnActivateExistingPosition
def OnActivateExistingPosition(self, unused=None)
Activate "Existing position".
Definition: dialogs.py:814
setup.add_defaults_fixed
def add_defaults_fixed(self)
Definition: setup.py:49
smm.objects.Position.getPerf
def getPerf(self, withFee=False)
Calculates the performance of a Position.
Definition: objects.py:1584
gui.UITrade.UITrade.cb_SwapCloseEmpty
cb_SwapCloseEmpty
Definition: UITrade.py:169
smm.quote.base.FetchPluginBase.name
string name
Name of the data source.
Definition: base.py:90
gui.panel.PanelIndex.pmenu_editindex
pmenu_editindex
Definition: panel.py:642
gui.controls.TransactionKindChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:869
smmshell.run_shell
def run_shell()
Initialise the main components and open a Python shell to act in.
Definition: smmshell.py:58
gui.controls.BaseValidator.__init__
def __init__(self)
Constructor.
Definition: controls.py:935
gui.UITrade.UITrade.st_BuyMultiSign2
st_BuyMultiSign2
Definition: UITrade.py:104
gui.UIFetchQuotes.UIFetchQuotes.tc_status
tc_status
Definition: UIFetchQuotes.py:47
gui.dialogs.DlgTrade.OnActivateDividend
def OnActivateDividend(self, unused=None)
Activate "Dividend" radiobutton after a secondary widget has been focused.
Definition: dialogs.py:864
smm.quote.yahoo.YahooQueryFetchPlugin
Share data tracker querying Yahoo finance data.
Definition: yahoo.py:650
gui.controls.BaseListSmall.createHeader
def createHeader(self)
Creates a header only list.
Definition: controls.py:471
gui.controls.ShareDetailsPanel.flags_label
flags_label
Flags used with all label widgets (wx.StaticText)
Definition: controls.py:1106
tests.test_objects.TestObjects.test_Position_getLastQuote
def test_Position_getLastQuote(self)
Tests the smm.Position.getLastQuote() command.
Definition: test_objects.py:1537
gui.dialogs.DlgHtml.OnPrint
def OnPrint(self, event)
Definition: dialogs.py:1841
gui.MainWindow.OnCreateSummary
def OnCreateSummary(self, event)
Show a summary about the current deposit.
Definition: __init__.py:755
gui.log.ExceptionFormatter.formatException
def formatException(self, ei)
Returns a detailed exception.
Definition: log.py:159
gui.dialogs.DlgHtml.OnClose
def OnClose(self, event)
Close only the modal dialog.
Definition: dialogs.py:1834
gui.panel.PanelIndex._addIndex
def _addIndex(self, share)
Add a smm.objects.Share object to the list control.
Definition: panel.py:695
gui.panel.PanelIndex.OnShowPopup
def OnShowPopup(self, event)
Display the pop-up menu.
Definition: panel.py:747
smm.objects.Position.getVolume
def getVolume(self)
Calculate the volume of a Position.
Definition: objects.py:1552
gui.panel.PanelWatchList.OnItemSelected
def OnItemSelected(self, event)
Event handler to update the transaction list on selecting an open position.
Definition: panel.py:1561
gui.log.StringHandler.getBufferAsString
def getBufferAsString(self, clean=True)
Returns all buffered messages.
Definition: log.py:128
smm.objects.SMMBaseObject.__repr__
def __repr__(self)
Returns the representation of this object as string.
Definition: objects.py:270
gui.UITrade.UITrade.st_DividendEqualsSign2
st_DividendEqualsSign2
Definition: UITrade.py:137
gui.MainWindow.OnCreateTransaction
def OnCreateTransaction(self, event)
Show and maintain all transactions.
Definition: __init__.py:803
gui.UITrade.UITrade.st_BuySum
st_BuySum
Definition: UITrade.py:102
gui.UIShare.UIShare.bn_OK
bn_OK
Definition: UIShare.py:99
gui.panel.PanelOpenPositionDetails._addPosition
def _addPosition(self, pos)
Add a new single smm.objects.OpenPosition object to the list.
Definition: panel.py:1131
gui.controls.PositionDetailsPanel.flags_input
flags_input
Flags used for all input widgets.
Definition: controls.py:1185
gui.UITrade.UITrade.st_BuyFee
st_BuyFee
Definition: UITrade.py:100
smm.quote.yahoo.YahooCSVFetchPlugin.yahoo2smm
tuple yahoo2smm
Mapping of Yahoo properties to SMM properties.
Definition: yahoo.py:125
gui.MainWindow.ID_VIEWMENU_POSITIONLIST
ID_VIEWMENU_POSITIONLIST
Definition: __init__.py:268
gui.panel.PanelOpenPositionDetails
Panel to show all open positions.
Definition: panel.py:1034
gui.panel.PanelIndex.psAddIndex
def psAddIndex(self, obj)
Add a new index to the list.
Definition: panel.py:677
gui.controls.NotEmptyValidator
Force filled TextCtrl widgets.
Definition: controls.py:1043
smm.quote.base.FetchPluginBase.provider_id
provider_id
Unique provider ID.
Definition: base.py:93
smm.objects.Config.key
key
Configuration key.
Definition: objects.py:2104
gui.config.load
def load()
Load the configuration from a file.
Definition: config.py:322
gui.dialogs.DlgFetchQuotes.OnCopyAllToClipboard
def OnCopyAllToClipboard(self, event)
Copy the whole grid content to clipboard.
Definition: dialogs.py:119
gui.UITrade.UITrade.st_DividendValue
st_DividendValue
Definition: UITrade.py:131
smm.objects.Share.id
id
Unique ID for each object.
Definition: objects.py:561
gui.UIShare.UIShare.cc_Currency
cc_Currency
Definition: UIShare.py:66
gui.UITrade.UITrade.tc_DividendValue
tc_DividendValue
Definition: UITrade.py:136
smm.objects.Transaction.getSplitDetails
def getSplitDetails(self)
Get details of a split transaction.
Definition: objects.py:1166
gui.UIPreferences.UIPreferences.bn_SelectDatabase
bn_SelectDatabase
Definition: UIPreferences.py:59
gui.MainWindow.createMenus
def createMenus(self)
Create all menus.
Definition: __init__.py:356
gui.panel.PanelWatchList.__init__
def __init__(self, *args, **kwds)
Initialise the watch list frame.
Definition: panel.py:1341
gui.UITrade.UITrade.cc_Position
cc_Position
Definition: UITrade.py:59
gui.dialogs.DlgShare._setShare
def _setShare(self, share)
Fill dialogs fields with share data.
Definition: dialogs.py:1636
smm.quote.vwd.VwdFetchPlugin.provider_url_request_1
string provider_url_request_1
Reqest to get the first data page.
Definition: vwd.py:72
gui.controls.ShareDetailsPanel.cb_Watch
cb_Watch
Definition: controls.py:1130
gui.UITrade.UITrade.st_SwapOldRatio
st_SwapOldRatio
Definition: UITrade.py:155
gui.panel.PanelIndex.populateList
def populateList(self)
Fill the index list.
Definition: panel.py:663
gui.dialogs.DlgTrade.OnActivateSplit
def OnActivateSplit(self, unused=None)
Activate "Split" radiobutton after a secondary widget has been focused.
Definition: dialogs.py:873
gui.MainWindow.createViewMenu
def createViewMenu(self)
Create "View" menu.
Definition: __init__.py:460
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.pn_PositionDetails
pn_PositionDetails
Definition: UIBasePanelOpenPositionDetails.py:60
gui.UIFetchQuotes.UIFetchQuotes.cb_OpenPosition
cb_OpenPosition
Definition: UIFetchQuotes.py:31
gui.MainWindow.OnClosePositionList
def OnClosePositionList(self, event)
Cleanup / udate actions on closing open position panel.
Definition: __init__.py:904
smm.objects.Transaction.kind
kind
Type of transaction.
Definition: objects.py:988
gui.UITrade.UITrade.flags_input
flags_input
Flags used for all input widgets.
Definition: UITrade.py:41
gui.UIFetchQuotes.UIFetchQuotes.nb_results
nb_results
Definition: UIFetchQuotes.py:54
setup.is_package
def is_package(path)
Definition: setup.py:126
gui.controls.BaseListSmall.populate
def populate(self, element_list)
Creates a list of smm.objects.Position objects.
Definition: controls.py:486
gui.panel.PanelCurrency.psChangeCurrency
def psChangeCurrency(self, obj)
A listed currency has been changed.
Definition: panel.py:153
gui.dialogs.DlgTrade.OnActivateNewPosition
def OnActivateNewPosition(self, unused=None)
Activate "New position".
Definition: dialogs.py:838
gui.UITrade.UITrade.st_WatchEntry
st_WatchEntry
Definition: UITrade.py:66
smm.objects.SMMBaseObject._toDecimal
def _toDecimal(self, value)
Convert any value into a decimal.Decimal value.
Definition: objects.py:159
gui.controls.SortedListCtrl.upArrow
upArrow
Definition: controls.py:329
smm.objects.Position.split
def split(self, oratio, nratio, date=datetime.date.today())
Do a share split.
Definition: objects.py:1940
smm.has_database
def has_database()
Check if the database exists.
Definition: __init__.py:309
gui.controls.SortedListPanel.removeEntry
def removeEntry(self, element_id)
Remove a listed entry.
Definition: controls.py:266
gui.MainWindow.OnCloseTransaction
def OnCloseTransaction(self, event)
Cleanup / udate actions on closing transaction panel.
Definition: __init__.py:892
gui.panel.PanelWatchList.psUpdateQuoteList
def psUpdateQuoteList(self)
Quote list update.
Definition: panel.py:1587
gui.UIPortfolioReport.UIPortfolioReport.dp_From
dp_From
Definition: UIPortfolioReport.py:43
smm.objects.Currency.code
code
ISO 4217 currency code.
Definition: objects.py:468
gui.panel.PanelOpenPositionList.OnClosePosition
def OnClosePosition(self, event)
Event handler to close a empty position.
Definition: panel.py:954
gui.controls.SortedListPanel
Base class of a panel with a sortable list inside.
Definition: controls.py:201
gui.dialogs.DlgPreferences.OnSelectDatabase
def OnSelectDatabase(self, event)
Open a dialog to select an existing database file.
Definition: dialogs.py:2187
gui.helper.formatDailyQuoteEvent
def formatDailyQuoteEvent(quote)
Returns the DailyQuote.event formatted.
Definition: helper.py:246
tests.test_objects.TestObjects.test_Share_get
def test_Share_get(self)
Test the smm.objects.Share.get() command.
Definition: test_objects.py:196
gui.panel.PanelSummary
Panel to show a summary about the current deposit.
Definition: panel.py:53
gui.dialogs.DlgShowPortfolioReport.ShowModal
def ShowModal(self, start, end)
Show the dialog modal.
Definition: dialogs.py:2252
gui.controls.SortedListCtrl.enableColumnSorter
def enableColumnSorter(self)
Enables the column sorter.
Definition: controls.py:341
gui.controls.SortedListPanel.createListHeader
def createListHeader(self)
Create the header of a list.
Definition: controls.py:231
gui.MainWindow.OnCloseCurrency
def OnCloseCurrency(self, event)
Cleanup / udate actions on closing currency panel.
Definition: __init__.py:874
tests.test_objects.TestObjects.test_Transaction_objects
def test_Transaction_objects(self)
Tests creating, searching and destroying smm.objects.Transaction objects.
Definition: test_objects.py:431
gui.MainWindow.ViewIndex
ViewIndex
Definition: __init__.py:302
gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_trade
bn_trade
Definition: UIBasePanelWatchList.py:57
smm.quote.yahoo.YahooWebFetchPlugin.decimal_properties
list decimal_properties
Decimal values.
Definition: yahoo.py:415
gui.MainWindow.OnClose
def OnClose(self, event)
Save the current configuration before the GUI is closed.
Definition: __init__.py:943
gui.UITrade.UITrade.st_SplitNewRatio
st_SplitNewRatio
Definition: UITrade.py:146
gui.UITrade.UITrade.cc_SwapNewShare
cc_SwapNewShare
Definition: UITrade.py:168
gui.log.getMessage
def getMessage(self)
Return the message for this LogRecord.
Definition: log.py:472
gui.dialogs.DlgPortfolioReport.__init__
def __init__(self, parent)
Initialise dialog.
Definition: dialogs.py:1874
gui.panel.PanelOpenPositionDetails.populateOpenPosition
def populateOpenPosition(self)
Creates a list with all open positions.
Definition: panel.py:1118
smm.objects.Position.Open
def Open(self)
Re-open position.
Definition: objects.py:1742
smm.objects.Currency.id
id
Unique ID for each object.
Definition: objects.py:465
smm.quote.yahoo.YahooQueryFetchPlugin.provider_url
string provider_url
URL to query the data.
Definition: yahoo.py:665
gui.UIBasePanelWatchList.UIBasePanelWatchList.pn_WatchDetails
pn_WatchDetails
Definition: UIBasePanelWatchList.py:64
gui.dialogs.DlgTrade.currency
currency
Currency selected within the dialog.
Definition: dialogs.py:479
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_Quote
tc_Quote
Definition: UIBasePanelOpenPositionDetails.py:78
gui.controls.BaseValidator.Validate
def Validate(self, unused)
Validate the contents of the given control.
Definition: controls.py:946
gui.controls.BaseChoice.addEmptyChoice
def addEmptyChoice(self)
Add an empty choice to the widget.
Definition: controls.py:703
gui.UIShare.UIShare
Definition: UIShare.py:19
smm.quote._modules_from_filesystem
def _modules_from_filesystem()
Search in the installation directory for plugings.
Definition: __init__.py:169
gui.controls.SortedListCtrl.DeleteAllItems
def DeleteAllItems(self)
Delete all items and clean currentItem too.
Definition: controls.py:347
gui.controls.BaseListSmall.add
def add(self, element)
Add a single objects object to the list.
Definition: controls.py:461
gui.dialogs.DlgShare.__init__
def __init__(self, parent, share=None)
Initialise dialog.
Definition: dialogs.py:1614
gui.dialogs.DlgTrade._updateDateRangePosition
def _updateDateRangePosition(self)
Update date ranges triggered by setting / selecting a position.
Definition: dialogs.py:1185
gui.UIPortfolioReport.UIPortfolioReport.ccYear
ccYear
Definition: UIPortfolioReport.py:31
gui.UIShare.UIShare.__init__
def __init__(self, *args, **kwds)
Initialise dialog.
Definition: UIShare.py:20
smm.quote.onvista.OnvistaFetchPlugin._extractWarrantDetails
def _extractWarrantDetails(self, stock, soup, currency)
Definition: onvista.py:353
gui.mako_filters.nbsp
def nbsp(string)
Mako filter to replace spaces by non-breaking spaces.
Definition: mako_filters.py:35
smm.quote.base.FetchPluginBase._general_properties
list _general_properties
Name of the general properties.
Definition: base.py:72
gui.dialogs.DlgTrade._decimalWidgets
_decimalWidgets
List of all decimal widgets (monetary and non-monetary)
Definition: dialogs.py:525
smm.quote.base.FetchPluginBase.check_robotfile
bool check_robotfile
Check and respect the robots.txt file.
Definition: base.py:75
gui.helper.formatCurrencySign
def formatCurrencySign(currency)
Returns the sign of a currency or an empty string.
Definition: helper.py:143
gui.controls.SortedListCtrl.__init__
def __init__(self, parent, *args, **kwargs)
Constructor, that initialise the wx.ListCtrl only.
Definition: controls.py:313
tests.test_misc.TestMisc.test_toDecimal
def test_toDecimal(self)
Tests creating, searching and destroying smm.objects.Exchange objects.
Definition: test_misc.py:60
gui.panel.PanelTransaction.OnShowPopup
def OnShowPopup(self, event)
Display the pop-up menu.
Definition: panel.py:596
gui.dialogs.DlgTrade._validateDateWidget
def _validateDateWidget(self, widget, first)
Validate content of a DatePickerCtrl widget.
Definition: dialogs.py:1465
smm.quote.yahoo.YahooCSVFetchPlugin
Share data tracker querying Yahoo finance data.
Definition: yahoo.py:98
gui.controls.BaseDialog.__init__
def __init__(self, *args, **kwargs)
Initialise dialog.
Definition: controls.py:45
smm.objects.Share
Class to handle share data.
Definition: objects.py:537
smm.objects.Position.worthless
def worthless(self, fee=None, exchange=None, date=datetime.date.today(), autoclose=True)
Whole position expired worthless.
Definition: objects.py:1875
gui.UIPreferences.UIPreferences.static_line
static_line
Definition: UIPreferences.py:65
smm.objects.Transaction.getCount
def getCount()
Returns the total number of Transaction.
Definition: objects.py:1083
gui.dialogs.DlgHtml.__init__
def __init__(self, parent)
Initialise dialog.
Definition: dialogs.py:1810
gui.controls.BaseChoice.GetSelection
def GetSelection(self)
Returns the selected object or None.
Definition: controls.py:717
gui.panel.PanelIndex.createListHeader
def createListHeader(self)
Create the header of a list.
Definition: panel.py:656
gui.controls.CurrencyChoice._formatElement
def _formatElement(self, obj)
Function to format a single object.
Definition: controls.py:797
gui.UIFetchQuotes.UIFetchQuotes.__init__
def __init__(self, *args, **kwds)
Definition: UIFetchQuotes.py:16
gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_save
bn_save
Definition: UIBasePanelWatchList.py:45
gui.panel.PanelShare.OnUnWatch
def OnUnWatch(self, event)
Remove watch list entry for the selected share.
Definition: panel.py:469
smm.objects.Watch.get
def get(id=None, expired=False, share=None)
Query Watch objects.
Definition: objects.py:1369
smm.objects.Transaction.details
details
Additional details for this transaction.
Definition: objects.py:1005
gui.panel.PanelExchange.psAddExchange
def psAddExchange(self, obj)
Add a new exchange to the list.
Definition: panel.py:213
gui.MainWindow.OnPortfolioReport
def OnPortfolioReport(self, event)
Open a new dialog to show a depot report.
Definition: __init__.py:632
smm.objects.Position.swap
def swap(self, oratio, nratio, ovalue, nvalue, nshare, date=datetime.date.today(), autoclose=True)
Do a stock swap.
Definition: objects.py:2021
gui.controls.SortedListCtrl.columnSorterEnabled
columnSorterEnabled
Definition: controls.py:322
gui.controls.GeneralPanelConfig
Generic functions to save and restore the state of a panel.
Definition: controls.py:115
gui.UIHtml.UIHtml.OnSave
def OnSave(self, event)
Definition: UIHtml.py:74
gui.UIBasePanelSummary.UIBasePanelSummary.tc_OtherCount
tc_OtherCount
Definition: UIBasePanelSummary.py:89
smm.quote.search_and_register
def search_and_register()
Search, import and register FetchPlugins.
Definition: __init__.py:58
smm.objects.Position
Class to handle watch list entries.
Definition: objects.py:1395
gui.MainWindow.ID_REPORTMENU_POSITIONREPORT
ID_REPORTMENU_POSITIONREPORT
Definition: __init__.py:259
gui.dialogs.DlgTrade.OnActivateBuy
def OnActivateBuy(self, unused=None)
Activate "Buy" radiobutton after a secondary widget has been focused.
Definition: dialogs.py:853
gui.UIBasePanelWatchList.UIBasePanelWatchList
Definition: UIBasePanelWatchList.py:17
smm.quote.onvista.OnvistaFetchPlugin.getCurrent
def getCurrent(self, request)
Obtain information from the data provider.
Definition: onvista.py:160
gui.dialogs.DlgTrade._setDecimal
def _setDecimal(self, widget, value)
Set value at a decimal widget (monetary and non-monetary)
Definition: dialogs.py:1100
smm.objects.Exchange
Class to handle Exchange data.
Definition: objects.py:344
gui.panel.PanelCurrency.psAddCurrency
def psAddCurrency(self, obj)
Add a new currency to the list.
Definition: panel.py:144
gui.MainWindow
Main window of our application.
Definition: __init__.py:199
gui.controls.PositionChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:761
gui.UITrade.UITrade.rbn_WatchNote_replace
rbn_WatchNote_replace
Definition: UITrade.py:76
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_ProfitRelative_5Y
tc_ProfitRelative_5Y
Definition: UIBasePanelOpenPositionDetails.py:158
gui.UITrade.UITrade.st_SwapColon1
st_SwapColon1
Definition: UITrade.py:156
gui.dialogs.DlgTrade.OnUpdateNewPosition
def OnUpdateNewPosition(self, unused=None)
Update share related widgets.
Definition: dialogs.py:972
gui.controls.WatchDetailsPanel.OnCheckExpired
def OnCheckExpired(self, event)
Enable / disable the expire date depending on the check box state.
Definition: controls.py:1289
smm.quote.onvista.OnvistaFetchPlugin._extractDetailsDesign2017
def _extractDetailsDesign2017(self, stock, soup, currency)
Extract details of fonds from the given soup.
Definition: onvista.py:325
gui.dialogs.DlgPreferences
Dialog to change / set preferences.
Definition: dialogs.py:2063
smm.objects.Transaction._setDetails
def _setDetails(self, kind, peer)
Set transaction details.
Definition: objects.py:1235
smm.objects.Watch.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:1342
gui.controls.WatchDetailsPanel.tc_Notes
tc_Notes
Definition: controls.py:1249
gui.panel.PanelOpenPositionList.green_arrow_idx
green_arrow_idx
Definition: panel.py:811
gui.UIPreferences.UIPreferences.tc_DatabaseFile
tc_DatabaseFile
Definition: UIPreferences.py:56
tests.test_math.TestMath
Test mathematical functions out of smm.math.
Definition: test_math.py:39
gui.panel.PanelExchange.psChangeExchange
def psChangeExchange(self, obj)
A listed exchange has been changed.
Definition: panel.py:222
gui.controls.BaseListSmall.__init__
def __init__(self, control)
Create the list header and enable the column sorter.
Definition: controls.py:448
smm.objects.Watch.expire
expire
Date when the watch object will be removed automatically.
Definition: objects.py:1314
tests.test_objects.TestObjects
Test basic functionality with all objects from smm.objects.
Definition: test_objects.py:47
gui.helper.formatCurrencyShort
def formatCurrencyShort(currency)
Returns the currency sign or code or an empty string.
Definition: helper.py:154
smm.objects.SMMBaseObject
Base class for all database related classes.
Definition: objects.py:51
gui.panel.PanelSummary.psUpdateContent
def psUpdateContent(self)
Query datastore and set appropriate values.
Definition: panel.py:71
gui.UIPortfolioReport.UIPortfolioReport.rbn_CalendarYear
rbn_CalendarYear
Definition: UIPortfolioReport.py:28
gui.panel.PanelOpenPositionList.pmenu_close
pmenu_close
Definition: panel.py:855
gui.dialogs.DlgTrade._updateCalcMode
def _updateCalcMode(self, mode)
Set mode for calculation buy sum / sell sum.
Definition: dialogs.py:1172
gui.dialogs.DlgPreferences.wildcard
wildcard
Wildcards to select database files.
Definition: dialogs.py:2072
gui.dialogs.DlgTrade._setCurrency
def _setCurrency(self, currency)
Store the currency.
Definition: dialogs.py:1157
gui.UITrade.UITrade.dp_SwapDate
dp_SwapDate
Definition: UITrade.py:154
gui.dialogs.DlgShare._processInput
def _processInput(self)
Update existing share or create a new one.
Definition: dialogs.py:1768
gui.dialogs.DlgHtml.save2file
def save2file(self, filename)
Store page_content in a file.
Definition: dialogs.py:1820
gui.panel.PanelWatchList.OnSave
def OnSave(self, event)
Write changes back.
Definition: panel.py:1621
gui.UIBasePanelWatchList.UIBasePanelWatchList.sw_WatchList
sw_WatchList
Definition: UIBasePanelWatchList.py:26
gui.panel.PanelTransaction
Panel to show and maintain all transactions.
Definition: panel.py:495
gui.log.init
def init(filename='smm.log', encoding='utf-8', level=None)
Initialise the logging facility.
Definition: log.py:330
smm.quote.vwd.VwdFetchPlugin
Share data tracker querying finance data provided by VWD AG.
Definition: vwd.py:39
smm.quote.onvista.OnvistaFetchPlugin.REC_ISINText
REC_ISINText
Pre-compiled RE to find the text "ISIN:".
Definition: onvista.py:112
gui.panel.PanelShare.OnWatch
def OnWatch(self, event)
Add a new watch list entry for the selected share.
Definition: panel.py:446
gui.dialogs.DlgTrade._decimalPlaces
_decimalPlaces
Number of decimal places for all decimal widgets (monetary and non-monetary)
Definition: dialogs.py:558
gui.UITrade.UITrade.cb_SwapPositionReport
cb_SwapPositionReport
Definition: UITrade.py:174
tests.test_misc.TestMisc.setUp
def setUp(self)
Initialise SMM.
Definition: test_misc.py:46
gui.panel.PanelWatchList.createQuoteList
def createQuoteList(self)
Create a header only list for daily quotes.
Definition: panel.py:1384
gui.UIBasePanelSummary.UIBasePanelSummary.tc_TotalPositionCount
tc_TotalPositionCount
Definition: UIBasePanelSummary.py:48
gui.UITrade.UITrade.st_BuyEqualsSign1
st_BuyEqualsSign1
Definition: UITrade.py:101
gui.UIHtml.UIHtml.OnClose
def OnClose(self, event)
Definition: UIHtml.py:70
gui.UIHtml.UIHtml.bn_Print
bn_Print
Definition: UIHtml.py:36
gui.panel.PanelExchange.populateList
def populateList(self)
Fill the exchange list.
Definition: panel.py:200
gui.controls.PositionDetailsPanel.cc_Share
cc_Share
Definition: controls.py:1197
gui.UITrade.UITrade.st_BuyEqualsSign2
st_BuyEqualsSign2
Definition: UITrade.py:108
smm.objects.SMMBaseObject.psTopic
psTopic
Publish Subscribe Topic for this class.
Definition: objects.py:79
gui.controls.CurrencyChoice
Choice widget to select a currency.
Definition: controls.py:794
smm.quote.onvista.OnvistaFetchPlugin.REC_WKNText
REC_WKNText
Pre-compiled RE to find the text "WKN:".
Definition: onvista.py:117
gui.dialogs.DlgHtml.OnSave
def OnSave(self, event)
Save the content of the HTML widget.
Definition: dialogs.py:1845
gui.log.exceptionHandler
def exceptionHandler(exc_type, exc_value, exc_tb)
Logs detailed information about uncaught exceptions.
Definition: log.py:457
gui.UITrade.UITrade.st_BuyCount
st_BuyCount
Definition: UITrade.py:96
gui.helper.formatPercent
def formatPercent(value, places=3)
Returns the formatted decimal value incl.
Definition: helper.py:307
gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_WatchPosition
lc_WatchPosition
Definition: UIBasePanelWatchList.py:34
gui.MainWindow.ID_MANAGEMENU_ADDSHARE
ID_MANAGEMENU_ADDSHARE
Definition: __init__.py:256
smm.objects.Watch.created
created
Date when the watch object is created.
Definition: objects.py:1311
gui.dialogs.DlgTrade._validateInput
def _validateInput(self)
Validate input data and store results in results.
Definition: dialogs.py:1230
gui.panel.PanelOpenPositionList.OnItemSelected
def OnItemSelected(self, event)
Event handler to update the transaction list on selecting an open position.
Definition: panel.py:966
gui.UIPortfolioReport.UIPortfolioReport.__init__
def __init__(self, *args, **kwds)
Definition: UIPortfolioReport.py:15
gui.MainWindow.createManageMenu
def createManageMenu(self)
Create "Manage" menu.
Definition: __init__.py:409
gui.controls.ExchangeChoice._formatElement
def _formatElement(self, obj)
Function to format a single object.
Definition: controls.py:831
gui.panel.PanelIndex.pmenu_newindex
pmenu_newindex
Definition: panel.py:638
smm.objects.Transaction.getInPeriod
def getInPeriod(start, end, pos=None)
Returns all Transaction between start and end date.
Definition: objects.py:1093
gui.UIHtml.UIHtml.bn_PrintPreview
bn_PrintPreview
Definition: UIHtml.py:39
smm.objects.Share.isin
isin
ISIN of the share.
Definition: objects.py:567
tests.test_objects.TestObjects.test_Share_objects
def test_Share_objects(self)
Tests creating, searching and destroying smm.objects.Share objects.
Definition: test_objects.py:168
smm.objects.Position.getTotalVolume
def getTotalVolume(currency)
Calculate the volume of all open positions.
Definition: objects.py:1567
gui.panel.PanelOpenPositionDetails.green_arrow_idx
green_arrow_idx
Definition: panel.py:1087
locals
gui.panel.PanelOpenPositionList.createPopupMenu
def createPopupMenu(self)
Create the popup menu to do share releated actions.
Definition: panel.py:847
smm.quote.vwd.VwdFetchPlugin.provider_url_base
string provider_url_base
URL base to query the data.
Definition: vwd.py:69
gui.UITrade.UITrade.st_SwapColon4
st_SwapColon4
Definition: UITrade.py:166
tests.test_gui.TestGui.tearDown
def tearDown(self)
Definition: test_gui.py:61
gui.panel.PanelShare._addShare
def _addShare(self, share)
Add a smm.objects.Share object to the list control.
Definition: panel.py:332
smm.objects.Position.Close
def Close(self)
Close position.
Definition: objects.py:1734
smm.objects.Position.currency
currency
Reference to the Currency object
Definition: objects.py:1418
smm.quote.raiffeisen.RaiffeisenFetchPlugin
Share data tracker querying quotes of Raiffeisen fonds.
Definition: raiffeisen.py:41
tests.test_objects.TestObjects.test_Position_swap
def test_Position_swap(self)
Test the smm.objects.Position.swap() command.
Definition: test_objects.py:1748
smm.objects.Transaction.getVolume
def getVolume(self, withFee=True)
Calculate the transaction volume.
Definition: objects.py:1119
smm.quote.onvista.OnvistaFetchPlugin._extractCertificateDetails
def _extractCertificateDetails(self, stock, soup)
Extract details of certificates from the given soup.
Definition: onvista.py:390
gui.controls.TransactionListSmall.OnRemoveTransaction
def OnRemoveTransaction(self, unused)
Delete the selected transaction.
Definition: controls.py:617
gui.dialogs.DlgTrade._moneyWidgets
_moneyWidgets
List of all money widgets only (subset of _decimalWidgets)
Definition: dialogs.py:544
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bn_save
bn_save
Definition: UIBasePanelOpenPositionDetails.py:45
gui.MainWindow.ViewWatchList
ViewWatchList
Definition: __init__.py:305
gui.controls.SortedListPanel.populateList
def populateList(self)
Fill a already created list.
Definition: controls.py:258
gui.log.deinit
def deinit()
Reactivate system exception handler.
Definition: log.py:408
gui.controls.SortedListPanel.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: controls.py:213
smm.objects.Share.is_watched
def is_watched(self)
Returns True if a related watch list entry exists.
Definition: objects.py:650
gui.controls.ShareKindChoice
Choice widget to select the share type.
Definition: controls.py:891
gui.UITrade.UITrade.st_SplitColon2
st_SplitColon2
Definition: UITrade.py:148
smm.objects.Transaction.remove
def remove(self)
Delete position.
Definition: objects.py:1273
gui.panel.PanelOpenPositionList.populateOpenPosition
def populateOpenPosition(self)
Creates a list with all open positions.
Definition: panel.py:862
gui.controls.BaseListSmall.createPopupMenu
def createPopupMenu(self)
Create the popup menu.
Definition: controls.py:477
gui.UITrade.UITrade.static_line
static_line
Definition: UITrade.py:52
gui.UIHtml.UIHtml.bn_Close
bn_Close
Definition: UIHtml.py:42
gui.UITrade.UITrade.tc_SplitNewRatio
tc_SplitNewRatio
Definition: UITrade.py:149
gui.controls.BaseChoice.SelectFirst
def SelectFirst(self)
Select the first (non-empty) element.
Definition: controls.py:732
smm.quote._modules_from_zip
def _modules_from_zip(filename)
Extract a list of plugins from a module zip archive.
Definition: __init__.py:155
gui.UIPositionReport.UIPositionReport.bn_Cancel
bn_Cancel
Definition: UIPositionReport.py:50
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList.sw_OpenPosition
sw_OpenPosition
Definition: UIBasePanelOpenPositionList.py:24
tests.test_objects.TestObjects.test_Transaction_get
def test_Transaction_get(self)
Test the smm.objects.Transaction.get() command.
Definition: test_objects.py:459
smm.objects.Watch.share
share
Reference to the Share object
Definition: objects.py:1308
gui.controls.ShareChoice._getElements
def _getElements(self)
Function to query all objects of unique type.
Definition: controls.py:789
smm.quote.base.FetchPluginBase
Base class of all quotation classes.
Definition: base.py:54
gui.UIPortfolioReport.UIPortfolioReport.static_line
static_line
Definition: UIPortfolioReport.py:52
gui.controls.ShareDetailsPanel.cc_Kind
cc_Kind
Definition: controls.py:1129
gui.log.getBufferAsString
def getBufferAsString(clean=True)
Returns all buffered messages.
Definition: log.py:422
gui.dialogs.DlgTrade.share
share
Share to trade with.
Definition: dialogs.py:498
gui.MainWindow.managemenu
managemenu
Definition: __init__.py:293
gui.controls.SortedListCtrl._updateImages
def _updateImages(self, oldCol)
Updates the sort images in the column headers.
Definition: controls.py:420
gui.MainWindow.handleMDIChild
def handleMDIChild(self, panelClass, attr, closeEvent, title)
Creates and closes MDI child windows.
Definition: __init__.py:722
gui.dialogs.DlgTrade
Dialog to insert and change transactions.
Definition: dialogs.py:433
gui.MainWindow.ID_MANAGEMENU_TRADE
ID_MANAGEMENU_TRADE
Definition: __init__.py:257
gui.panel.PanelShare.pmenu_watch
pmenu_watch
Definition: panel.py:265
gui.helper.formatShareShort
def formatShareShort(share)
Returns the formatted share or an empty string.
Definition: helper.py:348
gui.panel.PanelCurrency.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: panel.py:117
gui.controls.SortedListCtrl.unicodeColumnSorter
def unicodeColumnSorter(self, key1, key2)
Simple sort of two keys.
Definition: controls.py:388
gui.controls.BaseValidator.Clone
def Clone(self)
Standard cloner.
Definition: controls.py:941
smm.quote.base.FetchPluginBase.user_agent
string user_agent
Define a own user agent string.
Definition: base.py:116
gui.panel.PanelShare.OnShowPopup
def OnShowPopup(self, event)
Display the pop-up menu.
Definition: panel.py:414
gui.dialogs.DlgHtml.wildcard
wildcard
Wildcards for selecting HTML files.
Definition: dialogs.py:1794
gui.panel.PanelWatchList.populateWatchList
def populateWatchList(self)
Creates a list with all open positions.
Definition: panel.py:1420
gui.dialogs.DlgFetchQuotes.OnFetchQuotes
def OnFetchQuotes(self, event)
Fetch quotes.
Definition: dialogs.py:154
gui.UITrade.UITrade.tc_DividendCount
tc_DividendCount
Definition: UITrade.py:134
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_Count
tc_Count
Definition: UIBasePanelOpenPositionDetails.py:84
gui.controls.BaseListSmall.hasPopup
bool hasPopup
List has a popup menu.
Definition: controls.py:436
gui.MainWindow.ID_VIEWMENU_WATCHLIST
ID_VIEWMENU_WATCHLIST
Definition: __init__.py:270
smm.operations.fetchDailyQuotes
def fetchDailyQuotes(openPos=True, watchList=True, add_shares=None)
Functions to query quotations.
Definition: operations.py:104
gui.controls.PositionChoice._getElements
def _getElements(self)
Function to query all objects of unique type.
Definition: controls.py:774
gui.UIFetchQuotes.UIFetchQuotes.pn_shares
pn_shares
Definition: UIFetchQuotes.py:57
smm.objects.Position.removeTransaction
def removeTransaction(self, transaction, deleteRelated=True)
Delete a transaction related to this position.
Definition: objects.py:1756
gui.SMMGui.OnExit
def OnExit(self)
Do some cleanup actions.
Definition: __init__.py:184
gui.dialogs.DlgTrade.nonBuyWidgets
nonBuyWidgets
List of widgets to block in case of new position.
Definition: dialogs.py:588
smm.init
def init(debug=False)
Initialise main SMM functionality like database connections.
Definition: __init__.py:328
smm.objects.Position.getAvgBuy
def getAvgBuy(self)
Calculates the average buy price.
Definition: objects.py:1655
gui.dialogs.DlgShowPositionReport
Open a HTML dialog and show a position report.
Definition: dialogs.py:2222
gui.controls.BaseListSmall.clean
def clean(self)
Clean the list.
Definition: controls.py:467
gui.controls.BaseDialog._unmarkWidget
def _unmarkWidget(self, widget)
Change widget background back to system colour for "good" content.
Definition: controls.py:70
gui.dialogs.DlgPositionReport
Dialog to select a position using different filter criteria.
Definition: dialogs.py:1949
smm.objects.Exchange.symbol
symbol
Unique symbol for each exchange.
Definition: objects.py:360
smm.quote.raiffeisen.RaiffeisenFetchPlugin.provider_url
provider_url
URL to query the data.
Definition: raiffeisen.py:69
gui.UITrade.UITrade.max_size
tuple max_size
Maximum widget size.
Definition: UITrade.py:44
gui.MainWindow.ID_REPORTMENU_PORTFOLIOREPORT
ID_REPORTMENU_PORTFOLIOREPORT
Definition: __init__.py:260
gui.dialogs.DlgFetchQuotes.__init__
def __init__(self, parent)
Initialise dialog.
Definition: dialogs.py:76
smm.quote.yahoo.YahooCSVFetchPlugin.unicode_properties
list unicode_properties
Unicode values.
Definition: yahoo.py:160
smm.deinit
def deinit()
Closes all open stuff.
Definition: __init__.py:398
smm.objects.Transaction.position
position
Reference to the Position object
Definition: objects.py:995
smm.quote.onvista.OnvistaFetchPlugin._extractTime
def _extractTime(self, stock, soup, regex=REC_DateTime)
Extract the quotation timestamp.
Definition: onvista.py:559
gui.controls.SortedListPanel.list
list
Reference to the used SortedListCtrl.
Definition: controls.py:210
gui.log.StringHandler.encoding
encoding
Encoding of all character strings.
Definition: log.py:81
smm.objects.Position.sell
def sell(self, count, value, fee=None, exchange=None, date=datetime.date.today(), autoclose=True)
Sell parts of the current Position.
Definition: objects.py:1840
gui.helper.ReverseDict
A dictionary which can lookup values by key, and keys by value.
Definition: helper.py:77
gui.UITrade.UITrade.st_DividendMultiSign2
st_DividendMultiSign2
Definition: UITrade.py:135
smm.operations.getPrimarySourceName
def getPrimarySourceName(share)
Returns the name of the primary quotation source for a share.
Definition: operations.py:75
gui.controls.WatchDetailsPanel.flags_input
flags_input
Flags used for all input widgets.
Definition: controls.py:1233
gui.MainWindow.ID_VIEWMENU_TRANSACTION
ID_VIEWMENU_TRANSACTION
Definition: __init__.py:266
gui.controls.CurrencyChoice._getElements
def _getElements(self)
Function to query all objects of unique type.
Definition: controls.py:801
gui.log.StringHandler.__init__
def __init__(self, storeAsUnicode=True)
Constructor.
Definition: log.py:87
gui.controls.PositionDetailsPanel.cc_Currency
cc_Currency
Definition: controls.py:1196
gui.dialogs.DlgTrade._prepareDividend
def _prepareDividend(self)
Prepare "Dividend" transaction by storing all related values in results.
Definition: dialogs.py:1391
tests.test_objects.TestObjects.test_DailyQuote_objects
def test_DailyQuote_objects(self)
Tests creating, searching and destroying smm.objects.DailyQuote objects.
Definition: test_objects.py:300
gui.UITrade.UITrade.rbn_Sell
rbn_Sell
Definition: UITrade.py:85
gui.UITrade.UITrade.st_SplitOldRatio
st_SplitOldRatio
Definition: UITrade.py:144
gui.log.StringHandler.buffer
buffer
Definition: log.py:88
gui.UITrade.UITrade.st_SwapNewValue
st_SwapNewValue
Definition: UITrade.py:160
gui.UIFetchQuotes.UIFetchQuotes.tc_log
tc_log
Definition: UIFetchQuotes.py:84
gui.UITrade.UITrade.cc_BuyExchange
cc_BuyExchange
Definition: UITrade.py:94
gui.helper.formatShareNotesShort
def formatShareNotesShort(share, max_len=25)
Returns additional note to a share - short formatted.
Definition: helper.py:116
gui.controls.SortedListCtrl.downArrow
downArrow
Definition: controls.py:330
gui.panel.PanelShare.psAddShare
def psAddShare(self, obj)
Add a new share to the list.
Definition: panel.py:314
tests.test_objects.TestObjects.test_Watch_get
def test_Watch_get(self)
Test the smm.objects.Watch.get() command.
Definition: test_objects.py:936
gui.UITrade.UITrade
Layout of trade dialog.
Definition: UITrade.py:35
gui.UIPositionReport.UIPositionReport.rbx_PositionOpen
rbx_PositionOpen
Definition: UIPositionReport.py:30
gui.UIShare.UIShare.tc_WKN
tc_WKN
Definition: UIShare.py:50
gui.dialogs.DlgTrade.OnUpdateCurrency
def OnUpdateCurrency(self, unused=None)
Update dialog after the currency has changed.
Definition: dialogs.py:945
gui.controls.ShareDetailsPanel
A panel to show all information about a share.
Definition: controls.py:1103
gui.MainWindow.OnCreateIndex
def OnCreateIndex(self, event)
Show and maintain all indices.
Definition: __init__.py:815
smm.quote.base.FetchPluginBase.properties
list properties
List of supported properties.
Definition: base.py:66
gui.log.StringHandler._toUnicode
def _toUnicode(self, msg)
Convert a non unicode string into a unicode string.
Definition: log.py:96
gui.MainWindow.reportmenu
reportmenu
Definition: __init__.py:294
smm.objects.Share.createWatch
def createWatch(self, **kwargs)
Create a watch list entry (Watch object) releated to the current share.
Definition: objects.py:619
gui.dialogs.DlgTrade.locale_db
locale_db
Database of the local conventions as a dictionary.
Definition: dialogs.py:460
gui.MainWindow.saveGUIConfig
def saveGUIConfig(self)
Store general GUI configuration.
Definition: __init__.py:1023
gui.images.getSmallDnArrowBitmap
def getSmallDnArrowBitmap()
Definition: images.py:110
gui.panel.PanelOpenPositionDetails.OnItemSelected
def OnItemSelected(self, event)
Event handler to update the transaction list on selecting an open position.
Definition: panel.py:1252
gui.UIFetchQuotes.UIFetchQuotes
Definition: UIFetchQuotes.py:15
gui.panel.PanelCurrency.populateList
def populateList(self)
Fill the currency list.
Definition: panel.py:131
gui.controls.TransactionListSmall.add
def add(self, transaction)
Add a single smm.objects.Transaction object to the list.
Definition: controls.py:590
gui.controls.DecimalValidator.__init__
def __init__(self, empty=True)
Constructor.
Definition: controls.py:985
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList.lc_OpenPosition
lc_OpenPosition
Definition: UIBasePanelOpenPositionList.py:32
gui.UITrade.UITrade.tc_SwapNewValue
tc_SwapNewValue
Definition: UITrade.py:167
gui.UITrade.UITrade.cc_Currency
cc_Currency
Definition: UITrade.py:64
gui.helper.formatDecimal
def formatDecimal(value, places=2, grouping=True)
Returns the formatted decimal value or an empty string.
Definition: helper.py:193
gui.panel.PanelTransaction.popupmenu
popupmenu
Definition: panel.py:501
tests.test_maskededit.TestMasked.frame
frame
Definition: test_maskededit.py:45
gui.UIHtml.UIHtml.bn_Save
bn_Save
Definition: UIHtml.py:46
gui.UIPositionReport.UIPositionReport.__init__
def __init__(self, *args, **kwds)
Definition: UIPositionReport.py:17
gui.controls.PositionListSmall.add
def add(self, position)
Add a single smm.objects.Position object to the list.
Definition: controls.py:520
smm.objects.Transaction
Class to handle transations.
Definition: objects.py:940
gui.controls.PositionListSmall
Class to simpilfy creating and controlling of Position lists.
Definition: controls.py:507
gui.UIHtml.UIHtml.OnPrint
def OnPrint(self, event)
Definition: UIHtml.py:62
smm.objects.Exchange.id
id
Unique ID for each object.
Definition: objects.py:357
gui.panel.PanelWatchList.showDetails
def showDetails(self)
Shows the details of a selected share.
Definition: panel.py:1516
gui.MainWindow.closeView
def closeView(self, attr, event)
Close a open view and perform all cleanup actions.
Definition: __init__.py:920
smm.objects.Position.dividend
def dividend(self, count, value, date=datetime.date.today())
Add a dividend Transaction.
Definition: objects.py:1907
gui.MainWindow.ID_VIEWMENU_SHARE
ID_VIEWMENU_SHARE
Definition: __init__.py:265
gui.panel.PanelIndex.OnNewIndex
def OnNewIndex(self, event)
Show a dialog to create a new index.
Definition: panel.py:736
gui.dialogs.DlgHtml.OnPrintPreview
def OnPrintPreview(self, event)
Definition: dialogs.py:1838
smm.objects.DailyQuote.currency
currency
Reference to the Currency object
Definition: objects.py:813
gui.controls.GeneralPanelConfig.saveConfig
def saveConfig(self)
Save current settings.
Definition: controls.py:157
smm.objects.DailyQuote.volume
volume
Trade volume in shares.
Definition: objects.py:831
smm.objects.Config
Class to handle Config data.
Definition: objects.py:2093
gui.controls.BaseDialog
Generic functions for all dialogs.
Definition: controls.py:42
gui.controls.PositionChoice._formatElement
def _formatElement(self, obj)
Function to format a single object.
Definition: controls.py:768
gui.UIShare.UIShare.cc_Kind
cc_Kind
Definition: UIShare.py:78
tests.test_objects.TestObjects.test_Exchange_objects
def test_Exchange_objects(self)
Tests creating, searching and destroying smm.objects.Exchange objects.
Definition: test_objects.py:81
gui.dialogs.DlgFetchQuotes.OnCheckBoxClicked
def OnCheckBoxClicked(self, event)
Enable the fetch button depending if at least one list checked.
Definition: dialogs.py:102
gui.config.save
def save(force=False, saveAll=False)
Store configuration into a file.
Definition: config.py:384
gui.UIPreferences.UIPreferences.bn_Cancel
bn_Cancel
Definition: UIPreferences.py:75
gui.dialogs.DlgTrade._prepareSplit
def _prepareSplit(self)
Prepare "Split" transaction by storing all related values in results.
Definition: dialogs.py:1436
gui.dialogs.DlgFetchQuotes._append_share_to_grid
def _append_share_to_grid(self, share)
Append a new share to the shares grid.
Definition: dialogs.py:197
tests.test_objects.TestObjects.test_SMMBaseObject_checkAttrs
def test_SMMBaseObject_checkAttrs(self)
Tests checking attributes for completeness, types and values.
Definition: test_objects.py:752
smm.objects.Currency.getCount
def getCount()
Returns the number of known currencies.
Definition: objects.py:529
tests.test_objects.TestObjects.test_Position_get
def test_Position_get(self)
Test the smm.objects.Position.get() command.
Definition: test_objects.py:1103
smm.objects.Share.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:628
smm.quote.onvista.OnvistaFetchPlugin.searchURL
def searchURL(self, key)
Query OnVista for a detail page.
Definition: onvista.py:475
gui.UITrade.UITrade.st_BuyExchange
st_BuyExchange
Definition: UITrade.py:93
gui.dialogs.DlgHtml
Generic dialog to show HTML and some buttons to print and save.
Definition: dialogs.py:1791
smm.objects.Transaction.getHoldingPeriod
def getHoldingPeriod(self, date=datetime.date.today())
Returns the holding period of shares.
Definition: objects.py:1152
gui.panel.PanelShare.pmenu_unwatch
pmenu_unwatch
Definition: panel.py:268
gui.dialogs.DlgTrade.today
today
Todays date (native Python)
Definition: dialogs.py:501
gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_cancel
bn_cancel
Definition: UIBasePanelWatchList.py:49
gui.panel.PanelOpenPositionList.createListOpenPosition
def createListOpenPosition(self)
Create a header only list for all open positions.
Definition: panel.py:834
gui.MainWindow.OnNewShare
def OnNewShare(self, event)
Open new share dialog.
Definition: __init__.py:588
gui.UITrade.UITrade.flags_label
flags_label
Flags used with all label widgets (wx.StaticText)
Definition: UITrade.py:38
gui.MainWindow.OnFetchQuotes
def OnFetchQuotes(self, event)
Open fetch quotes dialog.
Definition: __init__.py:568
smm.objects.Position.open
open
Flag to mark open positions.
Definition: objects.py:1424
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_ProfitRelative_3Y
tc_ProfitRelative_3Y
Definition: UIBasePanelOpenPositionDetails.py:155
gui.controls.WatchDetailsPanel.flags_label
flags_label
Flags used with all label widgets (wx.StaticText)
Definition: controls.py:1230
smm.quote.fetchQuote
def fetchQuote(klass, share_list)
Generic function to fetch quotes using a FetchPlugin.
Definition: __init__.py:193
gui.helper.formatPosition
def formatPosition(pos)
Returns the formatted position or an empty string.
Definition: helper.py:319
gui.dialogs.DlgPositionReport.selection
selection
initialise instance variables
Definition: dialogs.py:1977
gui.MainWindow.views_open
list views_open
Definition: __init__.py:211
gui.controls.BaseDialog.ShowModal
def ShowModal(self)
Show the dialog modal and process dialogs input.
Definition: controls.py:98
tests.test_objects.TestObjects.test_Position_getPerf
def test_Position_getPerf(self)
Tests the smm.objects.Position.getPerf() command.
Definition: test_objects.py:1171
gui.log.StringHandler.getBufferAsList
def getBufferAsList(self, clean=True)
Returns all buffered messages.
Definition: log.py:112
gui.reports.createPositionReport
def createPositionReport(pos, dest)
Create a report of a single position.
Definition: reports.py:399
gui.UIPortfolioReport.UIPortfolioReport.bn_OK
bn_OK
Definition: UIPortfolioReport.py:58
gui.controls.BaseDialog._markWidget
def _markWidget(self, widget)
Change widget backgound to signalise "bad" content.
Definition: controls.py:54
gui.controls.ShareSourceChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:921
gui.images.getSmallGreenArrowBitmap
def getSmallGreenArrowBitmap()
Definition: images.py:143
gui.UIBasePanelSummary.UIBasePanelSummary.__init__
def __init__(self, *args, **kwds)
Definition: UIBasePanelSummary.py:15
gui.MainWindow.createMenuEntry
def createMenuEntry(self, menu, mid, item, htext, func, kind=wx.ITEM_NORMAL)
Create a single menu item.
Definition: __init__.py:385
contrib.migration_db_v2_v3.migrate_data
def migrate_data()
Create relationships between transactions and new introduced position objects.
Definition: migration_db_v2_v3.py:40
smm.objects.Transaction.setSplitDetails
def setSplitDetails(self, peer)
Set split transaction details.
Definition: objects.py:1190
gui.MainWindow.ViewCurrency
ViewCurrency
Definition: __init__.py:298
tests.test_math.TestMath.test_round_and_remove_exponent
def test_round_and_remove_exponent(self)
Test rounding and removal of exponential notation.
Definition: test_math.py:77
smm.objects.Transaction.NO_VALUE
NO_VALUE
Very small value non-zero value to use for worthless expired positions.
Definition: objects.py:1008
gui.UIFetchQuotes.UIFetchQuotes.bn_ok
bn_ok
Definition: UIFetchQuotes.py:97
gui.UITrade.UITrade.st_SplitPrefixDate
st_SplitPrefixDate
Definition: UITrade.py:142
smm.quote.yahoo.YahooWebFetchPlugin
Share data tracker querying Yahoo finance data.
Definition: yahoo.py:406
gui.controls.DecimalValidator.validCharacters
string validCharacters
Set of valid characters.
Definition: controls.py:974
gui.dialogs.DlgFetchQuotes
Dialog to fetch quotes.
Definition: dialogs.py:63
gui.UITrade.UITrade.bn_Cancel
bn_Cancel
Definition: UITrade.py:54
smm.quote.onvista.OnvistaFetchPlugin.search_urls
list search_urls
List of URLs to search a share.
Definition: onvista.py:84
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.sw_OpenPosition
sw_OpenPosition
Definition: UIBasePanelOpenPositionDetails.py:26
gui.MainWindow.OnPositionReport
def OnPositionReport(self, event)
Open a new dialog to show a position report.
Definition: __init__.py:606
gui.panel.PanelCurrency
Panel to show and maintain all currencies.
Definition: panel.py:112
gui.dialogs.DlgTrade.OnActivateSell
def OnActivateSell(self, unused=None)
Activate "Sell" radiobutton after a secondary widget has been focused.
Definition: dialogs.py:868
gui.UITrade.UITrade.dp_BuyDate
dp_BuyDate
Definition: UITrade.py:92
gui.controls.DecimalValidator.RE_DecimalPattern
RE_DecimalPattern
Compiled regular expression to match decimal values.
Definition: controls.py:979
smm.quote.yahoo.YahooCSVFetchPlugin.field_names
list field_names
Property names.
Definition: yahoo.py:118
gui.controls.SortedListPanel.listStyle
listStyle
Style of the ListCtrl.
Definition: controls.py:207
smm.quote.yahoo.YahooCSVFetchPlugin.__init__
def __init__(self)
Definition: yahoo.py:194
smm.objects.SMMBaseObject.encoding
encoding
Encoding of all character strings.
Definition: objects.py:75
gui.panel.PanelOpenPositionDetails.red_arrow_idx
red_arrow_idx
Definition: panel.py:1091
gui.controls.ShareDetailsPanel.tc_Source
tc_Source
Definition: controls.py:1134
smm.quote.base.toUnicode
def toUnicode(value)
Convert any value into a unicode string.
Definition: base.py:736
gui.UITrade.UITrade.tc_BuyValue
tc_BuyValue
Definition: UITrade.py:105
gui.controls.ShareChoice._formatElement
def _formatElement(self, obj)
Function to format a single object.
Definition: controls.py:785
smm.objects.Config.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:2110
smm.objects.Watch.remove
def remove(self)
Delete watch list entry.
Definition: objects.py:1387
gui.panel.PanelOpenPositionDetails.yellow_arrow_idx
yellow_arrow_idx
Definition: panel.py:1089
gui.controls.PositionDetailsPanel.flags_label
flags_label
Flags used with all label widgets (wx.StaticText)
Definition: controls.py:1182
gui.helper.setlocale
def setlocale()
Set localisation to German.
Definition: helper.py:602
gui.panel.PanelOpenPositionDetails.OnTrade
def OnTrade(self, event)
Show a dialog to trade with the selected share.
Definition: panel.py:1305
gui.controls.DecimalValidator.OnChar
def OnChar(self, event)
Check key events for valid characters.
Definition: controls.py:1023
gui.MainWindow.ViewSummary
ViewSummary
Definition: __init__.py:297
gui.UITrade.UITrade.rbn_WatchNote_append
rbn_WatchNote_append
Definition: UITrade.py:67
gui.panel.PanelOpenPositionDetails.__init__
def __init__(self, *args, **kwds)
Initialise the open position frame.
Definition: panel.py:1071
gui.dialogs.DlgHtml.printing
printing
Definition: dialogs.py:1814
gui.MainWindow.OnNewIndex
def OnNewIndex(self, event)
Open new index dialog.
Definition: __init__.py:578
gui.UITrade.UITrade.st_SwapOldValue
st_SwapOldValue
Definition: UITrade.py:158
smm.objects.Currency.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:477
gui.images.XPM2Bitmap
def XPM2Bitmap(data)
Converts XPM data from a string into a wx.Bitmap object.
Definition: images.py:39
gui.panel.PanelSummary.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: panel.py:56
gui.MainWindow.OnCloseExchange
def OnCloseExchange(self, event)
Cleanup / udate actions on closing exchange panel.
Definition: __init__.py:880
smm.quote.raiffeisen.RaiffeisenFetchPlugin.getCurrent
def getCurrent(self, request)
Obtain information from the data provider.
Definition: raiffeisen.py:101
gui.dialogs.DlgHtml.default_filename
default_filename
Definition: dialogs.py:1813
gui.controls.ShareDetailsPanel.tc_ISIN
tc_ISIN
Definition: controls.py:1131
gui.panel.PanelOpenPositionList.transaction_list
transaction_list
Definition: panel.py:808
smm.database.close_storm
def close_storm()
Close the Storm ORM wrapper.
Definition: database.py:55
gui.controls.BaseChoice.idx_obj
idx_obj
Definition: controls.py:672
gui.UIBasePanelSummary.UIBasePanelSummary.tc_DailyQuoteCount
tc_DailyQuoteCount
Definition: UIBasePanelSummary.py:119
gui.UIBasePanelSummary.UIBasePanelSummary.tc_FondCount
tc_FondCount
Definition: UIBasePanelSummary.py:83
gui.UITrade.UITrade.rbn_Split
rbn_Split
Definition: UITrade.py:86
gui.dialogs.DlgTrade.OnUpdateDividendSum
def OnUpdateDividendSum(self, unused=None)
Update dividend sum after changing dividend value or count.
Definition: dialogs.py:933
gui.UITrade.UITrade.st_SplitColon1
st_SplitColon1
Definition: UITrade.py:145
gui.MainWindow.ViewPositionDetails
ViewPositionDetails
Definition: __init__.py:304
gui.controls.SortedListCtrl.img_list
img_list
Definition: controls.py:328
smm.objects.DailyQuote.date
date
Day of quotation.
Definition: objects.py:828
tests.test_gui.TestGui.dlgTrade
dlgTrade
Definition: test_gui.py:50
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_Date
tc_Date
Definition: UIBasePanelOpenPositionDetails.py:90
gui.controls.ExchangeChoice
Choice widget to select a exchange.
Definition: controls.py:827
gui.dialogs.DlgPortfolioReport
Dialog to select start and end date for the portfolio report.
Definition: dialogs.py:1868
smm.objects.Position.getCount
def getCount(closed=False, open=False)
Returns the number of known Positions.
Definition: objects.py:1503
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_ProfitRelative_6M
tc_ProfitRelative_6M
Definition: UIBasePanelOpenPositionDetails.py:149
gui.dialogs.DlgTrade.currency_escaped
currency_escaped
Formatted and escaped currency (to fit mask syntax)
Definition: dialogs.py:485
gui.controls.SortedListCtrl.disableColumnSorter
def disableColumnSorter(self)
Disables the column sorter.
Definition: controls.py:357
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList.lc_Transaction
lc_Transaction
Definition: UIBasePanelOpenPositionList.py:39
smm.objects.SMMBaseObject._encode
def _encode(self, msg, *args, **kwargs)
Convert message and arguments to the default encoding.
Definition: objects.py:291
gui.UIHtml.UIHtml.__init__
def __init__(self, *args, **kwds)
Definition: UIHtml.py:16
tests.test_gui.TestGui.setUp
def setUp(self)
Definition: test_gui.py:45
smm.objects.DailyQuote.share
share
Reference to the Share object
Definition: objects.py:801
gui.dialogs.showAboutDialog
def showAboutDialog(parent)
Show the about dialog.
Definition: dialogs.py:400
gui.panel.PanelWatchList._addPosition
def _addPosition(self, watch)
Add a new watch list entry to the list.
Definition: panel.py:1457
gui.dialogs.DlgTrade.OnUpdateDividendValue
def OnUpdateDividendValue(self, unused=None)
Update dividend value after changing dividend sum.
Definition: dialogs.py:920
smm.quote.onvista.OnvistaFetchPlugin.REC_CERT_EXCHANGE
REC_CERT_EXCHANGE
Pre-compiled RE to extract the name of the exchange for certificates.
Definition: onvista.py:100
gui.dialogs.DlgTrade._prepareBuy
def _prepareBuy(self)
Prepare "Buy" transaction by storing all related values in results.
Definition: dialogs.py:1338
gui.controls.GeneralPanelConfig.restoreConfig
def restoreConfig(self)
Restore saved settings.
Definition: controls.py:138
gui.UIHtml.UIHtml
Definition: UIHtml.py:15
tests.test_gui.TestGui.store
store
Definition: test_gui.py:56
gui.log.installExceptionHandler
def installExceptionHandler()
Install own exception handler.
Definition: log.py:436
gui.UIShare.UIShare.tc_Notes
tc_Notes
Definition: UIShare.py:90
gui.dialogs.DlgPreferences.ShowModal
def ShowModal(self, *args, **kwargs)
Show the dialog modal and save the settings after afterwards.
Definition: dialogs.py:2210
gui.dialogs.DlgTrade._validateDecimalWidget
def _validateDecimalWidget(self, widget, allowZero=False)
Validate content of a devimal widget.
Definition: dialogs.py:1496
gui.controls.NotEmptyChoiceValidator.Validate
def Validate(self, unused)
Validate the contents of the given text control.
Definition: controls.py:1082
gui.controls.SortedListCtrl.itemDataMap
itemDataMap
Definition: controls.py:324
gui.UITrade.UITrade.cb_SellWorthless
cb_SellWorthless
Definition: UITrade.py:115
gui.UITrade.UITrade.cb_SellCloseEmpty
cb_SellCloseEmpty
Definition: UITrade.py:110
smm.quote.yahoo.YahooQueryFetchPlugin.getCurrent
def getCurrent(self, request)
Definition: yahoo.py:670
gui.panel.PanelOpenPositionList.psUpdateContent
def psUpdateContent(self)
Update the panel if new quotes are available.
Definition: panel.py:1022
gui.MainWindow.OnCreateShare
def OnCreateShare(self, event)
Show and maintain all shares.
Definition: __init__.py:791
gui.controls.GeneralPanelConfig.config_items
dictionary config_items
Dictionary with all elements to save/restore.
Definition: controls.py:121
tests.test_database.TestDatabase
Test creation and initial load into a SQLite database.
Definition: test_database.py:40
gui.MainWindow.createReportMenu
def createReportMenu(self)
Create "Reports" menu.
Definition: __init__.py:442
gui.controls.BaseValidator.TransferFromWindow
def TransferFromWindow(self)
Transfer data from window to validator.
Definition: controls.py:960
gui.panel.PanelExchange.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: panel.py:187
smm.db_setup.load_initial_data
def load_initial_data()
Loads the initial dataset into the database.
Definition: db_setup.py:180
smm.objects.SMMBaseObject._setAttrs
def _setAttrs(self, ignoreEmpty, **kwargs)
Update arguments (really)
Definition: objects.py:223
gui.controls.ShareDetailsPanel.__init__
def __init__(self, *args, **kwds)
Create the panel.
Definition: controls.py:1112
gui.MainWindow.ID_VIEWMENU_POSITIONDETAILS
ID_VIEWMENU_POSITIONDETAILS
Definition: __init__.py:269
gui.controls.NotEmptyChoiceValidator
Force filled Choice widgets.
Definition: controls.py:1073
gui.dialogs.DlgTrade._getDecimal
def _getDecimal(self, widget)
Return decimal value of any decimal or money widget.
Definition: dialogs.py:1061
gui.controls.SortedListCtrl.GetListCtrl
def GetListCtrl(self)
Returns the list to be sorted.
Definition: controls.py:366
gui.controls.GeneralPanelConfig.restoreListCtrl
def restoreListCtrl(self, ctrl, section, prefix)
Restore saved settings.
Definition: controls.py:179
smmgui.main
def main()
Create and run a new application object.
Definition: smmgui.py:43
gui.dialogs.DlgTrade._dateWidgets
_dateWidgets
List of all date widgets.
Definition: dialogs.py:513
smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent
def getCurrent(self, request)
Obtain information from the data provider.
Definition: yahoo.py:234
smm.objects.DailyQuote.getCount
def getCount()
Returns the number of daily quotes.
Definition: objects.py:917
setup.find_packages
def find_packages(path, base="")
Definition: setup.py:132
gui.UITrade.UITrade.cb_SellPositionReport
cb_SellPositionReport
Definition: UITrade.py:119
gui.panel.PanelWatchList.OnTrade
def OnTrade(self, event)
Show a dialog to trade with the selected share.
Definition: panel.py:1637
gui.panel.PanelIndex.psChangeIndex
def psChangeIndex(self, obj)
A listed index has been changed.
Definition: panel.py:686
gui.controls.TransactionListSmall
Class to simpilfy creating and controlling of Transaction lists.
Definition: controls.py:564
gui.UIPortfolioReport.UIPortfolioReport
Definition: UIPortfolioReport.py:14
gui.controls.DecimalValidator.empty
empty
Definition: controls.py:987
gui.helper.formatShareKind
def formatShareKind(share)
Returns the type of the share or an empty string.
Definition: helper.py:369
gui.UIBasePanelSummary.UIBasePanelSummary.tc_IndexCount
tc_IndexCount
Definition: UIBasePanelSummary.py:113
gui.UIPositionReport.UIPositionReport
Definition: UIPositionReport.py:16
gui.UIBasePanelWatchList.UIBasePanelWatchList.lc_DailyQuotes
lc_DailyQuotes
Definition: UIBasePanelWatchList.py:70
gui.controls.ShareDetailsPanel.tc_WKN
tc_WKN
Definition: controls.py:1136
smm.objects.Transaction.fee
fee
Overall transation fee.
Definition: objects.py:970
gui.dialogs.DlgShare.share
share
Reference to a share.
Definition: dialogs.py:1607
gui.helper.formatDate
def formatDate(date, fmt='%d.%m.%Y')
Returns the formatted date or an empty string.
Definition: helper.py:176
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bn_trade
bn_trade
Definition: UIBasePanelOpenPositionDetails.py:53
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails
Definition: UIBasePanelOpenPositionDetails.py:17
gui.controls.GeneralPanelConfig.saveListCtrl
def saveListCtrl(self, ctrl, section, prefix)
Save current settings.
Definition: controls.py:192
gui.UITrade.UITrade.rbn_Dividend
rbn_Dividend
Definition: UITrade.py:84
smm.objects.Position.getShareCount
def getShareCount(self)
Returns the numbers of shares in this position.
Definition: objects.py:1538
gui.dialogs.DlgPositionReport.cache
cache
Definition: dialogs.py:1978
gui.dialogs.DlgPositionReport.ShowModal
def ShowModal(self)
Show the dialog modal and save the config after afterwards.
Definition: dialogs.py:2056
gui.panel.PanelShare.popupmenu
popupmenu
Definition: panel.py:259
tests.test_objects.TestObjects.test_Position_worthless
def test_Position_worthless(self)
Test the smm.objects.Position.worthless() command.
Definition: test_objects.py:1855
gui.UITrade.UITrade.st_DividendMultiSign1
st_DividendMultiSign1
Definition: UITrade.py:130
gui.UIShare.UIShare.tc_Symbol
tc_Symbol
Definition: UIShare.py:42
gui.MainWindow.ViewTransaction
ViewTransaction
Definition: __init__.py:301
gui.dialogs.DlgTrade.OnUpdateBuySum
def OnUpdateBuySum(self, unused=None)
Update buy sum after changing buy value or share count.
Definition: dialogs.py:903
gui.panel.PanelTransaction.createListHeader
def createListHeader(self)
Create the header of a list.
Definition: panel.py:519
gui.UIBasePanelWatchList.UIBasePanelWatchList.pn_ShareList
pn_ShareList
Definition: UIBasePanelWatchList.py:30
gui.dialogs.DlgFetchQuotes._show_fetched_quotes
def _show_fetched_quotes(self)
Show the new fetched quotes in the shares grid.
Definition: dialogs.py:309
smm.objects.Share.getCount
def getCount(fonds=False, index=False, other=False, share=False, total=False)
Returns the number of shares, fonds and others.
Definition: objects.py:722
gui.panel.PanelOpenPositionList.OnTrade
def OnTrade(self, event)
Show a dialog to trade with the selected share.
Definition: panel.py:1005
gui.controls.ExchangeChoice._getElements
def _getElements(self)
Function to query all objects of unique type.
Definition: controls.py:835
gui.panel.PanelWatchList.createWatchList
def createWatchList(self)
Create a header only list for all open positions.
Definition: panel.py:1378
gui.controls.TransactionKindChoice
Choice widget to select the transaction type.
Definition: controls.py:866
gui.MainWindow.ViewExchange
ViewExchange
Definition: __init__.py:299
smm.objects.DailyQuote.close
close
Closing value of the share.
Definition: objects.py:819
gui.SMMGui.OnInit
def OnInit(self)
wxWindows calls this method to initialize the application
Definition: __init__.py:166
gui.UITrade.UITrade.st_SwapNewRatio
st_SwapNewRatio
Definition: UITrade.py:157
gui.MainWindow.nativeMDI
bool nativeMDI
Definition: __init__.py:203
gui.panel.PanelOpenPositionDetails.showDetails
def showDetails(self)
Shows the details of a selected share.
Definition: panel.py:1162
gui.controls.SortedListCtrl.currentItem
currentItem
Definition: controls.py:323
gui.UIShare.UIShare.bn_Cancel
bn_Cancel
Definition: UIShare.py:102
gui.dialogs.DlgTrade.position
position
Position to add the current Transaction.
Definition: dialogs.py:489
tests.test_objects.TestObjects._checkEquality
def _checkEquality(self, first, second)
Check equality of two objects.
Definition: test_objects.py:67
tests.test_objects.TestObjects.test_Position_getPerf2
def test_Position_getPerf2(self)
Tests the smm.objects.Position.getPerf() command.
Definition: test_objects.py:1414
gui.UITrade.UITrade.st_DividendEqualsSign1
st_DividendEqualsSign1
Definition: UITrade.py:132
smm.quote.base.FetchPluginBase.max_retries
int max_retries
Number of retries for temporary connection errors.
Definition: base.py:111
gui.reports.createPortfolioReport
def createPortfolioReport(start, end, dest)
Create a report of portfolio changes between start and end date.
Definition: reports.py:483
gui.controls.GeneralPanelConfig.config_section
config_section
Section in the configuration that contains the current look.
Definition: controls.py:118
gui.panel.PanelOpenPositionList._addPosition
def _addPosition(self, pos)
Add a new single smm.objects.OpenPosition object to the list.
Definition: panel.py:875
gui.UIBasePanelWatchList.UIBasePanelWatchList.bn_delete
bn_delete
Definition: UIBasePanelWatchList.py:53
smm.objects.Transaction.get
def get(id=None)
Query Transaction objects.
Definition: objects.py:1073
gui.panel.PanelShare.createListHeader
def createListHeader(self)
Create the header of a list.
Definition: panel.py:287
smm.quote.onvista.OnvistaFetchPlugin.getKind
def getKind(self, url)
Determinate the share kind from the given url.
Definition: onvista.py:520
gui.controls.SortedListCtrl.GetColumnSorter
def GetColumnSorter(self)
Returns a column sorter, that support unicode.
Definition: controls.py:372
gui.dialogs.DlgTrade.OnActivateSwap
def OnActivateSwap(self, unused=None)
Activate "Swap" radiobutton after a secondary widget has been focused.
Definition: dialogs.py:877
gui.UITrade.UITrade.st_SwapColon3
st_SwapColon3
Definition: UITrade.py:163
gui.images.getBlankImageBitmap
def getBlankImageBitmap()
Definition: images.py:244
gui.dialogs.DlgTrade.configureDecimalWidget
def configureDecimalWidget(self, widget, value=None)
Set format of a decimal widget (monetary or non-monetary)
Definition: dialogs.py:1012
gui.MainWindow.filemenu
filemenu
Definition: __init__.py:291
gui.panel.PanelIndex.__init__
def __init__(self, *args, **kwargs)
Initialise widget.
Definition: panel.py:631
smm.objects.Watch.id
id
Unique ID for each object.
Definition: objects.py:1299
contrib.migration_db_v7_v8.migrate_data
def migrate_data()
Set event attributes of all split transactions.
Definition: migration_db_v7_v8.py:43
smm.objects.Share.symbol
symbol
Ticker symbol of the share.
Definition: objects.py:564
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_Buy
tc_Buy
Definition: UIBasePanelOpenPositionDetails.py:72
tests.test_misc.TestMisc
Test basic functionality with all objects from smm.objects.
Definition: test_misc.py:43
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList.pn_TopWindow
pn_TopWindow
Definition: UIBasePanelOpenPositionList.py:28
tests.test_objects.TestObjects.test_DailyQuote_getLast
def test_DailyQuote_getLast(self)
Tests the smm.Objects.DailyQuote.getLast() command.
Definition: test_objects.py:345
gui.UIPreferences.UIPreferences
Definition: UIPreferences.py:16
gui.UIFetchQuotes.UIFetchQuotes.bn_copy
bn_copy
Definition: UIFetchQuotes.py:102
tests.test_objects.TestObjects.test_Position_split
def test_Position_split(self)
Test the smm.objects.Position.split() command.
Definition: test_objects.py:1680
gui.dialogs.DlgTrade._prepareSell
def _prepareSell(self)
Prepare "Sell" transaction by storing all related values in results.
Definition: dialogs.py:1402
gui.MainWindow.attr2menu
dictionary attr2menu
Mapping between view name and menu id.
Definition: __init__.py:273
gui.UIPositionReport.UIPositionReport.lc_Position
lc_Position
Definition: UIPositionReport.py:37
gui.controls.PositionChoice
Choice widget to select a position.
Definition: controls.py:750
gui.dialogs.DlgPositionReport.OnActivateOK
def OnActivateOK(self, event)
Activate OK button after first position is selected.
Definition: dialogs.py:2006
gui.controls.SortedListCtrl._OnItemSelected
def _OnItemSelected(self, event)
Store the index of the selected item in currentItem.
Definition: controls.py:415
gui.MainWindow.OnCreateExchange
def OnCreateExchange(self, event)
Show and maintain all exchanges.
Definition: __init__.py:779
gui.controls.WatchDetailsPanel.dp_created
dp_created
Definition: controls.py:1247
gui.controls.WatchDetailsPanel.cb_expire
cb_expire
Definition: controls.py:1246
gui.UITrade.UITrade.cc_Share
cc_Share
Definition: UITrade.py:62
tests.test_objects.TestObjects.test_SMMBaseObject_setAttrs
def test_SMMBaseObject_setAttrs(self)
Tests setting / update of attributes.
Definition: test_objects.py:771
smm.objects.Transaction.setSwapDetails
def setSwapDetails(self, peer)
Set swap transaction details.
Definition: objects.py:1201
gui.MainWindow.OnFileExit
def OnFileExit(self, event)
Finish this application.
Definition: __init__.py:561
gui.UITrade.UITrade.tc_SplitOldRatio
tc_SplitOldRatio
Definition: UITrade.py:147
gui.panel.PanelTransaction.psChangeTransaction
def psChangeTransaction(self, obj)
A listed transaction has been changed.
Definition: panel.py:560
gui.UIShare.UIShare.static_line_1
static_line_1
Definition: UIShare.py:93
gui.controls.ShareDetailsPanel.cc_Exchange
cc_Exchange
Definition: controls.py:1128
gui.helper.formatMoney
def formatMoney(value, currency, places=3, grouping=True)
Returns the formatted decimal value incl.
Definition: helper.py:279
gui.config.set_item
def set_item(key, value)
Set a configuration value.
Definition: config.py:214
gui.controls.BaseDialog._validateInput
def _validateInput(self)
Validate input data.
Definition: controls.py:106
gui.controls.SortedListCtrl._col
_col
Definition: controls.py:325
smm.database.init_storm
def init_storm(uri)
Initialise the Storm ORM wrapper.
Definition: database.py:45
tests.test_math.TestMath.test_gcd
def test_gcd(self)
Test greatest common divisor.
Definition: test_math.py:48
gui.panel.PanelIndex.popupmenu
popupmenu
Definition: panel.py:636
smm.math.gcd
def gcd(a, b)
Return greatest common divisor using Euclid's Algorithm.
Definition: math.py:39
gui.UITrade.UITrade.tc_SwapNewRatio
tc_SwapNewRatio
Definition: UITrade.py:164
gui.dialogs.DlgTrade.__init__
def __init__(self, parent, kind=u 'buy', share=None, position=None)
Initialise dialog.
Definition: dialogs.py:449
gui.dialogs.DlgTrade.OnUpdateBuyValue
def OnUpdateBuyValue(self, unused=None)
Update buy value after changing buy sum.
Definition: dialogs.py:883
gui.UIPreferences.UIPreferences.cc_LogLevel
cc_LogLevel
Definition: UIPreferences.py:38
gui.log.StringHandler.flush
def flush(self)
Empty the buffer.
Definition: log.py:146
gui.MainWindow.__init__
def __init__(self, parent, id, title)
Constructor.
Definition: __init__.py:286
gui.dialogs.DlgTrade.widget2name
widget2name
Dictionary to convert widgets instances to human readable names.
Definition: dialogs.py:647
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList.__init__
def __init__(self, *args, **kwds)
Definition: UIBasePanelOpenPositionList.py:17
gui.SMMGui
Application main class.
Definition: __init__.py:116
gui.UITrade.UITrade.tc_BuyFee
tc_BuyFee
Definition: UITrade.py:107
gui.dialogs.DlgShowPortfolioReport
Open a HTML dialog and show a portfolio report.
Definition: dialogs.py:2245
gui.controls.PositionListSmall.createHeader
def createHeader(self)
Creates a header only list.
Definition: controls.py:510
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_ProfitAbsolute
tc_ProfitAbsolute
Definition: UIBasePanelOpenPositionDetails.py:115
gui.MainWindow.viewmenu
viewmenu
Definition: __init__.py:295
smm.math.round_and_remove_exponent
def round_and_remove_exponent(value)
Round to 4 decimal places and use non-exponential notation.
Definition: math.py:46
gui.panel.PanelTransaction.createPopupMenu
def createPopupMenu(self)
Create the popup menu.
Definition: panel.py:530
gui.config.init
def init(filename=None)
Initialize the class and load all values.
Definition: config.py:170
gui.MainWindow.restoreGUIConfig
def restoreGUIConfig(self)
Restore general GUI configuration.
Definition: __init__.py:966
gui.panel.PanelTransaction.OnRemoveTransaction
def OnRemoveTransaction(self, unused)
Delete the selected transaction.
Definition: panel.py:602
smm.objects.Exchange.__str__
def __str__(self)
Returns the content of this instance as string.
Definition: objects.py:366
smm.objects.DailyQuote.id
id
Unique ID for each object.
Definition: objects.py:795
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_ProfitRelative
tc_ProfitRelative
Definition: UIBasePanelOpenPositionDetails.py:121
gui.MainWindow.OnCreatePositionDetails
def OnCreatePositionDetails(self, event)
Show all open positions.
Definition: __init__.py:839
gui.UIBasePanelSummary.UIBasePanelSummary.tc_CurrencyCount
tc_CurrencyCount
Definition: UIBasePanelSummary.py:101
gui.MainWindow.OnCloseWatchList
def OnCloseWatchList(self, event)
Cleanup / udate actions on closing watch list panel.
Definition: __init__.py:916
gui.controls.BaseDialog.installOwnOKEventHandler
def installOwnOKEventHandler(self)
Bind own event handler for pressiong OK to allow a proper validation.
Definition: controls.py:86
gui.panel.PanelShare.psChangeShare
def psChangeShare(self, obj)
A listed share has been changed.
Definition: panel.py:323
smm.quote.yahoo.YahooWebFetchPlugin.getCurrent
def getCurrent(self, request)
Obtain information from the data provider.
Definition: yahoo.py:497
smm.db_setup.create_structure
def create_structure()
Creates all needed tables to store the objects inside.
Definition: db_setup.py:228
gui.dialogs.DlgPortfolioReport.getStartDate
def getStartDate(self)
Return the start date for a report.
Definition: dialogs.py:1918
gui.dialogs.DlgFetchQuotes._share_details
_share_details
Definition: dialogs.py:77
smm.objects.Watch.__init__
def __init__(self, share, created=datetime.date.today(), expire=None, notes=None)
Create a new Watch instance.
Definition: objects.py:1325
gui.controls.NotEmptyValidator.Clone
def Clone(self)
Standard cloner.
Definition: controls.py:1048
gui.panel.PanelTransaction.psAddTransaction
def psAddTransaction(self, obj)
Add a new transaction to the list.
Definition: panel.py:551
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.lc_OpenPosition
lc_OpenPosition
Definition: UIBasePanelOpenPositionDetails.py:34
gui.UIFetchQuotes.UIFetchQuotes.cb_WatchList
cb_WatchList
Definition: UIFetchQuotes.py:36
gui.controls.BaseDialog._processInput
def _processInput(self)
Process input data.
Definition: controls.py:110
gui.panel.PanelOpenPositionDetails.position
position
Definition: panel.py:1079
gui.UIBasePanelWatchList.UIBasePanelWatchList.__init__
def __init__(self, *args, **kwds)
Definition: UIBasePanelWatchList.py:18
gui.helper.formatExchange
def formatExchange(exchange)
Returns the formatted exchange or an empty string.
Definition: helper.py:261
gui.helper.formatTransactionElements
def formatTransactionElements(transaction)
Format all attributes of a Transaction for showing and sorting.
Definition: helper.py:553
tests.test_objects.TestObjects.test_Position_objects
def test_Position_objects(self)
Tests creating smm.objects.Position objects.
Definition: test_objects.py:1021
gui.MainWindow.ID_VIEWMENU_SUMMARY
ID_VIEWMENU_SUMMARY
Definition: __init__.py:262
gui.controls.WatchDetailsPanel
A panel show show all information of a watch list entry.
Definition: controls.py:1227
smm.quote.yahoo.YahooCSVFetchPlugin.field_symbols
list field_symbols
Yahoo encoded property names.
Definition: yahoo.py:107
gui.MainWindow.ViewPositionList
ViewPositionList
Definition: __init__.py:303
gui.panel.PanelOpenPositionDetails.transaction_list
transaction_list
Definition: panel.py:1084
smm.quote.base.FetchPluginBase.tsep
tsep
Thousands separator for converting strings to decimal values.
Definition: base.py:103
gui.MainWindow.createFileMenu
def createFileMenu(self)
Create "File" menu.
Definition: __init__.py:390
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.tc_Volume
tc_Volume
Definition: UIBasePanelOpenPositionDetails.py:96
gui.controls.BaseValidator
Base class for all validators.
Definition: controls.py:932
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.lc_Transaction
lc_Transaction
Definition: UIBasePanelOpenPositionDetails.py:164
gui.UIShare.UIShare.cc_Exchange
cc_Exchange
Definition: UIShare.py:72
tests.test_maskededit.TestMasked.maskedctrl
maskedctrl
Definition: test_maskededit.py:47
tests.test_objects.TestObjects.test_Exchange_get
def test_Exchange_get(self)
Test the smm.objects.Exchange.get() command.
Definition: test_objects.py:114
gui.UITrade.UITrade.st_BuyOr
st_BuyOr
Definition: UITrade.py:91
smm.objects.SMMBaseObject._remove
def _remove(self)
Remove current object from database store.
Definition: objects.py:260
gui.UIFetchQuotes.UIFetchQuotes.grid_shares
grid_shares
Definition: UIFetchQuotes.py:62
gui.controls.DecimalValidator.Validate
def Validate(self, unused)
Validate the contents of the given text control.
Definition: controls.py:997
gui.helper.formatDuration
def formatDuration(duration)
Returns the given duration formatted.
Definition: helper.py:217
gui.MainWindow.OnAbout
def OnAbout(self, event)
Open about dialog.
Definition: __init__.py:557
gui.dialogs.DlgTrade.today_wx
today_wx
Todays date (wx format)
Definition: dialogs.py:504
gui.MainWindow.saveSMMConfig
def saveSMMConfig(self)
Store general GUI configuration.
Definition: __init__.py:1035
gui.controls.SortedListCtrl.ReSort
def ReSort(self)
Sort the ListCtrl again using the current settings.
Definition: controls.py:381
gui.log.ExceptionFormatter
Extended formatter to include more exception details automatically.
Definition: log.py:153
gui.controls.ShareKindChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:894
gui.dialogs.DlgShare
Dialog to add and change shares.
Definition: dialogs.py:1604
gui.controls.ShareDetailsPanel.flags_input
flags_input
Flags used for all input widgets.
Definition: controls.py:1109
gui.dialogs.DlgTrade.results
results
Dialog results stored after validation by _validateInput()
Definition: dialogs.py:495
gui.MainWindow.OnCloseSummary
def OnCloseSummary(self, event)
Cleanup / udate actions on closing summary panel.
Definition: __init__.py:868
smm.objects.Exchange.getCount
def getCount()
Returns the number of known exchanges.
Definition: objects.py:443
smm.operations.getPrimarySourceID
def getPrimarySourceID(share)
Returns the primary quotation source for a share.
Definition: operations.py:43
gui.UIBasePanelWatchList.UIBasePanelWatchList.pn_Details
pn_Details
Definition: UIBasePanelWatchList.py:38
gui.images.getSmallYellowArrowBitmap
def getSmallYellowArrowBitmap()
Definition: images.py:211
gui.controls.ShareDetailsPanel.cc_Currency
cc_Currency
Definition: controls.py:1127
gui.UIFetchQuotes.UIFetchQuotes.pn_log
pn_log
Definition: UIFetchQuotes.py:79
gui.panel.PanelWatchList.psUpdateAllContent
def psUpdateAllContent(self)
Full panel update.
Definition: panel.py:1577
gui.MainWindow.ViewShare
ViewShare
Definition: __init__.py:300
gui.dialogs.DlgTrade._updateMoneyFormat
def _updateMoneyFormat(self, widget)
Change widget mask to update the currency sign / code.
Definition: dialogs.py:1214
smm.objects.Currency
Class to handle Currency data.
Definition: objects.py:451
gui.UITrade.UITrade.sb_position
sb_position
Definition: UITrade.py:57
gui.panel.PanelOpenPositionList.popupmenu
popupmenu
Definition: panel.py:848
gui.helper.ReverseDict.reverse
reverse
Definition: helper.py:90
gui.panel.PanelShare.OnTrade
def OnTrade(self, event)
Show a dialog to trade with the selected share.
Definition: panel.py:431
gui.controls.NotEmptyValidator.Validate
def Validate(self, unused)
Validate the contents of the given text control.
Definition: controls.py:1052
gui.UITrade.UITrade.rbn_Swap
rbn_Swap
Definition: UITrade.py:87
gui.panel.PanelOpenPositionList
Panel to show all open positions.
Definition: panel.py:758
smm.objects.SMMBaseObject.add2db
def add2db(self)
Add an object to the database.
Definition: objects.py:337
tests.test_maskededit.TestMasked.app
app
Definition: test_maskededit.py:44
gui.UIBasePanelSummary.UIBasePanelSummary.tc_ClosedPositionCount
tc_ClosedPositionCount
Definition: UIBasePanelSummary.py:42
gui.dialogs.DlgHtml.setHtml
def setHtml(self, html)
Set the html source and display it.
Definition: dialogs.py:1829
gui.panel.PanelExchange.createListHeader
def createListHeader(self)
Create the header of a list.
Definition: panel.py:195
gui.MainWindow.ID_VIEWMENU_INDEX
ID_VIEWMENU_INDEX
Definition: __init__.py:267
gui.controls.GeneralPanelConfig.OnClose
def OnClose(self, event)
Save the current configuration before the panel is closed.
Definition: controls.py:130
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.__init__
def __init__(self, *args, **kwds)
Definition: UIBasePanelOpenPositionDetails.py:18
gui.UIPortfolioReport.UIPortfolioReport.dp_To
dp_To
Definition: UIPortfolioReport.py:49
smm.objects.DailyQuote.get
def get(date=None, id=None, share=None)
Query DailyQuote objects.
Definition: objects.py:896
gui.UITrade.UITrade.rbn_new_position
rbn_new_position
Definition: UITrade.py:60
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.bn_cancel
bn_cancel
Definition: UIBasePanelOpenPositionDetails.py:49
smm.quote.onvista.OnvistaFetchPlugin.REC_WARRANT_AMOUNT
REC_WARRANT_AMOUNT
Pre-compiled RE to find amount and currency for Warrants.
Definition: onvista.py:122
gui.helper.ReverseDict.__delitem__
def __delitem__(self, key)
Remove a key / value pair out of both dictionaries.
Definition: helper.py:104
tests.test_objects.TestObjects.test_DailyQuote_get
def test_DailyQuote_get(self)
Test the smm.objects.DailyQuote.get() command.
Definition: test_objects.py:325
gui.UITrade.UITrade.dp_SplitDate
dp_SplitDate
Definition: UITrade.py:143
gui.panel.PanelWatchList.watch
watch
Definition: panel.py:1349
gui.controls.SortedListCtrl._OnColClick
def _OnColClick(self, evt)
Event handler of clicks at the column headers.
Definition: controls.py:406
gui.controls.ShareDetailsPanel.tc_Notes
tc_Notes
Definition: controls.py:1133
tests.test_objects.TestObjects.test_SMMBaseObject_remove
def test_SMMBaseObject_remove(self)
Test removing own object from database.
Definition: test_objects.py:867
gui.panel.PanelOpenPositionList.OnShowPopup
def OnShowPopup(self, event)
Display the pop-up menu.
Definition: panel.py:986
gui.panel.PanelWatchList._addQuote
def _addQuote(self, quote)
Add a new quote to the list.
Definition: panel.py:1471
gui.dialogs.DlgFetchQuotes._resize_all_cols_to_content
def _resize_all_cols_to_content(self)
Set column size to content length respect label size as minimum.
Definition: dialogs.py:253
gui.panel.PanelTransaction._addTransaction
def _addTransaction(self, transaction)
Add a smm.objects.Transaction object to the list control.
Definition: panel.py:569
gui.MainWindow.OnCreateCurrency
def OnCreateCurrency(self, event)
Show and maintain all currencies.
Definition: __init__.py:767
gui.controls.BaseListSmall.OnShowPopup
def OnShowPopup(self, event)
Display the pop-up menu.
Definition: controls.py:498
gui.controls.WatchDetailsPanel.dp_expire
dp_expire
Definition: controls.py:1248
gui.UIBasePanelSummary.UIBasePanelSummary.tc_OpenPositionCount
tc_OpenPositionCount
Definition: UIBasePanelSummary.py:36
smm.objects.Share.get
def get(id=None, isin=None, symbol=None, wkn=None, index=None)
Query Share objects.
Definition: objects.py:675
tests.test_maskededit.TestMasked
Test for wx.lib.masked.MaskedEditMixin._processMask.
Definition: test_maskededit.py:41
gui.panel.PanelOpenPositionList.__init__
def __init__(self, *args, **kwds)
Initialise the open position frame.
Definition: panel.py:797
gui.dialogs.DlgTrade.defaultValues
defaultValues
Default values for decimal and money widgets.
Definition: dialogs.py:571
gui.panel.PanelCurrency.createListHeader
def createListHeader(self)
Create the header of a list.
Definition: panel.py:125
gui.MainWindow.ID_MANAGEMENU_ADDINDEX
ID_MANAGEMENU_ADDINDEX
Definition: __init__.py:255
smm.objects.Position.transactions
transactions
Reference to all Transaction associated to this position
Definition: objects.py:1436
gui.UIBasePanelOpenPositionList.UIBasePanelOpenPositionList.pn_DownWindow
pn_DownWindow
Definition: UIBasePanelOpenPositionList.py:35
tests.test_maskededit.TestMasked.setUp
def setUp(self)
Definition: test_maskededit.py:43
smm.objects.DailyQuote.exchange
exchange
Reference to the Exchange object
Definition: objects.py:807
smm.quote.yahoo.YahooWebFetchPlugin.provider_url
string provider_url
URL to query the data.
Definition: yahoo.py:431
gui.dialogs.DlgShare._validateInput
def _validateInput(self)
Validate dialog input in a logical way.
Definition: dialogs.py:1661
gui.helper.formatShareNotesLong
def formatShareNotesLong(share)
Returns additional note to a share - long formatted.
Definition: helper.py:132
gui.panel.PanelWatchList.OnCancel
def OnCancel(self, event)
Revert changes.
Definition: panel.py:1592
gui.UIPositionReport.UIPositionReport.bn_OK
bn_OK
Definition: UIPositionReport.py:46
tests.test_objects.TestObjects.test_Currency_objects
def test_Currency_objects(self)
Tests creating, searching and destroying smm.objects.Currency objects.
Definition: test_objects.py:239
smm.objects.Transaction.date
date
Date of the transaction.
Definition: objects.py:973
smm.objects.Position.id
id
Unique ID for each object.
Definition: objects.py:1412
gui.dialogs.DlgPositionReport.GetSelection
def GetSelection(self)
Returns the ID of the selected Position.
Definition: dialogs.py:2047
gui.controls.BaseChoice.addEmpty
bool addEmpty
Add an empty entry to the widget during initialisation.
Definition: controls.py:652
gui.helper.wxdate2pydate
def wxdate2pydate(wxdate)
Convert a date from wxDateTime to Python datetime.date.
Definition: helper.py:506
gui.controls.ShareSourceChoice
Choice widget to select the share source.
Definition: controls.py:918
smm.objects.Share.name
name
Name of the company.
Definition: objects.py:573
smm.objects.DailyQuote.low
low
Lowest value of the day.
Definition: objects.py:825
smm.objects.Position.share
share
Reference to the Share object
Definition: objects.py:1430
gui.panel.PanelShare.pmenu_newshare
pmenu_newshare
Definition: panel.py:271
gui.config.get_item
def get_item(key)
Returns a configuration value.
Definition: config.py:300
gui.UIHtml.UIHtml.hw_report
hw_report
Definition: UIHtml.py:26
gui.UIBasePanelOpenPositionDetails.UIBasePanelOpenPositionDetails.pn_ShareList
pn_ShareList
Definition: UIBasePanelOpenPositionDetails.py:30
gui.helper.ReverseDict.__init__
def __init__(self, *args, **kw)
Initialise the data structures.
Definition: helper.py:88
smm.objects.Transaction.__init__
def __init__(self, count, kind, position, date=datetime.date.today(), exchange=None, fee=None, value=None, details=None)
Create a new Transaction instance.
Definition: objects.py:1023
gui.UIShare.UIShare.tc_ISIN
tc_ISIN
Definition: UIShare.py:58
gui.MainWindow.OnCreatePositionList
def OnCreatePositionList(self, event)
Show all open positions.
Definition: __init__.py:827
smm.quote.onvista.OnvistaFetchPlugin.mandatory_attributes
mandatory_attributes
Minimum set of attributes to be extract from the OnVista webpage.
Definition: onvista.py:72
gui.UIBasePanelSummary.UIBasePanelSummary.tc_CurrentVolume
tc_CurrentVolume
Definition: UIBasePanelSummary.py:54
gui.controls.WatchDetailsPanel.cc_Share
cc_Share
Definition: controls.py:1245
smm.quote.yahoo.YahooWebFetchPlugin.REC_WKN
REC_WKN
Definition: yahoo.py:451
gui.panel.PanelIndex.OnEditIndex
def OnEditIndex(self, event)
Show a dialog to edit a share.
Definition: panel.py:718
gui.controls.BaseChoice.Select
def Select(self, obj)
Selecting a element specified by the given object.
Definition: controls.py:743
gui.MainWindow.OnCreateWatchList
def OnCreateWatchList(self, event)
Show all watch list entries.
Definition: __init__.py:851
gui.dialogs.DlgPositionReport.position_list
position_list
Instance to simplify controlling of the list of positions related to the current filter settings.
Definition: dialogs.py:1981
gui.MainWindow.OnNewTransaction
def OnNewTransaction(self, event)
Open new transaction dialog.
Definition: __init__.py:597
gui.UIBasePanelSummary.UIBasePanelSummary.tc_TransactionCount
tc_TransactionCount
Definition: UIBasePanelSummary.py:60
smm.quote.yahoo.YahooWebFetchPlugin.__init__
def __init__(self)
Definition: yahoo.py:447
smm.objects.Transaction._getDetails
def _getDetails(self, kind)
Get details of a transaction.
Definition: objects.py:1214
gui.UITrade.UITrade.st_DividendSum
st_DividendSum
Definition: UITrade.py:133
gui.UITrade.UITrade.tc_SwapOldValue
tc_SwapOldValue
Definition: UITrade.py:165
gui.controls.BaseListSmall.control
control
Reference to a SortedListCtrl.
Definition: controls.py:433
smm.objects.Position.getInPeriod
def getInPeriod(start, end, open=False)
Returns all Position with Transaction between start and end date.
Definition: objects.py:1523
smm.objects.DailyQuote.open
open
Opening value of the share.
Definition: objects.py:816
gui.controls.PositionDetailsPanel.__init__
def __init__(self, *args, **kwds)
Create the panel.
Definition: controls.py:1188
gui.dialogs.DlgHtml.page_content
page_content
Definition: dialogs.py:1812
gui.panel.PanelShare.OnEditShare
def OnEditShare(self, event)
Show a dialog to edit a share.
Definition: panel.py:387
gui.controls.DecimalValidator
Validator to check for valid decimal.
Definition: controls.py:968
gui.MainWindow.ID_VIEWMENU_CURRENCY
ID_VIEWMENU_CURRENCY
Definition: __init__.py:263
gui.helper.pydate2wxdate
def pydate2wxdate(pydate)
Convert a date from Python datetime.date to wxDateTime.
Definition: helper.py:516
tests.test_objects.TestObjects.test_Transaction_getVolume
def test_Transaction_getVolume(self)
Test the smm.objects.Transaction.getVolume() command.
Definition: test_objects.py:525
smm.objects.Exchange.description
description
The full name and country of the exchange.
Definition: objects.py:363
gui.UITrade.UITrade.rbn_WatchNote_ignore
rbn_WatchNote_ignore
Definition: UITrade.py:72
gui.UIPreferences.UIPreferences.__init__
def __init__(self, *args, **kwds)
Definition: UIPreferences.py:17
gui.controls.LogLevelChoice.__init__
def __init__(self, *args, **kwargs)
Constructor.
Definition: controls.py:846
gui.dialogs.DlgPositionReport.OnRadio
def OnRadio(self, event)
Update position list on changing the RadioBox selection.
Definition: dialogs.py:2016
tests.test_math.TestMath.setUp
def setUp(self)
Initialise parts of SMM only.
Definition: test_math.py:42
gui.controls.WatchDetailsPanel.__init__
def __init__(self, *args, **kwds)
Create the panel.
Definition: controls.py:1236