Get order details

Rate limit: 5 every second

API Overview


HTTP method

GET

Path

/api/v2/order

Summary

Get the details of an order based on order hash.

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

Request parameters

Field Type Required Description Example
accountId integer Y Account ID 1
orderHash string Y Order hash "13375450901292179417
15497484957179306991
15173547203971250276
33242680470075859"

Request example

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

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data OrderDetail N Response details of order /

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : {
        "hash" : "0xfb5e711c2f044e94322ed262229cd8f0d0da00c22e1a00a0f5d881e45a38e1cf",
        "clientOrderId" : "200310143135081332",
        "size" : "8210000000000001024",
        "volume" : "163182534700000032",
        "price" : "0.01987608",
        "filledSize" : "0",
        "filledVolume" : "0",
        "filledFee" : "0",
        "status" : "processing",
        "validSince" : 1583929591,
        "validUntil" : 1586521591,
        "createdAt" : 1583933191494,
        "side" : "SELL",
        "market" : "LRC-ETH"
    }
}

Status code

Value Description
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

Model


OrderDetail

Response details of order

Field Type Required Description Example
hash string Y Order hash "0xfb5e711c2f044e9432
2ed262229cd8f0d0da00
c22e1a00a0f5d881e45a
38e1cf"
clientOrderId string Y Order's client-side id "200310143135081332"
size string Y Order size, as wei in base token "8210000000000001024"
volume string Y Order volume, as wei in quote token "163182534700000032"
price string Y Order price "0.01987608"
filledSize string Y Filled size, as wei in base token "0"
filledVolume string Y Filled volume, as wei in quote token "0"
filledFee string Y Fees charged "0"
status string Y Order status
Allowable : ['processing', 'processed', 'cancelling', 'cancelled', 'expired', 'waiting']
"processing"
validSince integer Y Timestamp for order to become valid 1583929591
validUntil integer Y Timestamp for order to become invalid 1586521591
createdAt integer Y Order creation timestamp 1583933191494
side string Y Order's side
Allowable : ['SELL', 'BUY']
"SELL"
market string Y Trading pair "LRC-ETH"

results matching ""

    No results matching ""