Download the PHP package linwj/exchanges without Composer

On this page you can find all versions of the php package linwj/exchanges. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package exchanges

Introduction

This SDK brings together the APIs of the many exchanges currently trading the most, allowing developers to focus only on the business layer. It is based on Bitmex Okex Huobi Binance and so on, and these underlying APIs are encapsulated again. Its advantages support multiple platforms at the same time, support unified parameter input and output, also support native parameter input, and simple quantitative trading to fully meet your needs. Even if you have special requirements, you can use the method getPlatform() to return the instance and call the underlying API.

中文文档

Other exchanges API

Exchanges It includes all of the following exchanges and is highly recommended.

Bitmex Support Websocket

Okex Support Websocket

Huobi Support Websocket

Binance Support Websocket

Kucoin

Mxc

Coinbase

ZB

Bitfinex

Bittrex

Kraken

Gate

Bigone

Bybit

Bitget

Poloniex

Coinex

If you don't find the exchange SDK you want, you can tell me and I'll join them.

Install

Exchanges initialization

Get Huobi Spot $account_id

Uniform parameter return

All submitted parameters and return as long as the first character for the underlined _ all for custom parameters.

The Buy Sell method has a waiting time of 2 seconds by default. Because the exchange is a matching transaction, the inquiry needs to wait. The default 2-second query can be turned off as:buy($data,false)

Buy and sell query uniform parameter return detail

System error unified parameter return binance okex huobi bitmex kucoin

The SDK currently only supports REST requests, and does not support Websocket for the time being. It will be added later.

Support for more request Settings More

Spot Trader

Market
Limit

Future Trader

Market
Limit

Get Order Details

Get accounts or positions

Support for original parameters

Below is the call to the underlying API to initiate a new order instance

The following is the call to the underlying API to initiate a new order instance. There are two ways to call the underlying API.

Method 1: through $exchanges -> getplatform ()

Method 2: directly instantiate the underlying exchange. The following code is equivalent to mode 1.

More Tests

More API


All versions of exchanges with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
linwj/bitmex Version *
linwj/okex Version *
linwj/huobi Version *
linwj/binance Version *
linwj/kucoin Version *
linwj/coinbase Version *
linwj/mxc Version *
linwj/zb Version *
linwj/bitfinex Version *
linwj/bittrex Version *
linwj/kraken Version *
linwj/gate Version *
linwj/bigone Version *
linwj/bybit Version *
linwj/bitget Version *
linwj/poloniex Version *
linwj/coinex Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package linwj/exchanges contains the following files

Loading the files please wait ....