MCPcopy Create free account

hub / github.com/MikePia/structjour / functions

Functions1,304 in github.com/MikePia/structjour

↓ 2 callersMethodfilter_by_tags
(self, query=None)
structjour/view/charts/chartdatabase.py:106
↓ 2 callersFunctionfindFilesInDir
Find the files in direct that match fn, either exactly or including the same parts. :direct: The directory to search :fn: A filename or f
structjour/statements/findfiles.py:168
↓ 2 callersMethodfindTradeSummary
A helper method for addTradeSummariesSA and updateTradeSummaries Get a single trade summary record by date and time :date: A
structjour/statements/statementcrud.py:194
↓ 2 callersMethodfindTradeSummarySA
A helper method for addTradeSummariesSA and updateTradeSummaries Get a single trade summary record by date and time :date: A
structjour/statements/ibstatementdb.py:116
↓ 2 callersMethodfindTradesSA
Find a unique trade for date, symbol, quantity and account. This method is here to prevent duplicate trades, not to get a collection
structjour/statements/ibstatementdb.py:260
↓ 2 callersFunctionformatTime
(daTime, frmt='%H:%M:%S')
structjour/statements/statementcrud.py:44
↓ 2 callersMethodformatTrade
Implement the Summary Trade Form within the openpyxl worksheet object. The form is defined in SumReqFields.tfcolumns, which contains
structjour/tradestyle.py:532
↓ 2 callersMethodgetAccounts
Retrieve a list of all accounts that have trades. The entries in the table are actual account numbers
structjour/models/trademodels.py:404
↓ 2 callersMethodgetAllDescriptions
(cls)
structjour/models/strategymodels.py:215
↓ 2 callersFunctiongetApiKey
Returns the key for the barchart API
structjour/stock/mybarchart.py:33
↓ 2 callersFunctiongetAvgExit
We want to display jut one exit in the Trade log. It might as well be the average exit when we scale out. If there are more than 8 combined entrie
structjour/discipline/disciplined.py:193
↓ 2 callersMethodgetBadTradesSA
Retrive all trades in ib_trades missing either average or balance
structjour/statements/ibstatementdb.py:501
↓ 2 callersMethodgetChartUserData
Abstract method without ABC
structjour/view/charts/chartdatabase.py:347
↓ 2 callersMethodgetChartWidgets
Get the associated widgets for c one of chart1, chart2 or chart3. That includes the widgets for start, end, interval and name.
structjour/view/sumcontrol.py:692
↓ 2 callersMethodgetCoveredDays
(self, account, beg, end)
structjour/statements/statementcrud.py:317
↓ 2 callersMethodgetDASInput
Get the indir/dasInfile based on self.d
structjour/utilities/synchronizesavedstuff.py:115
↓ 2 callersFunctiongetDaTime
Probaly place in utilities. Will returne a tz aware datetime object. If datime is None, will coerce a start or end date that is either 9:15 o
structjour/stock/myFinhub.py:230
↓ 2 callersMethodgetDefaultPILImage
Return a default image
structjour/xlimage.py:70
↓ 2 callersMethodgetEntryTradesSA
Get the transactions (ib_trades) related to a trade (trade_sum) by trade_sum_id.
structjour/statements/ibstatementdb.py:197
↓ 2 callersFunctiongetFirstWeekday
The interactive portion of this method is deprectaed and will be removed at a future time. With no paramters, this is a conversation to deter
structjour/time.py:94
↓ 2 callersMethodgetIbInput
Gets a list of IB Activity based on the glob in settings, returns a list. :return: A list of file name or an empty list. (no pathname
structjour/utilities/synchronizesavedstuff.py:94
↓ 2 callersMethodgetIbSettings
(self)
structjour/stock/utilities.py:389
↓ 2 callersMethodgetId
(self, name)
structjour/strategy/strategycrud.py:61
↓ 2 callersMethodgetImage
Returns the image name or None
structjour/strategy/strategycrud.py:109
↓ 2 callersMethodgetImage
:return a list of [<Images>, <Strategy>]
structjour/models/strategymodels.py:232
↓ 2 callersMethodgetImageName
This is an image name for a pasted image. We don't know the interval or time limits beyond the trade times. Remove any interval info,
structjour/view/layoutforms.py:506
↓ 2 callersMethodgetImageNameX
This is a chart name for which we know the candle interval because we gave that parameter to the stock api.
structjour/view/layoutforms.py:545
↓ 2 callersMethodgetImageNamesFromTS
Gathers specific image names as stored in self.ts[tradekey][chartkey] :return: A dict of all image names in self.ts organized by trad
structjour/view/exportexcel.py:240
↓ 2 callersMethodgetIndir
Get the indir/ based on self.d
structjour/utilities/synchronizesavedstuff.py:89
↓ 2 callersMethodgetIntraday
(self, ticker, start, end, resolution, showUrl=False, key=None)
structjour/stock/mytiingo.py:88
↓ 2 callersMethodgetIntradayTrades
Retrive all the transactions from a single day :params daDate: A time string, datetime or pd.Timestamp :return: All the ib_tr
structjour/models/trademodels.py:382
↓ 2 callersMethodgetKeyDict
(self)
structjour/stock/utilities.py:300
↓ 2 callersFunctiongetLastWorkDay
Retrieve the last biz day from today or from d if the arg is given. Holidays are ignored :params d: A datetime object. :return: A datetim
structjour/stock/utilities.py:242
↓ 2 callersFunctiongetMASettings
()
structjour/stock/utilities.py:125
↓ 2 callersMethodgetPilImageNoDramaForReal
structjour/xlimage.py:75
↓ 2 callersMethodgetPreferences
(self)
structjour/stock/apichooser.py:56
↓ 2 callersMethodgetProfitInNumGroups
Takes a query realized result, groups the trades and returns summarized pnl with data
structjour/view/charts/chartdatabase.py:189
↓ 2 callersMethodgetRandom
(cls)
structjour/models/inspiremodel.py:164
↓ 2 callersMethodgetResizeName
Set the extension and format to png. (Be sure to save it with a png format). Create the pathfile name and return it. :params
structjour/xlimage.py:136
↓ 2 callersMethodgetSaveName
This needs to be a name that can be gleaned from the info on the form and settings loaded for each file name
structjour/view/sumcontrol.py:331
↓ 2 callersMethodgetStrat
(self, index, long=0)
structjour/strategy/strat.py:185
↓ 2 callersMethodgetStrategy
(self, name=None, id=None)
structjour/strategy/strategycrud.py:69
↓ 2 callersMethodgetTradeSumByDateSA
(self, daDate)
structjour/statements/ibstatementdb.py:888
↓ 2 callersFunctiongetTradeSummary
Top level script to load the trades in fname. :fname: An excel file generated by structjour containing a Daily trade table, a Daily notes
structjour/discipline/disciplined.py:303
↓ 2 callersFunctiongetTradeSummaryFormLocations
Find the Trade Summary Forms within the excel doc and save their location in tradeLoc trades.max_row :params:ws: The openpyxl Worksheet o
structjour/discipline/disciplined.py:175
↓ 2 callersMethodgetTradesById
(self, tid)
structjour/statements/dbdoctor.py:143
↓ 2 callersFunctiongotAnyExits
Return True if this trade processed at least one exit. Return False if the exits are all None :params:trade: DataFrame representing a single
structjour/discipline/disciplined.py:221
↓ 2 callersMethodgraph_candlestick
Currently this will retrieve the data using apiChooser. Set self.preferences to limit acceptible apis. To place tx markers, set (
structjour/stock/graphstuff.py:243
↓ 2 callersMethodgroupByNumTrades
(self)
structjour/view/statisticshubcontrol.py:295
↓ 2 callersMethodinitUI
(self)
structjour/view/tagsedit.py:73
↓ 2 callersMethodinitialize
(self)
structjour/view/duplicatecontrol.py:104
↓ 2 callersMethodisHoliday
(self, d)
structjour/statements/statementcrud.py:288
↓ 2 callersMethodisUpdated
(cls)
structjour/migrations/_0004_addTableInspireQuote.py:60
↓ 2 callersMethodlayoutExcelData
1) Determine the locations in the Excel doc to place trade summaries, trade tables and images. 2) Create the empty rows a
structjour/view/exportexcel.py:260
↓ 2 callersFunctionloadTradeSummaries
Load up each trade summary in the excel doc into a 1 row DataFrame, return a list of these DataFrames. The addresses are supplied by srf plus
structjour/discipline/disciplined.py:142
↓ 2 callersFunctionmain
This is the runner for the application
structjour/view/runtrade.py:338
↓ 2 callersMethodmakehtml
Create the file
structjour/view/styledhtml.py:41
↓ 2 callersMethodmaxrow
Maxrow() method will get the maximum row for the current TradeSummaries form as it is translated from row 1. :return maxrow:
structjour/thetradeobject.py:393
↓ 2 callersMethodmkOutdir
Create the directory self.outdir. Allows a Permission exception to stop the program. :return: True if successful or False if not.
structjour/journalfiles.py:131
↓ 2 callersFunctionnotmain_helper
(t, method, count)
system_tests/test_dailycontrol_system.py:163
↓ 2 callersMethodopenStuff
Site specific testing stuff-- open a multi day statement
test/test_ibstatementdb.py:263
↓ 2 callersFunctionpd2unix
:params t: a naive datetime object :exception: Will raise an assertion error if t is not datetime or has no tzinfo assoatiated.
structjour/stock/myFinhub.py:72
↓ 2 callersMethodpickleitnow
Store the transaction based Dataframe as (getStoredTradeName()) for the input file just after it was loaded from file.
structjour/view/layoutforms.py:154
↓ 2 callersMethodplaceImagesAndSumStyles
A helper method for export to excel. Place images and the tradesummary stylesin the openpyxl ws object
structjour/view/exportexcel.py:176
↓ 2 callersMethodpopHol
Populat the holidays table.
structjour/statements/ibstatementdb.py:874
↓ 2 callersMethodpopulateStrategies
Populate the listwidget from every strategy that has been named in a trade or in the argument strats. If strats is None, this will i
structjour/view/statisticshubcontrol.py:394
↓ 2 callersMethodpopulateTradeSumForms
Use the widget dictionary (self.wd) and tto to populate the form. The images and related widgets are handled seperately in sc.setChar
structjour/view/layoutforms.py:246
↓ 2 callersMethodpopulateXLDailyNote
Export the daily note as found in the DailyControl dialog.
structjour/view/exportexcel.py:92
↓ 2 callersMethodpopulateXLDailySummaryForm
For the export to excel daily summary forms. Populate the daily Summary Form. The values are retrieved from self.ts via the D
structjour/view/exportexcel.py:103
↓ 2 callersMethodpostProcessingDB
A few items that need fixing up. Locate and name flipped positions and overnight holds and change the name appropriately. Look for tr
structjour/definetrades.py:344
↓ 2 callersMethodreFigureAPL_SA
Its sketchy still Process the ib_trades.balance field for all trade entries between begin and end :prerequisites: Balance-- t
structjour/statements/ibstatementdb.py:605
↓ 2 callersMethodrelease_tag
(cls, trade_sum_id, tag_name=None, tag_id=None)
structjour/models/trademodels.py:176
↓ 2 callersMethodremoveImage
(cls, strat, widget)
structjour/models/strategymodels.py:274
↓ 2 callersMethodremoveStrategy
(self, name)
structjour/strategy/strategycrud.py:75
↓ 2 callersMethodrenameKeys
Rename the sa names in a dict to the SumReqFields as used every where else
structjour/statements/ibstatementdb.py:921
↓ 2 callersMethodrrCalc
Figure and set the Risk:Reward label for rr and realrr
structjour/view/sumcontrol.py:1266
↓ 2 callersMethodrunFilters
Run sqlalchemy filters on self.query. The filters that run are determined by contents of the dict self.cud. The reusult is that self.
structjour/view/charts/chartdatabase.py:44
↓ 2 callersMethodrunnit
Load an initial input file and process it.
structjour/view/runtrade.py:200
↓ 2 callersMethodsaveTradeObject
Signal call back from saveBtn. Initiates saving the data.
structjour/view/sumcontrol.py:310
↓ 2 callersMethodsaveXL
Save wb as an excel file. If Permission Denied error is thrown, try renaming it.
structjour/view/exportexcel.py:64
↓ 2 callersMethodsetAPIPrefFromList
(self, ulist)
structjour/view/sapicontrol.py:257
↓ 2 callersMethodsetChartDataDefault
Set up default times and intervals for charts
structjour/thetradeobject.py:792
↓ 2 callersMethodsetDASInfile
Set the lable widget from the text widget and color the label to show existance/not
structjour/view/filesetcontrol.py:377
↓ 2 callersMethodsetDASInfile2
Set the default name of positions.csv
structjour/view/filesetcontrol.py:362
↓ 2 callersMethodsetDB
Set the location of the sqlite db file. Store in main Settings
structjour/stock/utilities.py:332
↓ 2 callersMethodsetDaysOff
Uncheck the 30 60 and 90 day checkboxes
structjour/view/statisticshubcontrol.py:169
↓ 2 callersMethodsetIBInfile
Use the glob in the text widget to find a list of matched input files. Set the settings variable to the first one, but warn the user
structjour/view/filesetcontrol.py:288
↓ 2 callersMethodsetImage
Uses session created in getImage. :params strat: str: name of strategy :params name: str: name of image
structjour/models/strategymodels.py:246
↓ 2 callersMethodsetJournalDir
Set the journal settings from the widget and color the widget text showing existance/not.
structjour/view/filesetcontrol.py:437
↓ 2 callersMethodsetOutdir
Set the outdir and outdir policy settings using the policy and text widgets. Set the label color to show existance/not
structjour/view/filesetcontrol.py:270
↓ 2 callersMethodsetPreferred
(self, name, pref)
structjour/strategy/strategycrud.py:90
↓ 2 callersMethodsetSchemeDefault
Set the directory naming scheme to the default value defined here.
structjour/view/filesetcontrol.py:420
↓ 2 callersMethodsetStopVals
When the user enters a value in stoploss several things happen in the callback then here we store all the related values in tto. If t
structjour/view/layoutforms.py:423
↓ 2 callersMethodsetTargVals
Store the values affected by a change in the target value
structjour/view/layoutforms.py:412
↓ 2 callersMethodsetTheScheme
Button, LineEdit and Label used to set and display a directory naming scheme.
structjour/view/filesetcontrol.py:392
↓ 2 callersMethodsort
(self, column, order)
structjour/view/dfmodel.py:99
↓ 2 callersMethodupdateBal
DB update ib_trades balance
structjour/statements/ibstatementdb.py:559
↓ 2 callersMethodupdateChartsSA
Helper method for updateTradeSummaries. Not intended for api use
structjour/statements/ibstatementdb.py:163
↓ 2 callersMethodupdateKey
(cls, api, key)
structjour/models/api_keymodel.py:46
↓ 1 callersMethodDBfigureUnbalancedPL_SA
A secondary attempt to get balance for the badTrade bt. bt has a PL but lacks balance. First set it as a closer and set the a
structjour/statements/ibstatementdb.py:373
← previousnext →201–300 of 1,304, ranked by callers