Get order details

流量控制: 5 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/order

功能

Get the details of an order based on order hash.

API 描述


HTTP头

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

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID 1
orderHash string Order hash "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/order?accountId=1&orderHash=13375450901292179417154974849571793069911517354720397125027633242680470075859 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/order\?accountId\=1\&orderHash\=13375450901292179417154974849571793069911517354720397125027633242680470075859

响应字段

字段 类型 必须 说明 举例
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"

响应示例

{
    "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
107002 Order Hash cannot be empty
107003 Order does not exist
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

模型


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