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
    • M

      Getting AG8004
      General Discussion • • mr_s

      4
      0
      Votes
      4
      Posts
      11
      Views

      A

      @mr_s Try Trading API key.

    • S

      scripconsent order parameter missing in Java library. Order placement fails with Null
      Java SDK • • sugagenius

      10
      1
      Votes
      10
      Posts
      25
      Views

      A

      @sugagenius Cheers to your persistence. :) Once done with all modifications, please make sure to send a pull request to the github repo so other algo traders can also be benefited.

    • A

      Error code : AB1004
      Python SDK • • archana

      3
      0
      Votes
      3
      Posts
      6
      Views

      A

      @algo_trading_50 --Thanks , Its working Today

    • K

      Are there any SLA for the apis?
      Python SDK • • kvineeth

      2
      0
      Votes
      2
      Posts
      16
      Views

      A

      @kvineeth Having a trading account itself puts you in a SLA. This could be an intermittent issue. Error AB1004, clearly suggest "Internal Server Error" as mentioned in the docs here https://smartapi.angelbroking.com/docs/Exceptions.

    • 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
      8
      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
      18
      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
      14
      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
      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.

    • 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.