Code Monkey home page Code Monkey logo

Comments (4)

jaggedsoft avatar jaggedsoft commented on July 23, 2024 2

Yes. Great suggestion. I have already passed this along to the CTO of Binance.
We would like 24 hour price statistics for all symbols, so we can easily get daily volume, etc.

from node-binance-api.

jaggedsoft avatar jaggedsoft commented on July 23, 2024

I also responded here: binance-exchange#7
I will get back to you as soon as there is an update

from node-binance-api.

jaggedsoft avatar jaggedsoft commented on July 23, 2024

Now available on latest version

Get 24h Price Change Statistics via WebSocket

// For all symbols:
binance.websockets.prevDay(false, function(response) {
  console.log(response);
});

// For a specific symbol:
binance.websockets.prevDay('BNBBTC', function(response) {
  console.log(response);
});
View Response
{ eventType: '24hrTicker',
  eventTime: 1512629577435,
  symbol: 'BNBBTC',
  priceChange: '-0.00002671',
  percentChange: '-12.844',
  averagePrice: '0.00019282',
  prevClose: '0.00020796',
  close: '0.00018125',
  closeQty: '55.00000000',
  bestBid: '0.00018038',
  bestBidQty: '580.00000000',
  bestAsk: '0.00018125',
  bestAskQty: '144.00000000',
  open: '0.00020796',
  high: '0.00021300',
  low: '0.00017555',
  volume: '3731915.00000000',
  quoteVolume: '719.59011818',
  openTime: 1512543177433,
  closeTime: 1512629577433,
  firstTradeId: 2248079,
  lastTradeId: 2284725,
  numTrades: 36647 }

from node-binance-api.

jaggedsoft avatar jaggedsoft commented on July 23, 2024

https://api.binance.com/api/v1/ticker/24hr
Now returning all symbols

binance.prevDay(false, function(response) {
	console.log(response);
});

from node-binance-api.

Related Issues (20)

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.