> For the complete documentation index, see [llms.txt](https://docs.carbondefi.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.carbondefi.xyz/contracts-and-functions/carboncontroller-functions/read-functions/tradingfeeppm.md).

# tradingFeePPM()

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

```solidity
    function tradingFeePPM() external view returns (uint32);
```

{% endcode %}

This function returns the network default trading fee, represented in PPM (parts per million). However, every pair might have a custom fee setting for it, so it is advised to follow the process outlined in [pairTradingFeePPM()](/contracts-and-functions/carboncontroller-functions/read-functions/pairtradingfeeppm.md) function.

For example a PPM of 2,000 represents a 0.2% trading fee:&#x20;

2,000 / 1,000,000 = 0.002 = 0.2%

{% hint style="danger" %}
To operate with accurate fee values, please use the [pairTradingFeePPM()](/contracts-and-functions/carboncontroller-functions/read-functions/pairtradingfeeppm.md) function.
{% endhint %}
