{{ __('External Exchange Integration') }}

Connected Exchanges

@if($connectedExchanges->isEmpty())

No exchanges connected yet

@else
@foreach($connectedExchanges as $exchange)
@if($exchange['exchange'] === 'binance') B @elseif($exchange['exchange'] === 'kraken') K @else C @endif

{{ ucfirst($exchange['exchange']) }}

@if($exchange['testnet']) Testnet @endif
{{ ucfirst($exchange['status']) }}
Connected {{ \Carbon\Carbon::parse($exchange['connected_at'])->diffForHumans() }}
Last Sync {{ $exchange['last_sync'] ? \Carbon\Carbon::parse($exchange['last_sync'])->diffForHumans() : 'Never' }}
@csrf @method('DELETE')
@endforeach
@endif

Price Comparisons

@foreach($priceComparisons as $pair => $prices) @endforeach
Pair Internal Binance Kraken Coinbase Average Spread
{{ $pair }} @if($prices['internal']) ${{ number_format($prices['internal'], 2) }} @if($prices['average'] && abs($prices['internal'] - $prices['average']) / $prices['average'] > 0.01) ({{ number_format(($prices['internal'] - $prices['average']) / $prices['average'] * 100, 1) }}%) @endif @else - @endif {{ $prices['binance'] ? '$' . number_format($prices['binance'], 2) : '-' }} {{ $prices['kraken'] ? '$' . number_format($prices['kraken'], 2) : '-' }} {{ $prices['coinbase'] ? '$' . number_format($prices['coinbase'], 2) : '-' }} {{ $prices['average'] ? '$' . number_format($prices['average'], 2) : '-' }} @if($prices['spread']) {{ number_format($prices['spread'], 2) }}% @else - @endif
@if($arbitrageOpportunities->isNotEmpty())

Active Arbitrage Opportunities

View All →
@foreach($arbitrageOpportunities->take(4) as $opportunity)

{{ $opportunity['pair'] }}

+{{ number_format($opportunity['profit_percentage'], 2) }}%
Buy at {{ $opportunity['buy_exchange'] }} ${{ number_format($opportunity['buy_price'], 2) }}
Sell at {{ $opportunity['sell_exchange'] }} ${{ number_format($opportunity['sell_price'], 2) }}
Profit per unit ${{ number_format($opportunity['profit_per_unit'], 2) }}
Execute Trade
@endforeach
@endif @if(!empty($externalBalances))

External Exchange Balances

@foreach($externalBalances as $exchange => $balances)

{{ ucfirst($exchange) }}

@if(isset($balances['error']))

Error loading balances

@else
@foreach($balances as $asset => $balance) @if($balance['total'] > 0)
{{ $asset }}
{{ number_format($balance['total'], 8) }} @if(isset($balance['usd_value']))

≈ ${{ number_format($balance['usd_value'], 2) }}

@endif
@endif @endforeach
@endif
@endforeach
@endif
@push('scripts') @endpush