Get next order ID

Rate limit: 3 every second

API Overview


HTTP method

GET

Path

/api/v2/orderId

Summary

Get next order ID for the token to sell (tokenS)

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
tokenSId integer Y The ID of the token to be sold 0

Request example

HTTP
CURL
GET https://api.loopring.io/api/v2/orderId?accountId=1&tokenSId=0 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/orderId\?accountId\=1\&tokenSId\=0

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data string N Order ID "108"

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : "108"
}

Status code

Value Description
100000 Unknown error
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

results matching ""

    No results matching ""