Trade History

Total Trades

{{ $trades->total() }}

Win Rate

{{ number_format(($trades->where('result', 'win')->count() / max($trades->count(), 1)) * 100, 1) }}%

Total Profit

${{ number_format($trades->sum('profit'), 2) }}

Total Loss

${{ number_format($trades->where('result', 'loss')->sum('amount'), 2) }}

@forelse($trades as $trade) @empty @endforelse
Bot/Date Trading Pair Action Amount Price Result Profit/Loss Actions
{{ $trade->bot->name }} {{ $trade->created_at->format('M d, Y H:i') }}
{{ $trade->trading_pair }} {{ ucfirst($trade->action) }} ${{ number_format($trade->amount, 2) }} ${{ number_format($trade->price, 2) }} @if($trade->result === null) Pending @else {{ ucfirst($trade->result) }} @endif @if($trade->result === null) Pending @else {{ $trade->result === 'win' ? '+' : '-' }}${{ number_format($trade->result === 'win' ? $trade->profit : $trade->amount, 2) }} @endif @if($trade->result === null) @endif
No trades found
{{ $trades->links() }}