Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    Signatures of all Smartapi Methods

    Python SDK
    0
    2
    48
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Mnagesh
      Mnagesh last edited by Mnagesh

      This gives the idea of list of functions available and as well as the typical input expected by each of them .

      may be useful as a quick refence.

      ####################################
      class SmartConnect(builtins.object)
      | SmartConnect(api_key=None, access_token=None, refresh_token=None, feed_token=None, userId=None, root=None, debug=False, timeout=None, proxies=None, pool=None, disable_ssl=False, accept=None, userType=None, sourceID=None, Authorization=None, clientPublicIP=None, clientMacAddress=None, clientLocalIP=None, privateKey=None)
      |
      | Methods defined here:
      |
      | init(self, api_key=None, access_token=None, refresh_token=None, feed_token=None, userId=None, root=None, debug=False, timeout=None, proxies=None, pool=None, disable_ssl=False, accept=None, userType=None, sourceID=None, Authorization=None, clientPublicIP=None, clientMacAddress=None, clientLocalIP=None, privateKey=None)
      | Initialize self. See help(type(self)) for accurate signature.
      |
      | cancelOrder(self, order_id, variety)
      |
      | convertPosition(self, positionParams)
      |
      | generateSession(self, clientCode, password, totp)
      |
      | generateToken(self, refresh_token)
      |
      | getCandleData(self, historicDataParams)
      |
      | getProfile(self, refreshToken)
      |
      | getUserId()
      |
      | getfeedToken(self)
      |
      | gttCancelRule(self, gttCancelParams)
      |
      | gttCreateRule(self, createRuleParams)
      |
      | gttDetails(self, id)
      |
      | gttLists(self, status, page, count)
      |
      | gttModifyRule(self, modifyRuleParams)
      |
      | holding(self)
      |
      | login_url(self)
      | Get the remote login url to which a user should be redirected to initiate the login flow.
      |
      | ltpData(self, exchange, tradingsymbol, symboltoken)
      |
      | modifyOrder(self, orderparams)
      |
      | orderBook(self)
      |
      | placeOrder(self, orderparams)
      |
      | position(self)
      |
      | renewAccessToken(self)
      |
      | requestHeaders(self)
      |
      | rmsLimit(self)
      |
      | setAccessToken(self, access_token)
      |
      | setFeedToken(self, feedToken)
      |
      | setRefreshToken(self, refresh_token)
      |
      | setSessionExpiryHook(self, method)
      |
      | setUserId(self, id)
      |
      | terminateSession(self, clientCode)
      |
      | tradeBook(self)
      |
      | ----------------------------------------------------------------------
      | Data descriptors defined here:
      |
      | dict
      | dictionary for instance variables (if defined)
      |
      | weakref
      | list of weak references to the object (if defined)
      |
      | ----------------------------------------------------------------------

      Now I am full time Algo Trader and successfully developed my own Apps for my personal use.

      1 Reply Last reply Reply Quote 0
      • R
        r82592 last edited by

        Exception while retriving IP Address,using local host IP address HTTPSConnectionPool(host='api.ipify.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x00000256E6223730>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

        any solution of above error...?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post