Get orders:

GET /orders

Request parameters:

Parameter Type Description
pair_id integer Pair ID
status string Order status
created, active, completed, cancelled

Example response:

[
    {
        "id": 71969990,
        "side": "sell",
        "price": "0.40211698",
        "status": "active",
        "full_size": "496.01716749",
        "left_size": "496.01716749",
        "full_amount": "199.45692541",
        "left_amount": "199.45692541",
        "pair": {
            "id": 95,
            "base": {
                "id": 28,
                "name": "MAD",
                "description": "MAD Network is a privacy-first AdTech solution."
            },
            "quote": {
                "id": 2,
                "name": "USD",
                "description": "Dollar"
            },
            "exchange_url": "https:\/\/simex.global\/en\/exchange\/mad\/usd"
        }
    },
    {
        "id": 71969991,
        "side": "sell",
        "price": "0.40269531",
        "status": "active",
        "full_size": "119.85173517",
        "left_size": "119.85173517",
        "full_amount": "48.26373164",
        "left_amount": "48.26373164",
        "pair": {
            "id": 95,
            "base": {
                "id": 28,
                "name": "MAD",
                "description": "MAD Network is a privacy-first AdTech solution."
            },
            "quote": {
                "id": 2,
                "name": "USD",
                "description": "Dollar"
            },
            "exchange_url": "https:\/\/simex.global\/en\/exchange\/mad\/usd"
        }
    },
    {
        "id": 71969995,
        "side": "sell",
        "price": "0.40303786",
        "status": "active",
        "full_size": "220.19275674",
        "left_size": "220.19275674",
        "full_amount": "88.74601746",
        "left_amount": "88.74601746",
        "pair": {
            "id": 95,
            "base": {
                "id": 28,
                "name": "MAD",
                "description": "MAD Network is a privacy-first AdTech solution."
            },
            "quote": {
                "id": 2,
                "name": "USD",
                "description": "Dollar"
            },
            "exchange_url": "https:\/\/simex.global\/en\/exchange\/mad\/usd"
        }
    }
]

Create an order:

POST /orders

Request parameters:

Parameter Type Description
pair_id * integer Pair ID
side * string Order type
buy, sell
size * numeric Order value
price * numeric Order price

Example response:

{
    "id": 2,
    "side": "buy",
    "price": "218600.00000000",
    "status": "completed",
    "full_size": "0.10000000",
    "left_size": "0.00000000",
    "full_amount": "21860.00000000",
    "left_amount": "0.00000000",
    "pair": {
        "id": 2,
        "base": {
            "id": 4,
            "name": "BTC",
            "description": "Bitcoin"
        },
        "quote": {
            "id": 1,
            "name": "RUB",
            "description": "Ruble"
        },
        "exchange_url": "https:\/\/simex.global\/en\/exchange\/btc\/rub"
    }
}

Cancel Order:

DELETE /orders/{id}

Example response:

{
    "id": 1,
    "side": "buy",
    "price": "3770.00000000",
    "status": "cancelled",
    "full_size": "0.04000000",
    "left_size": "0.04000000",
    "full_amount": "150.80000000",
    "left_amount": "150.80000000",
    "pair": {
        "id": 1,
        "base": {
            "id": 4,
            "name": "BTC",
            "description": "Bitcoin"
        },
        "quote": {
            "id": 2,
            "name": "USD",
            "description": "Dollar"
        },
        "exchange_url": "https:\/\/simex.global\/en\/exchange\/btc\/usd"
    }
}

back next