MCPcopy Create free account

hub / github.com/MikePia/structjour / functions

Functions1,304 in github.com/MikePia/structjour

↓ 1 callersFunctiongetKey
()
structjour/stock/myalphavantage.py:82
↓ 1 callersMethodgetKeymap
Create and return a keymap between the two ts dictionaries
structjour/utilities/synchronizesavedstuff.py:179
↓ 1 callersMethodgetLatestprice
(self, ticker)
structjour/stock/mytiingo.py:72
↓ 1 callersMethodgetLinks
Uses session created in getId
structjour/models/strategymodels.py:314
↓ 1 callersMethodgetListOfStrat
(self)
structjour/stats/sqlfilter.py:64
↓ 1 callersMethodgetListOfTicketDF
From the standard DAS input trades export (trades.csv) DataFrame create a list of trades; list member is a DataFrame with all transac
structjour/statements/dasstatement.py:718
↓ 1 callersMethodgetListsOfTradesForStrategies
Given a prior query on TradeSum and a list of strats, get lists of trades grouped by strat :params query: A query on TradeSum
structjour/models/trademodels.py:275
↓ 1 callersFunctiongetMAKeys
()
structjour/stock/utilities.py:112
↓ 1 callersMethodgetMetadata
(self, ticker)
structjour/stock/mytiingo.py:65
↓ 1 callersFunctiongetMonthDir
Get the monthe in the journal subdirs that represents the month from daDate
structjour/statements/findfiles.py:106
↓ 1 callersMethodgetNamesNProfits
Get Names and profits for use in daily profit chart
structjour/view/dailycontrol.py:226
↓ 1 callersMethodgetNextTrades
Given the trade bt, retrieve the next trades from the same symbol/account :cur: A cursore :bt: Dict representing a trade cont
structjour/statements/ibstatementdb.py:541
↓ 1 callersMethodgetNextTradesSA
Given the trade bt, retrieve the next trades from the same symbol/account :cur: A cursore :bt: Dict representing a trade cont
structjour/statements/ibstatementdb.py:533
↓ 1 callersMethodgetNumTicketsForDay
Get the counts of both Trade and TradeSum transactactions for given day
structjour/statements/statementcrud.py:310
↓ 1 callersMethodgetNumTrades
Return a number between 2 and 8 by default
structjour/utilities/rtg.py:231
↓ 1 callersMethodgetNumTradesForDay
(cls, day, account='all')
structjour/models/trademodels.py:351
↓ 1 callersMethodgetPreviousTrades
Given the trade bt, retrieve the previou trades from the same symbol/account. This is used to find misssing position size, average an
structjour/statements/ibstatementdb.py:514
↓ 1 callersMethodgetPreviousTradesSA
Given the trade bt, retrieve the previou trades from the same symbol/account. :params bt: TradeObject
structjour/statements/ibstatementdb.py:507
↓ 1 callersMethodgetQuote
Print quotes from a specific name. :params name: The person to look up.
structjour/inspiration/inspire.py:463
↓ 1 callersFunctiongetRandom
()
structjour/models/inspiremodel.py:211
↓ 1 callersMethodgetRandomTradeDF
Creates a day of trades in the same form with the required columns from a DAS export plus a Balance and Date column. Use strict=True
structjour/utilities/rtg.py:96
↓ 1 callersMethodgetRepl
(self, shares)
structjour/view/unbalancedcontrol.py:170
↓ 1 callersMethodgetRules
Print your rules as recorded in this method. :params whichRules: Recognized values are a, for all, p for preliminary, m for managemen
structjour/inspiration/inspire.py:561
↓ 1 callersMethodgetSaveName
Get the save name for infile. The format is taken from sumcontrol.getSaveName and needs to remain in sync.
structjour/discipline/getfiles.py:67
↓ 1 callersMethodgetSaved
Get the savedname based on self.d and return a tuplet (b, saved) where b is a bool for the existence of the file
structjour/utilities/synchronizesavedstuff.py:125
↓ 1 callersMethodgetSharesDB
The DB statement has gotten rid of the 'Hold' entries. Determining a value for how many shares a trade has to be re thought
structjour/thetradeobject.py:539
↓ 1 callersMethodgetSide
Get a random distribution of 'B', 'S', 'HOLD+', 'HOLD-'. Set the probabilities here. HOLDs provide the weirdest exceptions. They shou
structjour/utilities/rtg.py:272
↓ 1 callersFunctiongetStartForRequest
Method does two things, 1) gets a start request prior to start (for MA calcs) 3) converts to unix timestamp :start: A Naive p
structjour/stock/myFinhub.py:99
↓ 1 callersMethodgetStatementDf
(self, begin, end, account)
structjour/statements/statementcrud.py:223
↓ 1 callersMethodgetStatementQuery
(cls, begin, end, account='all')
structjour/models/trademodels.py:439
↓ 1 callersMethodgetStoredTradeName
The name for the pickled transaction based trades table for the current, active statement. {outdir}/.{infile}.zst
structjour/view/layoutforms.py:145
↓ 1 callersMethodgetStrategies
(cls)
structjour/models/strategymodels.py:126
↓ 1 callersMethodgetSymbolsAsList
(self)
structjour/view/statisticshubcontrol.py:103
↓ 1 callersMethodgetTableNames
(self)
structjour/statements/statementcrud.py:84
↓ 1 callersMethodgetTablesFromDefaultStatement
From a default Activity statement csv, retrieve AccountInformation, OpenPositions, and Trades
structjour/statements/ibstatement.py:323
↓ 1 callersFunctiongetTags
A local proof of concept helper function
structjour/view/tagsedit.py:143
↓ 1 callersMethodgetTestData
Open the csv file testdata and oraganze the data into a usable data structure. The file is necessarily populated by 'hand.' To add a
test/test_structjour.py:119
↓ 1 callersMethodgetTicker
Get a random ticker symbol :exclude: A list of tickers to exclude from consideration.
structjour/utilities/rtg.py:249
↓ 1 callersMethodgetTradeSumByDate
(self, daDate)
structjour/statements/statementcrud.py:184
↓ 1 callersMethodgetTradeSumQuery
(cls, kv=None)
structjour/models/trademodels.py:234
↓ 1 callersFunctiongetTradeTable
(fname, daDate)
structjour/discipline/disciplined.py:343
↓ 1 callersMethodgetTradesByTsid
(self, tsid)
structjour/statements/statementcrud.py:214
↓ 1 callersMethodget_DAS_XL
Get a list of existing excel output files for DAS input files
structjour/utilities/synchronizesavedstuff.py:145
↓ 1 callersMethodget_IB_XL
Get a list of existing excel output files for IB input files. Will include XL files with 'copy numbers' like {filename}(1).xlsx
structjour/utilities/synchronizesavedstuff.py:159
↓ 1 callersFunctionget_trading_chart
Limited to getting minute data intended to chart day trades. The API has stock/{symb}/1d/date/theDate The '1d' determines some behavior.
structjour/stock/myiex.py:141
↓ 1 callersFunctiongetapis
some RESTful APIS
structjour/stock/myalphavantage.py:87
↓ 1 callersFunctiongetbc_intraday
Note that getHistory will return previous day's prices until 15 minutes after the market closes. We will generate a warning if our start
structjour/stock/mybarchart.py:107
↓ 1 callersFunctiongetdf
Create a df from the json. convert the unixtime to a timezone aware datetime set to New York time and set it as index in the df. :params
structjour/stock/myFinhub.py:162
↓ 1 callersMethodgetdf
(self, j)
structjour/stock/mytiingo.py:134
↓ 1 callersFunctiongetib_intraday
An interface API to match the other getters. In this case its a substantial dumbing down of the capabilities to our one specific need. Output
structjour/stock/myib.py:262
↓ 1 callersFunctiongetiex_intraday
An interface wrapper to the IEX intraday 1d API. Retrieves minute data for one of the last 30 days :params symbol: The ticker to get
structjour/stock/myiex.py:96
↓ 1 callersFunctiongetmav_intraday
Limited to getting minute data intended to chart day trades. Note that start and end are not sent to the api request. :params symb: The s
structjour/stock/myalphavantage.py:159
↓ 1 callersMethodgetrandom
Utility to retrieve a random quote :return: string. formatted quote
structjour/inspiration/load.py:80
↓ 1 callersMethodgroupByTime
(self, val)
structjour/view/statisticshubcontrol.py:275
↓ 1 callersMethodgroupByTime
Group the trades into arrays grouped by number of days or number of months. And then create pnls, an array or the summarized pnl
structjour/view/charts/chartdatabase.py:224
↓ 1 callersMethodheaderData
(self, section, orientation, role=QtCore.Qt.DisplayRole)
structjour/view/dfmodel.py:38
↓ 1 callersMethodhistoricalDataOperations_req
Overridder
structjour/stock/myib.py:196
↓ 1 callersMethodhypotheticalBalance
(self, rc, tdf)
structjour/statements/dasstatement.py:152
↓ 1 callersMethodibDefault
Set the self.settings value for input type to IB
structjour/view/sumcontrol.py:1008
↓ 1 callersFunctionimageData
Create generic image names, one for each trade. The start and dur are the first and last entries. This is called in the inital loading of a f
structjour/thetradeobject.py:826
↓ 1 callersMethodinitFromSettings
(self)
structjour/view/sapicontrol.py:93
↓ 1 callersMethodinitFromSettings
Initialize all these widgets from settings
structjour/view/chartcontrol.py:436
↓ 1 callersMethodinitializeColors
Initialze some values if none are set
structjour/view/chartcontrol.py:136
↓ 1 callersMethodinitializeCud
Set cud (chart_user_dict) settings from the current state of all the widgets
structjour/view/statisticshubcontrol.py:91
↓ 1 callersMethodinitializeSettings
Remove all settings except zero_substance/structjour/journal
structjour/utilities/backup.py:76
↓ 1 callersMethodinitializeVars
(self)
test/test_utilities.py:74
↓ 1 callersMethodinitializeVars
(self)
structjour/utilities/backup.py:105
↓ 1 callersMethodinsertCovered
(self, account, d)
structjour/statements/statementcrud.py:285
↓ 1 callersMethodinsertHoliday
(self, day, name, commit=False)
structjour/statements/statementcrud.py:291
↓ 1 callersMethodinsertTrade
:params row: pd.Series :params oc: The Open/Close code :params source: Currently DAS or IB
structjour/statements/statementcrud.py:245
↓ 1 callersMethodinsertTradeSummary
Create a new record from the trade object :params trade: DataFrame that uses the column names defined in SumReqFields
structjour/statements/statementcrud.py:98
↓ 1 callersFunctionisConnected
Call TestApp.isConnected and return result
structjour/stock/myib.py:369
↓ 1 callersMethodisDateCovered
Test if date d is covered in the given account
structjour/statements/ibstatementdb.py:286
↓ 1 callersMethodisDateCovered
Use an ongoing session
structjour/models/coveredmodel.py:39
↓ 1 callersMethodisHoliday
(self, d, new_session=False)
structjour/models/holidaysmodel.py:51
↓ 1 callersMethodloadDictionaries
Upload the ts dictionary from DAS and IB
structjour/utilities/synchronizesavedstuff.py:205
↓ 1 callersMethodloadEverything
(self, xlname, key)
structjour/discipline/getfiles.py:75
↓ 1 callersMethodloadLayoutForms
Add the layoutForms object to self
structjour/view/sumcontrol.py:908
↓ 1 callersMethodloadStyles
(self)
structjour/view/chartcontrol.py:431
↓ 1 callersMethodloadTradesFromDB
User tweak-- if DAS or IB import files are checked when the load button is clicked, Change the selected radio to useDatabase and retu
structjour/view/layoutforms.py:177
↓ 1 callersMethodloadit
Load saved objects
structjour/view/runtrade.py:129
↓ 1 callersFunctionlocal
Run some local code for devel
structjour/statements/ibstatementdb.py:1116
↓ 1 callersFunctionlocal
()
structjour/stats/sqlfilter.py:176
↓ 1 callersFunctionlocalRun
Just running through the paces
structjour/stock/graphstuff.py:411
↓ 1 callersFunctionlocalStuff
Run local stuff
structjour/statements/ibstatement.py:847
↓ 1 callersFunctionlocalstuff
()
structjour/utilities/rtg.py:297
↓ 1 callersMethodlogfile_edit
Set the logfile settings from the widget and color the widget text showing existance/not.
structjour/view/filesetcontrol.py:143
↓ 1 callersMethodlookForPnlError
An isolated use of SA for the first time in this module. Look for existing db trades that have a bad pnl and update it, but only if t
structjour/definetrades.py:206
↓ 1 callersFunctionmain
test discovery is not working in vscode. Use this for debugging. Then run cl python -m unittest discovery
test/test_graphstuff.py:226
↓ 1 callersFunctionmain
()
test/test_sapicontrol.py:132
↓ 1 callersFunctionmain
Run unittest locally
test/test_xlimage.py:117
↓ 1 callersFunctionmain
Run unittests cl style
test/test_model_tags.py:33
↓ 1 callersFunctionmain
()
test/test_mybarchart.py:180
↓ 1 callersFunctionmain
()
test/test_structjour.py:154
↓ 1 callersFunctionmain
()
test/test_findfiles.py:115
↓ 1 callersFunctionmain
()
test/test_dailycontrol.py:83
↓ 1 callersFunctionmain
()
test/test_exporttoexcel.py:205
↓ 1 callersFunctionmain
()
test/test_definetrades.py:283
↓ 1 callersFunctionmain
()
test/test_tradestyle.py:175
↓ 1 callersFunctionmain
Run unittests cl style
test/test_dfutil.py:180
← previousnext →401–500 of 1,304, ranked by callers