Skip to content

Commit

Permalink
Merge pull request #6 from digitonic/feature/more-endpoints
Browse files Browse the repository at this point in the history
Reference Data
  • Loading branch information
richdynamix authored Oct 4, 2019
2 parents 923478e + 65d8cf2 commit ed53f81
Show file tree
Hide file tree
Showing 67 changed files with 1,630 additions and 130 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

All notable changes to `iex-cloud-sdk` will be documented in this file

## v0.1.0-beta.7 - 2019-10-04

### Added

##### Reference Data

- International Symbols (Region)
- International Symbols (Exchange)
- International Exchanges
- U.S. Exchanges
- U.S. Holidays and Trading Days
- Sectors
- Tags
- Mutual Fund Symbols
- OTC Symbols
- FX Symbols
- Options Symbols

## v0.1.0-beta.6 - 2019-10-03

### Added
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Please see [Getting Started](GETTING_STARTED.md) for details.

#### Active Development

Below is a list of endpoints to be implemented. (32/97)
Below is a list of endpoints to be implemented. (43/97)

### Account

Expand Down Expand Up @@ -85,18 +85,18 @@ Below is a list of endpoints to be implemented. (32/97)
- [x] Crypto Symbols
- [x] Search
- [x] IEX Symbols
- [ ] International Symbols (Region)
- [ ] International Symbols (exchange)
- [ ] International Exchanges
- [ ] U.S. Exchanges
- [ ] U.S. Holidays and Trading Days
- [ ] Sectors
- [ ] Tags
- [x] International Symbols (Region)
- [x] International Symbols (Exchange)
- [x] International Exchanges
- [x] U.S. Exchanges
- [x] U.S. Holidays and Trading Days
- [x] Sectors
- [x] Tags
- [ ] ISIN Mapping
- [ ] Mutual Fund Symbols
- [ ] OTC Symbols
- [ ] FX Symbols
- [ ] Options Symbols
- [x] Mutual Fund Symbols
- [x] OTC Symbols
- [x] FX Symbols
- [x] Options Symbols

### Stocks

Expand Down
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/ExchangeSymbols.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/Exchanges.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/FxSymbols.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/MutualFundSymbols.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/OptionsSymbols.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/OtcSymbols.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/RegionSymbols.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/Sectors.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/Tags.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/USExchanges.php
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;
}
}
16 changes: 16 additions & 0 deletions src/Facades/ReferenceData/USHolTradeDates.php
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;
}
}
59 changes: 59 additions & 0 deletions src/ReferenceData/ExchangeSymbols.php
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'
);
}
}
}
29 changes: 29 additions & 0 deletions src/ReferenceData/Exchanges.php
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;
}
}
29 changes: 29 additions & 0 deletions src/ReferenceData/FxSymbols.php
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;
}
}
Loading

0 comments on commit ed53f81

Please sign in to comment.