query EstimateFees(
  $marketId: ID!
  $partyId: ID!
  $price: String
  $size: String!
  $side: Side!
  $timeInForce: OrderTimeInForce!
  $expiration: Timestamp
  $type: OrderType!
) {
  estimateFees(
    marketId: $marketId
    partyId: $partyId
    price: $price
    size: $size
    side: $side
    timeInForce: $timeInForce
    expiration: $expiration
    type: $type
  ) {
    fees {
      makerFee
      infrastructureFee
      liquidityFee
    }
    totalFeeAmount
  }
}
