CryptoFramework is a framework intended to easily create bots to manage cryptocurrencies.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
CryptoFramework is a framework intended to easily create bots to manage cryptocurrencies.
To get started you can use as base a framework like laravel or symfony but for this example I will use it in a blank project
This is an example of how to list things you need to use the software and how to install them.
composer init
composer require xbugszone/cryptotools
namespace App\Brokers;
use ccxt\bitstamp; use Xbugszone\Cryptotools\Brokers\CCTXBroker;
class MyBitstamp extends CCTXBroker { protected string $exchange = bitstamp::class; protected string $apiKey = "your api key"; protected string $apiSecret = "your api secret"; }
2. Get the API Key from the selected exchange and update on the file
3. Now to run this app we create a file inside our project but outside of the Brokers folder and we can call it run.php with the following code:
```php
<?php
namespace App\Console\Commands;
use App\Brokers\MyBitstamp;
$broker = new MyBitstamp();
print_r($broker->getBalance());
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE.txt
for more information.
Tiago Andre xbugszone@gmail.com
https://github.com/xbugszone/cryototools