Navigation

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

    Posts made by rishi6310

    • RE: how to use arrange websocket data

      @ashishbajaj can you plz provide code of it how to read data in excel/google sheets in python i have try many ways but price is not updating properly i want to read data directly from csv fromat and connect websocket to csv file to update every tick in file

      posted in General Discussion
      R
      rishi6310
    • RE: how to use arrange websocket data

      @admin if i want to read live data in csv format from websocket how can i able to do that in python

      posted in General Discussion
      R
      rishi6310
    • RE: how to use arrange websocket data

      @admin can i save into csv fromat

      posted in General Discussion
      R
      rishi6310
    • RE: how to use arrange websocket data

      @admin can you address this problem asap

      posted in General Discussion
      R
      rishi6310
    • how to use arrange websocket data

      i want to arrange websocket live data in format in python how can i able to it
      and which file format is faster for read data from websocket or any dirct method to do so in python

      posted in General Discussion
      R
      rishi6310
    • access token

      please mention how to place order using access token after it generated and place order only using that in python

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin plz respond to query

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin i don't any software team i am an individual trader that's why i ask for help

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin market is running out kindly try to solve my query or provide a way to solve it

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin take remote access and try to solve my problem and please tell me how to contact with your software team

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin i am trying to create gui in tkinter for buying and selling of stocks but not able to link with orderparam with def function but it generate new session everytime when code run and not able to place order with that

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin C:\Users\rishi\PycharmProjects\pythonProjectnew\venv\Scripts\python.exe C:/Users/rishi/PycharmProjects/pythonProjectnew/trading.py

      Process finished with exit code 0

      Unresolved reference 'obj' line 25 in this line (orderId=obj.placeOrder(orderparams)
      this is my piece of code
      from smartapi import SmartConnect
      from smartapi import SmartWebSocket
      import login as l

      feedToken=l.feed_token

      def place_order():
      try:
      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": "ITC",
      "symboltoken": "1660",
      "transactiontype": "buy",
      "exchange": "NSE-EQ",
      "ordertype": "MARKET",
      "producttype": "CARRYFORWARD",
      "duration": "DAY",
      "price": "0",
      "squareoff": "0",
      "stoploss": "0",
      "quantity": 1
      }
      orderId=obj.placeOrder(orderparams)
      print("The order id is: {}".format(orderId))
      except Exception as e:
      print("Order placement failed: {}".format(e.message))

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin i am not able to take position try to resolve my query market is running out of time

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin how to do it
      here i generate a feedtoken and want to place order but i am not able to do it please tell me market is running out of time
      here is piece of code

      from smartapi import SmartConnect
      from smartapi import SmartWebSocket
      import login as l

      feedToken=l.feed_token

      def place_order():
      try:
      orderparams = {
      "variety": "NORMAL",
      "tradingsymbol": "ITC",
      "symboltoken": "1660",
      "transactiontype": "buy",
      "exchange": "NSE-EQ",
      "ordertype": "MARKET",
      "producttype": "CARRYFORWARD",
      "duration": "DAY",
      "price": "0",
      "squareoff": "0",
      "stoploss": "0",
      "quantity": 1
      }
      orderId=obj.placeOrder(orderparams)
      print("The order id is: {}".format(orderId))
      except Exception as e:
      print("Order placement failed: {}".format(e.message))
      i have feedtoken generated please provide piece of code to place order

      posted in General Discussion
      R
      rishi6310
    • RE: Token

      @admin if i have feedtoken and to place order multiple times how can i able to do it
      for eg; if a position is open and want to close and open new position with same token how to do it
      if my orderparams are in different python file
      this is generate by token as you mention
      from smartapi import SmartConnect

      ####generate session #####

      obj =SmartConnect(api_key="AW41v31e")

      login = obj.generateSession('Your client id', 'Your password')

      refreshToken = login['data']['refreshToken']

      feedToken = obj.getfeedToken()

      print ("This is my feedtoken::",feedToken)

      #####get ltp#############

      profile = obj.getProfile(refreshToken)
      print (profile)

      ##########################

      orderbook = obj.orderBook()
      print (orderbook)

      ###########################

      orderparams = {
      "variety": "AMO",
      "tradingsymbol": "SBIN-EQ",
      "symboltoken": "3045",
      "transactiontype": "BUY",
      "exchange": "NSE",
      "ordertype": "LIMIT",
      "producttype": "INTRADAY",
      "duration": "DAY",
      "price": "425",
      "squareoff": "0",
      "stoploss": "0",
      "quantity": "1"
      }
      orderId=obj.placeOrder(orderparams)
      print (orderId)
      if i want to close position with only orderparam with generating new token how to do it
      and create other position as per my algo with def (orderparam) only with token in python

      posted in General Discussion
      R
      rishi6310
    • Token

      How to place order with token?
      After generating token how to place order without generating new session or feed token

      In python sdk
      Plz write piece of code for every person searching it

      posted in General Discussion
      R
      rishi6310
    • RE: close specific position

      @admin can you provide me piece of code how to filter out and exit position

      posted in General Discussion
      R
      rishi6310
    • RE: close specific position

      @admin and rest position should be open

      posted in General Discussion
      R
      rishi6310
    • RE: close specific position

      @admin i want only specific postiion to be close

      posted in General Discussion
      R
      rishi6310