Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DVampire/FinAgent
/ functions
Functions
330 in github.com/DVampire/FinAgent
⨍
Functions
330
◇
Types & classes
51
Method
__call__
Call method for the singleton metaclass.
finagent/utils/singleton.py:12
Method
__init__
(self, stocks, processor)
tools/data_process.py:41
Method
__init__
(self, stocks, downloader)
tools/download_sentiment.py:20
Method
__init__
(self, stocks, downloader)
tools/download_expert_knowledege.py:20
Method
__init__
(self, stocks, downloader)
tools/download_economic.py:20
Method
__init__
(self, stocks, downloader)
tools/download_news.py:20
Method
__init__
(self, stocks, downloader)
tools/download_prices.py:41
Method
__init__
(self)
finagent/tools/rapid_apis.py:20
Method
__init__
(self, tunnel, username, password)
finagent/utils/get_proxy.py:118
Method
__init__
(self, *args, use_proxy: str = None, max_retry: int = 5,
finagent/downloader/custom.py:4
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/tools/fmp_economic_downloader.py:30
Method
__init__
(self, *args, root: str = "", token: str = "",
finagent/downloader/tools/rapidapi_downloader.py:25
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/tools/fmp_sentiment_downloader.py:30
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/prices/yahoofinance_day_downloader.py:22
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/prices/polygon_day_downloader.py:23
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/prices/fmp_day_downloader.py:32
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/news/fmp_downloader.py:139
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/news/fmp_downloader.py:168
Method
__init__
(self, *args, root: str = "", token: str = "",
finagent/downloader/news/yahoofinance_downloader.py:27
Method
__init__
(self, root: str = "", token: str = None, delay: int = 1,
finagent/downloader/news/polygon_downloader.py:24
Method
__init__
(self, *args, **kwargs)
finagent/prompt/custom.py:13
Method
__init__
(self, *args, model: Any = None, previous_action_look_back_
finagent/prompt/trading/high_level_reflection.py:16
Method
__init__
(self, *args, model: Any = None, **kwargs)
finagent/prompt/trading/latest_market_intelligence_summary.py:19
Method
__init__
(self, *args, model: Any = None, short_term_past_date_range
finagent/prompt/trading/low_level_reflection.py:16
Method
__init__
(self, *args, model: Any = None, **kwargs)
finagent/prompt/trading/decision.py:16
Method
__init__
(self, *args, model: Any = None, **kwargs)
finagent/prompt/trading/past_market_intelligence_summary.py:19
Method
__init__
( self, memory_path: str, vectorstore: VectorStore, memory: Op
finagent/memory/basic_memory.py:18
Method
__init__
( self, root, symbols: List[str], memory_path: str, embedding_dim: int
finagent/memory/interface.py:18
Method
__init__
Initialize the Meta Faiss vectorstore. Code modified based on langchain. Args: embedding_provider: Embedding provider.
finagent/memory/faiss.py:43
Method
__init__
(self)
finagent/data/base.py:13
Method
__init__
(self, root: str = None, price_path: str = None, news_path:
finagent/data/dataset.py:11
Method
__init__
(self, root=None, path_params = None, stocks_path = None,
finagent/processor/processor.py:205
Method
__init__
(self, mode: str = "train", dataset: Any = None, selected_a
finagent/environment/trading.py:10
Method
__init__
(self, memory: MemoryInterface, provider: EmbeddingProvider,
finagent/query/diverse_query.py:6
Method
__init__
(self, root = None, workdir = None, tag = None,
finagent/plots/interface.py:13
Method
__init__
Initialize a class instance Args: cfg: Config object Returns: None
finagent/provider/provider.py:57
Method
__init__
(self)
finagent/asset/base.py:11
Method
_emb_invocation_params
(self)
finagent/provider/provider.py:111
Method
_embed_with_retry
(**kwargs: Any)
finagent/provider/provider.py:140
Method
_generate_response_with_retry
Send a request to the OpenAI API.
finagent/provider/provider.py:307
Method
_init_stocks
(self)
finagent/data/base.py:16
Method
_load_news
(self)
finagent/data/base.py:22
Method
_load_prices
(self)
finagent/data/base.py:19
Method
_replace_keys
(self, text: str, params: Dict)
finagent/prompt/custom.py:16
Method
_request_get
(self, url, headers=None, verify=None, params=None)
finagent/downloader/custom.py:57
Method
_request_post
(self, url, headers, json)
finagent/downloader/custom.py:77
Method
add
Add data to memory.
finagent/memory/basic_memory.py:31
Method
add_embeddings
Add embeddings to the vectorstore. Args: keys: list of metadatas associated with the embedding. embeddings: Iterable
finagent/memory/base.py:18
Method
add_recent_history
( self, type: str, symbol: str, data: Dict, )
finagent/memory/interface.py:131
Method
add_to_memory
(self, state: Dict= None, info: Dict = None,
finagent/prompt/trading/high_level_reflection.py:79
Method
add_to_memory
(self, state: Dict, info: Dict, res: Dict,
finagent/prompt/trading/latest_market_intelligence_summary.py:123
Method
add_to_memory
(self, state: Dict, info: Dict, params: Dict
finagent/prompt/trading/past_market_intelligence_summary.py:54
Method
assemble_prompt
(self, system_prompts: List[str], user_inputs: List[str], image_filenames: List[str])
finagent/provider/provider.py:410
Method
assemble_prompt
Combine parametes in the appropriate way for the provider to use.
finagent/provider/base_llm.py:31
Method
check_asset_info
(self, symbol: str = None)
finagent/asset/base.py:59
Method
check_download
(self)
finagent/downloader/tools/fmp_economic_downloader.py:72
Method
check_download
(self, stocks = None, start_date = None,
finagent/downloader/tools/rapidapi_downloader.py:65
Method
check_download
(self)
finagent/downloader/tools/fmp_sentiment_downloader.py:72
Method
check_download
(self, stocks = None, start_date = None,
finagent/downloader/prices/yahoofinance_day_downloader.py:58
Method
check_download
(self, stocks = None, start_date = None,
finagent/downloader/prices/polygon_day_downloader.py:63
Method
check_download
(self, stocks = None, start_date = None,
finagent/downloader/prices/fmp_day_downloader.py:70
Method
check_download
(self, stocks = None, start_date = None,
finagent/downloader/news/yahoofinance_downloader.py:71
Method
check_download
(self, stocks = None, start_date = None,
finagent/downloader/news/polygon_downloader.py:60
Method
check_trader
(self, name: str = None)
finagent/asset/base.py:65
Method
convert_state_info_to_parmas
(self, *args, **kwargs)
finagent/prompt/custom.py:26
Function
convert_to_json_serializable
Recursively converts int64 and float64 to int and float in a dictionary. Parameters: - data (dict): Input dictionary with potentially no
finagent/utils/json_utils.py:104
Method
create_completion
Create a chat completion using the OpenAI API Supports both GPT-4 and GPT-4V). Example Usage: image_path = "path_to_your_ima
finagent/provider/provider.py:256
Function
decorator
(query)
finagent/query/query_types.py:6
Method
delete
Delete by keys. Args: keys: List of keys to delete. **kwargs: Other keyword arguments that subclasses might use.
finagent/memory/base.py:32
Method
download
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/tools/fmp_economic_downloader.py:76
Method
download
(self, stocks: str = None, start_date: str = None, end_date
finagent/downloader/tools/rapidapi_downloader.py:100
Method
download
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/tools/fmp_sentiment_downloader.py:76
Method
download
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/prices/yahoofinance_day_downloader.py:93
Method
download
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/prices/polygon_day_downloader.py:98
Method
download
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/prices/fmp_day_downloader.py:105
Method
download
(self, stocks: str = None, start_date: str = None, end_date
finagent/downloader/news/yahoofinance_downloader.py:106
Method
download
(self, stocks = None, start_date = None, end_date = None)
finagent/downloader/news/polygon_downloader.py:99
Method
embed_query
Embed query text.
finagent/provider/base_embedding.py:12
Function
exists_in_project_path
(path)
finagent/utils/file_utils.py:20
Function
find_latest_checkpoint
Find the latest checkpoint from the working directory. Args: path(str): The path to find checkpoints. suffix(str): File extension
finagent/utils/misc.py:76
Function
gen_relative_project_path
(path)
finagent/utils/file_utils.py:10
Function
generate_dates
(start_date, end_date, interval_level='year')
finagent/utils/misc.py:51
Function
get_attr
(attr, key, default=None)
finagent/utils/utils.py:1
Method
get_embedding_dim
Get the embedding dimensions.
finagent/provider/base_embedding.py:16
Method
get_memory
(self, type: str, symbol: str)
finagent/memory/interface.py:77
Method
get_recent_history
( self, type: str, symbol: str, k: int = 1, )
finagent/memory/interface.py:141
Method
get_response_dict
(self, provider, model, messages
finagent/prompt/custom.py:105
Function
get_start_and_end_timestamps
(input_datetime)
finagent/tools/rapid_apis.py:5
Method
get_stockSentiment_sentiment
(self, stock)
finagent/tools/rapid_apis.py:104
Function
get_test_pipeline_cfg
Get the test dataset pipeline from entire config. Args: cfg (str or :obj:`ConfigDict`): the entire config. Can be a config fi
finagent/utils/misc.py:115
Method
init_provider
Initialize a provider via a json config.
finagent/provider/base_llm.py:26
Method
init_provider
Initialize a provider via a json config.
finagent/provider/base_embedding.py:21
Function
langchain_parse_url
(url)
finagent/processor/processor.py:14
Method
load_local
( self, memory_path: str = None, vectorstore: VectorStore = None, )
finagent/memory/basic_memory.py:79
Method
load_local
( self, memory_path: str = None, )
finagent/memory/interface.py:163
Function
long_term
(params: Dict)
finagent/query/query_types.py:30
Function
medium_term
(params: Dict)
finagent/query/query_types.py:24
Function
my_rank
(x)
finagent/processor/processor.py:37
Method
num_tokens_from_messages
Return the number of tokens used by a list of messages. Borrowed from https://github.com/openai/openai-cookbook/blob/main/examples/How_to_coun
finagent/provider/provider.py:352
Function
parse_semi_formatted_json
(json_string)
finagent/utils/json_utils.py:51
← previous
next →
201–300 of 330, ranked by callers