Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. bhushan
    3. Topics
    B
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Best 0
    • Groups 0

    Topics created by bhushan

    • B

      Error in login
      NodeJS SDK • • bhushan

      2
      0
      Votes
      2
      Posts
      17
      Views

      A

      @bhushan said in Error in login:

      Hi,
      I am getting the following error while login using JAVA API.
      Cannot invoke "com.angelbroking.smartapi.models.User.getFeedToken()" because "user" is null
      Please help me to resolve.

      Kindly post your req and response of login api.

    • B

      Unable to place stop loss order
      NodeJS SDK • • bhushan

      14
      0
      Votes
      14
      Posts
      106
      Views

      A

      @bhushan said in Unable to place stop loss order:

      Hi,
      I am unable to place stop loss order, can someone please help ? Below is the order parameters I am trying with -
      OrderParams orderParams = new OrderParams();
      orderParams.variety = "STOPLOSS";
      orderParams.quantity = 1;
      orderParams.symboltoken = "3045";
      orderParams.exchange = Constants.EXCHANGE_NSE;
      orderParams.ordertype = Constants.ORDER_TYPE_SL;
      orderParams.stoploss = "362";
      orderParams.tradingsymbol = "SBIN-EQ";
      orderParams.producttype = Constants.PRODUCT_INTRADAY;
      orderParams.duration = Constants.VALIDITY_DAY;
      orderParams.transactiontype = Constants.TRANSACTION_TYPE_BUY;
      orderParams.price = (double) 362;
      orderParams.squareoff = "0";

      Hi @bhushan @theVishal @vvbchandrasekhar this is updated you can check and revert back.