Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. Popular
    Log in to post
    • All categories
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All Time
    • Day
    • Week
    • Month
    • L

      Issue in getting responses from API
      Python SDK • • leena.1234

      12
      0
      Votes
      12
      Posts
      70
      Views

      S

      @James-Bond
      python 3.6
      pip 19.0.3

    • H

      SmartAPIs throw "AB1034 : Apps not found"
      General Discussion • • harkal

      12
      0
      Votes
      12
      Posts
      47
      Views

      A

      Error: AngelBroking get_access_token failed: AB1034 : Invalid API Key or App not found.
      Please help

    • 9

      How can i use this with dart(flutter)?
      General Discussion • • 91priyansh

      12
      0
      Votes
      12
      Posts
      83
      Views

      C

      import 'dart:convert';
      import 'dart:io';
      import 'package:flutter/material.dart';
      import 'package:web_socket_channel/web_socket_channel.dart';

      class ScreenAngelWebSocket extends StatefulWidget {
      const ScreenAngelWebSocket({Key? key}) : super(key: key);

      @override
      State<ScreenAngelWebSocket> createState() => _ScreenAngelWebSocketState();
      }

      class _ScreenAngelWebSocketState extends State<ScreenAngelWebSocket> {
      WebSocketChannel? channel;

      @override
      void initState() {
      super.initState();
      channel = WebSocketChannel.connect(Uri.parse(ApiPath.WSS_ANGEL));
      channel!.sink.add(
      jsonEncode({
      "task": "cn",
      "channel": "",
      "token": "feed_token",
      "user": "client_id",
      "acctid": "client_id"
      }),
      );

      channel!.sink.add(
      jsonEncode({
      "task": "mw",
      // "channel": "nse_cm|3045",
      "channel": "nse_cm|3045&nse_cm|2885", // SBI & Reliance
      "token": "feed_token",
      "user": "client_id",
      "acctid": "client_id"
      }),
      );
      channel!.stream.listen(
      (data) {
      String response = data.toString();
      debugPrint('wss Response before Decode: ' + response);
      var step1 = base64.decode(response);
      debugPrint('wss Response Decode Step 1: ' + step1.toString());
      var inflated = zlib.decode(step1);
      var step2 = utf8.decode(inflated);
      debugPrint('wss Response Decode Step 2: ' + step2.toString());

      var step3 = json.decode(step2);
      debugPrint('wss Response Decode Step 3: ' + step3.toString());

      if (step3.toString().contains('task') &&
      step3[0]['task'].toString() == 'cn' &&
      step3[0]['msg'].toString() == 'cn') {
      debugPrint('wss Socket Connected');
      }
      },
      onDone: () {
      debugPrint('wss Socket Connected');
      },
      onError: (error) => debugPrint('wss Error: ' + error.toString()),
      );
      }

      @override
      void dispose() {
      super.dispose();
      channel!.sink.close();
      }

      @override
      Widget build(BuildContext context) {
      return Column(
      mainAxisSize: MainAxisSize.max,
      crossAxisAlignment: CrossAxisAlignment.stretch,
      children: [
      Text('Web Socket Demo'),
      ],
      );
      }
      }

      Decoded Data in Log

      wss Response Decode Step 3: [{e: nse_cm, name: sf, ltp: 2597.25, ltq: 20, tk: 2885, ltt: NA}, {e: nse_cm, name: sf, ltp: 518.90, ltq: 8, tk: 3045, ltt: NA}]

      Also find answer here https://smartapi.angelbroking.com/topic/1887/how-to-decode-web-socket-response-in-flutter-dart/2

    • T

      Get Holdings response error
      Test • • tdeshmukh

      12
      0
      Votes
      12
      Posts
      118
      Views

      A

      Hi @psshri can you please post your issue in correct thread.

    • P

      Unpredictable Invalid Token response from historical API
      Python SDK • • pranav

      12
      0
      Votes
      12
      Posts
      117
      Views

      A

      Hi @pranav we will update you on this.

    • S

      Multiple HB failure and order book fetch issue
      Python SDK • • Surya 1

      12
      0
      Votes
      12
      Posts
      62
      Views

      A

      Hi @rajanprabu we will check it form our end and update you.

    • A

      from SmartApi import smartConnect
      Python SDK • • A161430

      12
      0
      Votes
      12
      Posts
      165
      Views

      A

      Dear @A161430 yes

    • P

      .Net Core Protocol not supported Error
      Test • • prakash.john

      12
      0
      Votes
      12
      Posts
      71
      Views

      A

      HI @prakash-john the issue has been solved.

    • G

      PHP web soket : receiving only time feed mw/sfi/dp are not working
      General Discussion • • girish.gss

      12
      0
      Votes
      12
      Posts
      81
      Views

      A

      HI @girish-gss Are you still facing the issue ..?

    • P

      getting error in websocket
      Python SDK • • pt4rh3

      12
      0
      Votes
      12
      Posts
      81
      Views

      S

      @nahas_n

      I made a dirty trick of switching off the Signal Handlers even when its not threaded ( before line number 233 in websocket.py )

      opts["installSignalHandlers"] = False

      @nahas_n said in getting error in websocket:

      thread.start_new_thread(connect_ws, ())

      Thanks for the suggestion. I will try it out.

    • A

      Python Streaming Tick Data Problem with SmartAPI Websocket's
      Python SDK • • adi3399

      12
      0
      Votes
      12
      Posts
      182
      Views

      A

      HI @webseos You can download anaconda and use spyder for development also for detail understanding you can attend today's webinar on integration of smartapi using python..fr basic codes you can go through below thread.
      https://smartapi.angelbroking.com/topic/1194/basic-smartapi-integration-using-python

    • L

      Internal server error
      Python SDK • • leena.1234

      12
      0
      Votes
      12
      Posts
      50
      Views

      A

      HI @lakshmi_73 Please let us know if you face any other issue or same issue again.

    • T

      Instrument master fields interpretation
      Python SDK • • tonusri

      12
      0
      Votes
      12
      Posts
      171
      Views

      J

      guys, I'm not sure what your problem is, the tick size is 5p, any price movements that happen for an instrument are a multiple of tick size. And the strike price of the instrument is given in paise. Not sure why there is soo much badmouthing and all in this thread

    • S

      Not able to log in via api
      Bugs • • Sourav

      12
      0
      Votes
      12
      Posts
      29
      Views

      A

      HI @RK it will get migrated in 8 to 10 working days.

    • A

      Account Migration
      General Discussion • • ajaykumarr123

      12
      0
      Votes
      12
      Posts
      47
      Views

      A

      @R65753 said in Account Migration:

      Please migrate my account to Smart API:
      My user ID is : R65753
      Error from Angel: Credentials wrong or login id not migrated to Smart API.. Angel error code: AB1007, Message: USER IS BLOCKED FOR TRADING

      we have noted your request if your account is blocked contact normal customer care.

    • B

      WebSocket Not returning any Tick
      C#/.Net SDK • • baluslife

      12
      0
      Votes
      12
      Posts
      221
      Views

      A

      @Moderator_3
      You are sending Python script in C# section ??

    • R

      what is Bearer AUTHORIZATION_TOKEN
      Python SDK • • rajeevth90

      12
      0
      Votes
      12
      Posts
      136
      Views

      T

      @admin this link does not work. many links that you posted already here is not working.

    • P

      WebSocket streaming did not work the whole day today. However, I'm able to fetch LTP data using ltpData method. Was something wrong with streaming today?
      Python SDK • • projectSB

      12
      0
      Votes
      12
      Posts
      177
      Views

      punit

      @nbmaiti Yes correct. Only V2 works.

    • V

      Issue fetching Historical data
      Python SDK • • Vypy1

      12
      1
      Votes
      12
      Posts
      180
      Views

      V

      @admin Thanks admin, I tried this and it works, however earlier I could fetch 2000 records for daily candles. Even this page says I can fetch 2000 days for 1 Day candles

      https://smartapi.angelbroking.com/docs/Historical

    • L

      Error while placing orders
      Test • • laxm

      12
      0
      Votes
      12
      Posts
      113
      Views

      L

      Hello @admin and support team,

      This is pending from few months and still no response. Is this forum operational?