Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barchart/barchart-ondemand-client-php
PHP client for Barchart OnDemand
https://github.com/barchart/barchart-ondemand-client-php
barchart-ondemand crypto cryptocurrencies forex free market-data php-client stocks stocks-api
Last synced: 2 months ago
JSON representation
PHP client for Barchart OnDemand
- Host: GitHub
- URL: https://github.com/barchart/barchart-ondemand-client-php
- Owner: barchart
- License: mit
- Created: 2018-06-22T19:24:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T16:05:48.000Z (10 months ago)
- Last Synced: 2024-09-14T21:23:48.174Z (4 months ago)
- Topics: barchart-ondemand, crypto, cryptocurrencies, forex, free, market-data, php-client, stocks, stocks-api
- Language: PHP
- Size: 16.6 KB
- Stars: 6
- Watchers: 9
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## PHP Client for Barchart OnDemand
Get access to Barchart's market data through Barchart OnDemand.https://www.barchart.com/ondemand
### Installation
```
composer require barchart/ondemand-client
```### Usage
```php
require_once 'vendor/autoload.php';use Barchart\OnDemand\Client;
$ondemand = new Client('YOUR API KEY');
$results = $ondemand->getQuote(['symbols' => 'AAPL,AMZN']);// Generic request
$results = $ondemand->makeRequest('getQuote', ['symbols' => 'AAPL,AMZN']);
```