Navigation

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

    prateekjjw001

    @prateekjjw001

    0
    Reputation
    20
    Posts
    19
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    prateekjjw001 Follow

    Best posts made by prateekjjw001

    This user hasn't posted anything yet.

    Latest posts made by prateekjjw001

    • RE: Option sell with stop loss price API

      @nehasrivastava strange it works for me as per expectation

      posted in General Discussion
      P
      prateekjjw001
    • RE: Not able to convert position

      @admin hi any help here please? Pls ignore a typo in above code, I tried below:

      pos=obj.position()['data']
      silver=[p for p in pos if p['symbolname']=='SILVERMIC'][0]
      params={
           "exchange": "MCX",
           "symboltoken": silver['symboltoken'],
           "producttype": "CARRYFORWARD",
           "newproducttype": "INTRADAY",
           "tradingsymbol": silver['tradingsymbol'],
           "symbolname": silver['symbolname'],
           "instrumenttype": silver['instrumenttype'],
           "priceden": "1",
           "pricenum": "1",
           "genden": "1",
           "gennum": "1",
           "precision": "2",
           "multiplier": "-1",
           "boardlotsize": "1",       
           "type": "DAY",
           "cfbuyqty": silver['cfbuyqty'],
           "cfsellqty": silver['cfsellqty'],
           "netqty": silver['netqty']
      }
      x=obj.convertPosition(params)
      print(x)
      

      but it gives same error

      posted in Bugs
      P
      prateekjjw001
    • RE: Option sell with stop loss price API

      @nehasrivastava you can see here
      https://smartapi.angelbroking.com/docs/Orders
      triggerprice The price at which an order should be triggered (SL, SL-M)

      posted in General Discussion
      P
      prateekjjw001
    • RE: Option sell with stop loss price API

      @nehasrivastava you need to give params like below:
      order_type='STOPLOSS_LIMIT'
      variety='STOPLOSS'
      triggerprice=sl trigger price
      price=limit price (or 0.0 for SL-M order)

      I did not give anything for "stoploss" and "squareoff" parameter

      posted in General Discussion
      P
      prateekjjw001
    • Not able to convert position

      I am trying to convert "SILVERMIC" futures from carry forward to Intraday but it is not working.

      pos=obj.position()['data']
      silver=[p for p in pos if p['symbolname']=='SILVERMIC'][0]
      params={
           "exchange": "MCX",
           "symboltoken": silver['symboltoken'],
           "producttype": "CARRYFORWARD",
           "newproducttype": "INTRADAY",
           "tradingsymbol": silver['symbolname'],
           "symbolname": silver['symbolname'],
           "instrumenttype": silver['instrumenttype'],
           "priceden": "1",
           "pricenum": "1",
           "genden": "1",
           "gennum": "1",
           "precision": "2",
           "multiplier": "-1",
           "boardlotsize": "1",       
           "type": "DAY",
           "cfbuyqty": silver['cfbuyqty'],
           "cfsellqty": silver['cfsellqty'],
           "netqty": silver['netqty']
      }
      x=obj.convertPosition(params)
      print(x)
      

      I get below error:
      {'message': 'Internal Error', 'errorcode': 'AB2001', 'status': False, 'data': None}

      What am I missing here?

      posted in Bugs
      P
      prateekjjw001
    • Basket order feature?

      Can you please add a simple basket order feature so that for placing multiple orders at once (like a straddle) we can do it easily? Currently an API call for placing order takes 1s which is too high.

      posted in General Discussion
      P
      prateekjjw001
    • RE: Time delay in placing orders

      @daytrader I have also tested it, making an API call for place order or modify order takes almost 1s which is too much. And they do not even have the basket order feature, so for multiple orders, either we have to do serially or use multi threading. It would be good if this much latency could be reduced.

      posted in General Discussion
      P
      prateekjjw001
    • RE: SSLError : certificate verify failed: unable to get local issuer certificate (

      @daytrader - how to update the cache of certificates locally?
      @admin - can you resolve this issue today itself? I am sure lot of users will be unhappy if they face it on Monday.

      posted in Python SDK
      P
      prateekjjw001
    • RE: Validity of token generated

      thanks @Ashok - do you also know how long is the token valid for? @admin

      posted in General Discussion
      P
      prateekjjw001
    • Validity of token generated

      For how long is the token valid? If I generate it at 9am, then will it be valid till 3.30pm? Or do I need to generate intraday again? Also - the token won't get invalidated if I login on app/website?

      posted in General Discussion
      P
      prateekjjw001