MCPcopy Create free account

hub / github.com/DVampire/FinAgent / functions

Functions330 in github.com/DVampire/FinAgent

↓ 63 callersMethodupdate
Update embeddings to the vectorstore. Args: keys: List of metadatas associated with the embedding. embeddings: List o
finagent/memory/faiss.py:125
↓ 23 callersFunctionread_resource_file
(path)
finagent/utils/file_utils.py:28
↓ 23 callersMethodrun
(self)
tools/data_process.py:45
↓ 23 callersFunctionsave_json
(json_dict, file_path, indent=4)
finagent/utils/json_utils.py:12
↓ 16 callersFunctioninit_path
(path)
finagent/utils/file_utils.py:39
↓ 12 callersMethodadd_to_memory
(self, state: pd.DataFrame = None, info: Dict = None,
finagent/prompt/trading/low_level_reflection.py:130
↓ 12 callersFunctionload_json
(file_path)
finagent/utils/json_utils.py:7
↓ 12 callersMethodsave_local
(self, memory_path = None)
finagent/memory/faiss.py:195
↓ 12 callersMethodstep
(self, action: int = 0)
finagent/environment/trading.py:235
↓ 12 callersFunctionupdate_data_root
(cfg, root)
finagent/utils/misc.py:109
↓ 10 callersMethodcheck_download
(self)
finagent/downloader/news/fmp_downloader.py:71
↓ 10 callersFunctiongenerate_intervals
(start_date, end_date, interval_level='year')
finagent/utils/misc.py:12
↓ 10 callersFunctionsave_html
(html: str, path: str)
finagent/utils/file_utils.py:36
↓ 10 callersFunctionvalue
(cash, position, price)
finagent/trajectory/dynamic_programming_threshold.py:92
↓ 9 callersMethodload_local
Load FAISS index and index_to_key from disk. Args: embedding_provider: Embeddings to use when generating queries memo
finagent/memory/faiss.py:167
↓ 6 callersFunctionassemble_project_path
Assemble a path relative to the project root directory
finagent/utils/file_utils.py:4
↓ 6 callersFunctionbuy
(cash, position, price, fee_ratio)
finagent/trajectory/dynamic_programming_threshold.py:78
↓ 6 callersMethoddata_process
Method to process the input dataframe. Renames columns to standard names.
finagent/tools/strategy_agents.py:11
↓ 6 callersMethodget_embedding_dim
Get the embedding dimension.
finagent/provider/provider.py:243
↓ 6 callersMethodget_trader
(self, name: str = None)
finagent/asset/base.py:68
↓ 6 callersFunctionnoop
(cash, position, price, fee_ratio)
finagent/trajectory/dynamic_programming_threshold.py:89
↓ 6 callersMethodplot_trading
(self, records, info, save_dir)
finagent/plots/interface.py:66
↓ 6 callersFunctionprepared_tools_params
(state: Dict, info: Dict, params: Dict,
finagent/prompt/helper.py:97
↓ 6 callersMethodreset
(self, **kwargs)
finagent/environment/trading.py:156
↓ 5 callersMethodadd
Add data to memory. Args: **kwargs: Other keyword arguments that subclasses might use.
finagent/memory/base.py:62
↓ 5 callersMethoddownload
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/news/fmp_downloader.py:75
↓ 5 callersMethodplot_kline
(self, state, info, save_dir, mode = "train")
finagent/plots/interface.py:31
↓ 5 callersFunctionprepare_latest_market_intelligence_params
(state: Dict, info: Dict,
finagent/prompt/helper.py:248
↓ 5 callersMethodto_message
(self, *args, params: Dict = None, template: Any = None,
finagent/prompt/custom.py:29
↓ 5 callersFunctionvalue
(cash, position, price)
finagent/trajectory/dynamic_programming.py:92
↓ 4 callersMethodembed_query
Call out to OpenAI's embedding endpoint for embedding query text. Args: text: The text to embed. Returns: Em
finagent/provider/provider.py:231
↓ 4 callersFunctionprepare_low_level_reflection_params
(state: Dict, info: Dict, para
finagent/prompt/helper.py:323
↓ 4 callersMethodquery
Retrieve the keys from the vectorstores. Args: data: the query data. top_k: the number of results to return.
finagent/memory/base.py:92
↓ 4 callersFunctionsell
(cash, position, price, fee_ratio)
finagent/trajectory/dynamic_programming_threshold.py:84
↓ 3 callersMethod_get_memory
(self, type: str, symbol: str)
finagent/memory/interface.py:80
↓ 3 callersMethodadd_memory
( self, type: str, symbol: str, data: Dict, embedding_key: str, )
finagent/memory/interface.py:104
↓ 3 callersFunctionbuy
(cash, position, price, fee_ratio)
finagent/trajectory/dynamic_programming.py:78
↓ 3 callersMethodcalculate_ema
Helper method to calculate the Exponential Moving Average (EMA).
finagent/tools/strategy_agents.py:364
↓ 3 callersMethodconvert_to_params
(self, state: Dict, info: Dict, par
finagent/prompt/trading/decision.py:23
↓ 3 callersMethodcurrent_value
(self, price)
finagent/environment/trading.py:114
↓ 3 callersFunctiondependable_faiss_import
Import faiss if available, otherwise raise error. If FAISS_NO_AVX2 environment variable is set, it will be considered to load FAISS with
finagent/memory/faiss.py:15
↓ 3 callersMethodget_current_date
(self)
finagent/environment/trading.py:108
↓ 3 callersMethodget_current_price
(self)
finagent/environment/trading.py:111
↓ 3 callersFunctionnoop
(cash, position, price, fee_ratio)
finagent/trajectory/dynamic_programming.py:89
↓ 3 callersFunctionprepare_high_level_reflection_params
(state: Dict, info: Dict, pa
finagent/prompt/helper.py:388
↓ 3 callersMethodstrategy1_MACD
Method to implement the MACD strategy. Returns a list of signals and explanations based on the MACD strategy. >> Summary:
finagent/tools/strategy_agents.py:78
↓ 3 callersMethodstrategy2_KDJ_RSI
Method to implement the KDJ strategy with an RSI filter. Returns a list of signals and explanations based on the KDJ and RSI values.
finagent/tools/strategy_agents.py:110
↓ 3 callersMethodstrategy3_Stochastic_Bollinger
Stochastic Oscillator and Bollinger Bands strategy: Buy when the price is below the lower Bollinger Band and the Stochastic Oscillator is bel
finagent/tools/strategy_agents.py:150
↓ 3 callersMethodwrapper
Wrapper method to run the strategy and return the results.
finagent/tools/strategy_agents.py:23
↓ 2 callersMethod__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/news/fmp_downloader.py:30
↓ 2 callersMethod_get_proxy
(self)
finagent/downloader/custom.py:37
↓ 2 callersMethod_get_recent_history
(self, type: str, symbol: str)
finagent/memory/interface.py:92
↓ 2 callersMethodadd_embeddings
Add embeddings to the vectorstore. Args: keys: List of metadatas associated with the embedding. embeddings: List of e
finagent/memory/faiss.py:66
↓ 2 callersFunctioncal_ema
(data, window)
finagent/plots/kline.py:14
↓ 2 callersFunctioncontent_replace
(content: str)
finagent/prompt/helper.py:44
↓ 2 callersMethodembed_with_retry
Use backoff to retry the embedding call.
finagent/provider/provider.py:126
↓ 2 callersFunctionencode_image
(image_path)
finagent/provider/provider.py:454
↓ 2 callersFunctionget_jsonparsed_data
(url)
finagent/downloader/prices/fmp_day_downloader.py:23
↓ 2 callersFunctionget_project_root
()
finagent/utils/file_utils.py:23
↓ 2 callersMethodget_state
(self)
finagent/environment/trading.py:117
↓ 2 callersFunctionrun
(cfg, env, plots, memory, provider, diverse_query, strategy_agents, exp_path, mode = "train")
tools/main_mi_w_low_w_high_w_decision.py:149
↓ 2 callersFunctionrun
(cfg, env, plots, memory, provider, diverse_query, strategy_agents, exp_path, mode = "train")
tools/main_mi_w_decision.py:149
↓ 2 callersFunctionrun
(cfg, env, plots, memory, provider, diverse_query, strategy_agents, exp_path, mode = "train")
tools/main_mi_w_low_w_high_w_tool_w_decision.py:148
↓ 2 callersFunctionrun
(cfg, env, plots, memory, provider, diverse_query, strategy_agents, exp_path, mode = "train")
tools/main_mi_w_low_w_decision.py:149
↓ 2 callersFunctionrun
(cfg, env, plots, memory, provider, diverse_query, strategy_agents, exp_path, mode = "train")
tools/main.py:149
↓ 2 callersFunctionrun
(cfg, env, plots, memory, provider, diverse_query, strategy_agents, exp_path, mode = "train")
tools/main_strategy.py:149
↓ 2 callersFunctionsell
(cash, position, price, fee_ratio)
finagent/trajectory/dynamic_programming.py:84
↓ 2 callersMethodstrategy4_Mean_Reversion
Mean Reversion strategy: Buy when the z-score is below -1.0 (indicating the price is below the mean by a certain threshold). Sell when the z-
finagent/tools/strategy_agents.py:198
↓ 2 callersMethodstrategy5_Mean_Reversion_ATR
Mean Reversion and ATR Strategy: Buy when ATR indicates high market volatility and the trend is upward, and sell when the price falls below t
finagent/tools/strategy_agents.py:239
↓ 2 callersMethodstrategy6_Pattern_Zigzag
Zigzag Pattern Trading Strategy: Utilize the zigzag pattern to identify potential buy and sell signals based on trend reversals.
finagent/tools/strategy_agents.py:309
↓ 1 callersMethod_convert_to_price_movement
(self, state: Dict, current_date: str = None)
finagent/prompt/trading/low_level_reflection.py:41
↓ 1 callersMethod_get_azure_deployment_id_for_model
(self, model_label)
finagent/provider/provider.py:407
↓ 1 callersMethod_get_len_safe_embeddings
( self, texts: List[str], )
finagent/provider/provider.py:149
↓ 1 callersFunction_get_test_pipeline_cfg
(dataset_cfg)
finagent/utils/misc.py:128
↓ 1 callersMethod_init_assets
(self)
finagent/data/dataset.py:58
↓ 1 callersMethod_init_memorys
(self)
finagent/memory/interface.py:48
↓ 1 callersMethod_init_recent_histories
(self)
finagent/memory/interface.py:68
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/tools/fmp_economic_downloader.py:67
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/tools/rapidapi_downloader.py:60
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/tools/fmp_sentiment_downloader.py:67
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/prices/yahoofinance_day_downloader.py:53
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/prices/polygon_day_downloader.py:58
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/prices/fmp_day_downloader.py:65
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/news/fmp_downloader.py:66
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/news/yahoofinance_downloader.py:66
↓ 1 callersMethod_init_stocks
(self)
finagent/downloader/news/polygon_downloader.py:55
↓ 1 callersMethod_init_stocks
(self)
finagent/processor/processor.py:228
↓ 1 callersMethod_load_asset_infos
(self)
finagent/asset/base.py:33
↓ 1 callersMethod_load_assets
(self)
finagent/asset/base.py:14
↓ 1 callersMethod_load_economics
(self)
finagent/data/dataset.py:167
↓ 1 callersMethod_load_guidances
(self)
finagent/data/dataset.py:112
↓ 1 callersMethod_load_modules
(self)
finagent/asset/base.py:47
↓ 1 callersMethod_load_news
(self)
finagent/data/dataset.py:84
↓ 1 callersMethod_load_prices
(self)
finagent/data/dataset.py:63
↓ 1 callersMethod_load_sentiments
(self)
finagent/data/dataset.py:137
↓ 1 callersMethod_load_traders
(self)
finagent/asset/base.py:21
↓ 1 callersMethod_parse_config
Parse the config object
finagent/provider/provider.py:75
↓ 1 callersMethod_process_economic
(self, stocks = None, start_date = None,
finagent/processor/processor.py:554
↓ 1 callersMethod_process_guidance
(self, stocks = None, start_date = None,
finagent/processor/processor.py:310
↓ 1 callersMethod_process_news
(self, stocks = None, start_date = None, end_date = None)
finagent/processor/processor.py:383
next →1–100 of 330, ranked by callers