Skip to content

Add live trading capability for real Binance trading - #78

Open
qwldcl-del wants to merge 1 commit into
tiagosiebler:masterfrom
qwldcl-del:feature/live-trading
Open

Add live trading capability for real Binance trading#78
qwldcl-del wants to merge 1 commit into
tiagosiebler:masterfrom
qwldcl-del:feature/live-trading

Conversation

@qwldcl-del

Copy link
Copy Markdown

Test PR to upstream

## Summary
Implements real trading functionality as requested in bounty tiagosiebler#50.

## Changes

- **TradingCore.js**: Added functions:
  - executeLiveTrade() - Execute real trades on Binance
  - calculateProfit() - Calculate potential profit for a path
  - setPaperOnly() - Toggle paper/live trading
  - setMinOrderAmount() - Configure minimum order amount

- **BotCore.js**: Added trading event handlers for:
  - tradeCalculated
  - orderExecuted
  - tradeCompleted
  - tradeFailed
  - tradeSkipped

- **conf.ini**: Added configuration:
  - paperTrading (default: true)
  - minOrderAmount (default: 0.001 BTC)
  - minProfitThreshold (default: 0.02%)

- **index.js**: Updated to read trading config from environment

## Usage
To enable live trading:
1. Set paperTrading=false in conf.ini
2. Add your Binance API keys to .keys file
3. Set minOrderAmount to desired trading amount

## Bounty Reference
Implements: tiagosiebler#50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants