def spread(ctx, market, side, min, max, num, total, order_expiration, account):
    """ Place multiple orders

        \b
        :param str market: Market pair quote:base (e.g. USD:BTS)
        :param str side: ``buy`` or ``sell`` quote
        :param float min: minimum price to place order at
        :param float max: maximum price to place order at
        :param int num: Number of orders to place
        :param float total: Total amount of quote to use for all orders
        :param int order_expiration: Number of seconds until the order expires from the books

    """
    from tqdm import tqdm
    from numpy import linspace

    market = Market(market)
    ctx.bitshares.bundle = True

    if min < max:
        space = linspace(min, max, num)
    else:
        space = linspace(max, min, num)

    func = getattr(market, side)
    for p in tqdm(space):
        func(p, total / float(num), account=account, expiration=order_expiration)
    print_tx(ctx.bitshares.txbuffer.broadcast())
def spread ( ctx , market , side , min , max , num , total , order_expiration , account ) : from tqdm import tqdm from numpy import linspace market = Market ( market ) ctx . bitshares . bundle = True if min < max : space = linspace ( min , max , num ) else : space = linspace ( max , min , num ) func = getattr ( market , side ) for p in tqdm ( space ) : func ( p , total / float ( num ) , account = account , expiration = order_expiration ) print_tx ( ctx . bitshares . txbuffer . broadcast ( ) )
Place multiple orders

        \b
        :param str market: Market pair quote:base (e.g. USD:BTS)
        :param str side: ``buy`` or ``sell`` quote
        :param float min: minimum price to place order at
        :param float max: maximum price to place order at
        :param int num: Number of orders to place
        :param float total: Total amount of quote to use for all orders
        :param int order_expiration: Number of seconds until the order expires from the books