Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MingyuJ666/Stockagent
/ functions
Functions
53 in github.com/MingyuJ666/Stockagent
⨍
Functions
53
◇
Types & classes
9
↓ 41 callers
Method
format
(self, record)
log/custom_logger.py:5
↓ 20 callers
Method
get_price
(self)
stock.py:28
↓ 7 callers
Method
run_api
(self, prompt, temperature: float = 1)
agent.py:69
↓ 5 callers
Function
_get_setting
(name: str, default: str = "")
util.py:9
↓ 4 callers
Function
get_agent
(all_agents, order)
main.py:14
↓ 3 callers
Function
expand_experiment_seeds
(total_runs, base_seeds=None)
util.py:124
↓ 2 callers
Method
add_session_deal
(self, price_and_amount)
stock.py:18
↓ 2 callers
Function
build_run_seed_pairs
(total_runs, base_seeds=None)
util.py:138
↓ 2 callers
Method
buy_stock
(self, stock_name, price, amount)
agent.py:321
↓ 2 callers
Method
check_action
(self, resp, cash, stock_a_amount, stock_b_amount, stock_a_price, stock_b_price)
secretary.py:97
↓ 2 callers
Method
check_estimate
(self, resp)
secretary.py:183
↓ 2 callers
Method
check_loan
(self, resp, max_loan)
secretary.py:36
↓ 2 callers
Function
create_trade_record
(date, stage, stock, buy_trader, sell_trader, amount, price)
record.py:29
↓ 2 callers
Method
gen_financial_report
(self, index)
stock.py:12
↓ 2 callers
Method
get_total_loan
(self)
agent.py:136
↓ 2 callers
Function
handle_action
(action, stock_deals, all_agents, stock, session)
main.py:20
↓ 2 callers
Method
sell_stock
(self, stock_name, price, amount)
agent.py:335
↓ 2 callers
Method
update_price
(self, date)
stock.py:21
↓ 2 callers
Method
write_to_excel
(self, file_name="res/trades.xlsx")
record.py:15
↓ 1 callers
Method
add_estimate
(self, js)
record.py:79
↓ 1 callers
Method
bankrupt_process
(self, stock_a_price, stock_b_price)
agent.py:374
↓ 1 callers
Function
create_agentses_record
(agent, date, session, proper, cash, stock_a_value, stock_b_value, action_json)
record.py:138
↓ 1 callers
Function
create_stock_record
(date, session, stock_a_price, stock_b_price)
record.py:57
↓ 1 callers
Method
get_proper_cash_value
(self, stock_a_price, stock_b_price)
agent.py:130
↓ 1 callers
Method
get_total_proper
(self, stock_a_price, stock_b_price)
agent.py:127
↓ 1 callers
Function
get_yunwu_v1_base_url
()
util.py:114
↓ 1 callers
Method
interest_payment
(self)
agent.py:365
↓ 1 callers
Method
loan_repayment
(self, date)
agent.py:353
↓ 1 callers
Method
next_day_estimate
(self)
agent.py:405
↓ 1 callers
Method
plan_loan
(self, date, stock_a_price, stock_b_price, lastday_forum_message)
agent.py:142
↓ 1 callers
Method
plan_stock
(self, date, time, stock_a, stock_b, stock_a_deals, stock_b_deals)
agent.py:222
↓ 1 callers
Method
post_message
(self)
agent.py:398
↓ 1 callers
Function
random_init
(stock_a_initial, stock_b_initial)
agent.py:19
↓ 1 callers
Function
resolve_model_name
(model_name: str)
util.py:72
↓ 1 callers
Function
run_api
(model, prompt, temperature: float = 0)
secretary.py:7
↓ 1 callers
Method
run_api_gemini
(self, prompt, temperature: float = 1)
agent.py:75
↓ 1 callers
Method
run_api_gpt
(self, prompt, temperature: float = 1)
agent.py:98
↓ 1 callers
Function
simulation
(args)
main.py:75
↓ 1 callers
Method
write_to_excel
(self, file_name="res/stocks.xlsx")
record.py:43
↓ 1 callers
Method
write_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
Method
get_response
(self, prompt)
secretary.py:25
Function
get_yunwu_root_url
()
util.py:119
Function
ideal_price_midpoint
(stock: str, day: int)
util.py:85
Function
is_non_llm_baseline
(model_name: str)
util.py:80
Method
write_to_excel
(self, file_name="res/agent_day_record.xlsx")
record.py:86