Coder Social home page Coder Social logo

nodef / extra-fyers Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 5.0 530 KB

A Javascript interface for FYERS API.

Home Page: https://www.npmjs.com/package/extra-fyers

License: MIT License

JavaScript 6.64% TypeScript 93.36%
extra fyers api http websocket finance market stock cancel-order cancel-orders

extra-fyers's Issues

please describe login flow

please share code how to login from scratch. How to do login step1 then login step 2 then init new api instance.

symbol is coming null

  await api.connectMarketData(quote => {
    console.log(quote);
  });

  await api.subscribeMarketQuote(['NSE:HDFCBANK-EQ']);
{
  symbol: null,
  token: '10100000001333',
  name: null,
  exchange: null,
  date: 1674806101,
  marketStatus: 2,
  currentPrice: 1619.25,
  openPrice: 1632,
  highPrice: 1637,
  lowPrice: 1589.95,
  closePrice: 1648.65,
  priceChange: -29.4,
  priceChangePercent: -0.017832772268219454,
  candle: {
    date: 1674806101,
    openPrice: 1619.5,
    highPrice: 1619.5,
    lowPrice: 1619.25,
    closePrice: 1619.25,
    volume: 281
  },
  openInterest: 0,
  previousOpenInterest: 0,
  tradedQuantity: 42,
  tradedDate: 1674806101,
  tradedPrice: 1615.75,
  volume: 13007530,
  bidQuantity: 359539,
  askQuantity: 4249412,
  bidPrice: 1619.25,
  askPrice: 1619.45,
  priceSpread: 0.2,
  bids: null,
  asks: null
}

For F&O data is null

Getting null data for F&O, Index are fine. Till friday it was working fine.
following is the data
{
symbol: 'NSE:INDIAVIX-INDEX',
token: '101000000026017',
name: 'INDIAVIX-INDEX',
exchange: 'NSE',
description: 'NSE:INDIAVIX-INDEX',
priceChange: -0.7,
priceChangePercent: -5.25,
currentPrice: 12.63,
priceSpread: 0,
askPrice: 0,
bidPrice: 0,
openPrice: 13.33,
highPrice: 13.4675,
lowPrice: 12.4875,
closePrice: 13.33,
volume: 0,
date: 1704672000,
candle: null
},
{
symbol: 'NSE:BANKNIFTY24JANFUT',
token: undefined,
name: undefined,
exchange: undefined,
description: undefined,
priceChange: undefined,
priceChangePercent: undefined,
currentPrice: undefined,
priceSpread: undefined,
askPrice: undefined,
bidPrice: undefined,
openPrice: undefined,
highPrice: undefined,
lowPrice: undefined,
closePrice: undefined,
volume: undefined,
date: undefined,
candle: null
},

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.