Get exchange configurations

Rate limit: 5 every second

API Overview


HTTP method

GET

Path

/api/v2/exchange/info

Summary

Return various configurations of Loopring.io

API description


HTTP Header

Field Type Required Description Example
X-API-KEY string Y ApiKey "HlkcGxbqBeaF76j4rvPaOasyfPwnkQ
6B6DQ6THZWbvrAGxzEdulXQvOKLrRW
ZLnN"

Request parameters

None

Request example

HTTP
CURL
GET https://api.loopring.io/api/v2/exchange/info HTTP/1.1
Host: api.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://api.loopring.io/api/v2/exchange/info

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data ExchangeInfo N Necessary exchange to interact with the exchange /

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : {
        "chainId" : 1,
        "exchangeId" : 1,
        "exchangeAddress" : "0xbA1D5779131aa529F51B4B00186E9e97f3BeB854",
        "onchainFees" : [
            {
                "type" : "withdraw",
                "fee" : "2000000000000000"
            }
        ],
        "transferFees" : [
            {
                "token" : "ETH",
                "fee" : "2000000000000000"
            }
        ],
        "withdrawalFees" : [
            {
                "token" : "ETH",
                "fee" : "2000000000000000"
            }
        ]
    }
}

Status code

Value Description
100000 Unknown error

Model


ExchangeInfo

Exchange basic info.

Field Type Required Description Example
chainId integer Y Loopring's smart contract network id. 1
exchangeId integer Y The ID of Loopring.io's smart contract in Loopring protocol's registry. 1
exchangeAddress string Y Contract address of exchange. "0xbA1D5779131aa529F5
1B4B00186E9e97f3BeB8
54"
onchainFees List[FeeInfo] Y Fees settings. /
transferFees List[OffFeeInfo] Y Transfer fee settings. /
withdrawalFees List[OffFeeInfo] Y Off-chain withdrawal fee settings. /

FeeInfo

Information about fees charged by loopring exchange.

Field Type Required Description Example
type string Y Fee category. "withdraw"
fee string Y Fee amount in Ether as wei. "2000000000000000"

OffFeeInfo

Off-chain fee info charged by loopring exchange.

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

results matching ""

    No results matching ""