Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Recent
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • S

      SmartAPI Session Invalid / Token Expiry Issue – Urgent
      Python SDK • • S237783 0

      4
      1
      Votes
      4
      Posts
      18
      Views

      A

      @meenavenkit This is an intermittent issue. You can try "Logout from all devices" from the website and can try again. Try with mobile internet on local machine that has new IP everytime to verify if it's an IP related issue.

    • M

      SMART API Session invalid/Token expiry
      Python SDK • • Meenavenkit

      1
      0
      Votes
      1
      Posts
      12
      Views

      No one has replied

    • D

      TSL Order Update होने पर भी पहला SL Modify/Cancel न होने की समस्या के समाधान हेतु अनुरोध
      Python SDK • • diwakar

      2
      0
      Votes
      2
      Posts
      11
      Views

      A

      @diwakar Get all pending orders, https://smartapi.angelbroking.com/docs/Orders#orderbook, filter by "variety": "STOPLOSS" and symboltoken, and cancel all SL orders not matching your sl_order_id.

    • S

      Relation Between exch_seg from instrument json and exchange type in WebSocket API
      Python SDK • • 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]])
    • N

      Publisher Login
      General Discussion • • Nitro

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @nitro Try creating a Smart API app using "Publisher" API. JS plugin seems discontinued.

    • T

      Change in OI
      General Discussion • • T2453A1

      2
      0
      Votes
      2
      Posts
      7
      Views

      A

      @t2453a1 As mentioned on the page, https://smartapi.angelbroking.com/docs/MarketData, change in OI (absolute or percentage) is not yet supported by the API.

    • U

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

      2
      0
      Votes
      2
      Posts
      15
      Views

      A

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

    • A

      Not able to connect using oracle
      Test • • Ankushsup

      2
      0
      Votes
      2
      Posts
      11
      Views

      A

      @ankushsup Your IP is rate limited and banned. Max retries exceeded with url: /rest/auth/angelbroking/user/v1/loginByPassword. Avoid using infinite loops.

    • S

      missing data and uncorrect historical data
      Bugs • • sujeetboran

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @sujeetboran It is always recommended to verify the candle interval before saving in database or csv. You can try fetching data in batches and then can verify each batch before saving. In case of missing OHLCV, you can try to re-fetch the complete batch. Verification may add delay in processing but is always worth it.

    • A

      Login Public URL return 403 Forbidden
      Bugs • • akshayrana

      2
      0
      Votes
      2
      Posts
      6
      Views

      A

      @akshayrana Use "Publisher" app API key. You might be using "Trading" app API key.

    • R

      instrument list API extremely unreliable and not robust
      Bugs • • Rithvik

      2
      0
      Votes
      2
      Posts
      5
      Views

      A

      @rithvik Currently OpenAPIScripMaster.json is ~40MB. You can try syncing the instruments from other broker that has smaller file size as backup, in case there is no response from the API. Select the broker whose token are matching with the tokens mentioned the OpenAPIScripMaster.json file.

    • P

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

      2
      0
      Votes
      2
      Posts
      18
      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.

    • S

      Historical type app active hai, Python SmartApi SDK se login OK, lekin getCandleData pe errorCode: AG8001
      Test • • shahnawaz.pe

      2
      0
      Votes
      2
      Posts
      8
      Views

      A

      @shahnawaz-pe https://smartapi.angelbroking.com/docs/Historical. Sample code on the right side of the page.

    • A

      Smart API only working on Terminal. No where else?
      NodeJS SDK • • aasiph

      2
      0
      Votes
      2
      Posts
      7
      Views

      A

      @aasiph express.js code

      const bodyParser = require('body-parser') const cors = require('cors') const express = require('express') const app = express() const host = 'localhost' const port = 3001 ;(async () => { try { app.use(cors()) app.use(bodyParser.json()) app.listen(port).on('listening', () => { console.log( 'App server started on http://%s:%d', host, port ) }) process.on('unhandledRejection', (reason) => { console.log('Unhandled rejection:') console.log(reason) }) await fetchData() } catch (error) { console.log('ERR:') console.log(error) } })()
    • J

      White Listing IP
      Python SDK • • Jeetu

      2
      0
      Votes
      2
      Posts
      11
      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/

    • M

      History and Market AI error AG8004
      Bugs • • Mohan 0

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @mohan-0 Intermittent issue because of service disruption. Try re-creating the API key if issue persists.

    • S

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

      2
      0
      Votes
      2
      Posts
      6
      Views

      A

      @s237783 Intermittent issue caused by service outage.

    • P

      Login Issue - Showing INVALID API KEY AG8004
      General Discussion • • pankjsingh1028

      2
      0
      Votes
      2
      Posts
      3
      Views

      A

      @pankjsingh1028 Retry after recreating a new API key by clicking the refresh button next to API key in your Smart API account.

    • A

      Frequent API error AB1004
      Python SDK • • abhay15.akshukla 0

      2
      0
      Votes
      2
      Posts
      3
      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.

    • K

      NodeJs websocket is not connecting throwing 401 error
      NodeJS SDK • • Kavita 0

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @kavita-0

      let web_socket = new WebSocketV2({ jwttoken: 'JWT_TOKEN', apikey: 'API_KEY', clientcode: 'Client_code', feedtype: 'FEED_TYPE', }); // for mode, action and exchangeTypes , can use values from constants file. web_socket.connect().then((res) => { let json_req = { correlationID: 'correlation_id', action: 1, mode : 1, exchangeType: 1, tokens: ["123"], }; web_socket.fetchData(json_req); web_socket.on('tick', receiveTick); function receiveTick(data) { console.log('receiveTick:::::', data); } });

      Try this official sample code mentioned in the README.md of https://github.com/angel-one/smartapi-javascript