crypto-markets / common
Common components for cryptocurrency exchange markets.
Requires
- php: >=7.0
- php-http/client-common: ~1.6
- php-http/discovery: 1.3
- php-http/guzzle6-adapter: ~1.1
- php-http/message: ~1.6
Requires (Dev)
- crypto-markets/tests: ~1.0
- php-http/mock-client: ~1.0
This package is not auto-updated.
Last update: 2024-12-14 03:16:59 UTC
README
Introduction
We are accepting new adapters.
Documentation
The "Common" package is without a function in its own right. The package keep and manage the common functionality for other market libraries.
Let's pick a random market package to figure out how to use it. I choose the Binance package for this. You are feel free to use what you want.
composer require crypto-markets/binance
All market packages contains the same request and response to maintain consistency. Only the configuration and some parameter values may be different.
Let's start by creating a new instance:
use CryptoMarkets\Exchange; $market = Exchange::create('Binance', [ 'api_key' => 'YOUR-APIKEY', 'secret' => 'YOUR-SECRET', ]);
In the above example, the Binance instance was created by configuring.
Supported Common Methods
In this section, we will explain the supported methods that the market instance:
Testing
You will need an install of Composer before continuing.
First, install the dependencies:
$ composer install
Then run PHPUnit:
$ vendor/bin/phpunit
If the test suite passes on your local machine you should be good to go.
When you make a pull request, the tests will automatically be run again by Travis CI.
We also have StyleCI setup to automatically fix any code style issues.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
If you discover any security related issues, please create a new issue with using the "Bug" label. All security vulnerabilities will be promptly addressed.
License
The MIT License (MIT). Please see License File for more information.