- [Cache Exchange Instance Reuse](./examples/php/) ```php set_markets($loaded_cache['markets'], $loaded_cache['currencies']); print("{$exchange_id} Loaded markets from cache in " . (microtime(true) - $start_time) . " seconds\n"); } else { $markets = $exchange->load_markets(); file_put_contents($cache_location, json_encode(['markets'=>$markets, 'currencies'=>$exchange->currencies])); print("{$exchange_id} Loaded fresh markets in " . (microtime(true) - $start_time) . " seconds\n"); } return $exchange; } $exchange1 = create_exchange('bittrex', ['custom_id'=>'mybittrex1']); print ($exchange1->fetch_trades('BTC/USDT')[0]); ```