code: def borrow(ctx, amount, symbol, ratio, account):
      
      from bitshares.dex import Dex
  
      dex = Dex(bitshares_instance=ctx.bitshares)
      print_tx(
          dex.borrow(Amount(amount, symbol), collateral_ratio=ratio, account=account)
      )
docs: Borrow a bitasset/market-pegged asset