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

WIP: Kraken buy multiple assets #1

Closed
wants to merge 35 commits into from
Closed
Show file tree
Hide file tree
Changes from 24 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
79e3e9d
composer update
Jorijn Nov 21, 2020
1484aaf
added kraken settings, removed hardcoded references to EUR to provide…
Jorijn Nov 21, 2020
20a6fe3
added services for buying, withdrawing and checking the balance for k…
Jorijn Nov 23, 2020
d93c213
development with docker-compose
Sebastix Nov 24, 2020
38a59eb
kraken buy asset by choice and test adjustments
Sebastix Nov 24, 2020
98ece82
return float balance by asset
Sebastix Nov 24, 2020
437f6e8
Refactoring things for multi asset withdrawing from Kraken
Sebastix Nov 25, 2020
ee609fc
Refactoring things for multi asset withdrawing from Kraken
Sebastix Nov 25, 2020
6aa3402
remove this unnecessary check
Sebastix Nov 25, 2020
64a6926
sanitize assetToBuy string
Sebastix Nov 25, 2020
b97aa98
fix typo
Sebastix Nov 25, 2020
d21c321
Docker development optimalisaties
Sebastix Nov 25, 2020
6dc99c2
add validateAsset method to BuyServiceInterface.php
Sebastix Nov 25, 2020
da5d07b
update .env.dist instruction for withdrawing from Kraken
Sebastix Nov 25, 2020
0ebe794
readme changes for .env file
Sebastix Nov 25, 2020
a489ba9
uppercase asset withdraw
Sebastix Nov 25, 2020
5cc9496
withdraw fees and some optimalizations
Sebastix Nov 26, 2020
f57b651
get withdraw fee, separate kraken providers and add asset to all prov…
Sebastix Nov 26, 2020
8386b9b
fix withdrawfee
Sebastix Nov 27, 2020
345d857
use docker-compose exec instead of docker exec
Sebastix Nov 28, 2020
eee33b2
Add Kraken exchange to README
Sebastix Nov 28, 2020
5d52b0c
docker target build
Sebastix Nov 28, 2020
e4a8a49
docker compose met target werkt niet, terug naar Dockerfile in docker…
Sebastix Dec 1, 2020
c6e5785
providers with assets + tests
Sebastix Dec 2, 2020
8bba530
composer update
Sebastix Dec 27, 2020
0d5e969
withdraw kraken multiple assets rewriting
Sebastix Dec 27, 2020
117cf37
- back to integers instead of floats
Sebastix Dec 28, 2020
3af4f5d
fix simulate
Sebastix Dec 28, 2020
dd5e7a3
update .env.dist
Sebastix Dec 29, 2020
223c58e
XBT to XXBT fixes
Sebastix Jan 8, 2021
7f98a54
readme update
Sebastix Mar 14, 2021
1abd7fc
remove logo
Sebastix Mar 14, 2021
7257598
kraken only
Sebastix Mar 14, 2021
56c2cab
update readme
Sebastix Mar 14, 2021
a4de2c7
fix tests + update documentation
Sebastix Mar 14, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 23 additions & 0 deletions .env.dist
Expand Up @@ -15,6 +15,12 @@ WITHDRAW_ADDRESS=
# Available options: bl3p, bitvavo
EXCHANGE=bl3p

# This setting is for the base currency you're buying in. Options are:
# BL3P: EUR
# Bitvavo: EUR
# Kraken: USD EUR CAD JPY GBP CHF AUD
BASE_CURRENCY=EUR

##################################################################################
# BL3P exchange settings
##################################################################################
Expand All @@ -36,3 +42,20 @@ BL3P_PRIVATE_KEY=

# This is the private part of your API connection to Bitvavo. It’s an encoded secret granting access to your Bitvavo account.
# BITVAVO_API_SECRET=


##################################################################################
# Kraken exchange settings
##################################################################################

# This is the identifying part of the API key that you created on the Kraken exchange.
# KRAKEN_API_KEY=

# This is the private part of your API connection to Kraken. It’s an encoded secret granting access to your Kraken account.
# KRAKEN_PRIVATE_KEY=

