Fee Simulate
Fee Simulate
Description
Pre-calculate the fee and tax for publishing a P2P advertisement. Use this endpoint before creating an ad to confirm the expected fee details.
HTTP Request
- POST /api/v3/p2p/fee-simulate
- Rate limit: 10/sec/UID
- Permission: UTA P2P (read and write)
Request
curl -X POST "https://api.bitget.com/api/v3/p2p/fee-simulate" \
-H "ACCESS-KEY:your apiKey" \
-H "ACCESS-SIGN:*" \
-H "ACCESS-PASSPHRASE:*" \
-H "ACCESS-TIMESTAMP:1659076670000" \
-H "locale:en-US" \
-H "Content-Type: application/json" \
-d '{
"token": "USDT",
"fiat": "CNY",
"side": "sell",
"marketType": "public",
"amount": "100"
}'
Request Parameters
| Parameters | Type | Required | Description |
|---|---|---|---|
| token | String | Yes | Cryptocurrency, e.g. USDT |
| fiat | String | Yes | Fiat currency, e.g. CNY |
| side | String | Yes | Trade direction: buy buy sell sell |
| marketType | String | Yes | Market type: public public private private |
| amount | String | Yes | Ad quantity in cryptocurrency |
Response
{
"code": "00000",
"msg": "success",
"requestTime": 1740000000000,
"data": {
"feeToken": "USDT",
"feeAmount": "0.5",
"taxToken": "USDT",
"taxAmount": "0.1"
}
}
Response Parameters
| Parameters | Type | Description |
|---|---|---|
| feeToken | String | Fee currency |
| feeAmount | String | Fee amount |
| taxToken | String | Tax currency |
| taxAmount | String | Tax amount |