PHPackages                             gate/gateapi-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. gate/gateapi-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

gate/gateapi-php
================

Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.

7.2.46(1mo ago)114↓100%unlicensePHPPHP &gt;=7.1

Since Nov 6Pushed 1mo agoCompare

[ Source](https://github.com/gate/gateapi-php)[ Packagist](https://packagist.org/packages/gate/gateapi-php)[ Docs](https://www.gate.com)[ RSS](/packages/gate-gateapi-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (28)Used By (0)

GateApi
=======

[](#gateapi)

Welcome to Gate API APIv4 provides operations related to spot, margin, and contract trading, including public interfaces for querying market data and authenticated private interfaces for implementing API-based automated trading.

This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v4.106.46
- Package version: 7.2.46
- Build package: org.openapitools.codegen.languages.PhpClientCodegen For more information, please visit

Versioning
----------

[](#versioning)

Trying our best to follow the [semantic versioning](https://semver.org/), while enjoying recent features provided by programming language and libraries, from 4.15.2, one major versioning difference will be introduced:

If extra code rewrite is required when you upgrade the SDK, such as:

- some outdated programming language version support is dropped
- API method signature has breaking changes.

**the MAJOR version will be incremented, but the MINOR and PATCH version are still following REST API's instead of resetting to 0**, so that you can recognize it has some breaking changes, but still getting the idea of from which REST API version the change is introduced.

For example, the previous REST API and SDK version are both 4.14.0. But if we decide to introduce some breaking changes in SDK along with REST API 4.15.2 upgrade, then the version of next SDK release will be 5.15.2(the MAJOR version is incremented to denote breaking changes, but the MINOR and PATCH version are identical to REST API's instead of resetting them to 0)

If MAJOR version is incremented, make sure you read the release note on [Releases](https://github.com/gate/gateapi-php/releases)page

Requirements
------------

[](#requirements)

PHP 7.1 and later

Installation &amp; Usage
------------------------

[](#installation--usage)

### Composer

[](#composer)

To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:

```
{
    "require": {
        "gate/gateapi-php": "@stable"
    }
}
```

Then run `composer install`

### Manual Installation

[](#manual-installation)

Download the files and include `autoload.php`:

```
require_once('/path/to/GateApi/vendor/autoload.php');
```

Getting Started
---------------

[](#getting-started)

Please follow the [installation procedure](#installation--usage) and then run the following:

```
