Get token configurations

Rate limit: 5 every second

API Overview


HTTP method

GET

Path

/api/v2/exchange/tokens

Summary

Returns the configurations of all supported tokens, including Ether.

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/tokens 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/tokens

Response fields

Field Type Required Description Example
resultInfo ResultInfo Y Information returned by the API /
data List[TokenInfo] N Token list /

Response example

{
    "resultInfo" : {
        "code" : 0,
        "message" : "SUCCESS"
    },
    "data" : [
        {
            "type" : "ERC20",
            "tokenId" : 2,
            "symbol" : "LRC",
            "name" : "Loopring",
            "address" : "0x97241525fe425C90eBe5A41127816dcFA5954b06",
            "unit" : "LRC",
            "decimals" : 18,
            "precision" : 6,
            "minOrderAmount" : "10000000000000000",
            "maxOrderAmount" : "1000000000000000000",
            "dustOrderAmount" : "1000000000000000",
            "enabled" : true
        }
    ]
}

Status code

Value Description
100000 Unknown error

Model


TokenInfo

Token Detail

Field Type Required Description Example
type string Y Token Type
Allowable : ['ERC20', 'ETH']
"ERC20"
tokenId integer Y Token's numeric id 2
symbol string Y Token symbol "LRC"
name string Y Token name "Loopring"
address string Y Token ERC20 contract address "0x97241525fe425C90eB
e5A41127816dcFA5954b
06"
unit string Y Token unit "LRC"
decimals integer Y Token decimals 18
precision integer Y Max decimals that relayer uses for the token, smaller amount will be treated as zero. 6
minOrderAmount string Y The minimum amount required for submitting orders. "10000000000000000"
maxOrderAmount string Y The maximum amount required for submitting orders. "1000000000000000000"
dustOrderAmount string Y The dust order threshold amount. "1000000000000000"
enabled boolean Y Whether the token is currently enabled for deposits and withdrawals. "true"

results matching ""

    No results matching ""