- [Symbols](./examples/php/) ```php setHeaders ($headers); $tbl->addData ($rows); return $tbl->getTable (); } function market_table_helper ($market) { return array ( $market['id'], $market['symbol'], $market['base'], $market['quote'], $market['taker'], $market['maker'], json_encode ($market['precision']), json_encode ($market['limits']), ); } if (count ($argv) > 1) { $id = $argv[1]; $exchange_found = in_array ($id, $exchanges); if ($exchange_found) { dump ('Instantiating', green ($id), 'exchange'); // instantiate the exchange by id $exchange = '\\ccxt\\' . $id; $exchange = new $exchange (); // load all markets from the exchange $markets = $exchange->load_markets (); // output a list of all market symbols dump (green ($id), 'has', count ($exchange->symbols), 'symbols:', yellow (implode (', ', $exchange->symbols))); // output a table of all markets @dump (tabulate(array('id', 'symbol', 'base', 'quote', 'taker', 'maker', 'precision', 'limits'), array_map ('market_table_helper', $markets))); } else { dump ('Exchange', red ($id), 'not found'); print_supported_exchanges (); } } else { dump ('Usage: php -f', __FILE__, green ('id')); print_supported_exchanges (); } ?> ```