code: def fees(ctx, currency):
      
      from bitsharesbase.operationids import getOperationNameForId
      from bitshares.market import Market
  
      market = Market("%s:%s" % (currency, "BTS"))
      ticker = market.ticker()
      if "quoteSettlement_price" in ticker:
          price = ticker.get("quoteSettlement_price")
      else:
          price = ticker.get("latest", 0)
      price.invert()
  
      chain = Blockchain(bitshares_instance=ctx.bitshares)
      feesObj = chain.chainParameters().get("current_fees")
      fees = feesObj["parameters"]
  
      t = [["Operation", "Type", "Fee", currency]]
  
      for fee in fees:
          for f in fee[1]:
              t.append(
                  [
                      highlight(getOperationNameForId(fee[0])),
                      detail(f),
                      detail(
                          str(Amount({"amount": fee[1].get(f, 0), "asset_id": "1.3.0"}))
                      ),
                      detail(
                          str(
                              price
                              * Amount({"amount": fee[1].get(f, 0), "asset_id": "1.3.0"})
                          )
                      ),
                  ]
              )
      print_table(t)
docs: List fees