PHPackages                             guilhermecfviana/mercadobitcoin - 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. guilhermecfviana/mercadobitcoin

ActiveLibrary[API Development](/categories/api)

guilhermecfviana/mercadobitcoin
===============================

Um cliente PHP não oficial para a trade-api do mercadobitcoin

1.4(6y ago)7251MITPHP

Since Dec 23Pushed 6y ago2 watchersCompare

[ Source](https://github.com/guilhermecfviana/mercadobitcoin)[ Packagist](https://packagist.org/packages/guilhermecfviana/mercadobitcoin)[ Docs](https://github.com/guilhermecfviana/mercadobitcoin/)[ RSS](/packages/guilhermecfviana-mercadobitcoin/feed)WikiDiscussions master Synced yesterday

READMEChangelog (5)DependenciesVersions (6)Used By (0)

PHP MercadoBitcoin Trade-API
============================

[](#php-mercadobitcoin-trade-api)

Cliente da Trade-API do MercadoBitcoin em PHP (Composer)

Como usar?
----------

[](#como-usar)

Instale usando composer:

```
composer require guilhermecfviana/mercadobitcoin

```

Crie sua conta e siga os passos em

Exemplo de uso
--------------

[](#exemplo-de-uso)

```
$options = [
    'identificador' => 'seu_identificador',
    'segredo' => 'seu_segredo',
];

$test = new \GuilhermeViana\MercadoBitcoin\TradeApi($options['identificador'], $options['segredo']);
echo $test->getAccountInfo();
```

Todos os métodos estão disponíveis para uso, porém nem todos foram testados:

- getAccountInfo()
- getOrder($coinPair, $orderId)
- listOrders($coinPair, $orderType = null, $statusList = null, $hasFills = null, $fromId = null, $toId = null, $fromTimestamp = null, $toTimestamp = null)
- listOrderBook($coinPair, $full = null)
- placeBuyOrder($coinPair, $quantity, $limitPrice)
- placeSellOrder($coinPair, $quantity, $limitPrice)
- placeMarketBuyOrder($coinPair, $cost)
- placeMarketSellOrder($coinPair, $quantity)
- cancelOrder($coinPair, $orderId)
- getWithdrawal($coin, $withdrawalId)
- withdrawCoin($coin, $description = null)

Há dois métodos para atender o nonce especificado no manual:

- Manual: informe no construtor o nonce atual (último usado + 1)
- Timestamp: gera um nonce através através do timestamp atual - não atende mais que uma requisição por segundo.

Requerimentos
-------------

[](#requerimentos)

PHP &gt;= 7.0

Docker
------

[](#docker)

Você pode utilizar o docker para criar o ambiente de desenvolvimento, para isto basta executar na raiz do projeto:

```
    ~/workspace/PHP/mercadobitcoin$ docker-compose up
```

Contribuições são bem vindas.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

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

5

Last Release

2329d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c7a1b521ff3b1ade38028c9ebe14e4ddd690eb4701c514a40f4fcb74ee1b886?d=identicon)[guilhermecfviana](/maintainers/guilhermecfviana)

---

Top Contributors

[![guilhermecfviana](https://avatars.githubusercontent.com/u/17053653?v=4)](https://github.com/guilhermecfviana "guilhermecfviana (1 commits)")

---

Tags

bitcoinunofficialmercadobitcoin

### Embed Badge

![Health badge](/badges/guilhermecfviana-mercadobitcoin/health.svg)

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

###  Alternatives

[kunalvarma05/dropbox-php-sdk

Dropbox PHP API V2 SDK (Unofficial)

3633.0M18](/packages/kunalvarma05-dropbox-php-sdk)[coinbase/coinbase-commerce

Coinbase Commerce API library

148275.7k2](/packages/coinbase-coinbase-commerce)[coinpaymentsnet/coinpayments-php

A PHP wrapper for the CoinPayments.net v1 API.

55126.2k](/packages/coinpaymentsnet-coinpayments-php)[jeffreyhyer/bamboohr

PHP SDK for the BambooHR API

1077.3k1](/packages/jeffreyhyer-bamboohr)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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