Download the PHP package crypto-markets/common without Composer
On this page you can find all versions of the php package crypto-markets/common. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download crypto-markets/common
More information about crypto-markets/common
Files in crypto-markets/common
Package common
Short Description Common components for cryptocurrency exchange markets.
License MIT
Informations about the package common
Common
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.
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:
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:
Method | Description |
---|---|
getName | Get the market name. |
symbols | Get the supported symbols. |
ticker | Get the latest indicators. |
orderBook | Get a list of bids and asks in the order book (depth). |
trades | Get a list of the most recent trades. |
balances | Get the user's balance informations. |
buy | Create a new buy trade. |
sell | Create a new sell trade. |
status | Get the order status. |
cancel | Cancel an order. |
openOrders | Get the user's open orders. |
tradeHistory | Get the user's order histories. |
Testing
You will need an install of Composer before continuing.
First, install the dependencies:
Then run 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.
All versions of common with dependencies
php-http/client-common Version ~1.6
php-http/discovery Version 1.3
php-http/guzzle6-adapter Version ~1.1
php-http/message Version ~1.6