marekskopal/twelvedata

TwelveData API client library

v0.3.1 2024-04-24 10:46 UTC

This package is auto-updated.

Last update: 2024-04-24 10:47:58 UTC


README

Unofficial PHP API client library for the Twelve Data API service.

Install

composer require marekskopal/twelvedata

Usage

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,
);

Covered endpoints

More endpoints will be covered in future versions.

Reference Data

  • 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 ✅

Core Data

  • Time Series ✅
  • Exchange Rate ✅
  • Currency Conversion ✅
  • Quote ✅
  • Real-Time Price ✅
  • Edd of Day Price ✅
  • Market Movers ❌

Fundamentals

  • 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 ❌

Analysis

  • Earnings Estimate ❌
  • Revenue Estimate ❌
  • EPS Trend ❌
  • EPS Revisions ❌
  • Growth Estimates ❌
  • Recommendations ❌
  • Price Target ❌
  • Analyst Ratings - Light ❌
  • Analyst Ratings - US Equities ❌

WebSocket

Advanced

  • Complex Data ❌
  • Usage ✅

Notice

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.

Contributing

If you want to contribute, feel free to submit a pull request.