|
@@ 32-39 (lines=8) @@
|
| 29 |
|
* @param $to_search |
| 30 |
|
* @return mixed|\Psr\Http\Message\ResponseInterface |
| 31 |
|
*/ |
| 32 |
|
public function companyLookup($to_search) |
| 33 |
|
{ |
| 34 |
|
$response = $this->client->get("http://dev.markitondemand.com/MODApis/Api/v2/Lookup/json?input=".$to_search); |
| 35 |
|
|
| 36 |
|
$response =json_decode($response->getBody()); |
| 37 |
|
|
| 38 |
|
return $response; |
| 39 |
|
} |
| 40 |
|
|
| 41 |
|
/** |
| 42 |
|
* @param $company_symbol |
|
@@ 45-52 (lines=8) @@
|
| 42 |
|
* @param $company_symbol |
| 43 |
|
* @return mixed|\Psr\Http\Message\ResponseInterface |
| 44 |
|
*/ |
| 45 |
|
public function stockQuote($company_symbol) |
| 46 |
|
{ |
| 47 |
|
$response = $this->client->get("http://dev.markitondemand.com/MODApis/Api/v2/Quote/json?symbol=".$company_symbol); |
| 48 |
|
|
| 49 |
|
$response =json_decode($response->getBody()); |
| 50 |
|
|
| 51 |
|
return $response; |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
/** |
| 55 |
|
* @param $company_symbol |