diff --git a/index.html b/index.html index d25e400..807dd06 100644 --- a/index.html +++ b/index.html @@ -107,6 +107,12 @@ None YYYY-MM-DD + + dates + No + None + YYYY-MM-DD,YYYY-MM-DD,... + sort No diff --git a/index.min.html b/index.min.html index 18f7c9b..93bc4c7 100644 --- a/index.min.html +++ b/index.min.html @@ -1 +1 @@ - RanchiMall Utility APIs

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
    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
    }]
\ No newline at end of file + RanchiMall Utility APIs

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
    }]
\ No newline at end of file