Comments (9)
Any thoughts on this @balthazar or @bennyn ?
from binance-api-node.
Hey, is this something which happens randomly or everytime you try to open this socket?
from binance-api-node.
@balthazar Unfortunately, this has happened every time I've tried connecting to a websocket channel on various occasions.
from binance-api-node.
I tested with this code and it works like a charm. So the bug is not reproducible for me. :-/
const Binance = require('binance-api-node').default
const client = new Binance()
client.ws.ticker('ETHBTC', ticker => {
console.log(ticker)
})
Which Binance API version are you using @JohnBDonner?
from binance-api-node.
@bennyn here's from my package-lock.json
:
"binance-api-node": {
"version": "0.7.4",
"resolved": "https://registry.npmjs.org/binance-api-node/-/binance-api-node-0.7.4.tgz",
"integrity": "sha512-NHsqnw3X+0koa5FHiaAepQE+SEZNH3OJ9H3WL8HZjapFw6BQNfowa8w7E5TAJVGsOL4vWf9UFuOs8xHfsZuk7w==",
"requires": {
"html5-websocket": "2.0.2",
"isomorphic-fetch": "2.2.1",
"lodash.zipobject": "4.1.3",
"reconnecting-websocket": "3.2.2"
}
}
Something to note is that in the documentation it says to install with yarn
but I'm using npm
. I've seen that can cause issues for some projects.
from binance-api-node.
Using npm should not matter, it's most likely a connectivity issue on your side, or something is wrong with the binance certificate you have on your client.
from binance-api-node.
I have same issue, It only came from when using on browser
from binance-api-node.
I find the issue because of the protocols pass to reconnecting-websocket is null, so the header Sec-WebSocket-Protocol was send when create web socket is NULL
from binance-api-node.
0.7.6
release published, closing
from binance-api-node.
Related Issues (20)
- Partial depth not working
- How do you get the current position info for future account? HOT 1
- Reconnecting-websocket options not working? HOT 1
- TypeError: fetch failed HOT 1
- fix about node:fetch? HOT 1
- Module "crypto" has been externalized for browser compatibility HOT 2
- DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
- TypeError: Binance is not a function HOT 2
- futuresCancelBatchOrders lacks return-type annotation HOT 3
- Different data
- Opening an order with TP/SL HOT 5
- quantity parameter on Trailling Stop futuresOrder
- Incorrect data type of batchOrders in futuresBatchOrders
- futuresCancelBatchOrders return type error
- Websocket was closed before the connection was estabilshed with binance-api-node ticker and futuresticker
- Error: Invalid API-key, IP, or permissions for action. HOT 2
- How to keep TCP connection alive for REST requests
- Http-client : _crypto.default.createHmac is not a function
- How to i get a new depositAddress if I need it ?
- How to create valid takeprofit and stoploss in futures?
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 binance-api-node.