PHPackages                             alexander-emelyanov/tradologic-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. alexander-emelyanov/tradologic-api-client

ActiveLibrary[API Development](/categories/api)

alexander-emelyanov/tradologic-api-client
=========================================

PHP Client for TradoLogic platform

v2.0.2(10y ago)01.8kMITPHPPHP &gt;=5.5

Since Mar 15Pushed 10y ago1 watchersCompare

[ Source](https://github.com/alexander-emelyanov/tradologic-api-client)[ Packagist](https://packagist.org/packages/alexander-emelyanov/tradologic-api-client)[ RSS](/packages/alexander-emelyanov-tradologic-api-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (5)Versions (40)Used By (0)

TradoLogic platform API client
==============================

[](#tradologic-platform-api-client)

[![Build Status](https://camo.githubusercontent.com/6238841ced0bda8e4bdfa775e51b6c7400bbd0a1dad7cfc3ad1985b6fa40d645/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f616c6578616e6465722d656d656c79616e6f762f747261646f6c6f6769632d6170692d636c69656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/alexander-emelyanov/tradologic-api-client)[![StyleCI](https://camo.githubusercontent.com/b9e0c62177edb366805e52b4855b838b392197b7947679987d4de4be55fb2bc8/68747470733a2f2f7374796c6563692e696f2f7265706f732f35333836393634302f736869656c643f)](https://styleci.io/repos/53869640)[![Code Climate](https://camo.githubusercontent.com/83adddfbe92a52af1eed77c0e157d1b1854b75727737d3cfc68b1ec673d38ded/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f616c6578616e6465722d656d656c79616e6f762f747261646f6c6f6769632d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/alexander-emelyanov/tradologic-api-client)

This repository contains PHP Client for TradeSmarter platform.

TradeSmarter is a trading platform for binary options.

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

[](#installation)

Install using [Composer](http://getcomposer.org), doubtless.

```
$ composer require alexander-emelyanov/tradologic-api-client
```

Usage
-----

[](#usage)

First, you need to create a client object to connect to the TradoLogic servers. You will need to acquire an API username and API password for your app first from broker, then pass the credentials to the client object for logging in.

```
$client = new \TradoLogic\ApiClient([
    'url' => 'https://b2b-api.tradologic.net',
]);
```

Assuming your credentials is valid, you are good to go!

### Get countries list

[](#get-countries-list)

```
/** @var \TradoLogic\Entities\Country[] $countries */
$countries = $client->countries();
```

### Get languages list

[](#get-languages-list)

```
/** @var \TradoLogic\Entities\Language[] $languages */
$languages = $client->languages();
```

### Create user

[](#create-user)

For ability to create user your IP should be added to whitelist. So, this operation requires authorization. You should provide username, password and account ID to \\TradoLogic\\ApiClient constructor. It should seems like this:

```
$client = new \TradoLogic\ApiClient([
    'url' => 'https://b2b-api.tradologic.net',
    'username' => '',
    'password' => '',
    'accountId' => ,
]);
```

Then you can register user.

```
/** @var \TradoLogic\Responses\UserCreate $response */
$response = $client->createUser(new \TradoLogic\Requests\UserCreate([
    'userPassword' => '',
    'userFirstName' => '',
    'userLastName' => '',
    'phone' => '',
    'email' => '',
]));
```

### Login user

[](#login-user)

For redirect user to TradoLogic base website you should get Session ID for this user.

```
$request = new \TradoLogic\Requests\UserLogin([
    'email' => 'alex.emelianov@gmail.com',
    'password' => 'portal',
    'userIpAddress' => '94.74.194.219',
]);

/** @var $response \TradoLogic\Responses\UserLogin */
$response = $client->loginUser($request);

if ($response->isSuccess()) {
    echo ("User logged successfully with Session ID: " . $response->getSessionId() . PHP_EOL);
}
```

### Get deposits

[](#get-deposits)

```
/** @var $response \TradoLogic\Entities\Deposit[] */
$response = $client->deposits();
```

### Get active binary options

[](#get-active-binary-options)

For trading integration you must get list of active binary options. You can do it really easy:

```
/** @var \TradoLogic\Entities\Options\Binary[] $options */
$options = $client->getBinaryOptions();
```

### Trading

[](#trading)

When active binary options are retrieved you can open positions (binary options) for your customers.

```
$client->createBinaryOption(new \TradoLogic\Requests\BinaryOptionCreate(, , , ));
```

### Trades

[](#trades)

You can retrieve trades history for specified users.

```
/**
 * @var \TradoLogic\Entities\Trades\Regular[]
 */
$trades = $client->getRegularUserTrades(new \TradoLogic\Requests\RegularUserTradesGet([, ]));
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Total

29

Last Release

3682d ago

Major Versions

v0.1.0 → v1.0.02016-03-15

v1.3.9 → v2.0.02016-04-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/3701798abcce2c6ebf807c4ffe38d9c45c767aabe464b6bc24a58674aeb771d3?d=identicon)[AlexanderEmelyanov](/maintainers/AlexanderEmelyanov)

---

Top Contributors

[![alexander-emelyanov](https://avatars.githubusercontent.com/u/1540608?v=4)](https://github.com/alexander-emelyanov "alexander-emelyanov (73 commits)")

---

Tags

apiBinary OptionsTradoLogic

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/alexander-emelyanov-tradologic-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/alexander-emelyanov-tradologic-api-client/health.svg)](https://phpackages.com/packages/alexander-emelyanov-tradologic-api-client)
```

###  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)[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[bushlanov-dev/max-bot-api-client-php

Max Bot API Client library

281.6k](/packages/bushlanov-dev-max-bot-api-client-php)

PHPackages © 2026

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