send / received transactions in live trades
This commit is contained in:
parent
e4ba0c71ca
commit
6539eb2f4f
4 changed files with 82 additions and 27 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Reference in a new issue