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

issue simple usage of wallstreet #30

Open
WillianSiquieri opened this issue Aug 26, 2020 · 2 comments
Open

issue simple usage of wallstreet #30

WillianSiquieri opened this issue Aug 26, 2020 · 2 comments

Comments

@WillianSiquieri
Copy link

Hi Im having the following issue just by trying to create a Stock('GOOG'):


JSONDecodeError Traceback (most recent call last)
in ()
----> 1 s = ws.Stock('GOOG')

~\Anaconda3\lib\site-packages\wallstreet\wallstreet.py in init(self, quote, exchange)
45
46 jayson = r.text.replace('\n','')
---> 47 jayson = json.loads(jayson[2:])[0]
48
49 try:

~\Anaconda3\lib\json_init_.py in loads(s, encoding, cls, object_hook, parse_float, parse_int, parse_constant, object_pairs_hook, **kw)
352 parse_int is None and parse_float is None and
353 parse_constant is None and object_pairs_hook is None and not kw):
--> 354 return _default_decoder.decode(s)
355 if cls is None:
356 cls = JSONDecoder

~\Anaconda3\lib\json\decoder.py in decode(self, s, _w)
337
338 """
--> 339 obj, end = self.raw_decode(s, idx=_w(s, 0).end())
340 end = _w(s, end).end()
341 if end != len(s):

~\Anaconda3\lib\json\decoder.py in raw_decode(self, s, idx)
355 obj, end = self.scan_once(s, idx)
356 except StopIteration as err:
--> 357 raise JSONDecodeError("Expecting value", s, err.value) from None
358 return obj, end

JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Can someone help with that ?

Thanks.
Willian

@josiahlund
Copy link

It is not fair to the developer to open an issue up against his project to get help with your own.

I am not able to tell what is wrong with your code since you did not post your code. There are bits and pieces shown in the traceback, but to help, you really should post your code as well.

@skidoo1066
Copy link

The output posted by @WillianSiquieri occurs when trying to run Stock( ) for any symbol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants