Get user exchange balances

流量控制: 5 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/user/balances

功能

Returns user's Ether and token balances on exchange.

API 描述


HTTP头

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

请求参数

字段 类型 必须 说明 举例
accountId integer AccountID 1
tokens string Query tokens "0,1"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/balances?accountId=1&tokens=0,1 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/user/balances\?accountId\=1\&tokens\=0,1

响应字段

字段 类型 必须 说明 举例
tokenId integer Token ID 10
total string Amount of the asset "100"
locked string The part of the total balance which is currently not liquid and not at the users disposal (because of pending withdrawals or orders for example) "100"
pending PendingBalance Users pending balances "100"

响应示例

{
    "tokenId" : 10,
    "total" : "100",
    "locked" : "100",
    "pending" : {
        "withdraw" : "10000000000000",
        "deposit" : "10000000000000"
    }
}

状态码

状态码 描述
100000 Unknown error
104001 Empty ApiKey
104002 Invalid ApiKey
104003 Invalid Account ID

模型


PendingBalance

Users pending balances

字段 类型 必须 说明 举例
withdraw string Withdrawal pending balance which means the token is in withdrawal state but not arrived L1 "10000000000000"
deposit string Deposit pending balance which means the token is in deposit state but not arrived L2 "10000000000000"

results matching ""

    No results matching ""