{"id":16956095,"url":"https://github.com/codenix-sv/bittrex-api","last_synced_at":"2025-03-22T13:31:53.928Z","repository":{"id":49565064,"uuid":"111917081","full_name":"codenix-sv/bittrex-api","owner":"codenix-sv","description":"PHP client for the Bittrex API","archived":false,"fork":false,"pushed_at":"2021-06-14T11:56:40.000Z","size":52,"stargazers_count":24,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T11:48:03.793Z","etag":null,"topics":["bitcoin","bittrex","bittrex-api","market"],"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/codenix-sv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-24T12:39:38.000Z","updated_at":"2023-04-13T16:51:02.000Z","dependencies_parsed_at":"2022-08-21T04:40:28.489Z","dependency_job_id":null,"html_url":"https://github.com/codenix-sv/bittrex-api","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fbittrex-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fbittrex-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fbittrex-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenix-sv%2Fbittrex-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenix-sv","download_url":"https://codeload.github.com/codenix-sv/bittrex-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244962905,"owners_count":20539241,"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","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","bittrex-api","market"],"created_at":"2024-10-13T22:14:14.550Z","updated_at":"2025-03-22T13:31:53.627Z","avatar_url":"https://github.com/codenix-sv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bittrex-api\n[![Build Status](https://travis-ci.com/codenix-sv/bittrex-api.svg?branch=master)](https://travis-ci.com/codenix-sv/bittrex-api)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/codenix-sv/bittrex-api/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/codenix-sv/bittrex-api/?branch=master)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/49b696439195269120b4/test_coverage)](https://codeclimate.com/github/codenix-sv/bittrex-api/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/49b696439195269120b4/maintainability)](https://codeclimate.com/github/codenix-sv/bittrex-api/maintainability)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/codenix-sv/bittrex-api/blob/master/LICENSE)\n![Packagist](https://img.shields.io/packagist/dt/codenix-sv/bittrex-api)\n\nA simple PHP wrapper for [Bittrex API](https://bittrex.github.io/api/v1-1). Bittrex is the next generation crypto trading platform.\n\n## Requirements\n\n* PHP \u003e= 7.2\n* ext-json\n* [Bittrex account](https://global.bittrex.com/), API key and API secret\n\n## Installation\n\nThe preferred way to install this extension is through [composer](http://getcomposer.org/download/).\n\nEither run\n\n```bash\n$ composer require codenix-sv/bittrex-api\n```\nor add\n\n```json\n\"codenix-sv/bittrex-api\" : \"^1.0\"\n```\n\nto the require section of your application's `composer.json` file.\n\n## Basic usage\n\n### Example\n```php\nuse Codenixsv\\BittrexApi\\BittrexClient;\n\n$client = new BittrexClient();\n$client-\u003esetCredential('API_KEY', 'API_SECRET');\n\n$data = $client-\u003epublic()-\u003egetMarkets();\n```\n## Available methods\n\n### Public API\n\n#### Get the open and available trading markets\n```php\n$data = $client-\u003epublic()-\u003egetMarkets();\n```\n\n#### Get all supported currencies\n```php\n$data = $client-\u003epublic()-\u003egetCurrencies();\n```\n\n#### Get the current tick values for a market\n```php\n$data = $client-\u003epublic()-\u003egetTicker('BTC-LTC');\n```\n#### Get the last 24 hour summary of all active exchanges\n```php\n$data = $client-\u003epublic()-\u003egetMarketSummaries();\n```\n\n#### Get the last 24 hour summary of all active exchanges for a market\n```php\n$data = $client-\u003epublic()-\u003egetMarketSummary('BTC-LTC');\n```\n\n#### Get the orderbook for a given market\n```php\n$data = $client-\u003epublic()-\u003egetOrderBook('BTC-LTC');\n```\n\n#### Get latest trades that have occurred for a specific market\n```php\n$data = $client-\u003epublic()-\u003egetMarketHistory('BTC-LTC');\n```\n\n### Market API\n\n#### Place a buy order in a specific market\n```php\n$data = $client-\u003emarket()-\u003ebuyLimit('BTC-LTC', 1.2, 1.3);\n```\n\n#### Place a sell order in a specific market\n```php\n$data = $client-\u003emarket()-\u003esellLimit('BTC-LTC', 1.2, 1.3);\n```\n\n#### Cancel a buy or sell order\n```php\n$data = $client-\u003emarket()-\u003ecancel('251c48e7-95d4-d53f-ad76-a7c6547b74ca9');\n```\n\n#### Get all orders that you currently have opened\n```php\n$data = $client-\u003emarket()-\u003egetOpenOrders('BTC-LTC');\n```\n\n### Account API\n\n#### Get all balances from your account\n```php\n$data = $client-\u003eaccount()-\u003egetBalances();\n```\n\n#### Get balance from your account for a specific currency\n```php\n$data = $client-\u003eaccount()-\u003egetBalance('BTC');\n```\n\n#### Get or generate an address for a specific currency\n```php\n$data = $client-\u003eaccount()-\u003egetDepositAddress('BTC');\n```\n\n#### Withdraw funds from your account\n```php\n$data = $client-\u003eaccount()-\u003ewithdraw('BTC', 20.40, 'EAC_ADDRESS');\n```\n\n#### Get a single order by uuid\n```php\n$data = $client-\u003eaccount()-\u003egetOrder('251c48e7-95d4-d53f-ad76-a7c6547b74ca9');\n```\n\n#### Get order history\n```php\n$data = $client-\u003eaccount()-\u003egetOrderHistory('BTC-LTC');\n```\n\n#### Get withdrawal history\n```php\n$data = $client-\u003eaccount()-\u003egetWithdrawalHistory('BTC');\n```\n\n#### Get deposit history\n```php\n$data = $client-\u003eaccount()-\u003egetDepositHistory('BTC');\n```\n\n## Further Information\nPlease, check the [Bittrex site](https://bittrex.github.io/api/v1-1) documentation for further\ninformation about API.\n\n## License\n\n`codenix-sv/bittrex-api` is released under the MIT License. See the bundled [LICENSE](./LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenix-sv%2Fbittrex-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenix-sv%2Fbittrex-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenix-sv%2Fbittrex-api/lists"}