This method provides information via `GET`. The response will return all the information that was posted by the platform. To obtain private information, use the same methods via `POST` as an authorized user using api keys.
-[List of Public Pairs](#list-of-public-pairs) - returns the history of trades for all public pairs - used for tracking to compare prices in the market, control positions for many markets at once.
-[Specific Public Ticker Data](#specific-public-ticker-data) - returns the trading history for a specific selected pair - used to track a specific pair and track its key characteristics.
-[List of Order Book](#list-of-order-book) - Returns all positions for a specific market for all orders of the order book in the selected direction with pagination - used for full monitoring of the order book status, its changes, evaluation of its placed orders and their priority.
...
...
@@ -89,9 +32,6 @@ This method provides information via `GET`. The response will return all the inf
-[Depth List](#depth-list) - returns data on the order book with pagination for a specific pair - used to track the depth of the order book, control placed orders, monitor the market in light mode.
-[List of Graphic Data KLine](#list-of-graphic-data-kline) - returns data on charts - is used to create personal charts, control market trends.
**Public Methods Via `POST`:**
First of all to use `POST` methods check how to made [HTTP Authorization](#http-authorization)
...
...
@@ -105,32 +45,24 @@ Use next methods via `POST` and obtain full information:
-[Depth List](#depth-list)
-[List of Graphic Data KLine](#list-of-graphic-data-kline)
**Private Methods:**
All of this methods can be use only with `POST`. Before using check [HTTP Authorization](#http-authorization)
-[Create new Limit Order](#create-new-limit-order) - used to create a Limit Order with the specified parameters, if successful, returns information about the placed order.
-[Create new Market Order](#create-new-market-order) - is used to create a Market Order with the specified parameters; if successful, it returns information about the placed order.
-[Cancel Order](#cancel-order) - used to close the placed Limit Order with the ID of the placed order, if successful, returns information about the closed order.
-[My Active Orders](#my-active-orders) - used to obtain information on the user's active orders, if successful, it returns a list of active orders.
-[My All Trade Balances](#my-all-trade-balances) - returns the entire list of user balances - used to control all balances.
-[My Specific Trade Balance](#my-specific-trade-balance) - returns the balance for the specified coin - used to control a specific coin, as a faster alternative to the first method.
-[Get My Order Info](#get-my-order-info) - returns information about a specific order of a specific user - used to track the status of an order.
-[My Order History](#my-order-history)- returns the history of orders, it is used to generate reports, control orders and executed orders.
</details>
## HTTP Authorization
### HTTP Authorization
<detailsopen>
<summary></summary>
Follow 5 simple steps to use private methods:
* Before authorization, you need to log in to https://qmall.io/login or register if the user has not yet been created https://qmall.io/register.
...
...
@@ -141,28 +73,28 @@ Follow 5 simple steps to use private methods:
Each package will contain 3 keys:
apiKey - public key
apiSecret - private key
weKey - key for websockets
-***apiKey*** - public key
-***apiSecret*** - private key
**Important!**
-***weKey*** - key for websockets
`nonce` - used as a parameter to protect against DDoS attacks and an excessive number of API requests. This parameter is most often used through a timestamp with a minimum step per second. Each next request must be greater than the next one in the `nonce` parameters.
You need to fill in the header parameters, see examples.
```
Important!
nonce - used as a parameter to protect against DDoS attacks and an excessive number of API requests. This parameter is most often used through a timestamp with a minimum step per second. Each next request must be greater than the next one in the 'nonce' parameters.
```
Let's look at a few examples of authorization in different development languages:
request | STRING | YES | A request path without the domain name
...
...
@@ -1482,7 +1595,7 @@ nonce | STRING | YES | A number that is always greater than the previous request
"market":"ETH_BTC",
"offset":10,
"limit":100,
"nonce":"1636733702330"
"nonce":1636733702330
}
```
...
...
@@ -1505,7 +1618,6 @@ dealStock | STRING | Order Amount in 1st Ticker of Pair
dealMoney | STRING | Order Amount in 2st Ticker of Pair
marketName | STRING | Market of placed order
**Response:**
```javascript
{
...
...
@@ -1540,13 +1652,24 @@ marketName | STRING | Market of placed order
}
```
</details>
</details>
</details>
</details>
# WebSoket Protocol API
---
## WebSoket Protocol API
<detailsopen>
<summary>
The API is based on JSON RPC of Websocket protocol.
Repeated subscription will be cancelled for the same data type.
</summary>
### Detailed information
<detailsopen>
<summary></summary>
**System Methods**
...
...
@@ -1567,48 +1690,43 @@ Repeated subscription will be cancelled for the same data type.
*[Trade Users Balances Methods](#trade-user-balances-methods) - used to get the balances of the user from which the request is made (the change comes after updating the value of any balance)
*[Active Orders and Orders History Methods](#active-orders-and-orders-history-methods) - used to get active orders and their history for a specific user from which the request is made (the change comes after placing, canceling, executing, changing an order)
**Private Methods:**
This method provides information via `POST`. The response will return all the information that was posted by the platform. To obtain private information, use the same methods via `POST` as an authorized user using api keys.
-[List of Public Pairs](#list-of-public-pairs) - returns the history of trades for all public pairs - used for tracking to compare prices in the market, control positions for many markets at once.
-[Specific Public Ticker Data](#specific-public-ticker-data) - returns the trading history for a specific selected pair - used to track a specific pair and track its key characteristics.
-[List of Order Book](#list-of-order-book) - Returns all positions for a specific market for all orders of the order book in the selected direction with pagination - used for full monitoring of the order book status, its changes, evaluation of its placed orders and their priority.
-[Market History Data](#market-history-data) - returns the history of trading on the market - used to track your own or someone else's executed orders, trading dynamics, control over buying / selling.
-[Market History Data](#market-history-data) - returns the history of trading on the market - used to track your own or someone else is executed orders, trading dynamics, control over buying / selling.
-[Public Pair List](#public-pair-list) - returns all public pairs - used to track new pairs, monitor pairs for MM.
-[Depth List](#depth-list) - returns data on the order book with pagination for a specific pair - used to track the depth of the order book, control placed orders, monitor the market in light mode.
-[List of Graphic Data KLine](#list-of-graphic-data-kline) - returns data on charts - is used to create personal charts, control market trends.
</details>
---
## Web-Soket Authorization
### Common methods
<detailsopen>
<summary>
</summary>
<summary></summary>
#### Web-Soket Authorization
<detailsopen>
<summary></summary>
**Request:**
**Method**
```
```java
server.auth
```
**Request Parameters:**
Name | Type | Description |
------------ | ------------ | ------------
Token | STRING | Personal user token ( check [HTTP Authorization](#http-authorization) )
Source | STRING | Defoult: web; Max: 30 bytes; Custom configuration for understendong source of web-soket info