MCPcopy Create free account

hub / github.com/MingyuJ666/Stockagent / functions

Functions53 in github.com/MingyuJ666/Stockagent

↓ 41 callersMethodformat
(self, record)
log/custom_logger.py:5
↓ 20 callersMethodget_price
(self)
stock.py:28
↓ 7 callersMethodrun_api
(self, prompt, temperature: float = 1)
agent.py:69
↓ 5 callersFunction_get_setting
(name: str, default: str = "")
util.py:9
↓ 4 callersFunctionget_agent
(all_agents, order)
main.py:14
↓ 3 callersFunctionexpand_experiment_seeds
(total_runs, base_seeds=None)
util.py:124
↓ 2 callersMethodadd_session_deal
(self, price_and_amount)
stock.py:18
↓ 2 callersFunctionbuild_run_seed_pairs
(total_runs, base_seeds=None)
util.py:138
↓ 2 callersMethodbuy_stock
(self, stock_name, price, amount)
agent.py:321
↓ 2 callersMethodcheck_action
(self, resp, cash, stock_a_amount, stock_b_amount, stock_a_price, stock_b_price)
secretary.py:97
↓ 2 callersMethodcheck_estimate
(self, resp)
secretary.py:183
↓ 2 callersMethodcheck_loan
(self, resp, max_loan)
secretary.py:36
↓ 2 callersFunctioncreate_trade_record
(date, stage, stock, buy_trader, sell_trader, amount, price)
record.py:29
↓ 2 callersMethodgen_financial_report
(self, index)
stock.py:12
↓ 2 callersMethodget_total_loan
(self)
agent.py:136
↓ 2 callersFunctionhandle_action
(action, stock_deals, all_agents, stock, session)
main.py:20
↓ 2 callersMethodsell_stock
(self, stock_name, price, amount)
agent.py:335
↓ 2 callersMethodupdate_price
(self, date)
stock.py:21
↓ 2 callersMethodwrite_to_excel
(self, file_name="res/trades.xlsx")
record.py:15
↓ 1 callersMethodadd_estimate
(self, js)
record.py:79
↓ 1 callersMethodbankrupt_process
(self, stock_a_price, stock_b_price)
agent.py:374
↓ 1 callersFunctioncreate_agentses_record
(agent, date, session, proper, cash, stock_a_value, stock_b_value, action_json)
record.py:138
↓ 1 callersFunctioncreate_stock_record
(date, session, stock_a_price, stock_b_price)
record.py:57
↓ 1 callersMethodget_proper_cash_value
(self, stock_a_price, stock_b_price)
agent.py:130
↓ 1 callersMethodget_total_proper
(self, stock_a_price, stock_b_price)
agent.py:127
↓ 1 callersFunctionget_yunwu_v1_base_url
()
util.py:114
↓ 1 callersMethodinterest_payment
(self)
agent.py:365
↓ 1 callersMethodloan_repayment
(self, date)
agent.py:353
↓ 1 callersMethodnext_day_estimate
(self)
agent.py:405
↓ 1 callersMethodplan_loan
(self, date, stock_a_price, stock_b_price, lastday_forum_message)
agent.py:142
↓ 1 callersMethodplan_stock
(self, date, time, stock_a, stock_b, stock_a_deals, stock_b_deals)
agent.py:222
↓ 1 callersMethodpost_message
(self)
agent.py:398
↓ 1 callersFunctionrandom_init
(stock_a_initial, stock_b_initial)
agent.py:19
↓ 1 callersFunctionresolve_model_name
(model_name: str)
util.py:72
↓ 1 callersFunctionrun_api
(model, prompt, temperature: float = 0)
secretary.py:7
↓ 1 callersMethodrun_api_gemini
(self, prompt, temperature: float = 1)
agent.py:75
↓ 1 callersMethodrun_api_gpt
(self, prompt, temperature: float = 1)
agent.py:98
↓ 1 callersFunctionsimulation
(args)
main.py:75
↓ 1 callersMethodwrite_to_excel
(self, file_name="res/stocks.xlsx")
record.py:43
↓ 1 callersMethodwrite_to_excel
(self, file_name="res/agent_session_record.xlsx")
record.py:120
Method__init__
(self, date, session, stock_type, buyer, seller, quantity, price)
record.py:6
Method__init__
(self, date, session, stock_a_price, stock_b_price)
record.py:37
Method__init__
(self, agent, date, loan_json)
record.py:64
Method__init__
(self, agent, date, session, proper, cash, stock_a_value, stock_b_value, action_json)
record.py:103
Method__init__
(self, model)
secretary.py:22
Method__init__
(self, i, stock_a_price, stock_b_price, secretary, model)
agent.py:53
Method__init__
(self, name, initial_price, initial_stock, is_new=False)
stock.py:4
Method__init__
(self)
log/custom_logger.py:20
Methodget_response
(self, prompt)
secretary.py:25
Functionget_yunwu_root_url
()
util.py:119
Functionideal_price_midpoint
(stock: str, day: int)
util.py:85
Functionis_non_llm_baseline
(model_name: str)
util.py:80
Methodwrite_to_excel
(self, file_name="res/agent_day_record.xlsx")
record.py:86