# Payeer.trade

## Connection setting&#x20;

To work with payeer.trade, find the API tab on the left of the menu, then go to the EXCHANGE tab and click ADD. The page will show the next window in which you have to fill in the title.&#x20;

The secret key ( in the example 9yblcxjEZ4Vi666y) is given by the system, you must copy it to yourself in a safe place.

{% hint style="warning" %}
IMPORTANT! In case of loss it can not be restored, you can only change to a new
{% endhint %}

In the IP address string you will need to enter IP Salebot 134.209.254.246. NOTE! If you want to receive answers to another IP., just add it with the symbol ";". For example, 2.2.2.2;3.3.3

After successfully filling in the data you will have the following window:

Go to the settings and copy the id( value in the d95c634e-b17d-4a75-9aa8-b59fecbdb402 example) that we need.

## Getting Data from Salebot&#x20;

To get the data you need to use the function payeer\_function(api\_id, secret\_key, method, data), where: api\_id = ː d95c634e-b17d-4a75-9aa8-b59fecbdb402' - string, your ID in Payeer system. Required parameter. secret\_key = ː 9yblcxjEZ4Vi666y' - string, your secret key. Required parameter method = ː account' is a string indicating the type of information requested. The following methods are required:

* User’s Balance - ː account'
* Create an Order - \[order\_create'
* Status of the Order - \[order\_status'
* Cancel an Order - \[order\_cancel'
* Cancel Orders - \[orders\_cancel'
* My Orders - \[my\_orders
* My History - á my\_history'
* My Trades - 'my\_trades'&#x20;
* data - a list of data required to execute the method. Optional parameter.&#x20;
* For methods 'account', 'my\_orders', 'my\_history' and 'my\_trades' the data parameter can be omitted.&#x20;
* 'order\_create' - the list should include the following parameters:

**To create a limit order:**&#x20;

pair-para-TRX\_USD type-type order-limit action-action-buy, sell-quantity price-price-0.08&#x20;

**To create a market order**(\*, you can specify one of two parameters for creating a market order (amount or value)): pair-para-TRX\_USD type-type order-market action-action-buy, sell-quantity value-sum

**To create a stop limit order:**

&#x20;pair-para-TRX\_USD type-type order-stop\_limit action-action-buy, sell-quantity price-price-0.08 stop\_price-stop-price-0.078 -'order\_status' - the list should include the following parameters: order\_id-id of order-37054293 -ː order\_cancel' - the list should include the following parameters: order\_id-id of order-37054293 -ː orders\_cancel' - in this case these parameters are optional, without them the query will simply remove all orders pair-list of pairs to cancel orders-TRX\_RUB,DOGE\_RUB-action-buy, sell

The function returns a dictionary of the type: - in case of success: `{"status":"1","result":{"success":true,"balances":{"USD":{"total":0,"available":0,"hold":0},"RUB":{"total":0,"available":0,"hold":0},"EUR":{"total":0,"available":0,"hold":0},"BTC":{"total":0,"available":0,"hold":0},"ETH":{"total":0,"available":0,"hold":0},"BCH":{"total":0,"available":0,"hold":0},"LTC":{"total":0,"available":0,"hold":0},"DASH":{"total":0,"available":0,"hold":0},"USDT":{"total":0,"available":0,"hold":0},"XRP":{"total":0,"available":0,"hold":0},"DOGE":{"total":0,"available":0,"hold":0},"TRX":{"total":0,"available":0,"hold":0}}}}`&#x20;

in the event of an error, for example: `{"status":"0","error":{"code":"INVALID_PARAMETER","parameter":"pair"}}`

#### Example of use&#x20;

Example use Create the block "Display account data". In the calculator we specify the values of the variables we need - method msg = 'account', api id api = '‘d95c634e-b17d-4a75-9aa8-b59fecbdb402' secret key = '9yblcxjEZ4Vi666y' a variable with the function r = payeer\_function(api,key,msg,' ') a variable that outputs the result s = get(r,'result') In the message text we write #{s}, and after running the bot we get a list of account information.

![](/files/zvqqIK4tseTJTyHQERGa)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mavibot.ai/integrations/payment/payeer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
