{"id":19009039,"url":"https://github.com/messerli90/bittrex","last_synced_at":"2025-09-08T19:33:47.393Z","repository":{"id":62527328,"uuid":"102287555","full_name":"messerli90/bittrex","owner":"messerli90","description":"Laravel PHP Facade/Wrapper for the Bittrex API","archived":false,"fork":false,"pushed_at":"2019-10-31T03:18:55.000Z","size":10,"stargazers_count":5,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T22:50:03.782Z","etag":null,"topics":["bitcoin","bittrex","cryptocurrency","laravel","wrapper-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/messerli90.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-03T19:03:49.000Z","updated_at":"2020-02-13T15:43:30.000Z","dependencies_parsed_at":"2022-11-02T15:45:45.052Z","dependency_job_id":null,"html_url":"https://github.com/messerli90/bittrex","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/messerli90/bittrex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messerli90%2Fbittrex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messerli90%2Fbittrex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messerli90%2Fbittrex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messerli90%2Fbittrex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/messerli90","download_url":"https://codeload.github.com/messerli90/bittrex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/messerli90%2Fbittrex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274231437,"owners_count":25245585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitcoin","bittrex","cryptocurrency","laravel","wrapper-api"],"created_at":"2024-11-08T19:06:27.150Z","updated_at":"2025-09-08T19:33:47.351Z","avatar_url":"https://github.com/messerli90.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Bittrex\n=========\n\n[![Build Status](https://travis-ci.org/messerli90/bittrex.svg?branch=master)](https://travis-ci.org/messerli90/igdb)\n[![Built For Laravel](https://img.shields.io/badge/built%20for-laravel-blue.svg)](http://laravel.com)\n[![License](https://poser.pugx.org/messerli90/igdb/license)](https://packagist.org/packages/messerli90/igdb)\n[![Total Downloads](https://poser.pugx.org/messerli90/bittrex/downloads)](https://packagist.org/packages/messerli90/bittrex)\n\n## Introduction\nThis packages provides a nice and easy wrapper around the [Bittrex API](https://bittrex.com/) for use in your Laravel application.\n\nIn order to use the Bittrex API, you must have an account and API keys. \n\n## Example\n\nRetrieve your balance statements for all coins\n\n```php\nuse Messerli90\\Bittrex\\Bittrex;\n\n$bittrex = new Bittrex(config('services.bittrex.key'), config('services.bittrex.secret'));\n\n$balances = $bittrex-\u003egetBalances();\n\nreturn $balances;\n```\n\n```json\n{\n  \"success\": true,\n  \"message\": \"\",\n  \"result\": [\n    {\n      \"Currency\": \"BTC\",\n      \"Balance\": 2.20529678,\n      \"Available\": 2.20529678,\n      \"Pending\": 0,\n      \"CryptoAddress\": null\n    },\n    {\n      \"Currency\": \"LTC\",\n      \"Balance\": 12.96782052,\n      \"Available\": 12.96782052,\n      \"Pending\": 0,\n      \"CryptoAddress\": null\n    }\n  ]\n}\n```\n\n## Installation\n\nAdd `messerli90/bittrex` to your `composer.json`.\n```\n\"messerli90/bittrex\": \"~1.0\"\n```\nor \n```bash\ncomposer require messerli90/bittrex\n```\n\nRun `composer update` to pull down the latest version of the package.\n\nNow open up `app/config/app.php` and add the service provider to your `providers` array.\n\n```php\n'providers' =\u003e array(\n    Messerli90\\Bittrex\\BittrexServiceProvider::class,\n)\n```\n\nOptionally, add the facade to your `aliases` array\n```php\n'Bittrex' =\u003e \\Messerli90\\Bittrex\\Facades\\Bittrex::class,\n```\n\n## Configuration\n\nAdd the `bittrex` to your `config/services.php` array\n```php\n'bittrex' =\u003e [\n    'key' =\u003e 'YOUR_API_KEY',\n    'secret' =\u003e 'YOUR_API_SECRET'\n]\n```\n\n## Usage\n```php\nuse Messerli90\\Bittrex\\Bittrex;\n\n$bittrex = new Bittrex(config('services.bittrex.key'), config('services.bittrex.secret'));\n```\n\n### Public API\n\n```php\n// Used to get the open and available trading markets at Bittrex along with other meta data.\n$bittrex-\u003egetMarkets();\n\n// Used to get all supported currencies at Bittrex along with other meta data.\n$bittrex-\u003egetCurrencies();\n\n// Used to get the current tick values for a market.\n$bittrex-\u003egetTicker('BTC-LTC');\n\n// Used to get the last 24 hour summary of all active exchanges\n$bittrex-\u003egetMarketSummaries();\n\n// Used to get the last 24 hour summary of all active exchanges\n$bittrex-\u003egetMarketSummary('BTC-LTC');\n\n// Used to get retrieve the orderbook for a given market\n$bittrex-\u003egetOrderBook('BTC-LTC', 'both');\n\n// Used to retrieve the latest trades that have occured for a specific market.\n$bittrex-\u003egetMarketHistory('BTC-LTC');\n```\n\n### Market\n```php\n// Used to place a buy order in a specific market. Use buylimit to place limit orders. Make sure you have the proper permissions set on your API keys for this call to work\n$bittrex-\u003ebuyLimit('BTC-LTC', 1.2, 1.3);\n\n// Used to place an sell order in a specific market. Use selllimit to place limit orders.\n$bittrex-\u003esellLimit('BTC-LTC', 1.2, 1.3);\n\n// Used to cancel a buy or sell order.\n$bittrex-\u003ecancel('ORDER_UUID');\n\n// Get all orders that you currently have opened. A specific market can be requested\n$bittrex-\u003egetOpenOrders('BTC-LTC');\n```\n\n### Account\n```php\n// Used to retrieve all balances from your account\n$bittrex-\u003egetBalances();\n\n// Used to retrieve the balance from your account for a specific currency.\n$bittrex-\u003egetBalance('BTC');\n\n// Used to retrieve or generate an address for a specific currency. If one does not exist, the call will fail and return ADDRESS_GENERATING until one is available.\n$bittrex-\u003egetDepositAddress('BTC');\n\n// Used to withdraw funds from your account. note: please account for txfee.\n$bittrex-\u003ewithdraw('BTC', 1, 'BTC-ADDRESS');\n\n// Used to retrieve all balances from your account\n$bittrex-\u003egetBalances();\n\n// Used to retrieve a single order by uuid.\n$bittrex-\u003egetOrder('0cb4c4e4-bdc7-4e13-8c13-430e587d2cc1');\n\n// Used to retrieve your order history.\n$bittrex-\u003egetOrderHistory('BTC-LTC');\n\n// Used to retrieve your withdrawal history.\n$bittrex-\u003egetWithdrawalHistory('BTC');\n\n// Used to retrieve your deposit history.\n$bittrex-\u003egetDepositHistory('BTC');\n```\n\n## Format of returned data\n\nThe returned JSON data is decoded as a PHP object.\n\n## Run Unit Test\n\nIf you have PHPUnit installed in your environment, run:\n\n```bash\n$ phpunit\n```\n\n## IGDB API\n\n- [Bittrex API Docs](https://bittrex.com/Home/Api)\n\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Credits\n\n- [Michael Messerli](https://twitter.com/michaelmesserli)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesserli90%2Fbittrex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmesserli90%2Fbittrex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmesserli90%2Fbittrex/lists"}