L
L
Loopring Dev Docs
Search…
⌃K

GET NFT Order Fee

get NFT order fee

EndPoint

GET api/v3/nft/info/orderUserRateAmount
minAmount is the minFee under the basic feeRate of the user, tradeCosts is the cost of L2 trade settlement, also it returns the market order requirements: the min/max order amount. So a valid order should meet these 3 requirements:.
1. order.maxFeeBips >= feeRate.rate and order.amount >= minAmounts.
2. order.amount * order.maxFeeBips > tradeCosts if order.amount < minAmounts.
3. marketOrderInfo.min <= order.amount <= marketOrderInfo.max.
These amounts change according to ETH gas price and are refreshed every 15 mins.
Field
Description
Example
X-API-KEY
ApiKey
"HlkcGxbqBeaF76j4rvPaOasyfPwnkQ6B6DQ6THZWbvrAGxzEdulXQvOKLrRWZLnN"

Request

Field
Description
Example
accountId
Account ID
10010
nftTokenAddress
NFT token address
"0xbbbbca6a901c926f240b89eacb641d8aec 7aeafd"
feeTokenSymbol
Fee token symbol
"ETH"

Response

Field
Description
Example
nftTokenAddress
NFT token address
"0xbbbbca6a901c926f240b89eacb641d8aec7aeafd"
feeRate
fee rate
20
amounts
/
gasPrice
gas price
"10000000000"
cacheOverdueAt
Cached price data overdue time
1632365568

Model

FeeTokenAmount

The result of query NFT market minimum fee tokens amount
Field
Description
Example
feeTokenSymbol
Fee token symbol
"ETH"
minAmount
The minimum quote token amount to place an NFT order
/
tradeCost
The base cost of trade settlement. Can use this tradeCost/buyAmount to calculate taker maxFeeBips
/
marketOrderInfo
OrderAmount, the market info of the NFT market include min/max/dust order amount limitations.
/

OrderAmounts

Contains information about the order amounts that are valid for usage with the token in order-related APIs.
Field
Description
Example
minimum
The minimum amount enforced when submitting orders for the token.
"100000000000 00000"
maximum
The maximum amount enforced when submitting orders for the token.
"100000000000 0000000"
dust
The dust amount enforced when submitting orders for the token.
"100000000000 0000"

Example

Request

GET api/v3/nft/info/orderUserRateAmount

Header

X-API-KEY = bEef7a3Nzk7lgaHm85E0O1JO5ufu0iQ96p3bCmrsZz8TLGG83jTpPDYwcjUC0vlF

Request

https://uat2.loopring.io/api/v3/nft/info/orderUserRateAmount?accountId=11329&nftTokenAddress=0x2e76EBd1c7c0C8e7c2B875b6d505a260C525d25e

Response

{
"nftTokenAddress": "0x2e76EBd1c7c0C8e7c2B875b6d505a260C525d25e",
"feeRate": 30,
"amounts": [{
"feeTokenSymbol": "ETH",
"minAmount": "1014065144396691",
"tradeCost": "8662500040425",
"marketOrderInfo": {
"minimum": "50000000000000",
"maximum": "1000000000000000000000",
"dust": "50000000000000"
}
}, {
"feeTokenSymbol": "LRC",
"minAmount": "151469765665366692550",
"tradeCost": "1293907850446857443",
"marketOrderInfo": {
"minimum": "50000000000000000",
"maximum": "5000000000000000000000000",
"dust": "50000000000000000"
}
}, {
"feeTokenSymbol": "USDT",
"minAmount": "100000000",
"tradeCost": "854236",
"marketOrderInfo": {
"minimum": "50000",
"maximum": "200000000000",
"dust": "50000"
}
}, {
"feeTokenSymbol": "DAI",
"minAmount": "100000000000000000000",
"tradeCost": "854235064511430283",
"marketOrderInfo": {
"minimum": "10000000000000000000",
"maximum": "100000000000000000000000",
"dust": "10000000000000000000"
}
}],
"gasPrice": "1500000007",
"cacheOverdueAt": 1653128401
}