-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from digitonic/feature/more-endpoints
Reference Data
- Loading branch information
Showing
67 changed files
with
1,630 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class ExchangeSymbols extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\ExchangeSymbols::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class Exchanges extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\Exchanges::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class FxSymbols extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\FxSymbols::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class MutualFundSymbols extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\MutualFundSymbols::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class OptionsSymbols extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\OptionsSymbols::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class OtcSymbols extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\OtcSymbols::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class RegionSymbols extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\RegionSymbols::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class Sectors extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\Sectors::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class Tags extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\Tags::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class USExchanges extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\USExchanges::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\Facades\ReferenceData; | ||
|
||
use Illuminate\Support\Facades\Facade; | ||
|
||
class USHolTradeDates extends Facade | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
protected static function getFacadeAccessor() | ||
{ | ||
return \Digitonic\IexCloudSdk\ReferenceData\USHolTradeDates::class; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\ReferenceData; | ||
|
||
use Digitonic\IexCloudSdk\Contracts\IEXCloud; | ||
use Digitonic\IexCloudSdk\Exceptions\WrongData; | ||
use Digitonic\IexCloudSdk\Requests\BaseGet; | ||
|
||
class ExchangeSymbols extends BaseGet | ||
{ | ||
const ENDPOINT = 'ref-data/exchange/{exchange}/symbols'; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
private $exchange; | ||
|
||
/** | ||
* Create constructor. | ||
* | ||
* @param IEXCloud $api | ||
*/ | ||
public function __construct(IEXCloud $api) | ||
{ | ||
parent::__construct($api); | ||
} | ||
|
||
/** | ||
* @param string $exchange | ||
* | ||
* @return ExchangeSymbols | ||
*/ | ||
public function setExchange(string $exchange): self | ||
{ | ||
$this->exchange = $exchange; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function getFullEndpoint(): string | ||
{ | ||
return str_replace('{exchange}', $this->exchange, self::ENDPOINT); | ||
} | ||
|
||
/** | ||
* @return bool|void | ||
*/ | ||
protected function validateParams(): void | ||
{ | ||
if (empty($this->exchange)) { | ||
throw WrongData::invalidValuesProvided( | ||
'Required case insensitive string of Exchange using IEX Supported Exchanges list' | ||
); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\ReferenceData; | ||
|
||
use Digitonic\IexCloudSdk\Contracts\IEXCloud; | ||
use Digitonic\IexCloudSdk\Requests\BaseGet; | ||
|
||
class Exchanges extends BaseGet | ||
{ | ||
const ENDPOINT = 'ref-data/exchanges'; | ||
|
||
/** | ||
* Create constructor. | ||
* | ||
* @param IEXCloud $api | ||
*/ | ||
public function __construct(IEXCloud $api) | ||
{ | ||
parent::__construct($api); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function getFullEndpoint(): string | ||
{ | ||
return self::ENDPOINT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace Digitonic\IexCloudSdk\ReferenceData; | ||
|
||
use Digitonic\IexCloudSdk\Contracts\IEXCloud; | ||
use Digitonic\IexCloudSdk\Requests\BaseGet; | ||
|
||
class FxSymbols extends BaseGet | ||
{ | ||
const ENDPOINT = 'ref-data/fx/symbols'; | ||
|
||
/** | ||
* Create constructor. | ||
* | ||
* @param IEXCloud $api | ||
*/ | ||
public function __construct(IEXCloud $api) | ||
{ | ||
parent::__construct($api); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function getFullEndpoint(): string | ||
{ | ||
return self::ENDPOINT; | ||
} | ||
} |
Oops, something went wrong.