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
↓ 1 callers
Method
__blandSpaceInMstkNote
(self)
structjour/thetradeobject.py:816
↓ 1 callers
Method
__setAcct
(self)
structjour/thetradeobject.py:491
↓ 1 callers
Method
__setDur
Sets the duration delta to a nicely formatted string for humans. Return just the number of days if its 1 or more. Otherwise return so
structjour/thetradeobject.py:507
↓ 1 callers
Method
__setEntries
This method places data into the trade summary from entries, exits, time of transaction, number of shares, and the difference between
structjour/thetradeobject.py:672
↓ 1 callers
Method
__setEntriesDB
(self, imageName)
structjour/thetradeobject.py:618
↓ 1 callers
Method
__setExplainNotes
(self)
structjour/thetradeobject.py:820
↓ 1 callers
Method
__setHeaders
(self)
structjour/thetradeobject.py:603
↓ 1 callers
Method
__setMarketValue
Set the market value based on shares * price. For incomplete trades, the info may be incomplete and a NaN value produced. A value i
structjour/thetradeobject.py:593
↓ 1 callers
Method
__setName
(self)
structjour/thetradeobject.py:487
↓ 1 callers
Method
__setShares
(self)
structjour/thetradeobject.py:589
↓ 1 callers
Method
__setStart
(self)
structjour/thetradeobject.py:500
↓ 1 callers
Method
__setSum
(self)
structjour/thetradeobject.py:496
↓ 1 callers
Function
add
Local proof of concept
structjour/inspiration/load.py:93
↓ 1 callers
Method
addField
(cls, model_name=None, name=None, field=None, dependencies=None)
structjour/migrations/_0002_structjour_statement_ibstatementdb.py:80
↓ 1 callers
Method
addSummaryPL
Create a summaries of live, sim and total P/L for the day and place it in new rows. Total and sim total go in the first blank row und
structjour/definetrades.py:275
↓ 1 callers
Method
addTradesToSum
(cls, tsid, tids)
structjour/models/trademodels.py:448
↓ 1 callers
Function
autopct_generator
(limit)
structjour/view/charts/generic_piechart_legend.py:27
↓ 1 callers
Method
backupDatabase
Helper method for backup. If either db file is not found, change the backup dir name to include 'FAILED'. That will prevent a
structjour/utilities/backup.py:115
↓ 1 callers
Method
checkDbStatus
(cls)
structjour/migrations/_0002_structjour_statement_ibstatementdb.py:53
↓ 1 callers
Method
checkEverythinInTdf
Check average, balance, and oc that they all exist in harmony. Make no changes. Return False if anything is not right. TODO:
structjour/statements/dasstatement.py:267
↓ 1 callers
Function
checkMigration
(settings)
structjour/migrations/check_migration.py:32
↓ 1 callers
Method
cleanData
Clean up the data for insertion into excel.
structjour/layoutsheet.py:116
↓ 1 callers
Function
clstyle
Run unittests cl style. Can debug
test/test_journalfiles.py:97
↓ 1 callers
Method
colorIt
Color the API pref as red or green as user edits
structjour/view/sapicontrol.py:282
↓ 1 callers
Method
combineOrdersByTime
There are a few seperate orders for equities that share the same order time. These cannot have an assigned share balance because ther
structjour/statements/dasstatement.py:598
↓ 1 callers
Method
combinePartialsDefaultCSV
(self, t)
structjour/statements/ibstatement.py:265
↓ 1 callers
Method
combinePartialsFlexCSV
In flex Statements, the TRNT (Trades) table input might be in transacations instead of tickets identified by LevelOfDetail=EXECUTION
structjour/statements/ibstatement.py:484
↓ 1 callers
Method
compareDictionaries
Compare the user data in the two trade dictionaries, Update one if one is empty
structjour/utilities/synchronizesavedstuff.py:270
↓ 1 callers
Method
coveredDatesSA
Inserts the dates between begin and end into the ib_covered table
structjour/statements/ibstatementdb.py:299
↓ 1 callers
Method
createDateField
Add a datefield to df that uses a Timestamp
structjour/statements/dasstatement.py:577
↓ 1 callers
Method
createDir
(self)
structjour/utilities/backup.py:89
↓ 1 callers
Method
createSingleTicket
Create a single row ticket from a Dataframe with a list (1 or more) of Transactions. :prerequisites: tickTx needs to have 'len(unique
structjour/statements/dasstatement.py:686
↓ 1 callers
Method
createTable
(self)
structjour/statements/statementcrud.py:94
↓ 1 callers
Method
createTable
create db table
structjour/statements/dailynotescrud.py:61
↓ 1 callers
Method
createTables
Creates the api_keys if it doesnt exist then adds a row for each api that requires a key if they dont exist
structjour/stock/utilities.py:311
↓ 1 callers
Method
dasDefault
Set the self.settings value for input type to DAS
structjour/view/sumcontrol.py:1002
↓ 1 callers
Method
data
(self, index, role=QtCore.Qt.DisplayRole)
structjour/view/dfmodel.py:54
↓ 1 callers
Function
delete
Local proof of concept. Will delete the first Charilie Brown quote or do nothing.
structjour/inspiration/load.py:105
↓ 1 callers
Method
delete
(self, id=-1, obj=None)
structjour/inspiration/load.py:54
↓ 1 callers
Function
dictDate2NYTime
Get the offset for ny time on the last index time and set the date values to a naive Timestamp adjusted from Grenwich (Aware) to NY Naive
structjour/stock/utilities.py:413
↓ 1 callers
Method
disableAutoGen
(self)
structjour/view/createdirscontrol.py:115
↓ 1 callers
Function
doStuff
()
structjour/view/charts/strategypercentages_piechartdata.py:55
↓ 1 callers
Function
doStuff
()
structjour/models/inspiremodel.py:226
↓ 1 callers
Method
doUpdate
(cls)
structjour/migrations/_0004_addTableInspireQuote.py:44
↓ 1 callers
Method
doctorActivityFlexTrades
Deal with idiosyncracies; set uniform format in the Activity Flex Trades table (tableid = TRNT) 1) Some statements' TRNT
structjour/statements/ibstatement.py:540
↓ 1 callers
Method
doctorDefaultCSVStatement
Fix up the idiosyncracies in the tables from a default csv statement
structjour/statements/ibstatement.py:278
↓ 1 callers
Method
doctorFlexTables
Fix up the idiosyncracies in the tables in from an Activity Flex Statement
structjour/statements/ibstatement.py:664
↓ 1 callers
Function
doctorTheTrade
Fix up the time entries to contain the dates as Timestamps and charts entries. Plan not to try to deal with the whole excel related files. Th
structjour/discipline/disciplined.py:83
↓ 1 callers
Method
doctorTheTrade
Basically this fixes up my stuff (developer) and should be unnecessary by release time Fix up the legacy objects (which is every obje
structjour/statements/ibstatementdb.py:202
↓ 1 callers
Function
doctorThetable
Add a Date field if its missing
structjour/discipline/disciplined.py:323
↓ 1 callers
Function
dohi
()
structjour/stock/mytiingo.py:165
↓ 1 callers
Function
dostuff
()
test/test_meta.py:83
↓ 1 callers
Function
dostuff
()
test/test_dbdoctor.py:81
↓ 1 callers
Function
dostuff
()
test/test_dailynotescrud.py:134
↓ 1 callers
Function
dostuff
()
structjour/statements/statementcrud.py:320
↓ 1 callers
Function
dostuff
()
structjour/models/api_keymodel.py:102
↓ 1 callers
Function
dostuff
()
structjour/models/trademodels.py:713
↓ 1 callers
Method
enableAutoGen
(self)
structjour/view/createdirscontrol.py:119
↓ 1 callers
Function
exercisegetListsOfTradesForStrategies
()
structjour/models/trademodels.py:699
↓ 1 callers
Function
fh_intraday
Set the paramaters and send to finnhub. (The requesed start time should allow for moving average calculations.) :symbol: The ticker to get
structjour/stock/myFinhub.py:120
↓ 1 callers
Method
figureBA_noPositions
This is called if the positions table is lacking to detemine if there is missing data for any equities traded today. This is not idea
structjour/statements/dasstatement.py:412
↓ 1 callers
Method
figureBalance
The easy way (using positions.csv) and the hard way (no positions.csv). The hard way should occassionally fail and require user inter
structjour/statements/dasstatement.py:450
↓ 1 callers
Method
figureUnbalancedBAPL
Figure Balance, Average, and PnL. DAS has a PL column but it often differs from the calculations (and from IB). :ttdf: A dat
structjour/statements/dasstatement.py:85
↓ 1 callers
Method
fileSetDlg
The file settings dialog. Top level dialg triggered by File->FileSettings menu. Display the current settings (QSetting), define the d
structjour/view/sumcontrol.py:1392
↓ 1 callers
Function
findFilesInMonth
Match the file in the given month that contain the name fn. Relies on the naming scheme saved in settings :fn: A filename of file pattern
structjour/statements/findfiles.py:200
↓ 1 callers
Method
findOpenSetBalance
This is for unbalanced trades, that is a (ticker/account) set that has sum(qty) != 0 Prerequisite is there is at least one trade tha
structjour/statements/dasstatement.py:131
↓ 1 callers
Method
findTrade
(self, datetime, symbol, quantity, account)
structjour/statements/statementcrud.py:240
↓ 1 callers
Method
fixTsid
(self, tdf)
structjour/definetrades.py:323
↓ 1 callers
Method
formatTime
Format the time into a string for uniform DB format
structjour/statements/ibstatementdb.py:140
↓ 1 callers
Method
gatherDSumData
The dialog does not use this. It shows the info in charts. It is called by the export to excel stuff. Put together into a dictionar
structjour/view/dailycontrol.py:116
↓ 1 callers
Method
gatherDailySumList
Utility Gets a dictionary of all input file and all saved files associated with each input file. Relies on the structjour fil
structjour/discipline/getfiles.py:141
↓ 1 callers
Method
getAccount
Get a randoms account real or sim
structjour/utilities/rtg.py:238
↓ 1 callers
Method
getAllImages
(cls)
structjour/models/strategymodels.py:282
↓ 1 callers
Method
getAllLinks
(cls)
structjour/models/strategymodels.py:330
↓ 1 callers
Method
getAllSources
(cls)
structjour/models/strategymodels.py:65
↓ 1 callers
Function
getApiKey
()
structjour/stock/mytiingo.py:25
↓ 1 callers
Function
getApiKey
()
structjour/stock/myFinhub.py:53
↓ 1 callers
Method
getBadTrades
(self)
structjour/statements/statementcrud.py:297
↓ 1 callers
Method
getByTsid
(cls, tsid)
structjour/models/trademodels.py:432
↓ 1 callers
Function
getCSVStatements
Retrieves files formatted {account}_{yyyymmdd}_{yyyymmdd}.csv The dates are begin and end dates
structjour/utilities/synchronizesavedstuff.py:432
↓ 1 callers
Method
getChart
Uses an ongoing session
structjour/models/trademodels.py:561
↓ 1 callers
Method
getChartTimes
(self, key)
structjour/view/sumcontrol.py:464
↓ 1 callers
Method
getChartUserData
(self)
structjour/view/charts/strategypercentages_piechartdata.py:33
↓ 1 callers
Method
getChartUserData
Getting an array of queries will allow the devel of digging down into each candle
structjour/view/charts/strategyaverage_barchartdata.py:38
↓ 1 callers
Method
getCharts
(self, tsid)
structjour/statements/statementcrud.py:220
↓ 1 callers
Function
getDate
QInputDialog to get the date
structjour/view/runtrade.py:49
↓ 1 callers
Method
getDescription
Uses session from getId
structjour/models/strategymodels.py:176
↓ 1 callers
Method
getDistinctStratAvgPnlQuery
:return: List of [strat, query]. Each query will retrive the trades that correspond to the the strategy strat and can be filtered.
structjour/models/trademodels.py:289
↓ 1 callers
Method
getDuplicateTrades
Have been unable to write a usable query using the ORM. Here it is in SQL
structjour/statements/dbdoctor.py:241
↓ 1 callers
Function
getEntries
()
structjour/models/trademodels.py:709
↓ 1 callers
Method
getEntryTrades
(self, tsid)
structjour/statements/statementcrud.py:237
↓ 1 callers
Function
getFh_intraday
Common interface for apiChooser. :params start: Time string or naive pandas timestamp or naive datetime object. :params end: Time string
structjour/stock/myFinhub.py:245
↓ 1 callers
Method
getFormatGraphArray
(self, arr)
structjour/view/charts/intradayprofit_barchart.py:43
↓ 1 callers
Method
getGridLines
(self)
structjour/stock/graphstuff.py:129
↓ 1 callers
Method
getHistorical
:params end: datetime object for the end time requested :params dur: a string for how long before end should the chart begin "1 D"
structjour/stock/myib.py:201
↓ 1 callers
Method
getHistoricalDailyPrice
(self, ticker, start, end)
structjour/stock/mytiingo.py:79
↓ 1 callers
Method
getIbInfiles
Using the glob for ib files in settings, search for ib files in the directory indir
structjour/discipline/getfiles.py:45
↓ 1 callers
Method
getIbSaved
Get the pickled object from the ib statement input
structjour/utilities/synchronizesavedstuff.py:131
↓ 1 callers
Method
getIntradayPnl
Get all transactions and times from a single day and organize accumulated intraday pnl and trade time into a dict of DataFrames, keye
structjour/view/dailycontrol.py:234
↓ 1 callers
Method
getJson
This is unrelated to structjour, but the quotes.json file sits in the structjour directory structure. It is available as a raw file h
structjour/inspiration/inspire.py:474
← previous
next →
301–400 of 1,304, ranked by callers