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

upgrade to api version 4 #47

Closed
flynk-zz opened this issue Jan 18, 2021 · 7 comments
Closed

upgrade to api version 4 #47

flynk-zz opened this issue Jan 18, 2021 · 7 comments

Comments

@flynk-zz
Copy link

At the moment the code handels with bitcoin.de api version 2, bitcoin.de upgraded the api version to 4. It would be nice if you could enhance your code in order to deal with version 4.

@tpokorra
Copy link

tpokorra commented Mar 8, 2021

First I want to thank @peshay for this library!

The upgrade to v4 has become more urgent, because the api v2, and api v3 will be disabled on April 5th 2021.
I got this email:

Gleichzeitig möchten wir Sie darüber informieren, dass die Versionen v1, v2 und v3 unserer Trading-API ab dem 5. April nicht mehr unterstützt werden. Ab diesem Datum ist ausschließlich die im Sommer 2019 veröffentlichte Version v4 erreichbar.

The question would be where are the differences between v2 and v3, and v3 and v4?
Unfortunately, I cannot find anything for v2 and v3.

In the current changelog on https://www.bitcoin.de/de/api/tapi/doc#scrollNav-1-9, scroll down to Changelog v4.
"Sämtliche URLs bestehender Methoden sind um Handelspaar bzw. Währung ergänzt worden."
"Einige URLs bestehender Methoden haben neue Pfade erhalten. "

I am currently only using the API for fetching trades (showMyTrades, https://github.com/tpokorra/walletmonitor/blob/main/apps/transactions/importbtcde.py). That still works for me, because I am not using trading_pair which is now part of the url, and not a parameter anymore.

@peshay: would you appreciate help on the upgrade to v4?

@peshay
Copy link
Owner

peshay commented Apr 7, 2021

@tpokorra

would you appreciate help on the upgrade to v4?

of course! :) But I already started to work on it just last sunday. If I find again some time, I will try to finish the remaining new functions and publish a new branch for this. Some live testers would be good just to verify the core functionalities are all fine for an actual release.
Sorry I'm so late for this, but this is just a hobby project and I just came back to it, because I thought I could use it to verify a theory in public orders 😅 .. and I also like to have everything in the project in a correct way rather then just something that works for now. So my development also includes Mocks and tests and documentation updates.

@ajascha
Copy link
Contributor

ajascha commented Apr 8, 2021

I'm happy to chip in. Would be great to use this library for more shenanigans!

@peshay
Copy link
Owner

peshay commented Apr 10, 2021

Here is the new branch: https://github.com/peshay/btcde/tree/4.0
Not yet implemented: New functions for Deposit and Withdrawal, Websocket-API.
Also not reviewed: Difference in functionality for Crypto-to-Crypto trades

@peshay
Copy link
Owner

peshay commented Apr 10, 2021

@ajascha @tpokorra @flynk-zz it would be great if you guys could briefly test the library in the new branch and report new issues in https://github.com/peshay/btcde/projects/6 if you find them. I like to get this thing to work and then make a new release available for it.
Further enhancements and functions from the new API can then be worked in version 4.1 https://github.com/peshay/btcde/projects/5

@ajascha
Copy link
Contributor

ajascha commented Apr 10, 2021

So far it has been working well, I'll be doing a few more tests over the coming days. Tested on Python 3.8. Thanks a lot for the update!

The only thing I saw was that the following error gets thrown:

InsecureRequestWarning: Unverified HTTPS request is being made to host 'api.bitcoin.de'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings

I never had this one before and I'm reading into the matter right now. Maybe these lines could be added to btcde directly?

@peshay
Copy link
Owner

peshay commented Apr 11, 2021

Release for v4 API is now available: https://pypi.org/project/btcde/4.0/

@peshay peshay closed this as completed Apr 11, 2021
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

4 participants