Get active orders:

GET /orders

Request parameters:

Parameter Type Description
pair_id integer Pair ID
per_page integer
min: 10, max: 100
Orders count
By default, is 50
page integer Page number

Example response:

[
    {
        "id": 71986208,
        "side": "sell",
        "price": "0.01295000",
        "status": "active",
        "full_size": "8000.00000000",
        "left_size": "8000.00000000",
        "full_amount": "103.60000000",
        "left_amount": "103.60000000",
        "pair": {
            "id": 129,
            "base": {
                "id": 37,
                "name": "S",
                "description": "Utility token by Sharpay\r\nSharpay is a new share and multi-share button for websites with blockchain-based rewards of content promotion for users."
            },
            "quote": {
                "id": 2,
                "name": "USD",
                "description": "Dollar"
            },
            "exchange_url": "https:\/\/simex.global\/en\/exchange\/s\/usd"
        }
    },
    {
        "id": 71986588,
        "side": "sell",
        "price": "0.06975940",
        "status": "active",
        "full_size": "6526.22447893",
        "left_size": "6526.22447893",
        "full_amount": "455.26550391",
        "left_amount": "455.26550391",
        "pair": {
            "id": 121,
            "base": {
                "id": 35,
                "name": "MLC",
                "description": "The MallCoin token (MLC) has an ERC-20 standard. As part of the project, it is positioned as a means of paying for paid platform services. In addition, users of MLC tokens will be able to make purchases directly to FLOGmall."
            },
            "quote": {
                "id": 2,
                "name": "USD",
                "description": "Dollar"
            },
            "exchange_url": "https:\/\/simex.global\/en\/exchange\/mlc\/usd"
        }
    },
    {
        "id": 71986925,
        "side": "sell",
        "price": "0.01197747",
        "status": "active",
        "full_size": "57500.90708654",
        "left_size": "57500.90708654",
        "full_amount": "688.71538960",
        "left_amount": "688.71538960",
        "pair": {
            "id": 129,
            "base": {
                "id": 37,
                "name": "S",
                "description": "Utility token by Sharpay\r\nSharpay is a new share and multi-share button for websites with blockchain-based rewards of content promotion for users."
            },
            "quote": {
                "id": 2,
                "name": "USD",
                "description": "Dollar"
            },
            "exchange_url": "https:\/\/simex.global\/en\/exchange\/s\/usd"
        }
    }
]

Get an order:

GET /orders/{id}

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"
    }
}

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": 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"
    }
}

back next