Token Candlesticks

The Token Candlesticks endpoint allows you to choose the candlestick period with the provided granularities of ONE_MIN, FIVE_MIN, ONE_HOUR, ONE_DAY, ONE_WEEK.

What values represent a candlestick?

open, the price at which the period opened
high, the highest price reached during the period
low, the lowest price reached during the period
close, the price at which the period closed
volume, the sum of defi swaps that occured within the trading period (granularity).

Examples

Get candlesticks per 5 min for a token

const axios = require("axios");

const url = "https://rest-api.hellomoon.io/v0/token/candlesticks";

async function getCandlesticks() {
    const { data } = await axios.post(
        url,
        {
			"mint": "mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So",
			"granularity": "FIVE_MIN"
		},
        {
            headers: {
                Accept: "application/json",
                "Content-Type": "application/json",
                Authorization: "Bearer <your_token>",
            },
        }
    );

    console.log(data);
}
Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!