Welcome to the RanchiMall Utility APIs!
Endpoints:
-
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 |
| 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
-
| 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
}]