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.1.1(2mo ago)0590—0%2MITPHPPHP &gt;=8.2

Since Sep 1Pushed 2mo ago1 watchersCompare

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

READMEChangelog (4)Dependencies (12)Versions (5)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

[](#pies)

- 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 cash ✅
- GET Fetch account metadata ✅

### Personal Portfolio

[](#personal-portfolio)

- GET Fetch all open positions ✅
- GET Fetch a specific position ✅

### 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

47

—

FairBetter than 93% of packages

Maintenance94

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Total

4

Last Release

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2eeb4a0e8bc7e2ce26f00193dac3973909911a18079b18956b03af66b901421a?d=identicon)[marekskopal](/maintainers/marekskopal)

---

Top Contributors

[![marekskopal](https://avatars.githubusercontent.com/u/33967656?v=4)](https://github.com/marekskopal "marekskopal (24 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

[sylius/sylius

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

8.4k5.6M647](/packages/sylius-sylius)[getbrevo/brevo-php

Official Brevo provided RESTFul API V3 php library

963.1M35](/packages/getbrevo-brevo-php)[swisnl/json-api-client

A PHP package for mapping remote JSON:API resources to Eloquent like models and collections.

211473.2k12](/packages/swisnl-json-api-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[trycourier/courier

Courier PHP SDK

16643.9k](/packages/trycourier-courier)

PHPackages © 2026

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