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

community: Update Polygon.io API #27552

Merged
merged 4 commits into from
Oct 31, 2024
Merged

community: Update Polygon.io API #27552

merged 4 commits into from
Oct 31, 2024

Conversation

wgcv
Copy link
Contributor

@wgcv wgcv commented Oct 22, 2024

Description:
Update the wrapper to support the Polygon API if not you get an error. I keeped STOCKBUSINESS for retro-compatbility with older endpoints / other uses
Old Code:

 if status not in ("OK", "STOCKBUSINESS"):
    raise ValueError(f"API Error: {data}")

API Respond:

API Error: {'results': {'P': 0.22, 'S': 0, 'T': 'ZOM', 'X': 5, 'p': 0.123, 'q': 0, 's': 200, 't': 1729614422813395456, 'x': 1, 'z': 1}, 'status': 'STOCKSBUSINESS', 'request_id': 'XXXXXX'}
  • Issue: N/A Polygon API update
  • Dependencies: N/A
  • Twitter handle: @wgcv

Copy link

vercel bot commented Oct 22, 2024

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 Oct 31, 2024 6:13pm

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. community Related to langchain-community labels Oct 22, 2024
@dosubot dosubot bot added the lgtm PR looks good. Use to confirm that a PR is ready for merging. label Oct 31, 2024
@ccurme ccurme enabled auto-merge (squash) October 31, 2024 18:04
@ccurme ccurme merged commit f94125a into langchain-ai:master Oct 31, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Related to langchain-community lgtm PR looks good. Use to confirm that a PR is ready for merging. size:XS This PR changes 0-9 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants