Query user place order fee rate
Rate limit: every seconds
API Overview
HTTP method
GET
Path
/api/v3/user/orderFee
Summary
Returns the fee rate of users placing orders in specific markets
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 |
market | string | Y | List of markets to be queried separated by "," | "LRC-ETH" |
tokenB | integer | Y | Token ID | 0 |
amountB | string | Y | Amount to buy | "100000000000 00000" |
Request example
HTTP
CURL
GET https://api3.loopring.io/api/v3/user/orderFee?accountId=1&market=LRC-ETH&tokenB=0&amountB=10000000000000000 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/orderFee\?accountId\=1\&market\=LRC-ETH\&tokenB\=0\&amountB\=10000000000000000
Response fields
Field | Type | Required | Description | Example |
---|---|---|---|---|
feeRate | FeeRate | N | User fee rate of the market | "{symbol:LRC- ETH, makerRate:0, takerRate:25 }" |
gasPrice | string | N | The gas price use to calculate fee rate | "10000000000" |
Response example
{
"feeRate" : {
"symbol" : "LRC-USDT",
"makerRate" : 20,
"takerRate" : 20
},
"gasPrice" : "10000000000"
}
Status code
Value | Description |
---|---|
100000 | Unknown error |
Model
FeeRate
The data structure of user query market fee rate
Field | Type | Required | Description | Example |
---|---|---|---|---|
symbol | string | Y | Market | "LRC-USDT" |
makerRate | integer | Y | Maker rate | 20 |
takerRate | integer | Y | Taker rate | 20 |