Get token configurations

流量控制: 每 秒

摘要


HTTP 方法

GET

访问路径

/api/v3/exchange/tokens

功能

Returns the configurations of all supported tokens, including Ether.

API 描述


HTTP头

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

请求参数

请求示例

HTTP
CURL
GET http://aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com/api/v3/exchange/tokens HTTP/1.1
Host: aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com
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" http://aa90cd58e38014a1b864ddc488129b7a-624979106.us-east-2.elb.amazonaws.com/api/v3/exchange/tokens

响应字段

字段 类型 必须 说明 举例
type string Token Type
取值范围 : ['ERC20', 'ETH']
"ERC20"
tokenId integer Token's numeric ID 2
symbol string Token symbol "LRC"
name string Token name "Loopring"
address string Token ERC20 contract address "0x97241525fe425C90eB
e5A41127816dcFA5954b
06"
decimals integer Token decimals 18
precision integer Max decimals that relayer uses for the token, smaller amount will be treated as zero. 6
orderAmounts OrderAmountsV3 The amount requirements for submitting orders. "{min:100000, max:900000, dust:10}"
fastWithdrawLimit string The maximum amount for single fast withdrawal "1000000000000000"
enabled boolean Whether the token is currently enabled for deposits and withdrawals. "true"

响应示例

{
    "type" : "ERC20",
    "tokenId" : 2,
    "symbol" : "LRC",
    "name" : "Loopring",
    "address" : "0x97241525fe425C90eBe5A41127816dcFA5954b06",
    "decimals" : 18,
    "precision" : 6,
    "orderAmounts" : {
        "minimum" : "10000000000000000",
        "maximum" : "1000000000000000000",
        "dust" : "1000000000000000"
    },
    "fastWithdrawLimit" : "1000000000000000",
    "enabled" : true
}

状态码

状态码 描述
100000 Unknown error

模型


OrderAmountsV3

Contains information about the order amounts that are valid for usage with the token in order-related APIs.

字段 类型 必须 说明 举例
minimum string The minimum amount enforced when submitting orders for the token. "10000000000000000"
maximum string The maximum amount enforced when submitting orders for the token. "1000000000000000000"
dust string The dust amount enforced when submitting orders for the token. "1000000000000000"

results matching ""

    No results matching ""