Comments (4)
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.
I also responded here: binance-exchange#7
I will get back to you as soon as there is an update
from node-binance-api.
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.
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)
- how to set reduce-only stop orders with futures? HOT 1
- websockets depthCacheStaggered reconnect does not wait
- Websocket binance futures also does not give data for newly listed or some coins
- Security vulnerability in dependency module request HOT 2
- Binance is Love❤❤
- MIN_NOTIONAL changed to NOTIONAL?
- Address
- 502 Bad Gateway
- futures api HOT 1
- 100% trading in the market using the .marketBuy function HOT 2
- Has anyone had and solved the problem with 1006 and !ticker@arr (ETIMEDOUT)? HOT 1
- All future functions are giving same error HOT 2
- Docker: Socket connection timeout
- Get historical Candle stick Data HOT 1
- Margin order doesn't have the same behaviour as futuresOrder
- Get funding balance
- can i monitor more than one account via stream?
- Binance API
- how to fix: code: -2019, msg: 'Margin is insufficient.' HOT 1
- Closing one WebSocket connection inadvertently closes another
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-binance-api.