Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Categories
    3. Python SDK
    Log in to post
    • Newest to Oldest
    • Oldest to Newest
    • Most Posts
    • Most Votes
    • Most Views
    • S

      Relation Between exch_seg from instrument json and exchange type in WebSocket API
      • sagargami777

      2
      0
      Votes
      2
      Posts
      9
      Views

      A

      @sagargami777 Javascript example::

      // Reference:: https://smartapi.angelbroking.com/docs/WebSocket2 let ExchangeType = { nse_cm: 1, nse_fo: 2, bse_cm: 3, bse_fo: 4, mcx_fo: 5, ncx_fo: 7, cde_fo: 13 } // Reference: https://smartapi.angelbroking.com/docs/Orders#place let ExchangeMap = { BSE: 'bse_cm', NSE: 'nse_cm', NFO: 'nse_fo', MCX: 'mcx_fo', BFO: 'bse_fo', CDS: 'cde_fo' } let exch_seg = 'NSE' console.log(ExchangeType[ExchangeMap[exch_seg]])
    • U

      Option Greeks Option Greeks Delta(Δ), Gamma (Γ), Theta(Θ) an
      • uga19082002

      2
      0
      Votes
      2
      Posts
      18
      Views

      A

      @uga19082002 BANKNIFTY has monthly expiry only and the mentioned expirydate is incorrect, therefore "No Data Available".

    • P

      How to add stoploss and target in a single order payload
      • pravilraj

      2
      0
      Votes
      2
      Posts
      19
      Views

      A

      @pravilraj For the time being, you can try storing stoploss and target orders in your trading bot database locally and subscribing to market data feed of the instrument. Often has less slippages than bracket orders, if implemented correctly.

    • J

      White Listing IP
      • Jeetu

      2
      0
      Votes
      2
      Posts
      14
      Views

      A

      @jeetu Local IP can't be whitelisted. Get a static IP from ISP or use server static IP. Create a new API key from "New login" here - https://smartapi.angelone.in/publisher-login/v2/login/

    • S

      Error Code: AB1004, Error Message: "Something Went Wrong, Please Try After Sometime"
      • S237783

      2
      0
      Votes
      2
      Posts
      6
      Views

      A

      @s237783 Intermittent issue caused by service outage.

    • A

      Frequent API error AB1004
      • abhay15.akshukla 0

      2
      0
      Votes
      2
      Posts
      4
      Views

      A

      @abhay15-akshukla-0 As mentioned on https://smartapi.angelbroking.com/docs/Exceptions, this is an "Internal Server Error", most probably an intermittent issue because of service disruption.

    • P

      smart api login
      • pradulgupt82

      2
      0
      Votes
      2
      Posts
      11
      Views

      A

      @pradulgupt82 Sync your system time and try again. Sometime this issue happens, just try again after 1 min, as TOTP is valid for 60 seconds.

    • K

      This topic is deleted!
      • kps7111

      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • S

      Technical Issue: SmartAPI Historical Data Error - Code AB1004
      • S237783

      1
      0
      Votes
      1
      Posts
      10
      Views

      No one has replied

    • S

      "Frequent AB1004 Error and Empty Response (b'') in getCandleData"
      • S237783

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • R

      Instrument Master API extremely slow/hanging (requests.get blocks while downloading)
      • Rithvik

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • R

      plz tell me what the problem might be
      • rvrao1415

      4
      0
      Votes
      4
      Posts
      14
      Views

      A

      Hi @rvrao1415

      Please share the request json here

    • S

      smartConnect:246
      • S237783

      2
      0
      Votes
      2
      Posts
      23
      Views

      A

      Hi @s237783

      Please do check are you using jwttoken generated via loginbypassword api

    • M

      Errorcode AB1050
      • Mach

      4
      0
      Votes
      4
      Posts
      20
      Views

      A

      Hi @mach

      Request seems fine. It was an TOTP issue just got copy 6 digit code from authenticator app and paste it try the request in postman once and update.

    • R

      ERROR CODE AB1004
      • ROIW1083

      7
      0
      Votes
      7
      Posts
      19
      Views

      D

      Hi @admin can you please share what's wrong with my inputs? I get the same error.

      [E 260107 09:21:35 smartConnect:246] Error occurred while making a POST request to https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData.
      Error: Something Went Wrong, Please Try After Sometime.
      URL: https://apiconnect.angelone.in/rest/secure/angelbroking/historical/v1/getCandleData,

      Headers: {'Content-type': 'application/json', 'X-ClientLocalIP': '127.0.0.1', 'X-ClientPublicIP': 'XXXXXXXX', 'X-MACAddress': 'XXXXXXXXXX', 'Accept': 'application/json', 'X-PrivateKey': 'XXXXXX', 'X-UserType': 'USER', 'X-SourceID': 'WEB'}, Request: {'exchange': 'NFO', 'symboltoken': '123274', 'interval': 'FIVE_MINUTE', 'fromdate': '2026-01-06 09:15', 'todate': '2026-01-07 09:20'}, Response: {'message': 'Something Went Wrong, Please Try After Sometime', 'errorcode': 'AB1004', 'status': False, 'data': None}
    • J

      Video to create a simple webapp or python based script for algo trading
      • jainmb555

      1
      0
      Votes
      1
      Posts
      6
      Views

      No one has replied

    • S

      Error oracle vm - python
      • strvedic

      2
      0
      Votes
      2
      Posts
      4
      Views

      A

      Hi @strvedic

      Test the APIs in postman and share error with screenshot

    • R

      Hii
      • rangaswami

      2
      0
      Votes
      2
      Posts
      7
      Views

      A

      Hi @rangaswami

      Please describe the issue you are facing.

    • M

      My totp रीसेट करे
      • Manoharsingh

      2
      0
      Votes
      2
      Posts
      5
      Views

      A

      Hi @manoharsingh

      Error is very much pretty clear. Do check are you passing appropriate 6 digit TOTP in request.

    • P

      Login Issue AB1050 error
      • prasubu8

      2
      0
      Votes
      2
      Posts
      9
      Views

      A

      Hi @prasubu8

      Error is very much pretty clear. Do check are you passing appropriate 6 digit TOTP in request.

    • undefined


      •


      Votes

      Posts

      Views