PHPackages                             iamirnet/azbitcom - 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. iamirnet/azbitcom

ActiveLibrary[API Development](/categories/api)

iamirnet/azbitcom
=================

PHP SDK for azbit.com

1.0.0(4y ago)05Apache-2.0PHP

Since Apr 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/iamirnet/azbit.com)[ Packagist](https://packagist.org/packages/iamirnet/azbitcom)[ Docs](https://php.iamir.net/packages/azbitcom)[ RSS](/packages/iamirnet-azbitcom/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Latest Version](https://camo.githubusercontent.com/70b52f1cb1497c53d1d0836c6a02714138765741270242fc1c796a5cd5e8d3cc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f69616d69726e65742f617a6269742e636f6d2e7376673f7374796c653d666c61742d737175617265)](https://github.com/iamirnet/azbit.com/releases)[![GitHub last commit](https://camo.githubusercontent.com/5232ac3b6fde1e8d207c9d76b37262e3b90f5fb4d7bee19f46f8890a73f521d1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f69616d69726e65742f617a6269742e636f6d2e7376673f7374796c653d666c61742d737175617265)](#)[![Packagist Downloads](https://camo.githubusercontent.com/09ccff43d0ce1c940a248a5f767a75418ba266ce85b3c100abb28a23980cfd77/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f69616d69726e65742f617a626974636f6d2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/iamirnet/azbitcom)

PHP Azbit API
=============

[](#php-azbit-api)

This project is designed to help you make your own projects that interact with the [Azbit API](https://data.azbit.com/swagger/index.html).

#### Installation

[](#installation)

```
composer require iamirnet/azbitcom

```

 Click for help with installationInstall Composer
----------------

[](#install-composer)

If the above step didn't work, install composer and try again.

#### Debian / Ubuntu

[](#debian--ubuntu)

```
sudo apt-get install curl php-curl
curl -s http://getcomposer.org/installer | php
php composer.phar install

```

Composer not found? Use this command instead:

```
php composer.phar require "iamirnet/azbitcom"

```

#### Installing on Windows

[](#installing-on-windows)

Download and install composer:

1.
2. Create a folder on your drive like C:\\iAmirNet\\Azbit
3. Run command prompt and type `cd C:\iAmirNet\Azbit`
4. `composer require iamirnet/azbitcom`
5. Once complete copy the vendor folder into your project.

#### Getting started

[](#getting-started)

`composer require iamirnet/azbitcom`

```
require 'vendor/autoload.php';
// config by specifying api key and secret
$api = new \iAmirNet\Azbit\Client("","");
```

=======

#### Get list of currency codes

[](#get-list-of-currency-codes)

```
//Call this before running any functions
print_r($api->currencies());
```

=======

#### Get list of currency pair settings

[](#get-list-of-currency-pair-settings)

```
//Call this before running any functions
print_r($api->currenciesPairs());
```

=======

#### Get currency pair settings

[](#get-currency-pair-settings)

```
//Call this before running any functions
print_r($api->currenciesPair("BTC_USDT"));
```

=======

#### Get currency pair commissions

[](#get-currency-pair-commissions)

```
//Call this before running any functions
print_r($api->currenciesCommissions());
```

=======

#### Get currency pair commissions and user commission info

[](#get-currency-pair-commissions-and-user-commission-info)

```
//Call this before running any functions
print_r($api->currenciesUserCommissions());
```

#### Get history of trades for CurrencyPair (100)

[](#get-history-of-trades-for-currencypair-100)

```
//Call this before running any functions
$sinceDate = "2021-02-05T14:00:00";
$endDate = "2021-02-05T15:00:00";
$pageNumber = 1;
$pageSize = 20;
print_r($api->trades("BTC_USDT",/* optional */ $sinceDate,/* optional */  $endDate,/* optional */ $pageNumber,/* optional */  $pageSize));
```

#### Get history of trades for user per CurrencyPair (100)

[](#get-history-of-trades-for-user-per-currencypair-100)

```
//Call this before running any functions
$sinceDate = "2021-02-05T14:00:00";
$endDate = "2021-02-05T15:00:00";
$pageNumber = 1;
$pageSize = 20;
print_r($api->myTrades("BTC_USDT",/* optional */ $sinceDate,/* optional */  $endDate,/* optional */ $pageNumber,/* optional */  $pageSize));
```

#### Get ticker info

[](#get-ticker-info)

```
//Call this before running any functions
print_r($api->ticker("BTC_USDT"));
```

#### Get Kline/Candlestick Data

[](#get-klinecandlestick-data)

```
//Call this before running any functions
print_r($api->kline("BTC_USDT",/* year, month, day, hour4, hour, minutes30, minutes15, minutes5, minutes3, minute */  "minute",/* Example: "2021-02-05T14:00:00" */ false,/* Example: "2021-02-05T14:00:00" */ false));
```

#### Get orderbook (40 bids + 40 asks)

[](#get-orderbook-40-bids--40-asks)

```
//Call this before running any functions
print_r($api->orderbook("BTC_USDT"));
```

#### Create Buy or Sell limit order

[](#create-buy-or-sell-limit-order)

###### Buy

[](#buy)

```
//Call this before running any functions
$quantity = 1;
$price = 0.0005;
print_r($api->buy("BTC_USDT", $quantity, $price, "LIMIT"));
```

###### Sell

[](#sell)

```
//Call this before running any functions
$quantity = 1;
$price = 0.0006;
print_r($api->sell("BTC_USDT", $quantity, $price, "LIMIT"));
```

#### Delete selected order

[](#delete-selected-order)

```
//Call this before running any functions
$orderId = "3fa85f64-5717-4562-b3fc-2c963f66afa6";
print_r($api->cancel($orderId));
```

#### Delete all user orders for currency pair

[](#delete-all-user-orders-for-currency-pair)

```
//Call this before running any functions
print_r($api->cancel("BTC_USDT"));
```

#### Get user order info with deals

[](#get-user-order-info-with-deals)

```
//Call this before running any functions
$orderId = "3fa85f64-5717-4562-b3fc-2c963f66afa6";
print_r($api->orderInfo($orderId));
```

#### Get orders of user

[](#get-orders-of-user)

```
$orders = $api->orders("BTC_USDT",/* "all" / "active" / "canceled" */  "all");
print_r($orders);
```

#### Get deposits and withdrawals of user

[](#get-deposits-and-withdrawals-of-user)

```
//Call this before running any functions
print_r($api->wallet());
```

#### Get user balances (available and blocked in orders)

[](#get-user-balances-available-and-blocked-in-orders)

```
//Call this before running any functions
print_r($api->balances());
```

#### Get Limits

[](#get-limits)

```
//Call this before running any functions
print_r($api->limits());
```

#### Get information for deposit

[](#get-information-for-deposit)

```
//Call this before running any functions
print_r($api->address("BTC_USDT"));
```

#### Withdraw money

[](#withdraw-money)

```
//Call this before running any functions
print_r($api->withdrawal("BTC_USDT", "address", "addressPublicKey",/* amount */ 0.05));
```

Contribution
------------

[](#contribution)

- Give us a star ⭐
- Fork and Clone! Awesome
- Select existing [issues](https://github.com/iamirnet/azbit.com/issues) or create a [new issue](https://github.com/iamirnet/azbit.com/issues/new) and give us a PR with your bugfix or improvement after. We love it ❤️

Donate
------

[](#donate)

- USDT Or TRX: TUE8GiY4vmz831N65McwzZVbA9XEDaLinn 😘❤

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

1487d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1670938?v=4)[Peyman Jahani](/maintainers/jahani)[@jahani](https://github.com/jahani)

---

Top Contributors

[![iamirnet](https://avatars.githubusercontent.com/u/68027783?v=4)](https://github.com/iamirnet "iamirnet (2 commits)")

---

Tags

phpxtapixtsdkxtazbit.com

### Embed Badge

![Health badge](/badges/iamirnet-azbitcom/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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