Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. pkrawat1
    3. Best
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 39
    • Best 3
    • Groups 0

    Best posts made by pkrawat1

    • Unable to place market order

      Market order is being rejected due to zero price, but price was sent correctly

      Request

      %{
        exchange: "NSE",
        symbol_token: "15313",
        trading_symbol: "IRB-EQ",
        transaction_type: "BUY",
        variety: "NORMAL",
        quantity: "2",
        product_type: "DELIVERY",
        price: "45.65",
        order_type: "MARKET"
      }
      

      Order status response

      %{
         "updatetime" => "10-Jan-2024 14:41:12",
         "symboltoken" => "17520",
         "filledshares" => "0",
         "lotsize" => "1",
         "producttype" => "DELIVERY",
         "status" => "open",
         "ordertag" => "",
         "quantity" => "1",
         "exchange" => "NSE",
         "uniqueorderid" => "18f1ad44-8419-4bb9-a934-1547d02c0959",
         "trailingstoploss" => 0.0,
         "parentorderid" => "",
         "orderid" => "240110001320140",
         "expirydate" => "",
         "stoploss" => 0.0,
         "duration" => "DAY",
         "exchtime" => "",
         "exchorderupdatetime" => "",
         "variety" => "NORMAL",
         "text" => "",
         "orderstatus" => "",
         "fillid" => "",
         "optiontype" => "",
         "transactiontype" => "BUY",
         "disclosedquantity" => "0",
         "price" => 11.4,
         "unfilledshares" => "1",
         "tradingsymbol" => "RTNPOWER-EQ",
         "averageprice" => 0.0,
         "filltime" => "",
         "instrumenttype" => "",
         "triggerprice" => 0.0,
         "strikeprice" => -1.0,
         "cancelsize" => "0",
         "ordertype" => "MARKET",
         "squareoff" => 0.0
       }}
      
      posted in Test
      P
      pkrawat1
    • RE: Unable to place market order

      @Moderator_1
      a0e2fad4-a9d7-4aee-b927-bf6956c34537-image.png

      posted in Test
      P
      pkrawat1
    • RE: Unable to place market order

      @Moderator_1
      This my own elixir sdk I created which helps calling the api
      https://github.com/pkrawat1/trade_galleon/blob/36d0f9918a27008d563f79d6ff196b83516d29c9/lib/trade_galleon/brokers/angel_one.ex#L107

      posted in Test
      P
      pkrawat1