πŸ”¬Velar API

Velar provides public APIs for developers to access various data points across the protocol. These endpoints enable seamless integration of Velar data into third-party applications, providing real-time and historical information on tokens, prices, and supply metrics.

Base URL

<https://api.velar.co>

Available Endpoints

Get All Tokens Data

Retrieve details of all available tokens on the DEX.

GET /tickers

Get Token Details

Retrieve details for a specific token or all tokens on the DEX.

GET /tokens
GET /tokens?symbol={symbol}

Parameters:

  • symbol (optional): Token symbol (e.g., WELSH, ROO, VELAR). Use 'all' to get all tokens.

Get Circulating Supply

Retrieve circulating supply information for VELAR token.

GET /circulating-supply

Get Current Prices

Retrieve current price data for tokens.

GET /prices

Get Price by Contract Address

Retrieve price information for a specific token contract.

GET /prices/:contractAddress

Parameters:

  • contractAddress: The contract address of the token

Get Historical Price Data

Retrieve historical price data for a specific token with customizable time intervals.

GET /prices/historical/:contractAddress?interval={interval}

Parameters:

  • contractAddress: The contract address of the token

  • interval: Time interval for the historical data. Available options:

    • hour: Hourly data points

    • week: Weekly data points

    • month: Monthly data points

    • year: Yearly data points

Integration Example

// Example: Fetching historical price data for a token
const contractAddress = "0x...";
const response = await fetch(`https://api.velar.co/prices/historical/${contractAddress}?interval=week`);
const data = await response.json();

Building with Velar

By leveraging these developer resources, you can build powerful applications and integrations on top of the Velar protocol, enhancing the overall ecosystem and user experience. The API provides comprehensive data access for:

  • Token information and metrics

  • Real-time price feeds

  • Historical price analysis

  • Supply statistics

  • Market data integration

For support or questions about the API, please reach out to our developer community or consult our additional documentation resources.

Last updated