> For the complete documentation index, see [llms.txt](https://docs.whattofarm.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whattofarm.io/api.md).

# API

WhatToFarm is your high-performance access to 19+ blockchains including Ethereum, Polygon, BNB Smart Chain, Avalanche, Fantom, Arbitrum, Optimism, Cronos, Heco, Metis, Velas, Moonriver Harmony, Celo, Okexchain, Aurora, Ethpow, KCC, Gnosis.

WTF provides blockchain data for all your needs. With WTF, you can easily level up your product development: our extensive chain support and true and real-time data can help you to quickly build sustainable blockchain tools.

The list of external API services is constantly expanding and can be customized to your needs. Here are the most frequent requests you can use:

* **Best way** - get the best 3 (or less) ways to exchange one token for another one.
* **Dex info** - get DEX information.
* **Actual price -** get an actual token and pool USD price.
* **Ticker-rates** - get native symbols' prices from Binance.
* **DeFi-parameters** - get TVL, Token price, Liquidity, Market Cap, FDV, number of TXNS, number of buy/sells, and volume.
* **Pool-info** - get pool information (Address, Name, DexName, Network Name, CurrencySymbol, PairCount, Liquidity).
* **Pair-stat** - get pair information (list of pairs by specified parameters).
* **Bins** - get all swap bins.
* **Token** - get a token base structure with TVL in hours bins.
* **Tokens** - get the top 30 tokens.
* **Watched wallet** - get watched wallet info and balances.
* **Watched wallet transaction** - get watched wallet txs, deposits, and withdrawals.

To get API access, [contact our team](/official-links.md).

You can see the detailed information about the requests below.

{% hint style="warning" %}
The information on this page may differ in the future.
{% endhint %}

## Get actual price

<mark style="color:blue;">`GET`</mark>&#x20;

## Get ticker rates

<mark style="color:blue;">`GET`</mark>&#x20;

## Get DeFi parameters

<mark style="color:blue;">`GET`</mark>&#x20;

## Get pool info

<mark style="color:blue;">`GET`</mark>&#x20;

## Get DEX info

<mark style="color:blue;">`GET`</mark>&#x20;

## Post pair statistics

<mark style="color:green;">`POST`</mark>&#x20;

## Get bins

<mark style="color:blue;">`GET`</mark>&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.whattofarm.io/api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
