Unofficial PHP API client library for the Twelve Data API service.
composer require marekskopal/twelvedata
use MarekSkopal\TwelveData\TwelveData;
use MarekSkopal\TwelveData\Enum\IntervalEnum;
// Create TwelveData instance
$twelveData = new TwelveData('<yourApiKey>');
// Get the one minute time series for the AAPL symbol
$response = $twelveData->getCoreData()->timeSeries(
symbol: 'AAPL',
interval: IntervalEnum::OneMinute,
);
More endpoints will be covered in future versions.
- Stocks List ✅
- Forex Pairs List ✅
- Cryptocurrencies List ✅
- ETF List ✅
- Indices List ✅
- Funds List ✅
- Bonds List ✅
- Exchanges ✅
- Cryptocurrency Exchanges ✅
- Technical Indicators Interface ❌
- Symbol Search ✅
- Earliest Timestamp ✅
- Market State ✅
- Time Series ✅
- Exchange Rate ✅
- Currency Conversion ✅
- Quote ✅
- Real-Time Price ✅
- Edd of Day Price ✅
- Market Movers ❌
- Logo ✅
- Profile ✅
- Dividends ✅
- Splits ✅
- Earnings ✅
- Earnings Calendar ❌
- IPO Calendar ❌
- Statistics ✅
- Insider Transactions ✅
- Income Statement ✅
- Balance Sheet ✅
- Cash Flow ✅
- Options Expiration ✅
- Options Chain ✅
- Key Executives ✅
- Institutional Holders ✅
- Fund Holders ✅
- Direct Holders ✅
- Last changes ❌
- Earnings Estimate ❌
- Revenue Estimate ❌
- EPS Trend ❌
- EPS Revisions ❌
- Growth Estimates ❌
- Recommendations ❌
- Price Target ❌
- Analyst Ratings - Light ❌
- Analyst Ratings - US Equities ❌
- ❌
- Complex Data ❌
- Usage ✅
This is NOT an official Twelve Data library, and the authors of this library are not affiliated with Twelve Data in any way, shape or form. Twelve Data APIs and data are Copyright © 2024 Twelve Data Pte. Ltd.
If you want to contribute, feel free to submit a pull request.