Get orders:

GET /trades

Request parameters:

Parameter Type Description
pair_id integer Pair ID
from_date datetime
ISO 8601
From date
By default is a day ago
to_date datetime
ISO 8601
To date
By default is the current time
per_page integer
min: 10, max: 100
Trades count
By default is 50
page integer Page number

Example response:

[
    {
        "id": 10,
        "side": "buy",
        "price": "0.0001",
        "full_size": "10",
        "fee_size": "0.01",
        "clean_size": "9.99",
        "full_amount": "0.001",
        "fee_amount": "1e-06",
        "clean_amount": "0.000999",
        "created_at": "2024-08-19T21:51:53+00:00",
        "pair": {
            "id": 4,
            "base": {
                "id": 1,
                "name": "ETH",
                "description": "ETH"
            },
            "quote": {
                "id": 7,
                "name": "USDT",
                "description": "USDT"
            },
            "exchange_url": "https:\/\/geniusdigital.org\/exchange\/eth\/usdt"
        }
    },
    {
        "id": 17,
        "side": "buy",
        "price": "0.0001",
        "full_size": "10",
        "fee_size": "0.01",
        "clean_size": "9.99",
        "full_amount": "0.001",
        "fee_amount": "1e-06",
        "clean_amount": "0.000999",
        "created_at": "2024-08-24T10:42:54+00:00",
        "pair": {
            "id": 4,
            "base": {
                "id": 1,
                "name": "ETH",
                "description": "ETH"
            },
            "quote": {
                "id": 7,
                "name": "USDT",
                "description": "USDT"
            },
            "exchange_url": "https:\/\/geniusdigital.org\/exchange\/eth\/usdt"
        }
    },
    {
        "id": 14,
        "side": "buy",
        "price": "0.0001",
        "full_size": "10",
        "fee_size": "0.01",
        "clean_size": "9.99",
        "full_amount": "0.001",
        "fee_amount": "1e-06",
        "clean_amount": "0.000999",
        "created_at": "2024-08-20T12:49:37+00:00",
        "pair": {
            "id": 4,
            "base": {
                "id": 1,
                "name": "ETH",
                "description": "ETH"
            },
            "quote": {
                "id": 7,
                "name": "USDT",
                "description": "USDT"
            },
            "exchange_url": "https:\/\/geniusdigital.org\/exchange\/eth\/usdt"
        }
    }
]

back