PHPackages                             mi\_vadim/ftx - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mi\_vadim/ftx

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

mi\_vadim/ftx
=============

A PHP client for FTX.com

v0.2.3(3y ago)1394MITPHPPHP ^8.1

Since Aug 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mi-vadim/ftx)[ Packagist](https://packagist.org/packages/mi_vadim/ftx)[ RSS](/packages/mi-vadim-ftx/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (5)Dependencies (9)Versions (6)Used By (0)

FTX PHP Wrapper
===============

[](#ftx-php-wrapper)

Wrapper over the API provided by the [FTX exchange](https://docs.ftx.com/).

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

[](#installation)

You can install the package via composer:

```
  composer require mi-vadim/ftx
```

Basic usage
-----------

[](#basic-usage)

```
use FTX\FTX;

$ftx = FTX::create(
    'your_key_here',
    'your_secret_here'
);
```

Also you can use all free enpoints of FTX (without auth):

```
use FTX\FTX;

$ftx = FTX::create();
```

Features
--------

[](#features)

#### Subaccounts:

[](#subaccounts)

- Login as Subaccount
- Get all subaccounts: `$ftx->subaccount->all()`
- Create subaccount
- Change subaccount name
- Delete subaccount
- Get subaccount balances
- Transfer between subaccounts

```
$ftx->subaccounts->balances(),
$ftx->subaccounts->all(),
$ftx->subaccounts->transfer(),
$ftx->subaccounts->remove(),
$ftx->subaccounts->rename(),
$ftx->subaccounts->create(),
```

---

#### Markets:

[](#markets)

- Get markets
- Get single market
- Get orderbook
- Get trades
- Get historical prices

```
$ftx->markets->all(),
$ftx->markets->history(),
$ftx->markets->trades(),
$ftx->markets->orderbook(),
$ftx->markets->market(),
```

---

#### Futures:

[](#futures)

- List all futures
- Get future
- Get future stats
- Get funding rates
- Get index weights
- Get expired futures
- Get historical index
- Get index constituents

```
$ftx->futures->all(),
$ftx->futures->expired(),
$ftx->futures->indexWeight(),
$ftx->futures->rates(),
$ftx->futures->future(),
$ftx->futures->historical(),
$ftx->futures->indexConstituents(),
$ftx->futures->stats(),
```

---

#### Account:

[](#account)

- Get account information
- Request historical balances and positions snapshot
- Get historical balances and positions snapshot
- Get all historical balances and positions snapshots
- Get positions
- Change account leverage

```
$ftx->account->positions();
$ftx->account->historicalBalances(),
$ftx->account->historicalBalance(),
$ftx->account->info(),
$ftx->account->changeAccountLeverage(),
$ftx->account->requestHistoricalBalances(),
```

---

#### Wallet:

[](#wallet)

- Get coins
- Get balances
- Get balances of all accounts
- Get deposit address
- Get deposit address list
- Get deposit history
- Get withdrawal history
- Request withdrawal
- Get airdrops
- Get withdrawal fees
- Get saved addresses
- Create saved addresses
- Delete saved addresses

```
$ftx->wallet->coins(),
$ftx->wallet->balances(),
$ftx->wallet->allBalances(),
$ftx->wallet->depositAddress(),
$ftx->wallet->addressesList(),
$ftx->wallet->depositsHistory(),
$ftx->wallet->withdrawalsHistory(),
$ftx->wallet->createWithdrawalRequest()->withdraw(),
$ftx->wallet->airdrops(),
$ftx->wallet->fees(),
$ftx->wallet->savedAddresses(),
$ftx->wallet->createSavedAddress(),
$ftx->wallet->deleteSavedAddress(),
```

---

#### Orders:

[](#orders)

- Get open orders
- Get order history
- Get open trigger orders
- Get trigger order triggers
- Get trigger order history
- Place order
- Place trigger order
- Modify order
- Modify order by client ID
- Modify trigger order
- Get order status
- Get order status by client id
- Cancel order
- Cancel order by client id
- Cancel open trigger order
- Cancel all orders

```
$ftx->orders->history(),
$ftx->orders->create(),
$ftx->orders->status(),
$ftx->orders->statusByClientID(),
$ftx->orders->place(),
$ftx->orders->open(),
$ftx->orders->modifyByClientID(),
$ftx->orders->modify(),
$ftx->orders->cancelByClientID(),
$ftx->orders->cancel(),
$ftx->orders->cancelAll(),
```

---

#### Fills:

[](#fills)

```
$ftx->fills->all()
```

---

#### Funding:

[](#funding)

```
$ftx->funding->all()
```

---

#### Leveraged Tokens:

[](#leveraged-tokens)

- List leveraged tokens
- Get token info
- Get leveraged token balances
- List leveraged token creation requests
- Request leveraged token creation
- List leveraged token redemption requests
- Request leveraged token redemption

```
$ftx->leverageTokens->all(),
$ftx->leverageTokens->info(),
$ftx->leverageTokens->balances(),
$ftx->leverageTokens->creationRequests(),
$ftx->leverageTokens->requestCreation(),
$ftx->leverageTokens->redemptions(),
$ftx->leverageTokens->requestRedemption(),
```

---

#### Options:

[](#options)

- List quote requests
- Your quote requests
- Create quote request
- Cancel quote request
- Get quotes for your quote request
- Create quote
- Get my quotes
- Cancel quote
- Accept options quote
- Get account options info
- Get options positions
- Get public options trades
- Get options fills
- Get 24h option volume
- Get historical volumes
- Get option open interest
- Get historical option open interest

```
$ftx->options->requests(),
$ftx->options->myRequests(),
$ftx->options->cancelRequest(),
$ftx->options->quotesForRequest(),
$ftx->options->createQuote(),
$ftx->options->myQuotes(),
$ftx->options->cancelQuote(),
$ftx->options->acceptQuote(),
$ftx->options->accountInfo(),
$ftx->options->positions(),
$ftx->options->fills(),
$ftx->options->trades(),
```

---

#### Stacking:

[](#stacking)

- Get stakes
- Get all unstake requests
- Get stake balances
- Unstake request
- Cancel unstake request
- Get staking rewards
- Stake request

```
$ftx->staking->stakes(),
$ftx->staking->stake(),
$ftx->staking->unstake(),
$ftx->staking->unstakeRequests(),
$ftx->staking->cancelUnstake(),
$ftx->staking->balances(),
$ftx->staking->rewards(),
```

---

#### Convert:

[](#convert)

- Request quote
- Get quote status
- Accept quote

```
$ftx->convert->requestQuote(),
$ftx->convert->status(),
$ftx->convert->accept(),
```

---

#### Spot Margin:

[](#spot-margin)

- Get lending history
- Get borrow rates
- Get lending rates
- Get daily borrowed amounts
- Get market info
- Get my borrow history
- Get my lending history
- Get lending offers
- Get lending info
- Submit lending offer

```
$ftx->spot->borrowRates(),
$ftx->spot->lendingRates(),
$ftx->spot->borrowSummary(),
$ftx->spot->marketInfo(),
$ftx->spot->borrowHistory(),
$ftx->spot->lendingHistory(),
$ftx->spot->globalLendingHistory(),
$ftx->spot->offers(),
$ftx->spot->submitLendingOffer(),
$ftx->spot->lendingInfo(),
```

---

#### Latency statistics:

[](#latency-statistics)

```
$ftx->latency->statistics()
```

---

#### Support tickets:

[](#support-tickets)

- Get all support tickets
- Get support ticket messages
- Create new ticket
- Send a support message
- Update the status of your support ticket
- Count total number of unread support messages
- Mark support messages read

```
$ftx->support->tickets(),
$ftx->support->createTicket(),
$ftx->support->messages(),
$ftx->support->addMessage(),
$ftx->support->status(),
$ftx->support->countUnread(),
$ftx->support->markAsRead(),
```

---

Tests
-----

[](#tests)

Will be there soon.....

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

1343d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a4c545be355f534213670a8a08214ae59ac5029dbe909b285d5c42f4475b659?d=identicon)[mi-vadim](/maintainers/mi-vadim)

---

Top Contributors

[![M1V4D1M](https://avatars.githubusercontent.com/u/37630058?v=4)](https://github.com/M1V4D1M "M1V4D1M (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mi-vadim-ftx/health.svg)

```
[![Health](https://phpackages.com/badges/mi-vadim-ftx/health.svg)](https://phpackages.com/packages/mi-vadim-ftx)
```

###  Alternatives

[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[friendsofsymfony/http-cache

Tools to manage HTTP caching proxies with PHP

36114.7M36](/packages/friendsofsymfony-http-cache)[php-soap/psr18-transport

PSR-18 HTTP Client transport for SOAP

183.4M20](/packages/php-soap-psr18-transport)[php-http/httplug-bundle

Symfony integration for HTTPlug

38921.0M54](/packages/php-http-httplug-bundle)[brd6/notion-sdk-php

Notion SDK for PHP

5918.0k](/packages/brd6-notion-sdk-php)[laudis/neo4j-php-client

Neo4j-PHP-Client is the most advanced PHP Client for Neo4j

184616.9k31](/packages/laudis-neo4j-php-client)

PHPackages © 2026

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