diff --git a/src/Rest/Options/Contract.php b/src/Rest/Options/Contract.php new file mode 100644 index 0000000..8478f79 --- /dev/null +++ b/src/Rest/Options/Contract.php @@ -0,0 +1,13 @@ +_get('/v3/reference/options/contracts/' . $optionsTicker, $params); + } +} diff --git a/src/Rest/Options/Contracts.php b/src/Rest/Options/Contracts.php new file mode 100644 index 0000000..72828e0 --- /dev/null +++ b/src/Rest/Options/Contracts.php @@ -0,0 +1,13 @@ +_get('/v3/reference/options/contracts', $params); + } +} diff --git a/tests/Rest/Options/ContractTest.php b/tests/Rest/Options/ContractTest.php new file mode 100644 index 0000000..55d5d9c --- /dev/null +++ b/tests/Rest/Options/ContractTest.php @@ -0,0 +1,27 @@ +httpClient = $this->getHttpMock( + $requestsContainer, [ + 'results' => [], + ] + ); + + $contract->get('O:EVRI240119C00002500'); + + $this->assertPath($requestsContainer, '/v3/reference/options/contracts/O:EVRI240119C00002500'); + } +} diff --git a/tests/Rest/Options/ContractsTest.php b/tests/Rest/Options/ContractsTest.php new file mode 100644 index 0000000..d452bb1 --- /dev/null +++ b/tests/Rest/Options/ContractsTest.php @@ -0,0 +1,27 @@ +httpClient = $this->getHttpMock( + $requestsContainer, [ + 'results' => [], + ] + ); + + $contract->get(); + + $this->assertPath($requestsContainer, '/v3/reference/options/contracts'); + } +}