Skip to content

Acquire trading pairs' order book

catex edited this page Jun 15, 2023 · 3 revisions

This API is used for get the order book for all trading pairs. for example, if we want to get all pairs' order book or a specific trading pair's order book, We could use this API


Request description: Acquire all trading pairs or a specific trading pair's order book

Request type: GET

Signature required: No

Parameter:

Name Value (Example) Mandatory Descriptioin
market ETH/BTC No The market you want to get order book. If this parameter is not existing, will return all trading paris' order books
limit 20 No The order book level count, Default is 20, max is 100

Request Url: https://www.catex.io/api/order

Or Request Url with parameters: https://www.catex.io/api/order?market=ETH/BTC&limit=50

Response type: JSON Array

Example:

# Request
GET https://www.catex.io/api/order

# Response
{
    "code":0,
    "data":{
        "market":"ETH/USDT",
        "asks":[
            [
                "1746.980000000000",
                "0.104000000000"
            ],
            [
                "1747.110000000000",
                "0.667000000000"
            ],
            [
                "1747.120000000000",
                "0.884000000000"
            ],
            [
                "1747.130000000000",
                "0.342000000000"
            ],
            [
                "1747.140000000000",
                "0.992000000000"
            ]
        ],
        "bids":[
            [
                "1746.970000000000",
                "1.114000000000"
            ],
            [
                "1746.960000000000",
                "1.080000000000"
            ],
            [
                "1746.950000000000",
                "1.182000000000"
            ],
            [
                "1746.940000000000",
                "1.773000000000"
            ],
            [
                "1746.930000000000",
                "0.956000000000"
            ]
        ],
        "timestamp":"2023-06-15 16:05:13"
    }
}