Adding Finance tools #27321
Replies: 3 comments 1 reply
-
Good ideas! Could you confirm signup process for these two apis to confirm users would be able to sign up on their own? Some of these financial data apis require enterprise agreements, so the most valuable integration would be one that could be used in a tutorial/guide! |
Beta Was this translation helpful? Give feedback.
-
Thank you for your feedback! I’ve looked into the signup processes for both Polygon and Bloomberg APIs:
Looking more into this, I found that there are some other APIs that have data providers very similar to Bloomberg, such as, Quandl, which is open to everyone with just a simple sign up on their website (like Polygon). If enterprise-level applications are not a priority, then I believe we could use this as an alternative to Bloomberg due to their very similar data providers. Users would definitely benefit from this. |
Beta Was this translation helpful? Give feedback.
-
Sounds good! We'll get started on that ASAP. Can we turn this into an issue? |
Beta Was this translation helpful? Give feedback.
-
Checked
Feature request
As mentioned in, #27176, we would like to add a tool that integrates with the Bloomberg and Polygon Finance API. We initially had Yahoo Finance in our plan but after doing some research we found that the official API was discontinued in 2017.
Users will benefit from expanded access to comprehensive financial data, enabling better decision-making and deeper market analysis. The tool would take a query from an agent, gather the relevant information from our Finance Tools, format the information into a readable output, and return the result to the agent.
Sample Usage:
Sample Output:
Sample Usage 2:
Sample Output 2:
Motivation
The objective is to extend LangChain’s financial capabilities by adding Bloomberg and Polygon Finance tools and addressing the limitations in Google Finance, which primarily focuses on basic stock quotes and limited historical data. Polygon provides real-time, low-latency data across various asset classes, including stocks, forex, and cryptocurrencies, while Bloomberg offers institutional-grade data, global market coverage, and detailed financial analytics.
These additions will enable more advanced financial applications, from algorithmic trading to in-depth market research, by offering more comprehensive data and insights, filling the gaps left by Google Finance’s limited coverage of certain asset classes and professional-grade metrics.
Proposal (If applicable)
We are planning to make an addition to the tools contained in libs/community/langchain_community/tools and follow a similar structure to the existing tools, such as GoogleFinanceQueryRun. If this idea is approved, we hope to submit a PR by November.
Here is an outline of the changes we are anticipating to make:
We plan to modify the following files:
We plan to create the following files:
We are planning to use Bloomberg's B-PIPE to access market data. A similar approach will be used for Polygon Finance API.
Beta Was this translation helpful? Give feedback.
All reactions