# Configure your withdraw addresses from your Kraken account.
# You must specify the key name of the address instead of a real wallet address.
# WITHDRAW_ADDRESS_XBT=
# WITHDRAW_ADDRESS_ETH=
# WITHDRAW_ADDRESS_ADA=
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -4,3 +4,5 @@ vendor
.vscode
resources/xpub_derive/.idea
resources/xpub_derive/venv
.phpunit.result.cache
.idea/*
9 changes: 9 additions & 0 deletions Dockerfile
Expand Up @@ -66,3 +66,12 @@ RUN chmod +x /usr/local/bin/docker-entrypoint
RUN /app/bin/bitcoin-dca >/dev/null

ENTRYPOINT ["docker-entrypoint"]

##################################################################################################################
# Development Stage
##################################################################################################################
FROM base_image AS development

# Do development things here
COPY --from=vendor /usr/bin/composer /usr/bin/composer
RUN composer install --no-interaction --no-plugins --no-scripts --prefer-dist --no-ansi --ignore-platform-reqs
17 changes: 8 additions & 9 deletions README.md
Expand Up @@ -2,7 +2,7 @@
<img src="/resources/images/logo.png?raw=true">
</p>

# Automated Bitcoin DCA tool for multiple Exchanges
# Automated Crypto DCA tool for multiple exchanges

![Docker Pulls](https://img.shields.io/docker/pulls/jorijn/bitcoin-dca)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Jorijn_bitcoin-dca&metric=alert_status)](https://sonarcloud.io/dashboard?id=Jorijn_bitcoin-dca)
Expand All @@ -13,6 +13,9 @@

_Please be aware this is beta software. Test thoroughly with small amounts of money at first. This software is provided "as is" and comes without warranty. See [LICENSE](LICENSE)._

## This is a fork of Bitcoin DCA tool
Forked from https://github.com/Jorijn/bitcoin-dca

## Requirements
* You need to have an account on a supported exchange;
* You need to have Docker installed: https://docs.docker.com/get-docker/;
Expand All @@ -23,6 +26,7 @@ _Please be aware this is beta software. Test thoroughly with small amounts of mo
|------|------|------|
| BL3P | https://bl3p.eu/ | EUR |
| Bitvavo | https://bitvavo.com/ | EUR |
| Kraken | https://kraken.com/ | EUR |

## About this software
The DCA tool is built with flexibility in mind, allowing you to specify your own schedule of buying and withdrawing. A few examples that are possible:
Expand All @@ -31,18 +35,13 @@ The DCA tool is built with flexibility in mind, allowing you to specify your own
* Buy monthly and withdraw at the same time to reduce exchange risk.
* Buy each week but withdraw only at the end of the month to save on withdrawal fees.

## Documentation
| Format | Location |
|------|------|
| Online | https://bitcoin-dca.readthedocs.io/en/latest/ |
| PDF | https://bitcoin-dca.readthedocs.io/_/downloads/en/latest/pdf/ |
| ZIP | https://bitcoin-dca.readthedocs.io/_/downloads/en/latest/htmlzip/ |
| ePub | https://bitcoin-dca.readthedocs.io/_/downloads/en/latest/epub/ |
## How to use this tool


## Support
You can visit the Bitcoin DCA Support channel on Telegram: https://t.me/bitcoindca

## Contributing
Contributions are highly welcome! Feel free to submit issues and pull requests on https://github.com/jorijn/bitcoin-dca.

Like my work? Buy me a 🍺 by sending some sats to `bc1quqjfmnldh9nfnxpucyvxh9pc63jyp0qdkpmf32`.
Like the work of Jorijn? Buy him a 🍺 by sending some sats to `bc1quqjfmnldh9nfnxpucyvxh9pc63jyp0qdkpmf32`.
4 changes: 2 additions & 2 deletions bin/bitcoin-dca
Expand Up @@ -35,13 +35,13 @@ if (!$containerConfigCache->isFresh()) {
// write the compiled container to file
$dumper = new PhpDumper($containerBuilder);
$containerConfigCache->write(
$dumper->dump(['class' => 'Bl3pDcaContainer']),
$dumper->dump(['class' => 'BitcoinDcaContainer']),
$containerBuilder->getResources()
);
}

require_once $containerCache;
$container = new Bl3pDcaContainer();
$container = new BitcoinDcaContainer();

$application = $container->get('application');
$application->setCommandLoader($container->get('console.command_loader'));
Expand Down