Получение списка сделок

POST https://api.exgobit.net/trade/offersList

Параметры

Параметр
Обязателен?
Описание

offerIds

Нет

Массив Id сделок

statuses

Нет

offerTypes

Нет

Массив типов сделки, может быть 0/1 0 - покупка 1 - продажа

Пример кода (cURL)

curl --location 'https://api.exgobit.net/trade/offersList' \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "orderIds": [],
    "offerTypes": [
        0,
        1
    ],
    "statuses": [
        1,
        2,
        5,
        7,
        8,
        9,
        13
    ]
}'

Пример кода (PHP pecl)

$request->setRequestUrl('https://api.exgobit.net/trade/offersList');
$request->setRequestMethod('POST');
$body = new http\Message\Body;
$body->append('{
    "orderIds": [],
    "offerTypes": [
        0,
        1
    ],
    "statuses": [
        1,
        2,
        5,
        7,
        8,
        9,
        13
    ]
}');
$request->setBody($body);
$request->setOptions(array());
$request->setHeaders(array(
  'x-api-key' => 'YOUR_API_KEY',
  'Content-Type' => 'application/json'
));
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();

Пример ответа

{
    "offers": [
        {
            "id": "8a87e7c5-beb6-4d45-8683-fa34188d2169",
            "fiatInfos": {
                "id": "beeef3ca-fa7d-4846-8b76-c25576aa7ecf",
                "TraderCardId": "3d84cf32-cc1e-472b-ba75-ae3573999d85",
                "providerCode": "sber",
                "fiatCode": "RUB",
                "cardNumber": "4276500000000000",
                "cardHolder": "Test test",
                "fiatRate": 92.6225085
            },
            "amountFiat": 1500,
            "amountToken": "16.194768",
            "status": 8,
            "message": "https://pay.exgobit.net/waiting?8a87e7c5-beb6-4d45-8683-fa34188d2169",
            "clientId": "0e3a01eb-2bf9-4e34-9d62-6e3c728707d8",
            "clientName": "",
            "traderId": "b20186d5-cc40-492b-ba5c-49a37cb1747e",
            "traderName": "",
            "type": 0,
            "tokenCode": "USDT",
            "createdAt": 1718982059,
            "updatedAt": 1723656155,
            "humanId": 169,
            "groupOfferCount": 1,
            "groupOfferCountFiltered": 1,
            "groupAmountFiatFiltered": 1500,
            "visitorId": "kEHuMfX9l0qgCO2wYw52",
            "goodReturnLink": "",
            "badReturnLink": "",
            "visitorCardNumber": "",
            "visitorIp": "217.15.56.227",
            "visitorCardHolder": ""
        },
        {
            "id": "b0a9a4ef-3ab4-4f99-8b74-bf8f82d9a2b3",
            "fiatInfos": {
                "id": "5e8fb3db-9901-4353-93ed-be6c0ff3aaf6",
                "TraderCardId": "00000000-0000-0000-0000-000000000000",
                "providerCode": "sber",
                "fiatCode": "RUB",
                "cardNumber": "4276500000000000",
                "cardHolder": "Test test",
                "fiatRate": 91.47048724999999
            },
            "amountFiat": 10000,
            "amountToken": "109.324880",
            "status": 2,
            "message": "Your offer successfully created.",
            "clientId": "0e3a01eb-2bf9-4e34-9d62-6e3c728707d8",
            "clientName": "",
            "traderId": "0441912f-ab3f-45b3-9fde-d680bdeaa099",
            "traderName": "",
            "type": 1,
            "tokenCode": "USDT",
            "createdAt": 1723476987,
            "updatedAt": 1723808363,
            "humanId": 3996,
            "groupOfferCount": 1,
            "groupOfferCountFiltered": 1,
            "groupAmountFiatFiltered": 10000,
            "visitorId": "",
            "goodReturnLink": "",
            "badReturnLink": "",
            "visitorCardNumber": "",
            "visitorIp": "",
            "visitorCardHolder": ""
        },
        {
            "id": "d9a168ac-725c-4800-97b1-26236c6cae56",
            "fiatInfos": {
                "id": "72386dbb-f8c7-43fe-b352-8d510eebed9b",
                "TraderCardId": "00000000-0000-0000-0000-000000000000",
                "providerCode": "sber",
                "fiatCode": "RUB",
                "cardNumber": "4276500000000000",
                "cardHolder": "Test test",
                "fiatRate": 91.47048724999999
            },
            "amountFiat": 34000,
            "amountToken": "371.704590",
            "status": 2,
            "message": "Your offer successfully created.",
            "clientId": "0e3a01eb-2bf9-4e34-9d62-6e3c728707d8",
            "clientName": "",
            "traderId": "1c7b063f-c21f-448e-b680-4da56bb7d3e3",
            "traderName": "",
            "type": 1,
            "tokenCode": "USDT",
            "createdAt": 1714049122,
            "updatedAt": 1714058171,
            "humanId": 18,
            "groupOfferCount": 3,
            "groupOfferCountFiltered": 1,
            "groupAmountFiatFiltered": 34000,
            "visitorId": "",
            "goodReturnLink": "",
            "badReturnLink": "",
            "visitorCardNumber": "",
            "visitorIp": "",
            "visitorCardHolder": ""
        }
    ]
}

Last updated