Comments (3)
@jhonyjss Thank you for coming back to me on this!
After poking around with the API, I found that futuresCandlesticks
works and gives me exactly what I wanted - socket subscription for candle updates, which is essentially the same stuff you would expect for the charting data.
['1m', '3m', '5m'].forEach(i => {
const endpoint = binance.futuresCandlesticks('BTCUSDT', i, c => {
if (c.k.x) {
// candle has been closed, time to update:
this.updateCandles(i, {
open: c.k.o,
close: c.k.c,
high: c.k.h,
low: c.k.l,
openTime: c.k.t,
closeTime: c.k.T,
volume: c.k.v,
tradesCount: c.k.n
});
}
});
this.socketEndpoints.push(endpoint); // save the endpoint, to close later
});
P.S. I work with Binance Futures only, I'm not interested in Spot stuff 😸
from node-binance-api.
Same here, just tried to use it, but the callback is streaming back the symbol string, not the data.
@jhonyjss Were you able to get to the bottom of it or find an alternative?
from node-binance-api.
Hi @vitaly-t , I didn't find any alternative yet. let's watch together.
from node-binance-api.
Related Issues (20)
- 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
- futuresCountdownCancel not All
- How about implement trailingDelta?
- Asimetrik (Ed25519 ve RSA) genel-özel anahtar çiftleri oluşturmaya yönelik talimatları görüntüleyin. HOT 1
- WHIBITW HOT 1
- Trigger callback when order trigger HOT 1
- receiverOnMessage() does not work for TONUSDT HOT 1
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.