public MFSIP placeMFSIP ( String tradingsymbol , String frequency , int installmentDay , int instalments , int initialAmount , double amount ) throws KiteException , IOException , JSONException { Map < String , Object > params = new HashMap < String , Object > ( ) ; params . put ( "tradingsymbol" , tradingsymbol ) ; params . put ( "frequency" , frequency ) ; params . put ( "instalment_day" , installmentDay ) ; params . put ( "instalments" , instalments ) ; params . put ( "initial_amount" , initialAmount ) ; params . put ( "amount" , amount ) ; MFSIP MFSIP = new MFSIP ( ) ; JSONObject response = new KiteRequestHandler ( proxy ) . postRequest ( routes . get ( "mutualfunds.sips.place" ) , params , apiKey , accessToken ) ; MFSIP . orderId = response . getJSONObject ( "data" ) . getString ( "order_id" ) ; MFSIP . sipId = response . getJSONObject ( "data" ) . getString ( "sip_id" ) ; return MFSIP ; }
Place a mutualfunds sip .