<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def trades(ctx, market, limit, start, stop):
 """ List trades in a market """

    market = Market(market, bitshares_instance=ctx.bitshares)
    t = [["time", "quote", "base", "price"]]
    for trade in market.trades(limit, start=start, stop=stop):
        t.append(
            [
                str(trade["time"]),
                str(trade["quote"]),
                str(trade["base"]),
                "{:f} {}/{}".format(
                    trade["price"],
                    trade["base"]["asset"]["symbol"],
                    trade["quote"]["asset"]["symbol"],
                ),
            ]
        )
    print_table(t)