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

      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.

    • R

      Smart API only working on Terminal. No where else?
      NodeJS SDK • • Rajiv Kumar 0

      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
      13
      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

    • P

      smart api login
      Python SDK • • 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.

    • A

      not receiving market data for both equities and indices
      General Discussion • • adhiraj

      5
      0
      Votes
      5
      Posts
      14
      Views

      A

      @adhiraj Once you create a SmartApi app, all permissions are activated and there is no further need of activation of any market feed specific access.

    • 1

      Angel login failed Angel session invalid — feedToken missing. errorcode: 'AB1050'
      Test • • 1059689

      2
      0
      Votes
      2
      Posts
      10
      Views

      A

      @1059689 Server date and time might be out of sync and might be causing incorrect TOTP generation.

    • C

      Token for NIFTY IND DEFENCE
      General Discussion • • cts

      2
      0
      Votes
      2
      Posts
      12
      Views

      A

      @cts Scrip Master is the master list of all the scrips. No token for Nifty Ind Defence is available as of now in smart api.

    • A

      Blocking of equity scrips falling under surveillance measures from placeorder API from Friday 24th Jan, after market hours
      General Discussion • • admin

      26
      -8
      Votes
      26
      Posts
      356
      Views

      V

      @jaydeeppandya97

      I didnt find any solution.

      I think these people want to end algo trading for retailers. Retailers cant have profit without algo trading and these people dont want small investors to have any kind of profit. very sad. No option they dont think about small investors.

    • S

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

      1
      0
      Votes
      1
      Posts
      9
      Views

      No one has replied

    • S

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

      1
      0
      Votes
      1
      Posts
      5
      Views

      No one has replied

    • R

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

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied