Shoonya-Dev / ShoonyaApi-py

145 stars 135 forks source link

How to provide trail_price? #187

Open abhisheksoni27 opened 1 month ago

abhisheksoni27 commented 1 month ago

I keep getting error that order is rejected.

    const reply = await this.api.place_order({
        buy_or_sell: orderType,
        product_type: 'B', // bracket order
        exchange: exchange,
        tradingsymbol: symbol,
        quantity: quantity,
        discloseqty: 0,
        price_type: priceType,
        price: buyPrice,
        remarks,
        bookloss_price: stopLoss,
        bookprofit_price: profitTarget,
        trail_price: trailingStopLoss,
    })