获取钱包支持币种
#简要描述: 获取钱包应用所支持币种
- 请求方式: POST
- 请求接口: https://网关域名/wallet-tradev2/currency/get-config-list
- 请求媒体类型( JSON 数据格式 )Content-Type: application/x-www-form-urlencoded;charset=UTF-8
查询参数
无
返回值
参数 名称 | 类型 | 参数含义 | 参数说明 |
---|---|---|---|
code | int | 请求状态 | 通信状态 成功返回:0,其它表示失败 |
success | boolean | 成功状态 | true 成功 |
message | string | 描述 | |
data | json | 参数 | 参数详见下面说明 |
返回示例
{
"code": 0,
"success": true,
"message": null,
"data": [
{
"currency": "TRX",
"name": "trx",
"display": true,
"description": "trx的币",
"symbol": "t",
"type": "DIGITAL",
"decimalPlace": 6,
"scale": 6,
"logo": {
"gid": "rM44wzYk11lmiYKVzpFzh2KBSBn6h956",
"fileUrl": "https://wallet-dev.com/download/zpFzh2KBSBn6h956",
"previewUrl": "https://wallet-dev.com/preview/zh2KBSBn6h956"
}
},
{
"currency": "USDT",
"name": "泰达币",
"display": true,
"description": "泰达币",
"symbol": "₮",
"type": "DIGITAL",
"decimalPlace": 6,
"scale": 6,
"logo": {
"gid": "BXcLawRPnRk8s482TBjkhYHVBr3plp4b",
"fileUrl": "https://wallet-dev.com/download/BBjkhYHVBr3plp4b",
"previewUrl": "https://wallet-dev.com/preview/TBjkhYHVBr3plp4b"
}
},
{
"currency": "CNY",
"name": "羊角币",
"display": true,
"description": "羊角币",
"symbol": "¥",
"type": "LEGAL",
"decimalPlace": 2,
"scale": 2,
"logo": {
"gid": "BcEskW7fQLtZcfHmSVDSy0tfxNh8MoLI",
"fileUrl": "https://wallet-dev.com/download/SVDSy0tfxNh8MoLI",
"previewUrl": "https://wallet-dev.com/preview/Sy0tfxNh8MoLI"
}
},
{
"currency": "USD",
"name": "美元",
"display": true,
"description": "美元",
"symbol": "$",
"type": "LEGAL",
"decimalPlace": 2,
"scale": 2,
"logo": {
"gid": "EImED35TIOrYYMC5gTHjpgeOO2kjX0xV",
"fileUrl": "https://wallet-dev.com/download/HjpgeOO2kjX0xV",
"previewUrl": "https://wallet-dev.com/preview/THjpgeOO2kX0xV"
}
}
]
}
data参数说明
参数名称 | 类型 | 参数含义 | 备注 |
---|---|---|---|
currency | string | 币种编码 | |
name | string | 币种名称 | |
display | string | 是否默认显示 | true |
description | double | 币种介绍 | |
symbol | string | 币种符号 | |
type | string | 币种类型 | DIGITAL:数字币 | LEGAL:法币 |
decimalPlace | string | 支持小数位 | |
scale | string | 显示精度 | |
logo | string | LOGO信息 | |
└ gid | string | 附件标识ID | |
└ fileUrl | string | 文件访问地址 | |
└ previewUrl | double | 文件预览地址 |