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

Withdraw error kraken #49

Open
ultrazeus opened this issue Mar 22, 2021 · 5 comments
Open

Withdraw error kraken #49

ultrazeus opened this issue Mar 22, 2021 · 5 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ultrazeus
Copy link

Running this command on RPI4 results in an error:

docker run --rm -it --env-file=/home/xxx/docker/bitcoin-dca/config/bitcoin-dca.conf jorijn/bitcoin-dca:latest withdraw --all

In KrakenClient.php line 77:
EGeneral:Invalid arguments

@jorijn
Copy link
Owner

jorijn commented Mar 23, 2021

Did you take the minimum withdrawal value into account? For Bitcoin, that's currently: 0.00050 XBT.

@jorijn jorijn added the question Further information is requested label Mar 23, 2021
@ultrazeus
Copy link
Author

Just checked, withdrawing 0.00215 XBT pops up the same error:

In KrakenClient.php line 77:
EGeneral:Invalid arguments

@jorijn
Copy link
Owner

jorijn commented Mar 23, 2021

Hi @ultrazeus

Did you triple-check the withdrawal description configured in the .env file that exactly matches the one added to the Kraken website?

@ultrazeus
Copy link
Author

Great, that was the glitch. I couldn't make up that this was actually required as it states "This option overrides any configured withdrawal address", assuming that the address I added in the .env file was enough.
The withdrawal was successful, but it did generate a php error:

PHP Fatal error: Uncaught TypeError: Argument 2 passed to Jorijn\Bitcoin\Dca\EventListener\XPubAddressUsedListener::__construct() must be an instance of Jorijn\Bitcoin\Dca\Component\AddressFromMasterPublicKeyComponent, instance of Jorijn\Bitcoin\Dca\Component\ExternalAddressFromMasterPublicKeyComponent given, called in /app/var/cache/container.php on line 331 and defined in /app/src/EventListener/XPubAddressUsedListener.php:19 Stack trace: #0 /app/var/cache/container.php(331): Jorijn\Bitcoin\Dca\EventListener\XPubAddressUsedListener->__construct() #1 /app/var/cache/container.php(134): BitcoinDcaContainer->getEventListener_XpubAddressUsedService() #2 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(267): BitcoinDcaContainer->{closure}() #3 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(230): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}() #4 /app/vendor/symfony/event-dispatcher/EventDispatcher.php(59): Symfony\Component\EventDispatcher\EventDispatcher->callList in /app/src/EventListener/XPubAddressUsedListener.php on line 19

@jorijn
Copy link
Owner

jorijn commented Mar 24, 2021

Thanks! Great that it worked out. I'll leave this ticket open to serve as a work item to clarify the documentation and figure out what caused the given error.

@jorijn jorijn added bug Something isn't working documentation Improvements or additions to documentation and removed question Further information is requested labels Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants