Navigation

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

    bablujat

    @bablujat

    0
    Reputation
    5
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    bablujat Follow

    Best posts made by bablujat

    This user hasn't posted anything yet.

    Latest posts made by bablujat

    • RE: Options buy and sell quatity should be same ?

      @admin Thanks, there was some issue with my code. apologies for inconvenience.

      posted in Bugs
      B
      bablujat
    • RE: stock option quantity field

      Hi @pt4rh3
      did you try to close existing position? when i try i it uses quantity as lots but during sell it use it as shares, so during but i have to use 50 (1 lot = 50 shares) and for sell i have to use 1 for quantity

      posted in Python SDK
      B
      bablujat
    • Options buy and sell quatity should be same ?

      Hi,
      I was buying options and found that during buy we provide quantity of shares (lots * lotsize), but when i sell that option (to close the existing position) and provided same quantity not it considered lots not shares.

      for example i brought a put option with 50 shares (1 lot = 50 shares) I have to specify qty: 50 in api request and it buy a 1 lot = 50 shares
      but when i try to sell that position with qty: 50 in api request now it will create a order to sell 50 lots (it should be 1 lot similar to buy)

      Buy payload

      {
      'exchange': 'NFO', 
      'tradingsymbol': 'MARUTI26DEC2412100CE', 
      'quantity': 50, // this is buying 1 lot (50 shares)
      'transactiontype': 'BUY', 
      'ordertype': 'MARKET', 
      'variety': 'NORMAL', 
      'producttype': 'INTRADAY', 
      'price': '0', 
      'symboltoken': '111106'
      }
      

      Sell payload

      {
      'exchange': 'NFO', 
      'tradingsymbol': 'MARUTI26DEC2412100CE', 
      'quantity': 50,  // this is selling 50 lots (it should be 1 lot = 50 shares)
      'transactiontype': 'SELL', 
      'ordertype': 'MARKET', 
      'variety': 'NORMAL', 
      'producttype': 'INTRADAY', 
      'price': '0', 
      'symboltoken': '111106'
      }
      
      posted in Bugs
      B
      bablujat
    • RE: Error while creating ROBO order

      @Moderator_3 Is there any way to calculate it ? can you explain with an example that would be very helpful for me.

      posted in General Discussion
      B
      bablujat
    • Error while creating ROBO order

      For some stocks i am getting following error, but same is working for some stocks

      :BO: Upticks and downticks should be greater than given percentage: Absolute Price :     25.32 Tick Size :507   Allowed range ->[0-100:      1.00]\t[100-500:      1.00]\t[500-1000:      3.00]\t[>1000:      3.00]\t:
      

      Request Payload

      {
        "variety": "ROBO",
        "ordertype": "LIMIT",
        "producttype": "INTRADAY",
        "duration": "DAY",
        "exchange": "NSE",
        "tradingsymbol": "ASHOKLEY-EQ",
        "symboltoken": "212",
        "transactiontype": "SELL",
        "quantity": "5",
        "price": "233.20",
        "triggerprice": "0",
        "squareoff": "2.00",
        "stoploss": "2.00",
        "ordertag": "ALS",
      }
      
      posted in General Discussion
      B
      bablujat