PHPackages                             coderoll/xtb-api-client - 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. coderoll/xtb-api-client

ActiveLibrary[API Development](/categories/api)

coderoll/xtb-api-client
=======================

XTB API Client

0.2.1(3y ago)389MITPHPPHP &gt;=8.0

Since Jul 27Pushed 3y ago2 watchersCompare

[ Source](https://github.com/coderoll/xtb-api-client)[ Packagist](https://packagist.org/packages/coderoll/xtb-api-client)[ RSS](/packages/coderoll-xtb-api-client/feed)WikiDiscussions master Synced 1mo ago

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

XTB API Client
==============

[](#xtb-api-client)

PHP library to use X-Trade Broker websocket API.

*NOTE: WORK IN PROGRESS!*

For now only following commands are available:

- Get Symbol
- Get Trades
- Login
- Logout
- Trade Transaction
- Trade Transaction Status

Also error handling is missing.

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

[](#installation)

```
composer require coderoll/xtb-api-client

```

You will also need WebSocket client. Suggested:

```
composer require textalk/websocket

```

Example
-------

[](#example)

```
