It looks like you're new here. If you want to get involved, click one of these buttons!
order_id = kite.order_place(
tradingsymbol=AJANTPHARM,
exchange="NSE",
transaction_type="BUY",
order_type="LIMIT",
quantity=1,
product="MIS",
price=RecomBuyPrice,
squareoff_value=targetPoints,
stoploss_value=StopLossPoints
)
** RecomBuyPrice, targetPoints and StopLossPoints are variables containing actual values.[ { 'average_price': 1642.35,
'cancelled_quantity': 0,
'disclosed_quantity': 0,
'exchange': 'NSE',
'exchange_order_id': '*****00001147927',
'exchange_timestamp': '2017-01-24 10:03:53',
'filled_quantity': 1,
'instrument_token': 2079745,
'market_protection': 0,
'order_id': '*****4000130090',
'order_timestamp': '2017-01-24 10:03:53',
'order_type': 'LIMIT',
'parent_order_id': None,
'pending_quantity': 0,
'placed_by': '******',
'price': 1643.1,
'product': 'MIS',
'quantity': 1,
'status': 'COMPLETE',
'status_message': None,
'tag': None,
'tradingsymbol': 'AJANTPHARM',
'transaction_type': 'BUY',
'trigger_price': 0,
'validity': 'DAY',
'variety': 'regular'},
{ 'average_price': 1683,
'cancelled_quantity': 0,
'disclosed_quantity': 0,
'exchange': 'NSE',
'exchange_order_id': '*****00001197359',
'exchange_timestamp': '2017-01-24 10:06:23',
'filled_quantity': 1,
'instrument_token': 2079745,
'market_protection': 0,
'order_id': '*****4000134223',
'order_timestamp': '2017-01-24 10:06:23',
'order_type': 'MARKET',
'parent_order_id': None,
'pending_quantity': 0,
'placed_by': '*****',
'price': 0,
'product': 'MIS',
'quantity': 1,
'status': 'COMPLETE',
'status_message': None,
'tag': None,
'tradingsymbol': 'AJANTPHARM',
'transaction_type': 'SELL',
'trigger_price': 0,
'validity': 'DAY',
'variety': 'regular'}]
Similarly targetPoints, StopLossPoints are variables containing real numbers rounded off to .05 (tick size)