Skip to content

Fees

Please read the Fees page for more information about fees calculation.

Fees Calculation

import { calculateFee } from '@prob/clob'
 
const limitOrder = await client.createLimitOrder({...})
const marketOrder = await client.createMarketOrder({...})
 
const feeAmount1 = client.calculateFee(limitOrder)
const feeAmount2 = client.calculateFee(marketOrder, pricePerShare)