获取当前币种精确度

简要描述
  • 获取当前币种精确度
请求URL
  • http://49.234.13.106:8801//market/symbol-info
请求方式
  • post
请求参数
参数名 必选 类型 说明
symbol string 币种(BTC/USDT)
返回示例
{
  "symbol": "BTC/USDT",
  "coinSymbol": "BTC",
  "baseSymbol": "USDT",
  "enable": 1,
  "fee": 0.003,
  "sort": 1,
  "coinScale": 8,
  "baseCoinScale": 6,
  "minSellPrice": 0,
  "maxBuyPrice": 0,
  "enableMarketSell": 1,
  "enableMarketBuy": 1,
  "maxTradingTime": 0,
  "maxTradingOrder": 0,
  "robotType": 0,
  "flag": 1,
  "minTurnover": 0,
  "zone": 0,
  "minVolume": 0.001,
  "maxVolume": 0,
  "publishType": "NONE",
  "startTime": "2019-09-08 11:22:19",
  "endTime": "2019-09-08 11:22:19",
  "clearTime": "2019-09-08 11:22:19",
  "publishPrice": null,
  "publishAmount": 0,
  "visible": 1,
  "exchangeable": 1,
  "currentTime": 1637639609309,
  "engineStatus": 0,
  "marketEngineStatus": 0,
  "exEngineStatus": 0,
  "enableSell": 1,
  "enableBuy": 1
}
备注

得到信息,来设置输入小数点位数的限制
“coinScale” //数量
“baseCoinScale” //价格
失败默认为::4