Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs
    1. Home
    2. skylight
    S
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    skylight

    @skylight

    0
    Reputation
    5
    Posts
    1
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    skylight Follow

    Best posts made by skylight

    This user hasn't posted anything yet.

    Latest posts made by skylight

    • RE: I am not getting Open and High value in market watch

      @admin Thankyou for your reply. let me check what I can do.

      posted in General Discussion
      S
      skylight
    • RE: I am not getting Open and High value in market watch

      @vbiz-krish Thanks.... ODIN api is currently not providing Market watch live feeds... please let me know if any other method to get the missing data or any other api. Thankyou

      posted in General Discussion
      S
      skylight
    • I am not getting Open and High value in market watch

      Hello @admin ,@administrators .
      I am using below command
      web_socket.runScript("mcx_fo|230455", "mw")
      and output of the above command are as follow
      receiveTick::::: [
      {
      to: '37321979.86',
      lo: '50984.00',
      e: 'mcx_fo',
      sp: '50997.00',
      😄 '51157.00',
      ltp: '50997.00',
      ltq: '1',
      tk: '230455',
      bs: '1',
      ltt: '25/05/2022 11:45:24',
      tsq: '204',
      v: '731',
      bp: '50990.00',
      cng: '-160.00',
      bq: '4',
      ap: '51056.06',
      nc: '-00.3128',
      name: 'sf',
      tbq: '234'
      }

      please help me to get the open price and high price
      9643490934

      posted in General Discussion
      S
      skylight
    • SmartAPI - PHP Client SDK getting only time feed

      Hello, @admin ,@administrators . I have integrated php sdk and I am getting only time feed. Please help me to get market watch. Thankyou

      in the below I am putting my php code

      <script src="vendor/smartapi-php/angelbroking/src/socket.js"></script>

      <?php

      require_once DIR . '/vendor/autoload.php';
      $smart_api = new \AngelBroking\SmartApi();
      $login = $smart_api ->GenerateSession("G287101","########");
      echo $login;
      //$token = $smart_api ->GenerateToken();

      $JSONOUT=json_decode($login, true);
      //print_r($JSONOUT["response_data"]["data"]["feedToken"]);
      $feedToken=$JSONOUT["response_data"]["data"]["feedToken"];
      ?>

      <script type="text/javascript">
      console.log('<?php echo $feedToken; ?>');
      var ws =new websocket('G287101', '<?php echo $feedToken; ?>');
      ws.connection().then(() => {
      ws.runScript("mcx_fo|230455", "mw");
      setTimeout(function () {
      ws.close()
      }, 6000)
      });
      ws.on('tick', receiveTick);
      function receiveTick(data) {
      console.log(data);
      }
      </script>

      Output of the above code

      {"status":"success","http_code":200,"http_error":"","response_data":{"status":true,"message":"SUCCESS","errorcode":"","data":{"I am receiving the jwttoken, refershtoken and feedtoken"}

      please help

      posted in General Discussion
      S
      skylight
    • Login issue bad syntax

      Hi, I am new user and I am trying to access using postman.

      I am getting error
      Could not get any response after filling all the details

      if I remove local IP and public Ip option from Header then it is showing bad syntax.

      please help

      posted in General Discussion
      S
      skylight