πŸ”¬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, pools, 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 Current Prices

Retrieve current price data for tokens.

Get Price by Contract Address

Retrieve price information for a specific token contract.

Parameters:

  • contractAddress: The contract address of the token

Get Historical Price Data

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

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

Get Pool Data

Retrieve information about liquidity pools on Velar.

Get Pool Data by LP Token Address

Retrieve specific pool information using LP token contract address.

Parameters:

  • lpTokenContractAddress: The contract address of the LP token

Get Pool Data by Token Pair

Retrieve pool information using the addresses of tokens in the pair.

Parameters:

  • poolToken0ContractAddress: The contract address of the first token in the pair

  • poolToken1ContractAddress: The contract address of the second token in the pair

Integration Example

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

  • Pool and liquidity data

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

Last updated

Was this helpful?