Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Unable to place the stoploss SL-L order

    General Discussion
    0
    6
    44
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      martinkokkadan last edited by

      814d1ac5-23e3-43d9-a78a-ac89d80f6a02-image.png

      $order = $smart_api->PlaceOrder(array('variety' => 'STOPLOSS',
      'tradingsymbol' => NIFTY07JUL2216000PE,
      'symboltoken' => 40958,
      'exchange' => NFO,
      'transactiontype' => 'BUY',
      'ordertype' => 'STOPLOSS_LIMIT',
      'quantity' => '50',
      'producttype' => 'CARRYFORWARD',
      'price' => 2,
      'triggerprice'=> 2.5,
      'squareoff'=>0,
      'stoploss'=>0,
      'duration' => 'DAY'));

      M Mnagesh 2 Replies Last reply Reply Quote 0
      • M
        martinkokkadan @martinkokkadan last edited by

        @admin
        @administrators

        any solution ? I already checked documentation

        D 1 Reply Last reply Reply Quote 0
        • D
          Developer @martinkokkadan last edited by

          @martinkokkadan try using integer for trigger price

          M 1 Reply Last reply Reply Quote 0
          • M
            martinkokkadan @Developer last edited by

            @Developer
            (
            [tradingsymbol] => NIFTY21JUL2216350CE
            [symboltoken] => 79916
            [exchange] => NFO
            [price] => 9
            [triggerprice] => 10
            [squareoff] => 0
            [stoploss] => 0
            [variety] => STOPLOSS
            [transactiontype] => SELL
            [ordertype] => STOPLOSS_LIMIT
            [quantity] => 50
            [producttype] => CARRYFORWARD
            [duration] => DAY
            )

            same as

            F 1 Reply Last reply Reply Quote 0
            • Mnagesh
              Mnagesh @martinkokkadan last edited by

              @martinkokkadan
              symbol and token are string
              price are number

              Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

              1 Reply Last reply Reply Quote 0
              • F
                floydpriaure @martinkokkadan last edited by

                @martinkokkadan flagle You can use integer for trigger price

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post