Skip to content

Latest commit

 

History

History
51 lines (22 loc) · 3.81 KB

File metadata and controls

51 lines (22 loc) · 3.81 KB
description
ERC20 get fee of order

GET ERC20 Order Fee

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.

EndPoint

GET api/v3/user/orderUserRateAmount

Header

FieldDescriptionExampleTypeRequired
X-API-KEYApiKey"HlkcGxbqBeaF76j4rvPaOasyfPwnkQ6B6DQ6THZWbvrAGxzEdulXQvOKLrRWZLnN"stringY

Request

FieldDescriptionExampleTypeRequired
accountIdAccount ID10010integerY
marketList of markets to be queried separated by ",""LRC-ETH"stringY

Response

FieldDescriptionExampleTypeRequired
gasPriceThe gas price use to calculate amount"10000000000"stringN
amountsList[Token
Amount]
, Amounts
/List[Token
Amount
]
N
cacheOverdueAtCached price data overdue time1614683483382integerN

Model

TokenAmount

FieldDescriptionExampleTypeRequired
tokenSymbolToken"LRC"stringN
discountFee rate discount1.0numberN
baseOrderInfoOrderInfo, The minimum amount accord with minimum fee rate/Order
Info
N
userOrderInfoOrderInfo, The minimum amount accord with user fee rate/Order
Info
N
tradeCosttrade cost"12474000057750"

OrderInfo

FieldDescriptionExampleTypeRequired
minAmountThe minimum amount of buy"10000000000"stringN
makerRateMaker rate0integerN
takerRateTaker rate30, means 0.3%integerN

OrderAmount

FieldDescriptionExampleTypeRequired
minimumThe minimum amount enforced when submitting orders for the token."100000000000
00000"
stringY
maximumThe maximum amount enforced when submitting orders for the token."100000000000
0000000"
stringY
dustThe dust amount enforced when submitting orders for the token."100000000000
0000"
stringY