Navigation

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

    techtrader86

    @techtrader86

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

    techtrader86 Follow

    Best posts made by techtrader86

    This user hasn't posted anything yet.

    Latest posts made by techtrader86

    • RE: getRMS() always gives wrong fund balance

      @firosh bro can you share your project for C#, I want to start learning but not sure from where to start.

      posted in C#/.Net SDK
      T
      techtrader86
    • RE: Code for placing the order using request module

      @techtrader86 said in Code for placing the order using request module:

      Hi All,

      Can someone share the code for placing the order using request module as i'm getting below error "print exception Expecting value: line 1 column 1 (char 0)". Find my code below.

      try:
      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol":"SBIN-EQ",
      "symboltoken": "3045",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": "10",
      "squareoff": "0",
      "stoploss": "10",
      "quantity": 1
      }
      # #print(ConnObj.placeOrder(orderparams))
      # orderId=ConnObj.placeOrder(orderparams)
      # print("The order id is: {}".format(orderId))
      HEADERS = {
      'Authorization': tokenAgle,
      'Content-Type': 'application/json',
      'Accept': 'application/json',
      'X-UserType': 'USER',
      'X-SourceID': 'WEB',
      'X-ClientLocalIP': '127.0.0.1',
      'X-ClientPublicIP': '106.193.147.98',
      'X-MACAddress': '00-15-5D-7D-9C-C3',
      'X-PrivateKey': ANGL_API_KEY
      }
      r = requests.post(ORDERS_URL, data=orderparams, headers=HEADERS)
      #print("The order id is: {}".format(orderId))
      print(r)
      response = json.loads(r.content)
      print(response)
      except Exception as e:
      print("print exception ", e)

      posted in Python SDK
      T
      techtrader86
    • Code for placing the order using request module

      Hi All,

      Can someone share the code for placing the order using request module as i'm getting below error "print exception Expecting value: line 1 column 1 (char 0)". Find my code below.

      try:
      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol":"SBIN-EQ",
      "symboltoken": "3045",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": "10",
      "squareoff": "0",
      "stoploss": "10",
      "quantity": 1
      }

          # #print(ConnObj.placeOrder(orderparams))
          # orderId=ConnObj.placeOrder(orderparams)
          # print("The order id is: {}".format(orderId))
      
          HEADERS = {
              'Authorization': tokenAgle,
              'Content-Type': 'application/json',
              'Accept': 'application/json',
              'X-UserType': 'USER',
              'X-SourceID': 'WEB',
              'X-ClientLocalIP': '127.0.0.1',
              'X-ClientPublicIP': '106.193.147.98',
              'X-MACAddress': '00-15-5D-7D-9C-C3',
              'X-PrivateKey': ANGL_API_KEY
          }
      
          r = requests.post(ORDERS_URL, data=orderparams, headers=HEADERS)
          #print("The order id is: {}".format(orderId))
          print(r)
          response = json.loads(r.content)
          print(response)
      
      except Exception as e:
          print("print exception ", e)
      
      posted in Python SDK
      T
      techtrader86
    • RE: Migrate to API

      @admin What is this error all about as i searched the forum they are saying after migration it was resolved.

      posted in General Discussion
      T
      techtrader86
    • Migrate to API

      Hi Team, Please migrate my id G55067 to new system. As of now , I'm getting below error "print exception Expecting value: line 1 column 1 (char 0)"

      posted in General Discussion
      T
      techtrader86
    • RE: "YOUR USER ID OR PASSWORD IS INVALID","errorcode":"AB1007"

      Please migrate G55067 to new system as i'm getting errors with below url for publisher api

      https://smartapi.angelbroking.com/publisher-login?api_key=

      posted in General Discussion
      T
      techtrader86
    • RE: 1) Redirect URL 2) steps to connect with Python and get option chain live data

      I think you can fetch the data from NSE for option chain instead of Angel Broking as i can't see a mechanism unless you want to write the code for option strikes seperately

      posted in General Discussion
      T
      techtrader86
    • How to close the already placed order

      Hi All,

      I placed one order using the api , now before placing a new order i want to close the existing order.

      I want to put the sell command for already existing order or is there any way to square off the order by using order id like we do on web application.

      posted in Python SDK
      T
      techtrader86