CyberPunkMetalHead / gateio-crypto-trading-bot-binance-announcements-new-coins

This is a crypto trading bot that scans the Binance Annoucements page for new coins, and places trades on Gateio
MIT License
1.21k stars 302 forks source link

Consider logs more beautify & add more informative new fields #155

Open Dentrax opened 2 years ago

Dentrax commented 2 years ago

I'm not so sure how we can make the following logs much beautify, but here is what I'm proposing:

On New Announcement

Current:

New announcement detected: API3

New:

NEW: API3
Platform: KuCoin
Release: Fri Jan 21 2022 06:28:04
Timestamp: Fri Jan 21 2022 06:28:13

Current:

starting buy placeorder with : announcementcoin='API3' | globals.pairing='USDT' | volume=33.0 | amount=6.623845845042151 x price='4.982' | side = buy | status='cancelled'

New:

Coin: API3
Action: BUY
Status: Cancelled
Pair: USDT
Volume: 33.0
Amount: 6.623845845042151
Price: 4.982
Total: {Amount x Price}
At: Fri Jan 21 2022 06:28:10
Timestamp: Fri Jan 21 2022 06:28:13

Current:

sold API3 with -1.534 profit | -3.031% PNL

New:

Coin: API3
Action: SOLD
Price: 4.877
Profit: 3.245 USDT (-1.534%)
PNL: -3.031%
At: Fri Jan 21 2022 06:28:10
Timestamp: Fri Jan 21 2022 06:33:24