MCPcopy Index your code
hub / github.com/bitcoinvsalts/node-binance-trader

github.com/bitcoinvsalts/node-binance-trader @0.6.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.6.0 ↗ · + Follow
70 symbols 165 edges 26 files 0 documented · 0% updated 22mo ago0.6.0 · 2022-04-19★ 1,2203 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

build status Donate NIM

Node Binance Trader NBT

NBT is a Cryptocurrency Trading Strategy & Portfolio Management Development Framework for Binance.

Table of contents

  1. Documentation 📖
  2. Technical overview 👨‍💻
  3. Disclaimer 📖
  4. Donate 🙏
  5. Getting in touch 💬
  6. Final Notes

Documentation

Technical overview

NBT includes 3 main JS scripts:

  • the server:

  • to track a selection of asset pairs and record all Binance api data (candles, depths, trades) into a Postgres database.

  • to detect buy or sell signals
  • (optional) to send trading signals to the NBT Hub / Bitcoin vs. Altcoins to monitor performances and auto trade those signals (virtually or for real).

  • the trader: Deploy

  • this script allows you to auto trade the signals received from the NBT hub or your own server. this script can run locally or on cloud services like Heroku. This new auto trader script allows you to trade with leverage when the pair is available for margin trading.

  • the backtest :

  • to backtest your strategies on the historical tick data (Postgres database) recorded by the server.

Disclaimer

No owner or contributor is responsible for anything done with this bot. You use it at your own risk. There are no warranties or guarantees expressed or implied. You assume all responsibility and liability.

Donate

Become a patron, by simply clicking on this button (very appreciated!):

If this repo helped you in any way, you can always leave me a BNB tip at 0xf0c499c0accddd52d2f96d8afb6778be0659ee0c

Getting in touch

Discord chat

Final Notes

Feel free to fork and add new pull request to this repo. If you have any questions/suggestions, or simply you need some help building your trading bot, or mining historical data or improving your strategies using the latest AI/ML algorithms, please feel free to contact me.

Extension points exported contracts — how you extend this code

TradingData (Interface)
(no doc)
src/trader/types/trader.ts
TradingMetaData (Interface)
(no doc)
src/trader/types/trader.ts
TradingSequence (Interface)
(no doc)
src/trader/types/trader.ts
Notifier (Interface)
(no doc)
src/trader/types/notifier.ts
NotifierMessage (Interface)
(no doc)
src/trader/types/notifier.ts

Core symbols most depended-on inside this repo

setDefault
called by 11
src/trader/env.ts
getTradingSequence
called by 9
src/trader/trader.ts
trade
called by 9
src/trader/trader.ts
getOnSignalLogData
called by 7
src/trader/trader.ts
getTradeOpen
called by 6
src/trader/trader.ts
testOnly
called by 6
src/trader/env.ts
sleep
called by 5
src/server/server.js
executeTradingTask
called by 4
src/trader/trader.ts

Shape

Function 45
Interface 10
Class 8
Method 4
Enum 3

Languages

TypeScript100%

Modules by API surface

src/trader/types/bva.ts20 symbols
src/trader/trader.ts15 symbols
src/server/server.js9 symbols
src/trader/apis/binance.ts4 symbols
src/trader/types/trader.ts3 symbols
src/trader/socket.ts3 symbols
src/trader/notifiers/index.ts3 symbols
src/trader/env.ts3 symbols
src/server/backtest.js3 symbols
src/trader/types/notifier.ts2 symbols
src/trader/notifiers/telegram.ts1 symbols
src/trader/notifiers/gmail.ts1 symbols

Datastores touched

postgresDatabase · 1 repos

For agents

$ claude mcp add node-binance-trader \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page