crypto-trading-bot
crypto-trading-bot copied to clipboard
Extend reporting values
The current reporting fetches the total amount of USDT in the balances and the current BTC price. For better tracking we need more values that could be sent.
- Array of coins bought (name, market, price, quantity)
- Array of coins sold (name, market, price, quantity) e.g.
[
{
symbol: "BTC-USDT",
direction: "SELL",
amount: "0.01",
price: "40.000"
}
]
- Earned revenue in USDT e.g.
revenue: "7.36"
The problem I see with these metrics is, that we don't know if we actually sold it YET. We only know we've made an order and hope it goes through. But it should be fine for the first iteration.
Introducing a ReportMetric
type would be a good idea