Get Pair OHLCV

Get OHLCV candlestick data for a DEX trading pair using Moralis.

Tool Name: moralis_get_pair_ohlcv

Category Endpoint: POST /hive_token_contract/mcp

Data Source: Moralis


Overview

This tool is documented under the Token & Contract category.

For schemas and the complete live catalog, also use:

  • GET /api/v1/tools
  • hive://tools
  • get_api_endpoint_schema from the root MCP endpoint

Quick Example

bash
curl -X POST https://mcp.hiveintelligence.xyz/api/v1/execute \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_HIVE_API_KEY" \
  -d '{
  "tool": "moralis_get_pair_ohlcv",
  "args": {
    "pair_address": "0xB4e16d0168e52d35CaCD2c6185b44281Ec28C9Dc",
    "timeframe": "1h",
    "fromDate": "2024-04-01",
    "toDate": "2024-04-02"
  }
}'

Required fields in the current live schema: pair_address, timeframe, fromDate, toDate. Use schema-valid IDs, symbols, addresses, timestamps, ranges, or market identifiers for those fields; example values are illustrative, not defaults.