Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. as5320029
    3. Topics
    A
    • Profile
    • Following 1
    • Followers 0
    • Topics 6
    • Posts 12
    • Best 0
    • Groups 0

    Topics created by as5320029

    • A

      Stoploss is applied to exit the position of placed order. While it is pending then to cancel it
      Python SDK • • as5320029

      3
      0
      Votes
      3
      Posts
      36
      Views

      A

      Sir by the way my api key or password is wrong but by the way i want to ask how to delete the post

    • A

      Error Attempting to resub scribe/reconnect (Attempt 1)...
      General Discussion • • as5320029

      1
      0
      Votes
      1
      Posts
      12
      Views

      No one has replied

    • A

      Order status related
      General Discussion • • as5320029

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • A

      Order status related
      General Discussion • • as5320029

      1
      0
      Votes
      1
      Posts
      8
      Views

      No one has replied

    • A

      Login execute ho chuka hai ya nhi for niche di coding ki mutabik
      General Discussion • • as5320029

      7
      0
      Votes
      7
      Posts
      21
      Views

      A

      @Mnagesh Sir, I wanted your help for a long time

      Below is the coding related - sell part

      Problem - I have that when the order place is pending but not executed then LIVE_FEED_JSON['3045']['ltp'] < 760 (less than 760) then a short sell order appears.

      I want - when the order is placed and then executed, then only sell order request is made to exit the position of the place order. (If the order is only pending but not executed, then the sell order request should not appear)

      Which function will be required to find out the status of an order through order status so that we can take an action after that.

      def monitor_and_place_orders():
      order_1_placed = False
      order_1_id = None

      while True: try: if not order_1_placed and '3045' in LIVE_FEED_JSON and LIVE_FEED_JSON['3045']['ltp'] > 764: trigger_price_1 = LIVE_FEED_JSON['3045']['ltp'] order_price_1 = LIVE_FEED_JSON['3045']['ltp'] order_1_id = place_order_1('3045', '1', trigger_price_1, order_price_1) if order_1_id: print('place_order_1', LIVE_FEED_JSON['3045']['ltp']) order_1_placed = True # Check for condition to place sell order if order_1_placed and '3045' in LIVE_FEED_JSON and LIVE_FEED_JSON['3045']['ltp'] < 760: sell_order_id = place_sell_order('3045', '1', order_1_id) if sell_order_id: print('Sell order placed for order ID:', order_1_id) break # Exit loop after placing sell order
    • A

      Execute Hoya hai ya nhi ka logic for niche di coding ke mutabik
      General Discussion • • as5320029

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied