Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alpha Vantage API Tool #14332

Merged
merged 29 commits into from
Mar 30, 2024
Merged

Add Alpha Vantage API Tool #14332

merged 29 commits into from
Mar 30, 2024

Conversation

anshaneel
Copy link
Contributor

Description

This implementation adds functionality from the AlphaVantage API, renowned for its comprehensive financial data. The class encapsulates various methods, each dedicated to fetching specific types of financial information from the API.

Implemented Functions

  • search_symbols:

    • Searches the AlphaVantage API for financial symbols using the provided keywords.
  • _get_market_news_sentiment:

    • Retrieves market news sentiment for a specified stock symbol from the AlphaVantage API.
  • _get_time_series_daily:

    • Fetches daily time series data for a specific symbol from the AlphaVantage API.
  • _get_quote_endpoint:

    • Obtains the latest price and volume information for a given symbol from the AlphaVantage API.
  • _get_time_series_weekly:

    • Gathers weekly time series data for a particular symbol from the AlphaVantage API.
  • _get_top_gainers_losers:

    • Provides details on top gainers, losers, and most actively traded tickers in the US market from the AlphaVantage API.

    Issue:

Dependencies:

  • 'requests' library for HTTP requests. (import requests)
  • 'pytest' library for testing. (import pytest)

anshaneel and others added 22 commits November 28, 2023 02:16
…ing the alpha vantage NEWS_SENTIMENT function in api
used an api call to alphavantage
lighter version of time series, uses an api call
used an api call to alphavantage
…ing the alpha vantage NEWS_SENTIMENT function in api
used an api call to alphavantage
lighter version of time series, uses an api call
used an api call to alphavantage
Copy link

vercel bot commented Dec 6, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchain ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 30, 2024 0:44am

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. 🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features labels Dec 6, 2023
@fielding
Copy link
Contributor

fielding commented Dec 7, 2023

Nice, looking forward to replacing my ghetto AA tool that I have in place with some of this =)

@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Mar 30, 2024
@baskaryan baskaryan enabled auto-merge (squash) March 30, 2024 00:32
@baskaryan baskaryan merged commit 0884e5d into langchain-ai:master Mar 30, 2024
61 checks passed
gkorland pushed a commit to FalkorDB/langchain that referenced this pull request Mar 30, 2024
### Description
This implementation adds functionality from the AlphaVantage API,
renowned for its comprehensive financial data. The class encapsulates
various methods, each dedicated to fetching specific types of financial
information from the API.

### Implemented Functions

- **`search_symbols`**: 
- Searches the AlphaVantage API for financial symbols using the provided
keywords.

- **`_get_market_news_sentiment`**: 
- Retrieves market news sentiment for a specified stock symbol from the
AlphaVantage API.

- **`_get_time_series_daily`**: 
- Fetches daily time series data for a specific symbol from the
AlphaVantage API.

- **`_get_quote_endpoint`**: 
- Obtains the latest price and volume information for a given symbol
from the AlphaVantage API.

- **`_get_time_series_weekly`**: 
- Gathers weekly time series data for a particular symbol from the
AlphaVantage API.

- **`_get_top_gainers_losers`**: 
- Provides details on top gainers, losers, and most actively traded
tickers in the US market from the AlphaVantage API.

  ### Issue: 
  - langchain-ai#11994 
  
### Dependencies: 
  - 'requests' library for HTTP requests. (import requests)
  - 'pytest' library for testing. (import pytest)

---------

Co-authored-by: Adam Badar <[email protected]>
Co-authored-by: Harrison Chase <[email protected]>
Co-authored-by: Bagatur <[email protected]>
hinthornw pushed a commit that referenced this pull request Apr 26, 2024
### Description
This implementation adds functionality from the AlphaVantage API,
renowned for its comprehensive financial data. The class encapsulates
various methods, each dedicated to fetching specific types of financial
information from the API.

### Implemented Functions

- **`search_symbols`**: 
- Searches the AlphaVantage API for financial symbols using the provided
keywords.

- **`_get_market_news_sentiment`**: 
- Retrieves market news sentiment for a specified stock symbol from the
AlphaVantage API.

- **`_get_time_series_daily`**: 
- Fetches daily time series data for a specific symbol from the
AlphaVantage API.

- **`_get_quote_endpoint`**: 
- Obtains the latest price and volume information for a given symbol
from the AlphaVantage API.

- **`_get_time_series_weekly`**: 
- Gathers weekly time series data for a particular symbol from the
AlphaVantage API.

- **`_get_top_gainers_losers`**: 
- Provides details on top gainers, losers, and most actively traded
tickers in the US market from the AlphaVantage API.

  ### Issue: 
  - #11994 
  
### Dependencies: 
  - 'requests' library for HTTP requests. (import requests)
  - 'pytest' library for testing. (import pytest)

---------

Co-authored-by: Adam Badar <[email protected]>
Co-authored-by: Harrison Chase <[email protected]>
Co-authored-by: Bagatur <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖:enhancement A large net-new component, integration, or chain. Use sparingly. The largest features lgtm PR looks good. Use to confirm that a PR is ready for merging. size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants