All Projects → binance → binance-websocket-examples

binance / binance-websocket-examples

Licence: MIT license
Example code in Nodejs that demonstrate how to subscribe to Binance Websocket server.

Programming Languages

javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to binance-websocket-examples

Mida
The open-source and cross-platform trading framework
Stars: ✭ 263 (+112.1%)
Mutual labels:  binance
tradingview-alert-binance-trader
This trading bot listens to the TradingView alert emails on your inbox and executes trades on Binance based on the parameters set on the TD alerts.
Stars: ✭ 153 (+23.39%)
Mutual labels:  binance
abot
A-Bot - бот для торговли на Binance
Stars: ✭ 65 (-47.58%)
Mutual labels:  binance
add-tradingview-alerts-tool
Automated entry of TradingView alerts for bot trading tools such as 3Commas, Alertatron, CryptoHopper, etc.
Stars: ✭ 467 (+276.61%)
Mutual labels:  binance
unicorn-binance-websocket-api
An unofficial Python API to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, jex, dex/chain+testnet) in a easy, fast, flexible, robust and fully-featured way.
Stars: ✭ 588 (+374.19%)
Mutual labels:  binance
backtrading-python-binance
Backtesting several trading strategy and rank them according their profit return.
Stars: ✭ 108 (-12.9%)
Mutual labels:  binance
btrader
Triangle arbitrage trading bot for Binance
Stars: ✭ 197 (+58.87%)
Mutual labels:  binance
unicorn-binance-suite
The UNICORN Binance Suite is a Python Meta Package of unicorn-fy, unicorn-binance-local-depth-cache, unicorn-binance-rest-api, unicorn-binance-trailing-stop-loss and unicorn-binance-websocket-api.
Stars: ✭ 35 (-71.77%)
Mutual labels:  binance
market-maker-bot
MM Bot for OpenDEX. Make profits via arbitrage between OpenDEX and a connected CEX account like Binance 🤖
Stars: ✭ 84 (-32.26%)
Mutual labels:  binance
algotrading-example
algorithmic trading backtest and optimization examples using order book imbalances. (bitcoin, cryptocurrency, bitmex, binance futures, market making)
Stars: ✭ 169 (+36.29%)
Mutual labels:  orderbook
sprawl
Alpha implementation of the Sprawl distributed marketplace protocol.
Stars: ✭ 27 (-78.23%)
Mutual labels:  orderbook
wolf
🐺 Binance trading bot for node.js
Stars: ✭ 76 (-38.71%)
Mutual labels:  binance
Twitter Activated Crypto Trading Bot
Buys crypto through keyword detection in new tweets. Executes buy in 1 second and holds for a given time (e.g. Elon tweets 'doge', buys Dogecoin and sells after 5 minutes). Tested on Kraken and Binance exchanges
Stars: ✭ 92 (-25.81%)
Mutual labels:  binance
binance-node-docker
Docker image for Binance full and light nodes
Stars: ✭ 24 (-80.65%)
Mutual labels:  binance
awesome-defi
Curated list of awesome DeFi protocols, dapps, wallets and other resources
Stars: ✭ 36 (-70.97%)
Mutual labels:  binance
binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (-64.52%)
Mutual labels:  binance
orderbook-rs
Basic order matching engine written in Rust
Stars: ✭ 276 (+122.58%)
Mutual labels:  orderbook
backtrader-binance
Binance API integration with Backtrader.
Stars: ✭ 86 (-30.65%)
Mutual labels:  binance
binance-client-websocket
🛠️ C# client for Binance websocket API
Stars: ✭ 41 (-66.94%)
Mutual labels:  binance
binance-signature-examples
Examples of generating HMAC and RSA signature for Binance API
Stars: ✭ 170 (+37.1%)
Mutual labels:  binance

Binance Websocket Examples

Local orderbook (Spot)

# Cache local orderbook and echo best price
# btcusdt by default
npm run orderbook

# or provide the trading pair
SYMBOL=bnbusdt npm run orderbook

Spot user data stream

# get user data steam
APIKEY=xxxxxx npm run user

# Get margin account update from websocket
APIKEY=xxxxxx APISECRET=xxxxx npm run margin-user

Futures user data stream

# Get user data steam on production
APIKEY=xxxxxx APISECRET=xxxxx npm run futures-user

# On testnet
APIKEY=xxxxxx APISECRET=xxxxx WSS_BASE_URL="wss://stream.binancefuture.com/" HTTP_BASE_URL="https://testnet.binancefuture.com/" npm run futures-user

Delivery Futures user data stream

# Get user data steam - defaults to production
APIKEY=xxxxxx APISECRET=xxxxx npm run delivery-futures-user

Combined streams

# Get multi pairs stream, setting the pairs in src/multi-stream-depth
npm run multi-stream

Spot trade stream delay monitoring

npm run monitor-spot-trade

Spot depth stream delay monitoring

npm run monitor-spot-depth

Futures depth stream delay monitoring

npm run monitor-futures

How to setup

npm install

# run test
npm run test

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].