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
Function
getKey
()
structjour/stock/myalphavantage.py:82
↓ 1 callers
Method
getKeymap
Create and return a keymap between the two ts dictionaries
structjour/utilities/synchronizesavedstuff.py:179
↓ 1 callers
Method
getLatestprice
(self, ticker)
structjour/stock/mytiingo.py:72
↓ 1 callers
Method
getLinks
Uses session created in getId
structjour/models/strategymodels.py:314
↓ 1 callers
Method
getListOfStrat
(self)
structjour/stats/sqlfilter.py:64
↓ 1 callers
Method
getListOfTicketDF
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 callers
Method
getListsOfTradesForStrategies
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 callers
Function
getMAKeys
()
structjour/stock/utilities.py:112
↓ 1 callers
Method
getMetadata
(self, ticker)
structjour/stock/mytiingo.py:65
↓ 1 callers
Function
getMonthDir
Get the monthe in the journal subdirs that represents the month from daDate
structjour/statements/findfiles.py:106
↓ 1 callers
Method
getNamesNProfits
Get Names and profits for use in daily profit chart
structjour/view/dailycontrol.py:226
↓ 1 callers
Method
getNextTrades
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 callers
Method
getNextTradesSA
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 callers
Method
getNumTicketsForDay
Get the counts of both Trade and TradeSum transactactions for given day
structjour/statements/statementcrud.py:310
↓ 1 callers
Method
getNumTrades
Return a number between 2 and 8 by default
structjour/utilities/rtg.py:231
↓ 1 callers
Method
getNumTradesForDay
(cls, day, account='all')
structjour/models/trademodels.py:351
↓ 1 callers
Method
getPreviousTrades
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 callers
Method
getPreviousTradesSA
Given the trade bt, retrieve the previou trades from the same symbol/account. :params bt: TradeObject
structjour/statements/ibstatementdb.py:507
↓ 1 callers
Method
getQuote
Print quotes from a specific name. :params name: The person to look up.
structjour/inspiration/inspire.py:463
↓ 1 callers
Function
getRandom
()
structjour/models/inspiremodel.py:211
↓ 1 callers
Method
getRandomTradeDF
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 callers
Method
getRepl
(self, shares)
structjour/view/unbalancedcontrol.py:170
↓ 1 callers
Method
getRules
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 callers
Method
getSaveName
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 callers
Method
getSaved
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 callers
Method
getSharesDB
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 callers
Method
getSide
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 callers
Function
getStartForRequest
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 callers
Method
getStatementDf
(self, begin, end, account)
structjour/statements/statementcrud.py:223
↓ 1 callers
Method
getStatementQuery
(cls, begin, end, account='all')
structjour/models/trademodels.py:439
↓ 1 callers
Method
getStoredTradeName
The name for the pickled transaction based trades table for the current, active statement. {outdir}/.{infile}.zst
structjour/view/layoutforms.py:145
↓ 1 callers
Method
getStrategies
(cls)
structjour/models/strategymodels.py:126
↓ 1 callers
Method
getSymbolsAsList
(self)
structjour/view/statisticshubcontrol.py:103
↓ 1 callers
Method
getTableNames
(self)
structjour/statements/statementcrud.py:84
↓ 1 callers
Method
getTablesFromDefaultStatement
From a default Activity statement csv, retrieve AccountInformation, OpenPositions, and Trades
structjour/statements/ibstatement.py:323
↓ 1 callers
Function
getTags
A local proof of concept helper function
structjour/view/tagsedit.py:143
↓ 1 callers
Method
getTestData
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 callers
Method
getTicker
Get a random ticker symbol :exclude: A list of tickers to exclude from consideration.
structjour/utilities/rtg.py:249
↓ 1 callers
Method
getTradeSumByDate
(self, daDate)
structjour/statements/statementcrud.py:184
↓ 1 callers
Method
getTradeSumQuery
(cls, kv=None)
structjour/models/trademodels.py:234
↓ 1 callers
Function
getTradeTable
(fname, daDate)
structjour/discipline/disciplined.py:343
↓ 1 callers
Method
getTradesByTsid
(self, tsid)
structjour/statements/statementcrud.py:214
↓ 1 callers
Method
get_DAS_XL
Get a list of existing excel output files for DAS input files
structjour/utilities/synchronizesavedstuff.py:145
↓ 1 callers
Method
get_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 callers
Function
get_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 callers
Function
getapis
some RESTful APIS
structjour/stock/myalphavantage.py:87
↓ 1 callers
Function
getbc_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 callers
Function
getdf
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 callers
Method
getdf
(self, j)
structjour/stock/mytiingo.py:134
↓ 1 callers
Function
getib_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 callers
Function
getiex_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 callers
Function
getmav_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 callers
Method
getrandom
Utility to retrieve a random quote :return: string. formatted quote
structjour/inspiration/load.py:80
↓ 1 callers
Method
groupByTime
(self, val)
structjour/view/statisticshubcontrol.py:275
↓ 1 callers
Method
groupByTime
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 callers
Method
headerData
(self, section, orientation, role=QtCore.Qt.DisplayRole)
structjour/view/dfmodel.py:38
↓ 1 callers
Method
historicalDataOperations_req
Overridder
structjour/stock/myib.py:196
↓ 1 callers
Method
hypotheticalBalance
(self, rc, tdf)
structjour/statements/dasstatement.py:152
↓ 1 callers
Method
ibDefault
Set the self.settings value for input type to IB
structjour/view/sumcontrol.py:1008
↓ 1 callers
Function
imageData
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 callers
Method
initFromSettings
(self)
structjour/view/sapicontrol.py:93
↓ 1 callers
Method
initFromSettings
Initialize all these widgets from settings
structjour/view/chartcontrol.py:436
↓ 1 callers
Method
initializeColors
Initialze some values if none are set
structjour/view/chartcontrol.py:136
↓ 1 callers
Method
initializeCud
Set cud (chart_user_dict) settings from the current state of all the widgets
structjour/view/statisticshubcontrol.py:91
↓ 1 callers
Method
initializeSettings
Remove all settings except zero_substance/structjour/journal
structjour/utilities/backup.py:76
↓ 1 callers
Method
initializeVars
(self)
test/test_utilities.py:74
↓ 1 callers
Method
initializeVars
(self)
structjour/utilities/backup.py:105
↓ 1 callers
Method
insertCovered
(self, account, d)
structjour/statements/statementcrud.py:285
↓ 1 callers
Method
insertHoliday
(self, day, name, commit=False)
structjour/statements/statementcrud.py:291
↓ 1 callers
Method
insertTrade
:params row: pd.Series :params oc: The Open/Close code :params source: Currently DAS or IB
structjour/statements/statementcrud.py:245
↓ 1 callers
Method
insertTradeSummary
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 callers
Function
isConnected
Call TestApp.isConnected and return result
structjour/stock/myib.py:369
↓ 1 callers
Method
isDateCovered
Test if date d is covered in the given account
structjour/statements/ibstatementdb.py:286
↓ 1 callers
Method
isDateCovered
Use an ongoing session
structjour/models/coveredmodel.py:39
↓ 1 callers
Method
isHoliday
(self, d, new_session=False)
structjour/models/holidaysmodel.py:51
↓ 1 callers
Method
loadDictionaries
Upload the ts dictionary from DAS and IB
structjour/utilities/synchronizesavedstuff.py:205
↓ 1 callers
Method
loadEverything
(self, xlname, key)
structjour/discipline/getfiles.py:75
↓ 1 callers
Method
loadLayoutForms
Add the layoutForms object to self
structjour/view/sumcontrol.py:908
↓ 1 callers
Method
loadStyles
(self)
structjour/view/chartcontrol.py:431
↓ 1 callers
Method
loadTradesFromDB
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 callers
Method
loadit
Load saved objects
structjour/view/runtrade.py:129
↓ 1 callers
Function
local
Run some local code for devel
structjour/statements/ibstatementdb.py:1116
↓ 1 callers
Function
local
()
structjour/stats/sqlfilter.py:176
↓ 1 callers
Function
localRun
Just running through the paces
structjour/stock/graphstuff.py:411
↓ 1 callers
Function
localStuff
Run local stuff
structjour/statements/ibstatement.py:847
↓ 1 callers
Function
localstuff
()
structjour/utilities/rtg.py:297
↓ 1 callers
Method
logfile_edit
Set the logfile settings from the widget and color the widget text showing existance/not.
structjour/view/filesetcontrol.py:143
↓ 1 callers
Method
lookForPnlError
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 callers
Function
main
test discovery is not working in vscode. Use this for debugging. Then run cl python -m unittest discovery
test/test_graphstuff.py:226
↓ 1 callers
Function
main
()
test/test_sapicontrol.py:132
↓ 1 callers
Function
main
Run unittest locally
test/test_xlimage.py:117
↓ 1 callers
Function
main
Run unittests cl style
test/test_model_tags.py:33
↓ 1 callers
Function
main
()
test/test_mybarchart.py:180
↓ 1 callers
Function
main
()
test/test_structjour.py:154
↓ 1 callers
Function
main
()
test/test_findfiles.py:115
↓ 1 callers
Function
main
()
test/test_dailycontrol.py:83
↓ 1 callers
Function
main
()
test/test_exporttoexcel.py:205
↓ 1 callers
Function
main
()
test/test_definetrades.py:283
↓ 1 callers
Function
main
()
test/test_tradestyle.py:175
↓ 1 callers
Function
main
Run unittests cl style
test/test_dfutil.py:180
← previous
next →
401–500 of 1,304, ranked by callers