Order Syntax (TradingView, MT4/5 & Python)

Intraday (Equity, F&O & MCX)



URL : - http://tradingmachine.in/webapi.aspx/PlaceAutoOrder
JSON FORMAT (MIS Market Order): {"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,MARKET,INTRADAY,QUANTITY,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"}
************************************************************************************************************************************************************* EXAMPLE : MIS MARKET ORDER Equity :
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,AB012345,0,REGULAR,NSE,SBIN,BUY,MARKET,INTRADAY,1,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} Future :
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,AB012345,0,REGULAR,FNO,SBIN_26-DEP-2019_FUT,BUY,MARKET,INTRADAY,1,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} Option :
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,AB012345,0,REGULAR,FNO,SBIN_26-DEP-2019_190_CE,BUY,MARKET,INTRADAY,1,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} *************************************************************************************************************************************************************
MIS LIMIT ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,LIMIT,INTRADAY,QUANTITY,LIMITPRICE,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} ************************************************************************************************************************************************************* MIS SL-LIMIT ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,STOP_LOSS,INTRADAY,QUANTITY,sl-price,trigger-price,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} ************************************************************************************************************************************************************* MIS SL-MARKET ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,SL_MARKET,INTRADAY,QUANTITY,slm-price,trigger-price,0,0,0,0,DAY,FALSE,0,-1,Group ID,"}
SQUARE OFF : MIS ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"SQUARE_OFF_POSITION,AB0XXXXX,DAY,MIS,NSE,SBIN,"Group ID,}
************************************************************************************************************************************************************* BRACKET ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,AB0XXXXX,0,BO,NSE,SBIN,BUY,LIMIT,INTRADAY,QUANTITY,buy-price,0,target-value,SL-value,0,0,DAY,FALSE,0,-1,Group ID,"} SQUARE OFF : BRACKET ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"SQUARE_OFF_POSITION,AB0XXXXX,DAY,BO,NSE,SBIN,Group ID,"} *************************************************************************************************************************************************************
COVER ORDER
{"Apikey":"7EPW3NTYRTJVI","command":"PLACE_ORDER,AB0XXXXX,825088-102,CO,NSE,SBIN,BUY,LIMIT,INTRADAY,QUANTITY,buy-price,SL-price,0.00000,0.00000,0.00000,0,DAY,false,1602756736,-1,Group ID,"} SQUARE OFF : COVER ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"SQUARE_OFF_POSITION,AB0XXXXX,DAY,CO,NSE,SBIN,Group ID,"}
*************************************************************************************************************************************************************




Delivery (Equity)


URL : - http://tradingmachine.in/webapi.aspx/PlaceAutoOrder JSON FORMAT : {"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,MARKET,DELIVERY,QUANTITY,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"}
************************************************************************************************************************************************************* EXAMPLE : DELIVEY MARKET ORDER Equity :
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,AB012345,0,REGULAR,NSE,SBIN,BUY,MARKET,DELIVERY,1,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} *************************************************************************************************************************************************************
DELIVERY LIMIT ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,LIMIT,DELIVERY,QUANTITY,LIMITPRICE,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} ************************************************************************************************************************************************************* DELIVERY SL-LIMIT ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,STOP_LOSS,DELIVERY,QUANTITY,sl-price,trigger-price,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} ************************************************************************************************************************************************************* DELIVERY SL-MARKET ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SYMBOL,BUY,SL_MARKET,DELIVERY,QUANTITY,slm-price,trigger-price,0,0,0,0,DAY,FALSE,0,-1,Group ID,"}
SQUARE OFF : DELIVERY ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"SQUARE_OFF_POSITION,AB0XXXXX,DAY,DELIVERY,NSE,SBIN,Group ID,"}
*************************************************************************************************************************************************************




Normal (F&O & MCX)


URL : - http://tradingmachine.in/webapi.aspx/PlaceAutoOrder JSON FORMAT : {"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SBIN_26-SEP-2019_FUT,BUY,MARKET,DELIVERY,QUANTITY,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"}
************************************************************************************************************************************************************* EXAMPLE : NORMAL MARKET ORDER Equity :
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,AB012345,0,REGULAR,NSE,SBIN_26-SEP-2019_FUT,BUY,MARKET,NORMAL,1,0,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} *************************************************************************************************************************************************************
NORMAL LIMIT ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SBIN_26-SEP-2019_FUT,BUY,LIMIT,NORMAL,QUANTITY,LIMITPRICE,0,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} ************************************************************************************************************************************************************* NORMAL SL-LIMIT ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SBIN_26-SEP-2019_FUT,BUY,STOP_LOSS,NORMAL,QUANTITY,sl-price,trigger-price,0,0,0,0,DAY,FALSE,0,-1,Group ID,"} ************************************************************************************************************************************************************* NORMAL SL-MARKET ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"PLACE_ORDER,CLIENT-ID,0,REGULAR,EXCHANGE,SBIN_26-SEP-2019_FUT,BUY,SL_MARKET,NORMAL,QUANTITY,slm-price,trigger-price,0,0,0,0,DAY,FALSE,0,-1,Group ID,"}
SQUARE OFF : NORMAL ORDER
{"Apikey":"NOYM5GUM9P4JSFD6","command":"SQUARE_OFF_POSITION,AB0XXXXX,DAY,NRML,NSE,SBIN_26-SEP-2019_FUT,Group ID,"}
*************************************************************************************************************************************************************