api.getBusinessFee2.value

流量控制: 5 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/user/offchainFee

功能

api.getBusinessFee2.notes

API 描述


HTTP头

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

请求参数

字段 类型 必须 说明 举例
accountId integer request.getBusinessFee2.accountId 0
requestType integer request.getBusinessFee2.requestType
取值范围 : ['0:ORDER', '1:OFFCHAIN_WITHDRAWAL', '2:UPDATE_ACCOUNT', '3:TRANSFER', '4:FAST_OFFCHAIN_WITHDRAWAL', '5:OPEN_ACCOUNT', '6:AMM_EXIT', '7:DEPOSIT', '8:AMM_JOIN']
1
tokenSymbol string request.getBusinessFee2.tokenSymbol "LRC"
amount string request.getBusinessFee2.amount "10000000000"

请求示例

HTTP
CURL
GET https://api3.loopring.io/api/v3/user/offchainFee?accountId=0&requestType=1&tokenSymbol=LRC&amount=10000000000 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/offchainFee\?accountId\=0\&requestType\=1\&tokenSymbol\=LRC\&amount\=10000000000

响应字段

字段 类型 必须 说明 举例
token string fee token "ETH"
fee string fee amount "2000000000000000"
discount number token discount 1.0

响应示例

{
    "token" : "ETH",
    "fee" : "2000000000000000",
    "discount" : 1.0
}

状态码

状态码 描述
100000 Unknown error

results matching ""

    No results matching ""