PHPackages                             marekskopal/trading212 - 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. marekskopal/trading212

ActiveLibrary[API Development](/categories/api)

marekskopal/trading212
======================

Trading212 API client library

v1.2.2(2mo ago)0813↓77.8%2MITPHPPHP &gt;=8.2CI passing

Since Sep 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/marekskopal/trading212)[ Packagist](https://packagist.org/packages/marekskopal/trading212)[ RSS](/packages/marekskopal-trading212/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (7)Dependencies (24)Versions (8)Used By (0)

Trading212 API client library for PHP
=====================================

[](#trading212-api-client-library-for-php)

Unofficial PHP API client library for the [Trading212](https://www.trading212.com) API service.

Install
-------

[](#install)

```
composer require marekskopal/trading212
```

Usage
-----

[](#usage)

```
use MarekSkopal\Trading212\Trading212;
use MarekSkopal\Trading212\Config\Config;

// Create Trading212 instance
$trading212 = new Trading212(new Config('', ''));

// Get exchange list
$response = $trading212->instrumentsMetadata->exchangeList();
```

Covered endpoints
-----------------

[](#covered-endpoints)

More endpoints will be covered in future versions.

### Instruments Metadata

[](#instruments-metadata)

- GET Exchange List ✅
- GET Instrument List ✅

### Pies (Deprecated)

[](#pies-deprecated)

- GET Fetch all pies ✅
- POST Create pie ✅
- DELETE Delete pie ✅
- GET Fetch a pie ✅
- POST Update pie ✅

### Equity Orders

[](#equity-orders)

- GET Fetch all ✅
- POST Place Limit order ✅
- POST Place Market order ✅
- POST Place Stop order ✅
- POST Place StopLimit order ✅
- DELETE Cancel by ID ✅
- GET Fetch by ID ✅

### Account Data

[](#account-data)

- GET Fetch account summary ✅

### Positions

[](#positions)

- GET Fetch all open positions ✅

### Historical items

[](#historical-items)

- GET Historical order data ✅
- GET Paid out dividends ✅
- GET Exports List ✅
- POST Export csv ✅
- GET Transaction list ✅

Notice
------

[](#notice)

This is NOT an official Trading212 library, and the authors of this library are not affiliated with Trading212 in any way, shape or form.

Contributing
------------

[](#contributing)

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

###  Health Score

46

—

FairBetter than 92% of packages

Maintenance87

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity57

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 ~98 days

Recently: every ~43 days

Total

7

Last Release

72d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33967656?v=4)[Marek Skopal](/maintainers/marekskopal)[@marekskopal](https://github.com/marekskopal)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/marekskopal-trading212/health.svg)

```
[![Health](https://phpackages.com/badges/marekskopal-trading212/health.svg)](https://phpackages.com/packages/marekskopal-trading212)
```

###  Alternatives

[telnyx/telnyx-php

Official Telnyx PHP SDK — APIs for Voice, SMS, MMS, WhatsApp, Fax, SIP Trunking, Wireless IoT, Call Control, and more. Build global communications on Telnyx's private carrier-grade network.

35729.6k2](/packages/telnyx-telnyx-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[cakephp/cakephp

The CakePHP framework

8.8k19.1M1.7k](/packages/cakephp-cakephp)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k5.8M712](/packages/sylius-sylius)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

84735.1k](/packages/flow-php-flow)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

1003.6M46](/packages/getbrevo-brevo-php)

PHPackages © 2026

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