Query current fee amount

Rate limit: every seconds

API Overview


HTTP method

GET

Path

/api/v3/user/offchainFee

Summary

Returns the fee amount

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 0
requestType integer Y Off-chain request type
Allowable : ['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 N The token to withdraw "LRC"
amount string N The amount to withdraw "10000000000"

Request example

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

Response fields

Field Type Required Description Example
token string Y fee token "ETH"
fee string Y fee amount "2000000000000000"
discount number Y token discount 1.0

Response example

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

Status code

Value Description
100000 Unknown error

results matching ""

    No results matching ""