post https://rest-api.hellomoon.io/v0/nft/collection/floorprice/candlesticks
The NFT Collection Floor Price Candlesticks endpoint provides the Floor Prices - open, high, low and close within a trading period (granularity) for a NFT Collection. The Floor Price of the trading period (granularity) is represented as the candlestick (open, high, low and close).
Hello Moon offers ONE_MIN, FIVE_MIN, ONE_HOUR, ONE_DAY, ONE_WEEK granularities to choose from!
What values represent a candlestick?
open, the floor price at which the period opened
high, the highest floor price reached during the period
low, the lowest floor price reached during the period
close, the floor price at which the period closed
volume, the sum of nft sales that occured within the trading period (granularity).
Examples
Get hourly candlesticks for a collection
const axios = require("axios");
const url = "https://rest-api.hellomoon.io/v0/nft/collection/floorprice/candlesticks";
async function getCandlesticks() {
const { data } = await axios.post(
url,
{
"helloMoonCollectionId": "040de757c0d2b75dcee999ddd47689c4",
"granularity": "ONE_HOUR"
},
{
headers: {
Accept: "application/json",
"Content-Type": "application/json",
Authorization: "Bearer <your_token>",
},
}
);
console.log(data);
}