{"id":16461251,"url":"https://github.com/techtailor/laravel-binance-api","last_synced_at":"2025-03-21T05:30:56.812Z","repository":{"id":37526401,"uuid":"432458250","full_name":"TechTailor/Laravel-Binance-Api","owner":"TechTailor","description":"A Laravel Wrapper for the Binance API. Now easily connect and consume the Binance Public \u0026 Private API in your Laravel apps without any hassle.","archived":false,"fork":false,"pushed_at":"2022-08-24T18:21:46.000Z","size":14,"stargazers_count":13,"open_issues_count":3,"forks_count":14,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-05-02T03:41:25.704Z","etag":null,"topics":["binance","binance-api","binance-api-laravel","binance-api-wrapper","binanceapi","laravel-binance"],"latest_commit_sha":null,"homepage":"","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/TechTailor.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null},"funding":{"github":"TechTailor","liberapay":"TechTailor"}},"created_at":"2021-11-27T12:43:29.000Z","updated_at":"2024-03-30T22:04:45.000Z","dependencies_parsed_at":"2022-08-19T03:41:59.251Z","dependency_job_id":null,"html_url":"https://github.com/TechTailor/Laravel-Binance-Api","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FLaravel-Binance-Api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FLaravel-Binance-Api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FLaravel-Binance-Api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechTailor%2FLaravel-Binance-Api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechTailor","download_url":"https://codeload.github.com/TechTailor/Laravel-Binance-Api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117271,"owners_count":20400742,"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":["binance","binance-api","binance-api-laravel","binance-api-wrapper","binanceapi","laravel-binance"],"created_at":"2024-10-11T11:06:48.559Z","updated_at":"2025-03-21T05:30:56.556Z","avatar_url":"https://github.com/TechTailor.png","language":"PHP","funding_links":["https://github.com/sponsors/TechTailor","https://liberapay.com/TechTailor"],"categories":[],"sub_categories":[],"readme":"![](https://banners.beyondco.de/Laravel-Binance-API.png?theme=light\u0026packageManager=composer+require\u0026packageName=techtailor%2Flaravel-binance-api\u0026pattern=architect\u0026style=style_2\u0026description=A+laravel+wrapper+for+the+Binance+API.\u0026md=1\u0026showWatermark=0\u0026fontSize=100px\u0026images=server)\n\n[![GitHub release](https://img.shields.io/github/release/techtailor/laravel-binance-api.svg?include_prereleases\u0026style=for-the-badge\u0026\u0026colorB=7E57C2)](https://packagist.org/packages/techtailor/laravel-binance-api)\n[![GitHub issues](https://img.shields.io/github/issues/TechTailor/Laravel-Binance-Api.svg?style=for-the-badge)](https://github.com/TechTailor/Laravel-Binance-Api/issues)\n[![Software License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge\u0026\u0026colorB=F27E40)](license.md)\n[![Total Downloads](https://img.shields.io/packagist/dt/techtailor/laravel-binance-api.svg?style=for-the-badge)](https://packagist.org/packages/techtailor/laravel-binance-api)\n\nThis package provides a Laravel Wrapper for the [Binance API](https://binance-docs.github.io/apidocs/spot/en) and allows you to easily communicate with it.\n\n ---\n#### Important Note\nThis package is in early development stage. It is not advisable to use it in a production app until **`v1.0`** is released. Feel free to open a PR to contribute to this project and help me reach a production ready build.\n\n---\n\n### Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require techtailor/laravel-binance-api\n```\n\nYou can publish the config file with:\n```bash\nphp artisan vendor:publish --tag=\"binance-api-config\"\n```\n\nOpen your `.env` file and add the following (replace ``YOUR_API_KEY`` and ``YOUR_SECRET`` with the API Key \u0026 Secret you received from [Binance](https://www.binancezh.top/en/support/faq/360002502072)) -\n```php\nBINANCE_KEY=YOUR_API_KEY\nBINANCE_SECRET=YOUR_SECRET\n```\nOr\n\nOpen the published config file available at `config/binance-api.php` and add your API and Secret Keys:\n\n```php\nreturn [\n    'auth' =\u003e [\n        'key'        =\u003e env('BINANCE_KEY', 'YOUR_API_KEY'),\n        'secret'     =\u003e env('BINANCE_SECRET', 'YOUR_SECRET')\n    ],\n];\n```\n\n### Usage\n\nUsing this package is very simple. Just initialize the Api and call one of the available methods: \n```php\nuse TechTailor\\BinanceApi\\BinanceAPI;\n\n$binance = new BinanceAPI();\n\n$time = $binance-\u003egetTime();\n```\n\nYou can also set an API \u0026 Secret for a user by passing it after initalization (useful when you need to isolate api keys for individual users):\n\n```php\n$binance = new BinanceApi();\n\n$binance-\u003esetApi($apiKey, $secretKey);\n\n$accountInfo = $binance-\u003egetAccountInfo();\n```\n\n### Available Methods\n\nAvailable Public Methods (Security Type : `NONE`) **[API Keys Not Required]**\n```\n- getSystemStatus()         // returns system status, expect msg to be \"normal\".\n- getTime()                 // returns server timestamp.\n- getExchangeInfo($symbol)  // returns current exchange trading rules and symbol information.\n- getOrderBook($symbol)     // returns the order book for the symbol.\n- getAvgPrice($symbol)      // returns the average price for a symbol.\n- getTicker($symbol)        // returns the 24hr ticker for a symbol (if no symbol provided, returns an array of all symbols).\n```\nAvailable Private Methods (Security Type : `USER_DATA`) **[API Keys Required]**\n```\n- getAccountInfo()          // returns current account information.\n- getAllOrders()            // return all current account orders (active, canceled or filled).\n- getOpenOrders($symbol)    // returns all current account open orders (Careful when accessing without symbol).\n- getTrades($symbol)        // returns all trades for a symbol.\n- getOrderStatus($symbol, $orderId) // returns status of a given order.\n- getUserCoinsInfo()        // returns information of all coins available to the user.\n- getDepositHistory()       // returns the user's deposit history.\n- getWithdrawHistory()      // returns the user's withdraw history.\n```\n\n### TODO\n\nList of features or additional functionality we are working on (in no particular order) -\n\n```bash\n- Improve exception handling.\n- Add rate limiting to API Calls.\n- Add response for API ban/blacklisting response.\n- Improve ReadMe.\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.\n\n### Contributing\n\nPlease see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.\n\n### Security Vulnerabilities\n\nPlease review [our security policy](../../security/policy) on how to report security vulnerabilities.\n\n### Credits\n\n- [Moinuddin S. Khaja](https://github.com/TechTailor)\n- [All Contributors](../../contributors)\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%2Ftechtailor%2Flaravel-binance-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechtailor%2Flaravel-binance-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechtailor%2Flaravel-binance-api/lists"}