Получить сделки:

GET /trades

Параметры запроса:

Параметр Тип Описание
pair_id integer ID пары
from_date datetime
ISO 8601
Дата с
По умолчанию день назад
to_date datetime
ISO 8601
Дата по
По умолчанию текущее время
per_page integer
мин: 10, макс: 100
Кол-во сделок
По-умолчанию 50
page integer Номер страницы

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

[
    {
        "id": 1,
        "side": "sell",
        "price": "219500.00000000",
        "full_size": "0.00100000",
        "fee_size": "0.00000200",
        "clean_size": "0.00099800",
        "full_amount": "219.50000000",
        "fee_amount": "0.43900000",
        "clean_amount": "219.06100000",
        "created_at": "2017-09-25T19:21:44+00:00",
        "pair": {
            "id": 2,
            "base": {
                "id": 4,
                "name": "BTC",
                "description": "Bitcoin"
            },
            "quote": {
                "id": 1,
                "name": "RUB",
                "description": "Рубль"
            },
            "exchange_url": "https:\/\/simex.global\/ru\/exchange\/btc\/rub"
        }
    },
    {
        "id": 2,
        "side": "sell",
        "price": "219890.00000000",
        "full_size": "0.00200000",
        "fee_size": "0.00000400",
        "clean_size": "0.00199600",
        "full_amount": "439.78000000",
        "fee_amount": "0.87956000",
        "clean_amount": "438.90044000",
        "created_at": "2017-09-25T19:21:56+00:00",
        "pair": {
            "id": 2,
            "base": {
                "id": 4,
                "name": "BTC",
                "description": "Bitcoin"
            },
            "quote": {
                "id": 1,
                "name": "RUB",
                "description": "Рубль"
            },
            "exchange_url": "https:\/\/simex.global\/ru\/exchange\/btc\/rub"
        }
    },
    {
        "id": 3,
        "side": "buy",
        "price": "218650.00000000",
        "full_size": "0.00500000",
        "fee_size": "0.00001000",
        "clean_size": "0.00499000",
        "full_amount": "1093.25000000",
        "fee_amount": "2.18650000",
        "clean_amount": "1091.06350000",
        "created_at": "2017-09-25T19:26:36+00:00",
        "pair": {
            "id": 2,
            "base": {
                "id": 4,
                "name": "BTC",
                "description": "Bitcoin"
            },
            "quote": {
                "id": 1,
                "name": "RUB",
                "description": "Рубль"
            },
            "exchange_url": "https:\/\/simex.global\/ru\/exchange\/btc\/rub"
        }
    }
]

назад