Query current token minimum amount to place order based on users VIP level and max fee bips

流量控制: 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/user/orderUserRateAmount

功能

This API returns 2 minimum amounts, one is based on users fee rate, the other is based on the maximum fee bips which is 0.6%. In other words, if user wants to keep fee rate, the minimum order is higher, otherwise he needs to pay more but can place less amount orders.

API 描述


HTTP头

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

请求参数

字段 类型 必须 说明 举例
accountId integer Account ID, some hash query APIs doesnt need it if in hash query mode, check require flag of each API to see if its a must. 10086
market string Trading pair "LRC-ETH"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/orderUserRateAmount?accountId=10086&market=LRC-ETH 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/orderUserRateAmount\?accountId\=10086\&market\=LRC-ETH

响应字段

字段 类型 必须 说明 举例
gasPrice string The gas price use to calculate amount "10000000000"
amounts List[Token
Amount
]
Amounts /
cacheOverdueAt integer Cached price data overdue time 1614683483382

响应示例

{
  "gasPrice" : "10000000000",
  "amounts" : [
    {
      "tokenSymbol" : "LRC",
      "discount" : 1.0,
      "baseOrderInfo" : {
        "minAmount" : "10000000000",
        "makerRate" : 0,
        "takerRate" : 0
      },
      "userOrderInfo" : {
        "minAmount" : "10000000000",
        "makerRate" : 0,
        "takerRate" : 0
      },
      "marketOrderInfo" : {
        "minimum" : "10000000000000000",
        "maximum" : "1000000000000000000",
        "dust" : "1000000000000000"
      }
    }
  ],
  "cacheOverdueAt" : 1614683483382
}

状态码

状态码 描述
100000 Unknown error

模型


TokenAmount

The result of token amount

字段 类型 必须 说明 举例
tokenSymbol string Token "LRC"
discount number Fee rate discount 1.0
baseOrderInfo Order
Info
The minimum amount accord with minimum fee rate /
userOrderInfo Order
Info
The minimum amount accord with user fee rate /
marketOrderInfo Order
Amounts
V3
The amount requirements for submitting orders. "{min:100000, max:900000, dust:10}"

OrderInfo

The result of token amount

字段 类型 必须 说明 举例
minAmount string The minimum amount "10000000000"
makerRate integer Maker rate 0
takerRate integer Taker rate 0

OrderAmountsV3

Contains information about the order amounts that are valid for usage with the token in order-related APIs.

字段 类型 必须 说明 举例
minimum string The minimum amount enforced when submitting orders for the token. "100000000000
00000"
maximum string The maximum amount enforced when submitting orders for the token. "100000000000
0000000"
dust string The dust amount enforced when submitting orders for the token. "100000000000
0000"

results matching ""

    No results matching ""