question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting Market anonymously raises error

See original GitHub issue

For some reason getting markets anonymously doesn’t work anymore for no particular reason. Is it possible that something in the api response changed? After creating an account and generating and installing an api key the error disappears.

This is the command that failed:

import cryptowatch as cw
candles = cw.markets.get('KRAKEN:BTCEUR', ohlc=True, periods=['1d', '1w'])

The error I receive is this:

  File "manage.py", line 22, in <module>
    main()
  File "manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", line 375, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 323, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 364, in execute
    output = self.handle(*args, **options)
  File "/code/cryptowatcher/management/commands/build_charts.py", line 32, in handle
    candles = cw.markets.get(ticker, ohlc=True, periods=['1d', '1w'])
  File "/usr/local/lib/python3.8/site-packages/cryptowatch/resources/markets.py", line 48, in get
    market_obj = schema.load(market_resp)
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 723, in load
    return self._do_load(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 857, in _do_load
    result = self._deserialize(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 665, in _deserialize
    value = self._call_and_store(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 494, in _call_and_store
    value = getter_func(data)
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 662, in <lambda>
    getter = lambda val: field_obj.deserialize(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/fields.py", line 338, in deserialize
    output = self._deserialize(value, attr, data, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/marshmallow/fields.py", line 593, in _deserialize
    return self._load(value, data, partial=partial)
  File "/usr/local/lib/python3.8/site-packages/marshmallow/fields.py", line 576, in _load
    valid_data = self.schema.load(value, unknown=self.unknown, partial=partial)
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 723, in load
    return self._do_load(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 893, in _do_load
    result = self._invoke_load_processors(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 1091, in _invoke_load_processors
    data = self._invoke_processors(
  File "/usr/local/lib/python3.8/site-packages/marshmallow/schema.py", line 1223, in _invoke_processors
    data = processor(data, many=many, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/cryptowatch/resources/allowance.py", line 13, in make_allowance
    return AllowanceResource(**data)
TypeError: __init__() missing 1 required positional argument: 'remainingPaid'

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
brontosoruscommented, Sep 2, 2020

The issue has been fixed.

  • You will need to upgrade to version 0.0.13 with pip install --upgrade cryptowatch-sdk
  • You can check what version you have installed with python -c 'import cryptowatch; print(cryptowatch.__version__)'
0reactions
jasperoosthoekcommented, Sep 2, 2020

Thank you very much again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Anonymity in Crypto Raises Alarm - The New York Times
Investors give money to pseudonymous developers. Venture capitalists back founders without learning their real names.
Read more >
Report Suspected Securities Fraud or Wrongdoing - SEC.gov
Fraudulent or unregistered offer or sale of securities, including things like · Theft or misappropriation of funds or securities · Manipulation of ...
Read more >
NYC's new salary transparency law is off to a rocky start - CNBC
But a $100,000-plus range could be an error or a display that “what an organization is willing to pay for a job could...
Read more >
How Anonymous Companies Are Used to Launder Money in ...
The trick is to mask where the money comes from: Criminal networks do this by setting up anonymous companies to hide their connection...
Read more >
Staying Anonymous on the Blockchain: Concerns and ...
For many, this raises anonymity and privacy concerns. ... Primarily, these markets deal in Bitcoin, as was the case with the recently seized ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found