Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
community: Update Polygon.io API (#27552)
**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 --------- Co-authored-by: ccurme <[email protected]>
- Loading branch information