                 td = @helper.order_to_trade_data(r, market.base_asset, market.quantity_asset, inverted, inverted, inverted)
                 console.log("------ market_order_list ------>", r, td) if r.type == "cover_order"
                 td.status = "posted" if td.status != "cover"
+                if td.type == "short_order"
+                    console.log "HAve a short order here!"
                 orders.push td
             @helper.update_array
                 target: @orders

            for r in results
                #console.log "---- short: ", r
                td = @helper.order_to_trade_data(r, market.base_asset, market.quantity_asset, inverted, inverted, inverted)
                console.log "price"
                console.log td.price
                console.log "median"
                console.log market.median_price

                if inverted and (td.price < market.median_price)
                    console.log "out of range short"
                    continue
                if (not inverted) and (td.price > market.median_price)
                    console.log "out of range short"
                    continue

                td.type = "short"
                if inverted

            td.quantity = td.cost / price
            td.status = "posted"
        else
            console.log "type is"
            console.log td.type
            td.quantity = order.state.balance / ba.precision
            td.cost = td.quantity * price
            td.status = "posted"
