Coder Social home page Coder Social logo

bione-docs's Introduction

API Reference

Host

https://bione.cc

1. Market list

HTTP Request

    # Request
    GET /api/v2/markets
    # Response
    {
      "code": 1,
      "data": [
        {
          "market": "bat_usdt",
          "coin_pre": "bat",
          "coin_suf": "usdt",
          "vol": "353.69584800",
          "change": "1.16000000"
        },
        {
          "market": "bcc_usdt",
          "coin_pre": "bcc",
          "coin_suf": "usdt",
          "vol": "12.00000000",
          "change": "-6.89000000"
        }
      ]
    }

Response Details

Field Descirption
market market symbol
coin_pre coin pre
coin_suf coin suf
vol volume
change increase

2. Market depth

HTTP Request

    # Request
    GET /api/v2/depth/market/<coin_pair>
    # Response
    {
      "code": 1,
      "data": {
        "asks": [
          [
            "3982.52000000",
            "0.41599400"
          ],
          [
            "3982.74000000",
            "0.37913500"
          ]
        ],
        "bids": [
          [
            "3967.37000000",
            "0.39190100"
          ],
          [
            "3967.24000000",
            "0.02511000"
          ]
        ],
        "currentPrice": "3967.38000000"
      }
    }

Response Details

Field Descirption
asks depth of sellers
bids depth of buyers
currentPrice latest price

Request Paramters

Name Type Requited Description
coin_pair String Y Coin Pair, e.g. ltc_btc

3. Tickers

HTTP Request

    # Request
    GET /api/v2/tickers
    # Response
    {
      "code": 1,
      "data": [
        {
          "symbol": "bat_usdt",
          "high": "0.14390000",
          "low": "0.13100000",
          "last": "0.13930000",
          "vol": "353.33036100",
          "change": "1.16000000"
        },
        {
          "symbol": "bcc_usdt",
          "high": "622.46000000",
          "low": "622.46000000",
          "last": "622.46000000",
          "vol": "12.00000000",
          "change": "-6.89000000"
        }
      ]
    }

Response Details

Field Description
symbol market symbol
high highest price
low lowest price
last latest price
vol volume
change increase

bione-docs's People

Contributors

jeffhtli avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.