@extends('crm.layouts.master') @section('title','Symbols') @section('page-css') @endsection @section('main-content')
{{-- Add symbol --}}
Add Symbol
@csrf
Crypto: BINANCE:BTCUSDT  |  Forex: FX:EURUSD  |  Stocks: NASDAQ:AAPL  |  Commodities: COMEX:GC1!
Crypto: CoinGecko ID (e.g. bitcoin, ethereum)
Forex: Pair code (e.g. EURUSD, GBPUSD)
Stocks: Yahoo Finance ticker (e.g. AAPL, TSLA)
Commodities: Yahoo ticker (e.g. GC=F gold, CL=F oil)
{{-- Symbols table --}}
@foreach($symbols as $sym) @endforeach
# TV Symbol Name Category Latest Price Status Trades Action
{{ $sym->id }} {{ $sym->tv_symbol }} {{ $sym->name }} {{ ucfirst($sym->category) }} @if($sym->latestPrice) {{ number_format($sym->latestPrice->price, $sym->decimal_places) }}
{{ $sym->latestPrice->priced_at?->diffForHumans() }} @else — @endif
{{ $sym->is_active ? 'Active' : 'Inactive' }} {{ $sym->trades_count }} @if($sym->tv_symbol) @php // Some TVC indices are restricted in TradingView's embeddable widget. // Keep the configured CRM symbol and use an equivalent embeddable feed for its chart. $embeddedChartSymbol = [ 'TVC:DXY' => 'CAPITALCOM:DXY', ][$sym->tv_symbol] ?? $sym->tv_symbol; @endphp @endif
{{-- TradingView Chart Modal --}} {{-- Set Price Modal --}} {{-- Edit Symbol Modal --}} @endsection @section('page-js') @endsection