> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/chinese/jiao-yi/perpetual-trading/perpetual-trading-v2/perpetual-trading-faq/arbitrum/alp-syrup-pool-arbitrum/alp-buying-and-selling-fees.md).

# ALP 买入和卖出费用

## 买入费用：

基础费率参数 1：FeeBasisPoints，USDT 目前设置为 0.25%

基础费率参数 2：TaxBasisPoints，USDT 目前设置为 0.05%

当前资产价值：InitialValue=AssetValueInPool+AssetUnrealizedpnl\_usd

铸造后的当前资产价值：AfterMinValue=InitialValue+MinValue

根据目标权重计算资产价值：TargetValue=(Total Value\_usd+totalUnrealizedpnl\_Usd)\*Target weight，Total Value=sum(InitialValue)

当前资产价值与目标价值（绝对值）：InitialDiff=InitialValue-TargetValue

铸造后，资产价值与目标机制（绝对值）：AfterDiff=AfterMintValue-TargetValue

* 如果 AfterDiff\<InitialDiffValue

MintFee=Max(FeeBasisPoints-TaxBasisPoints\*InitialDiff/TargetValue，0)

* 如果 AfterDiff>=InitialDiff

MintFee=FeeBasisPoints+TaxBasisPoints\*Min((InitialDiff+AfterDiff)/2,TargetValue)/TargetValue

## 卖出费用：

基础费率参数 1：FeeBasisPoints，USDT 目前设置为 0.25%

最大基础费率参数 2：TaxBasisPoints，USDT 目前设置为 0.05%

当前资产价值：InitialValue=AssetValueInPool+AssetUnreliazedpnl\_usd

销毁后的当前资产价值：AfterMaxValue=InitialValue-MinValue

根据目标权重计算资产价值：TargetValue=Total Value\*Target weight

当前资产价值与目标价值（绝对值）：InitialDiff=InitialValue-TargetValue

销毁后，资产价值与目标机制（绝对值）：AfterMaxDiff=AfterBurnValue-TargetValue

* 如果 AfterDiff\<InitialDiffValue

BurnFee=Max(FeeBasisPoints-MTaxBasisPoints\*InitialDiff/TargetValue，0)

* 如果 AfterDiff>=InitialDiff

BurnFee=FeeBasisPoints+TaxBasisPoints\*Min((InitialDiff+AfterDiff)/2,TargetValue)/TargetValue<br>

例如：

如果 ALP 池的价值为 $10,000,000，未实现 PnL 为 $+10,000，流动性池中 BTC 的价值为 $1,000；

BTC 目标权重为 2%，当前权重为 0.01%。BTC 的基础费率参数 1 为 0.25%，基础费率参数 2 为 0.45%。

根据计算，此时用 1 BTC 购买 ALP 的费率为 0% = 0 BTC。出售 ALP 以获得 1 BTC 的交易费用为 0.7% = 0.007BTC。


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.pancakeswap.finance/chinese/jiao-yi/perpetual-trading/perpetual-trading-v2/perpetual-trading-faq/arbitrum/alp-syrup-pool-arbitrum/alp-buying-and-selling-fees.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
