Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. jayesh_sapkale
    J
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 8
    • Best 1
    • Groups 0

    jayesh_sapkale

    @jayesh_sapkale

    2
    Reputation
    4
    Profile views
    8
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    jayesh_sapkale Unfollow Follow

    Best posts made by jayesh_sapkale

    • Websocket order status in JavaScript

      Dear Smart-API team,

      Thanks for all your effort in providing this API service. Unfortunately, I am facing some difficulties regarding the "smart-order-websocket". I am trying to connect to the order status websocket in JavaScript using a WebSocket with a JWT token. My Smart-Stream WebSocket is already connected, but when I attempt to connect to the "smart-order-websocket", it throws an error.

      I have tried several approaches to connect to the WebSocket using JavaScript, but all of them result in an error. Please guide me on the correct way to connect to the WebSocket with JavaScript.

      Trial-Error method

      new WebSocket("wss://tns.angelone.in/smart-order-update?Authorization=Bearer "+encodeURIComponent("JWT-Token-after-login-via-totp"));
      
      new WebSocket("wss://tns.angelone.in/smart-order-update?Authorization=Bearer JWT-Token-after-login-via-totp");
      
      new WebSocket("wss://tns.angelone.in/smart-order-update?Authorization=JWT-Token-after-login-via-totp");
      
      new WebSocket("wss://tns.angelone.in/smart-order-updateJWT-Token-after-login-via-totp");
      

      Is there any other way to connect "smart-order-websocket", or do I need to pass any extra parameters other than jwt-token?

      posted in General Discussion
      J
      jayesh_sapkale

    Latest posts made by jayesh_sapkale

    • openAPIScripMaster.json

      I'm pulling the file openAPIScriptMaster.json from a JavaScript page and processing the data on the client side. It was working last month, but it stopped working a few days ago. Could you provide the correct method to fetch a JSON file in the browser client?

      A CORS error didn't appear when I called the JSON file from localhost, but now the file is not allowed even on the remote domain.

      Cors Error in console
      5f3e4356-d9ed-4cd7-a76b-89c2c8007a8a-image.png

      posted in Test
      J
      jayesh_sapkale
    • RE: Option-greek historical data

      @admin ok,thanks for reply

      posted in General Discussion
      J
      jayesh_sapkale
    • SENSEX contract name for jun and july

      Naming convention documentation link : https://smartapi.angelbroking.com/topic/4042/bse-bfo-futures-and-options-now-accessible-through-smartapi/2

      Weekly option Name:
      23N03 denotes the year (23), month (N for November), and the date (03) of the expiry.
      66400CE specifies the strike price followed by CE or PE.

      Monthly Option name:
      23OCT denotes the year (23) and the month (OCT) for monthly expiries.
      66400CE specifies the strike price followed by CE or PE.

      What would be the weekly option expiry for sensex Contract for expiry of "Friday 20 June 2025"
      and "Friday 11 July 2025"

      If we choose N for November for weekly option contract name so what would be june and july name convention :
      IT would be confusing
      For June : 25J20
      For july : 25J11

      or we should use Monthly name for jun and jul
      For June : 25JUN20
      For july : 25JUL11

      posted in General Discussion
      J
      jayesh_sapkale
    • getOIData fetch problem

      API point : https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getOIData

      ![Error Image](9046129c-6ade-4019-a119-b4fdccfb28d2-image.png image url)

      Getting cors error for "getOIData" while same fetch api work for other smart api point.

      posted in Test
      J
      jayesh_sapkale
    • Option-greek historical data

      Feature request
      Can we get historical greek data like we get candle data.
      It will be huge advantage to understand option greek in detail.

      posted in General Discussion
      J
      jayesh_sapkale
    • Websocket order status in JavaScript

      Dear Smart-API team,

      Thanks for all your effort in providing this API service. Unfortunately, I am facing some difficulties regarding the "smart-order-websocket". I am trying to connect to the order status websocket in JavaScript using a WebSocket with a JWT token. My Smart-Stream WebSocket is already connected, but when I attempt to connect to the "smart-order-websocket", it throws an error.

      I have tried several approaches to connect to the WebSocket using JavaScript, but all of them result in an error. Please guide me on the correct way to connect to the WebSocket with JavaScript.

      Trial-Error method

      new WebSocket("wss://tns.angelone.in/smart-order-update?Authorization=Bearer "+encodeURIComponent("JWT-Token-after-login-via-totp"));
      
      new WebSocket("wss://tns.angelone.in/smart-order-update?Authorization=Bearer JWT-Token-after-login-via-totp");
      
      new WebSocket("wss://tns.angelone.in/smart-order-update?Authorization=JWT-Token-after-login-via-totp");
      
      new WebSocket("wss://tns.angelone.in/smart-order-updateJWT-Token-after-login-via-totp");
      

      Is there any other way to connect "smart-order-websocket", or do I need to pass any extra parameters other than jwt-token?

      posted in General Discussion
      J
      jayesh_sapkale
    • SEBI new Rule for openAPI

      Does this rule apply to Smart-API even though Smart-API only provides data and not a strategy?

      posted in General Discussion
      J
      jayesh_sapkale
    • Response Error in python while calling url direct from http module.

      Function listed in smartConnect.py working fine such as
      "api.order.book":"/rest/secure/angelbroking/order/v1/getOrderBook",
      "api.ltp.data": "/rest/secure/angelbroking/order/v1/getLtpData",

      But whenever iam trying to call direct get/post request in my case following url :
      "https://apiconnect.angelbroking.com/rest/secure/angelbroking/marketData/v1/optionGreek"
      "https://apiconnect.angelbroking.com/rest/secure/angelbroking/order/v1/getOrderBook"

      With python code it gives me a response error "Can't concat str to bytes"

      Is something wrong with my python code for python request

      Please find code and response error in imageerr-code--1.png

      posted in Python SDK
      J
      jayesh_sapkale