美文网首页区块链研习社互联网科技区块链大学
WhaleEx 鲸交所 API 获取交易对列表 - 区块链数据开

WhaleEx 鲸交所 API 获取交易对列表 - 区块链数据开

作者: 白帽黑客红石 | 来源:发表于2019-06-27 10:52 被阅读0次

    简介:WhaleEx 鲸交所是知名去中心化交易所,主要基于 EOS。WhaleEx 提供了 API 服务以便分析师投资人查询信息。本篇文章整理如何使用 WhaleEx 公共数据 API 获取交易对列表。

    WhaleEx 鲸交所是知名去中心化交易所,主要基于 EOS。WhaleEx 提供了 API 服务以便分析师投资人查询数字货币行情和交易信息。

    本篇文章整理如何使用 WhaleEx 公共数据 API 获取交易对列表。

    WhaleEx 鲸交所 API 官方文档:https://github.com/WhaleEx/API

    本查询不需要使用密钥签名。

    WhaleEx API 可能需要使用科学的上网方式才可访问。

    WhaleEx 鲸交所 API 获取交易对列表:

    语句示例:

    https://api.whaleex.com/BUSINESS/api/public/symbol

    Node.js 示例:

    const fetch = require('node-fetch');
    
    fetch('https://api.whaleex.com/BUSINESS/api/public/symbol', {
        method: 'get',
    }).then(response => response.json()
        .then(data => console.log(data)));
    

    返回的 JSON 示例:

    [{
        "id": 21,
        "name": "WALEOS",
        "baseCurrencyId": 3,
        "baseCurrency": "WAL",
        "basePrecision": 3,
        "quoteCurrencyId": 1,
        "quoteCurrency": "EOS",
        "quotePrecision": 4,
        "enable": true,
        "precision": 8,
        "tickSize": "0.00000001",
        "lotSize": "0.001",
        "minQty": "0.001",
        "maxQty": "9999999999",
        "minNotional": "0.01",
        "kafkaTopic": "common_a",
        "status": "ON",
        "weight": 100.0,
        "weightChange": 0.0,
        "weightVolume": 100.0,
        "partition": "EOS",
        "createdTime": "2018-12-08 04:00:05",
        "updatedTime": "2019-05-04 04:17:03",
        "priceChangePercent": "-0.0114",
        "quoteVolume": "3056.4831",
        "baseVolume": "1001902.954",
        "lastPrice": "0.00304400",
        "baseContract": "whaleextoken",
        "useCommonMakerFee": false,
        "makerFee": "",
        "useCommonTakerFee": false,
        "takerFee": "",
        "high": "0.00308499",
        "low": "0.00301003",
        "duration": 0,
        "percent": false
    }, {
        "id": 74,
        "name": "EOSBTC",
        "baseCurrencyId": 1,
        "baseCurrency": "EOS",
        "basePrecision": 4,
        "quoteCurrencyId": 58,
        "quoteCurrency": "BTC",
        "quotePrecision": 8,
        "enable": true,
        "precision": 8,
        "tickSize": "0.00000001",
        "lotSize": "0.0001",
        "minQty": "0.0001",
        "maxQty": "999999999999",
        "minNotional": "0.00001",
        "kafkaTopic": "IQEOS",
        "status": "ON",
        "weight": 90.0,
        "weightChange": 0.0,
        "weightVolume": 90.0,
        "partition": "BTC",
        "createdTime": "2019-04-09 18:51:26",
        "updatedTime": "2019-05-17 04:50:37",
        "priceChangePercent": "-0.0543",
        "quoteVolume": "1.25265508",
        "baseVolume": "1600.2698",
        "lastPrice": "0.00074807",
        "baseContract": "eosio.token",
        "useCommonMakerFee": false,
        "makerFee": "",
        "useCommonTakerFee": false,
        "takerFee": "",
        "high": "0.00079300",
        "low": "0.00074807",
        "duration": 0,
        "percent": false
    }]
    

    我们有一个区块链知识星球,做区块链前沿资料的归纳整理以方便大家检索查询使用,也是国内顶尖区块链技术社区,欢迎感兴趣的朋友加入。如果你对上面内容有疑问,也可以加入知识星球提问我:

    区块链社群 知识星球

    相关文章

      网友评论

        本文标题:WhaleEx 鲸交所 API 获取交易对列表 - 区块链数据开

        本文链接:https://www.haomeiwen.com/subject/yoavzqtx.html