https://github.com/c0debrain/binance-websocket
https://github.com/c0debrain/binance-websocket
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/c0debrain/binance-websocket
- Owner: c0debrain
- Created: 2020-11-21T14:06:38.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-21T14:17:35.000Z (about 5 years ago)
- Last Synced: 2025-01-01T17:42:25.632Z (about 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# What is this
Simple example of using websocket to listen to Binance Candle Stick Stream, updated every minute
# Run this project
```
npm install
node index.js
```
NOTE: Wait for 1 min to see the ticker on the console.
# Create new project
```
#create a new nodejs project
npm init
#install websocket library
npm install ws --save
```
# Binance websocket endpoints doc
https://docs.binance.org/api-reference/dex-api/ws-streams.html