-
Notifications
You must be signed in to change notification settings - Fork 284
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
With code like this:
RESTClient(base = "http://my-local-polygon-proxy")
streaming API does not work correctly.
On this line:
client-python/polygon/rest/base.py
Line 231 in f789d29
path = decoded["next_url"].replace(self.BASE, "") |
Next URL tries to replace in returneded URL, that is https://api.polygon.com
the substring BASE that is http://my-local-polygon-proxy
, and it results in incorrect URL.
Instead, this code should just scheme and hostname.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working