MCPcopy Create free account

hub / github.com/MikePia/structjour / functions

Functions1,304 in github.com/MikePia/structjour

↓ 1 callersMethod__blandSpaceInMstkNote
(self)
structjour/thetradeobject.py:816
↓ 1 callersMethod__setAcct
(self)
structjour/thetradeobject.py:491
↓ 1 callersMethod__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 callersMethod__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 callersMethod__setEntriesDB
(self, imageName)
structjour/thetradeobject.py:618
↓ 1 callersMethod__setExplainNotes
(self)
structjour/thetradeobject.py:820
↓ 1 callersMethod__setHeaders
(self)
structjour/thetradeobject.py:603
↓ 1 callersMethod__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 callersMethod__setName
(self)
structjour/thetradeobject.py:487
↓ 1 callersMethod__setShares
(self)
structjour/thetradeobject.py:589
↓ 1 callersMethod__setStart
(self)
structjour/thetradeobject.py:500
↓ 1 callersMethod__setSum
(self)
structjour/thetradeobject.py:496
↓ 1 callersFunctionadd
Local proof of concept
structjour/inspiration/load.py:93
↓ 1 callersMethodaddField
(cls, model_name=None, name=None, field=None, dependencies=None)
structjour/migrations/_0002_structjour_statement_ibstatementdb.py:80
↓ 1 callersMethodaddSummaryPL
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 callersMethodaddTradesToSum
(cls, tsid, tids)
structjour/models/trademodels.py:448
↓ 1 callersFunctionautopct_generator
(limit)
structjour/view/charts/generic_piechart_legend.py:27
↓ 1 callersMethodbackupDatabase
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 callersMethodcheckDbStatus
(cls)
structjour/migrations/_0002_structjour_statement_ibstatementdb.py:53
↓ 1 callersMethodcheckEverythinInTdf
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 callersFunctioncheckMigration
(settings)
structjour/migrations/check_migration.py:32
↓ 1 callersMethodcleanData
Clean up the data for insertion into excel.
structjour/layoutsheet.py:116
↓ 1 callersFunctionclstyle
Run unittests cl style. Can debug
test/test_journalfiles.py:97
↓ 1 callersMethodcolorIt
Color the API pref as red or green as user edits
structjour/view/sapicontrol.py:282
↓ 1 callersMethodcombineOrdersByTime
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 callersMethodcombinePartialsDefaultCSV
(self, t)
structjour/statements/ibstatement.py:265
↓ 1 callersMethodcombinePartialsFlexCSV
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 callersMethodcompareDictionaries
Compare the user data in the two trade dictionaries, Update one if one is empty
structjour/utilities/synchronizesavedstuff.py:270
↓ 1 callersMethodcoveredDatesSA
Inserts the dates between begin and end into the ib_covered table
structjour/statements/ibstatementdb.py:299
↓ 1 callersMethodcreateDateField
Add a datefield to df that uses a Timestamp
structjour/statements/dasstatement.py:577
↓ 1 callersMethodcreateDir
(self)
structjour/utilities/backup.py:89
↓ 1 callersMethodcreateSingleTicket
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 callersMethodcreateTable
(self)
structjour/statements/statementcrud.py:94
↓ 1 callersMethodcreateTable
create db table
structjour/statements/dailynotescrud.py:61
↓ 1 callersMethodcreateTables
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 callersMethoddasDefault
Set the self.settings value for input type to DAS
structjour/view/sumcontrol.py:1002
↓ 1 callersMethoddata
(self, index, role=QtCore.Qt.DisplayRole)
structjour/view/dfmodel.py:54
↓ 1 callersFunctiondelete
Local proof of concept. Will delete the first Charilie Brown quote or do nothing.
structjour/inspiration/load.py:105
↓ 1 callersMethoddelete
(self, id=-1, obj=None)
structjour/inspiration/load.py:54
↓ 1 callersFunctiondictDate2NYTime
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 callersMethoddisableAutoGen
(self)
structjour/view/createdirscontrol.py:115
↓ 1 callersFunctiondoStuff
()
structjour/view/charts/strategypercentages_piechartdata.py:55
↓ 1 callersFunctiondoStuff
()
structjour/models/inspiremodel.py:226
↓ 1 callersMethoddoUpdate
(cls)
structjour/migrations/_0004_addTableInspireQuote.py:44
↓ 1 callersMethoddoctorActivityFlexTrades
Deal with idiosyncracies; set uniform format in the Activity Flex Trades table (tableid = TRNT) 1) Some statements' TRNT
structjour/statements/ibstatement.py:540
↓ 1 callersMethoddoctorDefaultCSVStatement
Fix up the idiosyncracies in the tables from a default csv statement
structjour/statements/ibstatement.py:278
↓ 1 callersMethoddoctorFlexTables
Fix up the idiosyncracies in the tables in from an Activity Flex Statement
structjour/statements/ibstatement.py:664
↓ 1 callersFunctiondoctorTheTrade
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 callersMethoddoctorTheTrade
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 callersFunctiondoctorThetable
Add a Date field if its missing
structjour/discipline/disciplined.py:323
↓ 1 callersFunctiondohi
()
structjour/stock/mytiingo.py:165
↓ 1 callersFunctiondostuff
()
test/test_meta.py:83
↓ 1 callersFunctiondostuff
()
test/test_dbdoctor.py:81
↓ 1 callersFunctiondostuff
()
test/test_dailynotescrud.py:134
↓ 1 callersFunctiondostuff
()
structjour/statements/statementcrud.py:320
↓ 1 callersFunctiondostuff
()
structjour/models/api_keymodel.py:102
↓ 1 callersFunctiondostuff
()
structjour/models/trademodels.py:713
↓ 1 callersMethodenableAutoGen
(self)
structjour/view/createdirscontrol.py:119
↓ 1 callersFunctionexercisegetListsOfTradesForStrategies
()
structjour/models/trademodels.py:699
↓ 1 callersFunctionfh_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 callersMethodfigureBA_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 callersMethodfigureBalance
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 callersMethodfigureUnbalancedBAPL
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 callersMethodfileSetDlg
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 callersFunctionfindFilesInMonth
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 callersMethodfindOpenSetBalance
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 callersMethodfindTrade
(self, datetime, symbol, quantity, account)
structjour/statements/statementcrud.py:240
↓ 1 callersMethodfixTsid
(self, tdf)
structjour/definetrades.py:323
↓ 1 callersMethodformatTime
Format the time into a string for uniform DB format
structjour/statements/ibstatementdb.py:140
↓ 1 callersMethodgatherDSumData
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 callersMethodgatherDailySumList
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 callersMethodgetAccount
Get a randoms account real or sim
structjour/utilities/rtg.py:238
↓ 1 callersMethodgetAllImages
(cls)
structjour/models/strategymodels.py:282
↓ 1 callersMethodgetAllLinks
(cls)
structjour/models/strategymodels.py:330
↓ 1 callersMethodgetAllSources
(cls)
structjour/models/strategymodels.py:65
↓ 1 callersFunctiongetApiKey
()
structjour/stock/mytiingo.py:25
↓ 1 callersFunctiongetApiKey
()
structjour/stock/myFinhub.py:53
↓ 1 callersMethodgetBadTrades
(self)
structjour/statements/statementcrud.py:297
↓ 1 callersMethodgetByTsid
(cls, tsid)
structjour/models/trademodels.py:432
↓ 1 callersFunctiongetCSVStatements
Retrieves files formatted {account}_{yyyymmdd}_{yyyymmdd}.csv The dates are begin and end dates
structjour/utilities/synchronizesavedstuff.py:432
↓ 1 callersMethodgetChart
Uses an ongoing session
structjour/models/trademodels.py:561
↓ 1 callersMethodgetChartTimes
(self, key)
structjour/view/sumcontrol.py:464
↓ 1 callersMethodgetChartUserData
(self)
structjour/view/charts/strategypercentages_piechartdata.py:33
↓ 1 callersMethodgetChartUserData
Getting an array of queries will allow the devel of digging down into each candle
structjour/view/charts/strategyaverage_barchartdata.py:38
↓ 1 callersMethodgetCharts
(self, tsid)
structjour/statements/statementcrud.py:220
↓ 1 callersFunctiongetDate
QInputDialog to get the date
structjour/view/runtrade.py:49
↓ 1 callersMethodgetDescription
Uses session from getId
structjour/models/strategymodels.py:176
↓ 1 callersMethodgetDistinctStratAvgPnlQuery
: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 callersMethodgetDuplicateTrades
Have been unable to write a usable query using the ORM. Here it is in SQL
structjour/statements/dbdoctor.py:241
↓ 1 callersFunctiongetEntries
()
structjour/models/trademodels.py:709
↓ 1 callersMethodgetEntryTrades
(self, tsid)
structjour/statements/statementcrud.py:237
↓ 1 callersFunctiongetFh_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 callersMethodgetFormatGraphArray
(self, arr)
structjour/view/charts/intradayprofit_barchart.py:43
↓ 1 callersMethodgetGridLines
(self)
structjour/stock/graphstuff.py:129
↓ 1 callersMethodgetHistorical
: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 callersMethodgetHistoricalDailyPrice
(self, ticker, start, end)
structjour/stock/mytiingo.py:79
↓ 1 callersMethodgetIbInfiles
Using the glob for ib files in settings, search for ib files in the directory indir
structjour/discipline/getfiles.py:45
↓ 1 callersMethodgetIbSaved
Get the pickled object from the ib statement input
structjour/utilities/synchronizesavedstuff.py:131
↓ 1 callersMethodgetIntradayPnl
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 callersMethodgetJson
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
← previousnext →301–400 of 1,304, ranked by callers