# pairTradingFeePPM()

{% code title="CarbonController.sol" overflow="wrap" lineNumbers="true" %}

```solidity
    function pairTradingFeePPM(Token token0, Token token1) external view returns (uint32);
```

{% endcode %}

This function returns the fee settings for a specific pair, represented in PPM (parts per million). It is recommended to identify the trading fee for the required pair to ensure the fee considerations are correctly represented to the user.

**Function Arguments**

<table><thead><tr><th width="175">Name</th><th width="142.66666666666663">Type</th><th>Description</th></tr></thead><tbody><tr><td>token0</td><td>Token</td><td>The first token address. </td></tr><tr><td>token1</td><td>Token</td><td>The second token address.</td></tr></tbody></table>

{% hint style="info" %}
Querying the network fee for the token0/token1 pair will return the same result as querying the token1/token0 pair.
{% endhint %}

### Returns

Fee percentage in PPM

For example a PPM of 1000 represents a 0.1% trading fee:&#x20;

1000 / 1,000,000 = 0.001 = 0.1%

{% hint style="info" %}
If the pair has a customFee, the response would represent this value. Otherwise, the return would represent the default fee on the system.
{% endhint %}

### Example

<pre><code>pairTradingFeePPM(
 0x514910771AF9Ca656af840dff83E8264EcF986CA, //token0
 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE //token1
)

// Returns:
//   FeePPM; //1000 which represents 0.1%
<strong>// }
</strong></code></pre>


---

# Agent Instructions: 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.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/pairtradingfeeppm.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.
