Code Monkey home page Code Monkey logo

rest-v2's Introduction

Rest API Introduction

Welcome to the Gate Rest API! You can use this API to get market data, trade, and manage your account.

Each API call is described in detail in the API2.0 English documentation

The API v2 version is no longer being updated and maintained, and we recommend that you use the latest API v4 version.

API Interface Address

https://data.gateapi.io

* Access via proxy is not recommended for reasons such as high latency and poor stability.

Rate Limit

10r/s

Create API Key

You can create the API Key at here.

API Keys includes the following two parts

Key : API key

Secret : The key used for signature authentication encryption

Write the requested API keys to the application configuration file.

// API settings, add your Key and Secret at here
$key = '';
$secret = '';


*When creating API Keys, you can choose to bind IPs, which can be set by IP whitelist (multiple IPs separated by half comma).
*Note: Using the API Keys above will allow you to perform account information inquiries and trading operations through the program, but not withdrawal operations. Do not disclose the API Keys to others.
*Create new API Keys: Generate new API Keys, the old ones will be invalidated immediately.

Request Format

All API requests are called as GET or POST. Getting market data is requested via GET, with all parameters in path parameters; for transaction and account data is requested via POST, and all parameters are sent in JSON format.

Return Format

All interface returns are in JSON format. The API2.0 document has JSON fields for request status and properties.

Error message

The system returns an error code corresponding to the description

Error Codes	       Details
1	               Invalid request
2	               Invalid version
3	               Invalid request
4	               Forbidden access
5,6	               Invalid sign
7	               Currency is not supported
8,9	               Currency is not supported
10	               Verified failed
11	               Obtaining address failed
12	               Empty params
13	               Internal error, please report to administrator
14	               Invalid user
15	               Cancel order too fast, please wait 1 min and try again
16	               Invalid order id or order is already closed
17	               Invalid orderid
18	               Invalid amount
19	               Not permitted or trade is disabled
20	               Your order size is too small
21	               You don't have enough fund
40	               Too many attempts

rest-v2's People

Contributors

gateio avatar kefengxu avatar datoufeixia avatar 5izena avatar sarafarinya avatar hbasrc avatar revilwang avatar novruzove avatar freeape avatar fangtingliu avatar yurisalesc avatar jens-j avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.