description |
---|
ERC20 get fee of order |
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 a user wants to keep the fee rate, the minimum order is higher, otherwise, the user needs to pay more but can place lower order amounts.
GET api/v3/user/orderUserRateAmount
Field | Description | Example | Type | Required |
---|---|---|---|---|
X-API-KEY | ApiKey | "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ6B6DQ6THZWbvrAGxzEdulXQvOKLrRWZLnN" | string | Y |
Field | Description | Example | Type | Required |
---|---|---|---|---|
accountId | Account ID | 10010 | integer | Y |
market | List of markets to be queried separated by "," | "LRC-ETH" | string | Y |
Field | Description | Example | Type | Required |
---|---|---|---|---|
gasPrice | The gas price use to calculate amount | "10000000000" | string | N |
amounts | List[Token Amount], Amounts | / | List[Token Amount] | N |
cacheOverdueAt | Cached price data overdue time | 1614683483382 | integer | N |
Field | Description | Example | Type | Required |
---|---|---|---|---|
tokenSymbol | Token | "LRC" | string | N |
discount | Fee rate discount | 1.0 | number | N |
baseOrderInfo | OrderInfo, The minimum amount accord with minimum fee rate | / | Order Info | N |
userOrderInfo | OrderInfo, The minimum amount accord with user fee rate | / | Order Info | N |
tradeCost | trade cost | "12474000057750" |
Field | Description | Example | Type | Required |
---|---|---|---|---|
minAmount | The minimum amount of buy | "10000000000" | string | N |
makerRate | Maker rate | 0 | integer | N |
takerRate | Taker rate | 30, means 0.3% | integer | N |
Field | Description | Example | Type | Required |
---|---|---|---|---|
minimum | The minimum amount enforced when submitting orders for the token. | "100000000000 00000" | string | Y |
maximum | The maximum amount enforced when submitting orders for the token. | "100000000000 0000000" | string | Y |
dust | The dust amount enforced when submitting orders for the token. | "100000000000 0000" | string | Y |