PHPackages                             obydul/lypto-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. obydul/lypto-api

ActiveLibrary[API Development](/categories/api)

obydul/lypto-api
================

Laravel cryptocurrency trading APIs.

v1.1.3(3y ago)45432[2 issues](https://github.com/mdobydullah/lypto-api/issues)MITPHP

Since Apr 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mdobydullah/lypto-api)[ Packagist](https://packagist.org/packages/obydul/lypto-api)[ Docs](https://github.com/mdobydullah/lypto-api)[ RSS](/packages/obydul-lypto-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (15)Used By (0)

Lypto API
=========

[](#lypto-api)

Laravel cryptocurrency trading APIs.

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

[](#installation)

### Requirements

[](#requirements)

- Minimum Laravel version 7.0

Use the following command to install:

```
composer require obydul/lypto-api
```

Run the following command to publish config file:

```
php artisan vendor:publish --provider="Obydul\LyptoAPI\LyptoAPIServiceProvider" --tag="config"
```

(Optional) Laravel 5.5 uses package auto-discovery, so doesn't require you to manually add the ServiceProvider. If you don't use auto-discovery,

```
// add the service provider to your `$providers` array in `config/app.php` file
Obydul\LyptoAPI\LyptoAPIServiceProvider::class

// and add these lines to `$aliases` array
'Binance' => Obydul\LyptoAPI\Facades\Binance::class,
'TAAPI' =>Obydul\LyptoAPI\Facades\TAAPI::class,
```

Clear application config, cache (optional):

```
php artisan optimize
```

Installation completed.

Configuration
-------------

[](#configuration)

After installation, set API key and secret in the `.env` file.

```
// exchange
LYPTO_API_MODE="sandbox" // sanbox or live
LYPTO_API_BINANCE_KEY="your-binane-api-key"
LYPTO_API_BINANCE_SECRET="your-binane-api-secret"

// tools
LYPTO_API_TAAPI_SECRET="your-taapi-secret"
```

Exchanges &amp; Tools
---------------------

[](#exchanges--tools)

### Exchanges

[](#exchanges)

Supported exchanges and features:

ExchangeFeaturesBinanceSpot trade onlyWe will add more exchanges and APIs soon.

### Tools

[](#tools)

Indicator API list:

NameFeaturesTAAPIProvides technical analysis indicator data

Usage
-----

[](#usage)

Create a Lypto request:

```
use Obydul\LyptoAPI\Libraries\LyptoRequest;

$request = new LyptoRequest();
$request->param1 = 'Value 1';
$request->param2 = "Value 2";
$request->param2 = "Value 2";
```

Pass Laypto request to exchange's function:

```
// exchange object
$exchange->functionName($request);

// exchange facade
Exchange::functionName($request);
```

### Binance

[](#binance)

Take a look at [Binance APIs and parameters](https://binance-docs.github.io/apidocs/spot/en/#change-log).

```
use Obydul\LyptoAPI\Exchanges\Binance;

// create a Binance object
$binance = new Binance();

// create order
$binance->createOrder($request);

// using facade
use Obydul\LyptoAPI\Facades\Binance;

Binance::createOrder($request);
```

Pass api key, secret &amp; mode without .env file:

```
$api_key = "YOUR_API_KEY";
$api_secret = "YOUR_API_SECRET";
$mode = "sandbox"; // default is live
$this->binance = new Binance($api_key, $api_secret, $mode); // mode doesn't need to pass for live
$this->binance = new Binance($api_key, $api_secret); // live

// using facade
use Obydul\LyptoAPI\Facades\Binance;
$account_info = Binance::config($api_key, $api_secret, $mode)->accountInfo(); // sandbox
$account_info = Binance::config($api_key, $api_secret)->accountInfo(); // live
```

Available methods:

Test server:

TitleMethodTest Connectivityping()Check Server Timetime()Exchange InformationexchangeInfo()Account &amp; Wallet:

TitleMethodAccount StatusaccountStatus()Get current account informationaccountInfo()Get trading statusapiTradingStatus()Get overall balanceaccountSnapshot()Spot trade:

TitleMethodCurrent price of a paircurrentPrice($request)Create ordercreateOrder($request)Cancel an active ordercancelOrder($request)Cancels all active orders on a symbolcancelOpenOrders($request)Check an order's statusqueryOrder($request)Get all open orders on a symbolcurrentOpenOrders($request)Get all account orders; active, canceled, or filledallOrders($request)Get trades for a specific account and symbolaccountTradeList($request)Create a new OCOcreateOCO($request)Cancel an entire Order ListcancelOCO($request)Retrieves a specific OCO based on provided optional parametersqueryOCO($request)Retrieves all OCO based on provided optional parametersqueryAllOCO($request)Retrieves open OCOqueryOpenOCO($request)24hr Ticker Price Change StatisticspriceChange24Hr($requestAverage price of a pair (5 mins)avgPrice($request### TAAPI

[](#taapi)

[TAAPI](https://taapi.io) provides technical analysis (TA) indicator data.

Let's have a look at the uasge:

```
use Obydul\LyptoAPI\Tools\TAAPI;

$taapi = new TAAPI();
$request = new LyptoRequest();
$indicator_endpoint = "rsi";
$taapi->get($indicator_endpoint, $request);

// call via facade
use Obydul\LyptoAPI\Facades\TAAPI;

TAAPI::get($indicator_endpoint, $request);
```

Pass api key without .env file:

```
$api_key = "YOUR_API_KEY";
$response = TAAPI::config($api_key)->get($indicator_endpoint, $request);
```

Examples
--------

[](#examples)

Binance```
use Obydul\LyptoAPI\Exchanges\Binance;
use Obydul\LyptoAPI\Libraries\LyptoRequest;

private $binance;

/**
 * constructor.
 */
public function __construct()
{
    $this->binance = new Binance();
}

// account info
$account_info = $this->binance->accountInfo();
dd($account_info);

// account info using facade
use Obydul\LyptoAPI\Facades\Binance;

$account_info = Binance::accountInfo();
dd($account_info);

// create order
$request = new LyptoRequest();
$request->symbol = 'BTCUSDT';
$request->side = "SELL";
$request->type = "LIMIT";
$request->timeInForce = "GTC";
$request->quantity = 0.01;
$request->price = 9000;
$request->newClientOrderId = "my_order_id_1112";
$create_order = $this->binance->createOrder($request);
dd($create_order);

// account trade list
$request = new LyptoRequest();
$request->symbol = "BTCUSDT";
$trade_list = $this->binance->accountTradeList($request);
dd($trade_list);
```

TAAPI```
use Obydul\LyptoAPI\Facades\TAAPI;
use Obydul\LyptoAPI\Libraries\LyptoRequest;

// lypto request
$request = new LyptoRequest();
$request->exchange = 'binance';
$request->symbol = "BTC/USDT";
$request->interval = "1h";

// indicator endpoint
$indicator_endpoint = "macd";

// get data
$response = TAAPI::get($indicator_endpoint, $request);

dd($response);
```

Output:

```
array:3 [▼
  "valueMACD" => 289.32379962478
  "valueMACDSignal" => 257.39665148897
  "valueMACDHist" => 31.92714813581
]
```

Information
-----------

[](#information)

- [Binance API doc](https://binance-docs.github.io/apidocs/spot/en/#change-log)
- [Binance test network](https://testnet.binance.vision)
- [TAAPI Doc](https://taapi.io/documentation)

License
-------

[](#license)

The MIT License (MIT). Please see [license file](https://github.com/mdobydullah/laraskrill/blob/master/LICENSE) for more information.

Others
------

[](#others)

In case of any issues, kindly create one on the [Issues](https://github.com/mdobydullah/lypto-api/issues) section.

Thank you for installing LyptoAPI ❤️.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

Recently: every ~149 days

Total

14

Last Release

1231d ago

### Community

Maintainers

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

---

Top Contributors

[![mdobydullah](https://avatars.githubusercontent.com/u/13184472?v=4)](https://github.com/mdobydullah "mdobydullah (18 commits)")

---

Tags

binancelaravel-binancetradingcryptocurrencytrading

### Embed Badge

![Health badge](/badges/obydul-lypto-api/health.svg)

```
[![Health](https://phpackages.com/badges/obydul-lypto-api/health.svg)](https://phpackages.com/packages/obydul-lypto-api)
```

###  Alternatives

[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

55126.2k](/packages/coinpaymentsnet-coinpayments-php)[coinremitter/laravel

Official laravel plugin for Coinremitter cryptocurrency payment gateway

2019.8k](/packages/coinremitter-laravel)[psychiccat/monero-php

A PHP library for the Monero simplewallet JSON-RPC interface.

328.5k1](/packages/psychiccat-monero-php)[hardcastle/xrpl_php

PHP SDK / Client for the XRP Ledger

129.7k5](/packages/hardcastle-xrpl-php)[tcgdex/sdk

PHP SDK to communicate with the TCGdex API

123.9k](/packages/tcgdex-sdk)[coinremitterphp/coinremitter-php

Official PHP SDK for coinremitter cryptocurrency payment gateway

142.2k](/packages/coinremitterphp-coinremitter-php)

PHPackages © 2026

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