send / received transactions in live trades

This commit is contained in:
Face 2025-06-08 21:58:40 +03:00
parent e4ba0c71ca
commit 6539eb2f4f
4 changed files with 82 additions and 27 deletions

View file

@ -37,7 +37,7 @@ export async function GET({ url }) {
.limit(limit);
const formattedTrades = trades.map(trade => ({
type: trade.type as 'BUY' | 'SELL',
type: trade.type as 'BUY' | 'SELL' | 'TRANSFER_IN' | 'TRANSFER_OUT',
username: trade.username,
userImage: trade.userImage,
amount: Number(trade.amount),