Welcome to the RanchiMall Utility APIs!

Endpoints:

  1. /price-history

    Query parameters:

    Parameter Required Default format | values
    from No None YYYY-MM-DD
    to No None YYYY-MM-DD
    on No None YYYY-MM-DD
    dates No None YYYY-MM-DD,YYYY-MM-DD,...
    sort No desc asc | desc | ascending | descending | 1 | -1
    limit No 100 all | <number>
    asset No btc btc
    currency No All usd | inr

    Example:

    /price-history?from=2020-01-01&to=2020-01-31
  2. /hash

    Type POST
    Body JSON
    Body parameter urls [Array]

    Example:

    fetch('https://utility-api.ranchimall.net/hash',{
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({ urls: [url] })
    }).then(res => res.json()).then(console.log)

    Output:
    [{
      "url": url,
      "hash": hash
    }]