{ $request_data['limit'] = $limit; if ($to_id) { $request_data['to_id'] = $to_id; } $this->set_path('/trader/orders'); return $this->perform($request_data, 'GET', True); } } /////////////////////////////////////////////////////Your Data////////////////////////////////////////////////////////// $auth_key = '86a6a2e66e586bf937cc'; $secret = 'ebef82aa5cf823a8751132daa948161cfb60f77a'; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// $client = new ApiClient($auth_key, $secret, 'http://localhost:8000'); echo "\n--------------------------------depth------------------------------------\n"; print_r($client->exchange_depth('BTCUSD', 10)); echo "\n--------------------------------last 10 operations------------------------------------\n"; print_r($client->exchange_history('BTCUSD', 10)); echo "\n--------------------------------ticker------------------------------------\n"; print_r($client->exchange_ticker('BTCUSD')); echo "\n--------------------------------exchange info------------------------------------\n"; print_r($client->exchange_info()); echo "\n--------------------------------list active orders------------------------------------\n"; print_r($client->list_active_orders()); echo "\n--------------------------------create limit order------------------------------------\n"; $order = $client->create_order(1, 1, 'BUY', 'BTCUSD'); print_r($order); echo "\n--------------------------------remove order------------------------------------\n"; print_r($client->remove_order(123456)); echo "\n--------------------------------trader info------------------------------------\n"; print_r($client->trader_info());