Query user information

Rate limit: 5 every second

API Overview


HTTP method

GET

Path

/api/v2/account

Summary

Returns data associated with the user's exchange account.

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
owner string Y Ethereum address "0x123456"

Request example

HTTP
CURL
GET https://api.loopring.io/api/v2/account?owner=0x123456 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/account\?owner\=0x123456

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data DexAccount Y DexAccount data "0"

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : {
        "accountId" : 10,
        "frozen" : false,
        "publicKeyX" : "123",
        "publicKeyY" : "456",
        "tags" : "vip_1",
        "keyNonce" : 0,
        "accountNonce" : 0
    }
}

Status code

Value Description
100000 Unknown error
101001 The address was not found
101002 User not found

Model


DexAccount

DexAccount data

Field Type Required Description Example
accountId integer Y Account ID 10
frozen boolean Y The frozen state of the account, true stands for frozen, if the account is frozen, the user cant submit order. "false"
publicKeyX string Y The first part of user's public key "123"
publicKeyY string Y The second part of user's public key "456"
tags string N Comma separated list of tags such as VIP levels, etc "vip_1"
keyNonce integer Y Nonce to generate exchange EDDSA private key. 0
accountNonce integer Y Nonce of users exchange account that used in off-chain requests. 0

results matching ""

    No results matching ""