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

NameError: global name 'method' is not defined #10

Closed
AndreasEisele opened this issue Oct 12, 2017 · 3 comments
Closed

NameError: global name 'method' is not defined #10

AndreasEisele opened this issue Oct 12, 2017 · 3 comments

Comments

@AndreasEisele
Copy link

Dear all,

I was very happy to discover this module, which I am quite eager to try out.
Thanks a lot for writing and making it available!

But my first attempt failed. I followed the steps in the README.md up to this point:

>>> orderbook = btcde.showOrderbook(conn, 'buy')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "btcde.py", line 137, in showOrderbook
    return APIConnect(conn, 'GET', params, orderuri)
  File "btcde.py", line 115, in APIConnect
    header = set_header(url)
  File "btcde.py", line 84, in set_header
    if method == 'POST':
NameError: global name 'method' is not defined

Looks manageable, but I thought you might want to know about this.

Best regards from Luxembourg,
Andreas

@peshay
Copy link
Owner

peshay commented Oct 12, 2017

Hi Andreas! You just come up with this at the right time! :)
Because I was working on some testing code and also found issues and made this module also compatible to v2 API by bitcoin.de
But currently I am not able to do tests with bitcoin.de on my own, can you please test my current branch here: https://github.com/peshay/btcde/tree/get_test_coverage
If it works as expected I can release it as a new version.
Thanks
Andreas

@AndreasEisele
Copy link
Author

AndreasEisele commented Oct 12, 2017 via email

@peshay
Copy link
Owner

peshay commented Oct 13, 2017

I just merged my changes and released version 1.4
Mainly because old release was broken anyway. Please open new issues if you find them!
Danke
Andreas

@peshay peshay closed this as completed Oct 13, 2017
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

2 participants