Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MikePia/structjour
/ functions
Functions
1,304 in github.com/MikePia/structjour
⨍
Functions
1,304
◇
Types & classes
156
↓ 2 callers
Method
filter_by_tags
(self, query=None)
structjour/view/charts/chartdatabase.py:106
↓ 2 callers
Function
findFilesInDir
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 callers
Method
findTradeSummary
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 callers
Method
findTradeSummarySA
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 callers
Method
findTradesSA
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 callers
Function
formatTime
(daTime, frmt='%H:%M:%S')
structjour/statements/statementcrud.py:44
↓ 2 callers
Method
formatTrade
Implement the Summary Trade Form within the openpyxl worksheet object. The form is defined in SumReqFields.tfcolumns, which contains
structjour/tradestyle.py:532
↓ 2 callers
Method
getAccounts
Retrieve a list of all accounts that have trades. The entries in the table are actual account numbers
structjour/models/trademodels.py:404
↓ 2 callers
Method
getAllDescriptions
(cls)
structjour/models/strategymodels.py:215
↓ 2 callers
Function
getApiKey
Returns the key for the barchart API
structjour/stock/mybarchart.py:33
↓ 2 callers
Function
getAvgExit
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 callers
Method
getBadTradesSA
Retrive all trades in ib_trades missing either average or balance
structjour/statements/ibstatementdb.py:501
↓ 2 callers
Method
getChartUserData
Abstract method without ABC
structjour/view/charts/chartdatabase.py:347
↓ 2 callers
Method
getChartWidgets
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 callers
Method
getCoveredDays
(self, account, beg, end)
structjour/statements/statementcrud.py:317
↓ 2 callers
Method
getDASInput
Get the indir/dasInfile based on self.d
structjour/utilities/synchronizesavedstuff.py:115
↓ 2 callers
Function
getDaTime
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 callers
Method
getDefaultPILImage
Return a default image
structjour/xlimage.py:70
↓ 2 callers
Method
getEntryTradesSA
Get the transactions (ib_trades) related to a trade (trade_sum) by trade_sum_id.
structjour/statements/ibstatementdb.py:197
↓ 2 callers
Function
getFirstWeekday
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 callers
Method
getIbInput
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 callers
Method
getIbSettings
(self)
structjour/stock/utilities.py:389
↓ 2 callers
Method
getId
(self, name)
structjour/strategy/strategycrud.py:61
↓ 2 callers
Method
getImage
Returns the image name or None
structjour/strategy/strategycrud.py:109
↓ 2 callers
Method
getImage
:return a list of [<Images>, <Strategy>]
structjour/models/strategymodels.py:232
↓ 2 callers
Method
getImageName
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 callers
Method
getImageNameX
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 callers
Method
getImageNamesFromTS
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 callers
Method
getIndir
Get the indir/ based on self.d
structjour/utilities/synchronizesavedstuff.py:89
↓ 2 callers
Method
getIntraday
(self, ticker, start, end, resolution, showUrl=False, key=None)
structjour/stock/mytiingo.py:88
↓ 2 callers
Method
getIntradayTrades
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 callers
Method
getKeyDict
(self)
structjour/stock/utilities.py:300
↓ 2 callers
Function
getLastWorkDay
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 callers
Function
getMASettings
()
structjour/stock/utilities.py:125
↓ 2 callers
Method
getPilImageNoDramaForReal
structjour/xlimage.py:75
↓ 2 callers
Method
getPreferences
(self)
structjour/stock/apichooser.py:56
↓ 2 callers
Method
getProfitInNumGroups
Takes a query realized result, groups the trades and returns summarized pnl with data
structjour/view/charts/chartdatabase.py:189
↓ 2 callers
Method
getRandom
(cls)
structjour/models/inspiremodel.py:164
↓ 2 callers
Method
getResizeName
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 callers
Method
getSaveName
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 callers
Method
getStrat
(self, index, long=0)
structjour/strategy/strat.py:185
↓ 2 callers
Method
getStrategy
(self, name=None, id=None)
structjour/strategy/strategycrud.py:69
↓ 2 callers
Method
getTradeSumByDateSA
(self, daDate)
structjour/statements/ibstatementdb.py:888
↓ 2 callers
Function
getTradeSummary
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 callers
Function
getTradeSummaryFormLocations
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 callers
Method
getTradesById
(self, tid)
structjour/statements/dbdoctor.py:143
↓ 2 callers
Function
gotAnyExits
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 callers
Method
graph_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 callers
Method
groupByNumTrades
(self)
structjour/view/statisticshubcontrol.py:295
↓ 2 callers
Method
initUI
(self)
structjour/view/tagsedit.py:73
↓ 2 callers
Method
initialize
(self)
structjour/view/duplicatecontrol.py:104
↓ 2 callers
Method
isHoliday
(self, d)
structjour/statements/statementcrud.py:288
↓ 2 callers
Method
isUpdated
(cls)
structjour/migrations/_0004_addTableInspireQuote.py:60
↓ 2 callers
Method
layoutExcelData
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 callers
Function
loadTradeSummaries
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 callers
Function
main
This is the runner for the application
structjour/view/runtrade.py:338
↓ 2 callers
Method
makehtml
Create the file
structjour/view/styledhtml.py:41
↓ 2 callers
Method
maxrow
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 callers
Method
mkOutdir
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 callers
Function
notmain_helper
(t, method, count)
system_tests/test_dailycontrol_system.py:163
↓ 2 callers
Method
openStuff
Site specific testing stuff-- open a multi day statement
test/test_ibstatementdb.py:263
↓ 2 callers
Function
pd2unix
: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 callers
Method
pickleitnow
Store the transaction based Dataframe as (getStoredTradeName()) for the input file just after it was loaded from file.
structjour/view/layoutforms.py:154
↓ 2 callers
Method
placeImagesAndSumStyles
A helper method for export to excel. Place images and the tradesummary stylesin the openpyxl ws object
structjour/view/exportexcel.py:176
↓ 2 callers
Method
popHol
Populat the holidays table.
structjour/statements/ibstatementdb.py:874
↓ 2 callers
Method
populateStrategies
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 callers
Method
populateTradeSumForms
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 callers
Method
populateXLDailyNote
Export the daily note as found in the DailyControl dialog.
structjour/view/exportexcel.py:92
↓ 2 callers
Method
populateXLDailySummaryForm
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 callers
Method
postProcessingDB
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 callers
Method
reFigureAPL_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 callers
Method
release_tag
(cls, trade_sum_id, tag_name=None, tag_id=None)
structjour/models/trademodels.py:176
↓ 2 callers
Method
removeImage
(cls, strat, widget)
structjour/models/strategymodels.py:274
↓ 2 callers
Method
removeStrategy
(self, name)
structjour/strategy/strategycrud.py:75
↓ 2 callers
Method
renameKeys
Rename the sa names in a dict to the SumReqFields as used every where else
structjour/statements/ibstatementdb.py:921
↓ 2 callers
Method
rrCalc
Figure and set the Risk:Reward label for rr and realrr
structjour/view/sumcontrol.py:1266
↓ 2 callers
Method
runFilters
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 callers
Method
runnit
Load an initial input file and process it.
structjour/view/runtrade.py:200
↓ 2 callers
Method
saveTradeObject
Signal call back from saveBtn. Initiates saving the data.
structjour/view/sumcontrol.py:310
↓ 2 callers
Method
saveXL
Save wb as an excel file. If Permission Denied error is thrown, try renaming it.
structjour/view/exportexcel.py:64
↓ 2 callers
Method
setAPIPrefFromList
(self, ulist)
structjour/view/sapicontrol.py:257
↓ 2 callers
Method
setChartDataDefault
Set up default times and intervals for charts
structjour/thetradeobject.py:792
↓ 2 callers
Method
setDASInfile
Set the lable widget from the text widget and color the label to show existance/not
structjour/view/filesetcontrol.py:377
↓ 2 callers
Method
setDASInfile2
Set the default name of positions.csv
structjour/view/filesetcontrol.py:362
↓ 2 callers
Method
setDB
Set the location of the sqlite db file. Store in main Settings
structjour/stock/utilities.py:332
↓ 2 callers
Method
setDaysOff
Uncheck the 30 60 and 90 day checkboxes
structjour/view/statisticshubcontrol.py:169
↓ 2 callers
Method
setIBInfile
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 callers
Method
setImage
Uses session created in getImage. :params strat: str: name of strategy :params name: str: name of image
structjour/models/strategymodels.py:246
↓ 2 callers
Method
setJournalDir
Set the journal settings from the widget and color the widget text showing existance/not.
structjour/view/filesetcontrol.py:437
↓ 2 callers
Method
setOutdir
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 callers
Method
setPreferred
(self, name, pref)
structjour/strategy/strategycrud.py:90
↓ 2 callers
Method
setSchemeDefault
Set the directory naming scheme to the default value defined here.
structjour/view/filesetcontrol.py:420
↓ 2 callers
Method
setStopVals
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 callers
Method
setTargVals
Store the values affected by a change in the target value
structjour/view/layoutforms.py:412
↓ 2 callers
Method
setTheScheme
Button, LineEdit and Label used to set and display a directory naming scheme.
structjour/view/filesetcontrol.py:392
↓ 2 callers
Method
sort
(self, column, order)
structjour/view/dfmodel.py:99
↓ 2 callers
Method
updateBal
DB update ib_trades balance
structjour/statements/ibstatementdb.py:559
↓ 2 callers
Method
updateChartsSA
Helper method for updateTradeSummaries. Not intended for api use
structjour/statements/ibstatementdb.py:163
↓ 2 callers
Method
updateKey
(cls, api, key)
structjour/models/api_keymodel.py:46
↓ 1 callers
Method
DBfigureUnbalancedPL_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
← previous
next →
201–300 of 1,304, ranked by callers