Skip to Content
Indexify
Fees

Fee calculations and bounds

POST
/api/fee.php

Calculate trading fees, retrieve the minimum buy amount, the sell minimums or the minimum platform fee, or get creator fee bounds. No authentication required.

Authorization

ApiKeyAuth
headerX-API-KEY<token>

API key with the ix_ prefix. You can generate an API Key by navigating to Settings -> API Key in the web app. Pass it in the X-API-KEY header on every request.

Query Parameters

action*string

The fee action to perform.

Value in"calculate""min_buy""min_sell""min_platform_fee""creator_fee_bounds"
stack_id?integer

min_buy only. Returns the minimum buy for this stack and, when signed in, this caller, instead of the platform minimum.

Request Body

application/json
  1. body
amount*number

USDC amount to calculate fees for.

stack_id*integer

ID of the stack being traded.

Response Body

Successful response. Shape depends on action.

application/json
  1. response
fee_display?string

Human-readable platform + creator fee string (e.g. "~$1.50 fee").

estimated_blockchain_fees_saved?string

Estimated blockchain fees saved (e.g. "$2.40").

min_buy?number

Minimum buy in USDC the buy endpoint enforces for this caller on this stack. Rises above the platform minimum when the buy would open token accounts. Reported only; a quote below it still prices.

fee_amount?number

Numeric twin of fee_display, in USDC (platform + creator fee).

total_fee_amount?number

Numeric twin of total_fee_display, in USDC (fee_amount plus bridge_fee when a bridge quote succeeded).

total_fee_pct?number

total_fee_amount as a percentage of the requested amount. Covers exactly what total_fee_amount covers, so a failed bridge quote yields a platform-only percentage.

bridge_fee?|

Relay routing fee in USDC for cross-chain (EVM) stacks. Null on Solana stacks and when the quote could not be obtained — never "free".

bridge_fee_display?|

Human-readable bridge fee (e.g. "~$0.12 in bridge fees"). Null when bridge_fee is null.

total_fee_display?|

Platform and bridge fees composed into one line (e.g. "~$0.01 platform fee + ~$0.12 in bridge fees"). Falls back to fee_display when there is no bridge fee.

fee_quote_ttl_seconds?|

How long the bridge quote stays current, in seconds. Null when there is no bridge quote to expire.

chain_gas?|

The signed-in user's gas standing on an EVM stack's chain. Applies to selling only — buying costs no chain gas. Null for anonymous callers, Solana stacks, and failed lookups.

Example Request
curl -X POST 'https://api.indexify.finance/api/fee.php?action=calculate' \  -H 'Content-Type: application/json' \  -d '{  "amount": 0,  "stack_id": 0}'
Example Response
{  "fee_display": "string",  "estimated_blockchain_fees_saved": "string",  "min_buy": 0,  "fee_amount": 0,  "total_fee_amount": 0,  "total_fee_pct": 0,  "bridge_fee": 0,  "bridge_fee_display": "string",  "total_fee_display": "string",  "fee_quote_ttl_seconds": 0,  "chain_gas": {}}