Get multiple orders

流量控制: 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/orders

功能

Get a list of orders satisfying certain criteria.

API 描述


HTTP头

字段 类型 必须 说明 举例
X-API-KEY string ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID 1
market string Trading pair "LRC-ETH"
start integer Lower bound of order's creation timestamp in millisecond
默认值 : 0L
1567053142000
end integer Upper bound of order's creation timestamp in millisecond
默认值 : 0L
1567053242000
side string "BUY" or "SELL"
取值范围 : ['BUY', 'SELL']
"BUY"
status string Order status. You can specify one of the following values:
取值范围 : ['processing', 'processed', 'failed', 'cancelled', 'cancelling', 'expired']
"processing,processed"
limit integer Limit of orders (default 50) 50
offset integer Offset of orders (default 0)
默认值 : 0L
0
orderTypes string request.getOrders.orderTypes
取值范围 : ['LIMIT_ORDER', 'MAKER_ONLY', 'TAKER_ONLY', 'AMM']
"LIMIT_ORDER"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/orders?accountId=1&market=LRC-ETH&start=1567053142000&end=1567053242000&side=BUY&status=processing,processed&limit=50&offset=0&orderTypes=LIMIT_ORDER HTTP/1.1
Host: api3.loopring.io
Connection: keep-alive
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh,en;q=0.9
X-API-KEY: sra1aavfa
curl -H "X-API-KEY:sra1aavfa" https://api3.loopring.io/api/v3/orders\?accountId\=1\&market\=LRC-ETH\&start\=1567053142000\&end\=1567053242000\&side\=BUY\&status\=processing,processed\&limit\=50\&offset\=0\&orderTypes\=LIMIT_ORDER

响应字段

字段 类型 必须 说明 举例
totalNum integer Total number of orders 10
orders List[OrderDetailV3] List of order /

响应示例

{
    "totalNum" : 10,
    "orders" : [
        {
            "hash" : "0xfb5e711c2f044e94322ed262229cd8f0d0da00c22e1a00a0f5d881e45a38e1cf",
            "clientOrderId" : "200310143135081332",
            "side" : "SELL",
            "market" : "LRC-ETH",
            "price" : "0.01987608",
            "volumes" : {
                "baseAmount" : "0",
                "quoteAmount" : "0",
                "baseFilled" : "0",
                "quoteFilled" : "0",
                "fee" : "0"
            },
            "validity" : {
                "start" : 0,
                "end" : 0
            },
            "orderType" : "LIMIT_ORDER",
            "tradeChannel" : "ORDER_BOOK",
            "status" : "processing"
        }
    ]
}

状态码

状态码 描述
100000 Unknown error
107001 User ID cannot be empty
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

模型


OrderDetailV3

Response details of order

字段 类型 必须 说明 举例
hash string Order hash "0xfb5e711c2f044e9432
2ed262229cd8f0d0da00
c22e1a00a0f5d881e45a
38e1cf"
clientOrderId string Order's client-side ID "200310143135081332"
side string Order's side
取值范围 : ['SELL', 'BUY']
"SELL"
market string Trading pair "LRC-ETH"
price string Order price "0.01987608"
volumes OrderVolumesV3 Wraps data regarding the orders volumes (base, quote, and filled.) "0"
validity OrderValidityV3 Wraps data regarding time validity constraints (since and until) "{start: 1234, end: 2345}"
orderType string Whether the order has to be treated as a limit, maker, or taker operation.
取值范围 : ['LIMIT_ORDER', 'TAKER_ONLY', 'MAKER_ONLY']
"LIMIT_ORDER"
tradeChannel string field.SubmitOrderRequestV3.tradeChannel
取值范围 : ['ORDER_BOOK', 'AMM_POOL', 'MIXED']
"ORDER_BOOK"
status string Order status
取值范围 : ['processing', 'processed', 'cancelling', 'cancelled', 'expired', 'waiting']
"processing"

OrderVolumesV3

Wraps data regarding the orders volumes (base, quote, and filled.)

字段 类型 必须 说明 举例
baseAmount string The amount of base tokens involved in the order. "0"
quoteAmount string The amount of quote tokens involved in the order. "0"
baseFilled string The amount of requested base tokens filled in the order. "0"
quoteFilled string The amount of requested quote tokens filled in the order. "0"
fee string The amount of quote or base token amount used to pay for the orders fee. Whether this data refers to the base or quote token, one can find out by looking at the orders side "0"

OrderValidityV3

Wraps data regarding time validity constraints (since and until

字段 类型 必须 说明 举例
start integer Timestamp from when the order officially becomes valid and fillable 0
end integer Timestamp from when the order ceases to be valid and fillable 0

results matching ""

    No results matching ""