PHPackages                             arequena93/world-trading-data-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. arequena93/world-trading-data-api

ActiveLibrary[API Development](/categories/api)

arequena93/world-trading-data-api
=================================

World Trading Data API client

0.9.1(6y ago)469MITPHPPHP ^7.0CI failing

Since Aug 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/arequena93/world-trading-data-api)[ Packagist](https://packagist.org/packages/arequena93/world-trading-data-api)[ Docs](https://github.com/arequena93/world-trading-data-api)[ RSS](/packages/arequena93-world-trading-data-api/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

World Trading Data PHP Client
=============================

[](#world-trading-data-php-client)

[![Build Status](https://camo.githubusercontent.com/cd7ef090202c4e3e446315202bef6a498da507a4a03a784aa6beb21fb45b1922/68747470733a2f2f7472617669732d63692e6f72672f6172657175656e6139332f776f726c642d74726164696e672d646174612d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/arequena93/world-trading-data-api)

PHP-Client (wrapper) for the [World Trading Data](https://www.worldtradingdata.com/) service.

Requirements
------------

[](#requirements)

- PHP 7.0+
- Composer ()
- WorldTradingData API key: [WorldTradingData-Api-Key](https://www.worldtradingdata.com/register)

Installation
------------

[](#installation)

```
php composer.phar require arequena93/world-trading-data-api

```

Usage
-----

[](#usage)

### Initialization

[](#initialization)

```
$option = new WorldTradingData\Options();
$option->setApiKey('YOUR_API_KEY');
$client = new WorldTradingData\Client($option);

```

### Functionalities

[](#functionalities)

   WTD functions Example usage Parameters (required in bold)   Real Time Market Data Stock and index real time `$client->realtime()->stockAndIndexRealTime('AAPL');` - **symbol**
- sort\_order
- sort\_by
- output

    Mutual fund real time `$client->realtime()->mutualFundRealTime('AAAAX');` - **symbol**
- sort\_order
- sort\_by
- output

    Intraday Market Data Stock and index intraday       Historical Market Data Full history `$client->historical()->fullHistory('ITX.MC');` - **symbol**
- date\_from
- date\_to
- sort
- output
- formatted

    Multi single day history `$client->historical()->multiSingleDayHistory('AAPL,ITX.MC', '2018-01-02');` - **symbol**
- **date**
- sort
- output
- formatted

    Forex Real time `$client->forex()->realTime('EUR');` - **base**

    Historical `$client->forex()->historical('USD', 'GBP');` - **base**
- **convert\_to**
- date\_from
- date\_to
- sort
- output
- formatted

    Single day history `$client->forex()->singleDayHistory('USD', '2018-08-31');` - **base**
- **date**
- output
- formatted

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Total

2

Last Release

2390d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d046b4183fa3945bc7ac28f541f0d013f992920fa9fbc1a3a42eb476ca35d4f0?d=identicon)[arequena93](/maintainers/arequena93)

---

Top Contributors

[![arequena93](https://avatars.githubusercontent.com/u/19290399?v=4)](https://github.com/arequena93 "arequena93 (32 commits)")

---

Tags

apiworld-trading-dataworldtradingdata

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/arequena93-world-trading-data-api/health.svg)

```
[![Health](https://phpackages.com/badges/arequena93-world-trading-data-api/health.svg)](https://phpackages.com/packages/arequena93-world-trading-data-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
