@extends('layouts.app') @section('title', 'My Trades - FinAegis Exchange') @section('content')

My Trades

Your complete trading history

Total Trades

{{ $trades->total() }}

Total Fees Paid

{{ number_format($totalFees, 2) }} EUR

Average Trade Size

{{ $trades->total() > 0 ? number_format($trades->sum('value') / $trades->total(), 2) : '0.00' }} EUR

@forelse($trades as $trade) @php $account = Auth::user()->account; $isBuyer = $account && $trade->buyer_account_id === $account->id; $side = $isBuyer ? 'buy' : 'sell'; $fee = $isBuyer ? $trade->buyer_fee : $trade->seller_fee; $role = ($isBuyer && $trade->maker_side === 'buy') || (!$isBuyer && $trade->maker_side === 'sell') ? 'maker' : 'taker'; @endphp @empty @endforelse
Date/Time Pair Side Price Amount Total Fee Role
{{ $trade->created_at->format('Y-m-d H:i:s') }} {{ $trade->pair }} {{ strtoupper($side) }} {{ number_format($trade->price, 2) }} {{ $trade->quote_currency }} {{ number_format($trade->amount, 8) }} {{ $trade->base_currency }} {{ number_format($trade->value, 2) }} {{ $trade->quote_currency }} {{ number_format($fee, 4) }} {{ $trade->quote_currency }} {{ ucfirst($role) }}

No trades found

Start trading to see your trade history here

Start Trading
@if($trades->hasPages())
{{ $trades->links() }}
@endif

Export Trade History

Download your complete trade history for tax reporting or personal records.

@endsection