wss-group / bybitapi
A PHP package that implement Bybit API
Fund package maintenance!
Allan Mariucci Carvalho
Requires
- php: ^8.4
- ext-bcmath: *
- illuminate/contracts: ^11.24|^12.0
- saloonphp/cache-plugin: ^v3.0.0
- saloonphp/laravel-plugin: ^v3.5.1
- saloonphp/saloon: ^v3.10.1
- spatie/laravel-package-tools: ^1.19.0
- wsssoftware/laraveltoolkit: ^v1.1.0
Requires (Dev)
- laravel/pint: ^v1.21.0
- nunomaduro/collision: ^v8.6.1
- orchestra/testbench: ^10.0.0
- pestphp/pest: ^v3.7.4
- pestphp/pest-plugin-arch: ^v3.0.0
- pestphp/pest-plugin-laravel: ^v3.1.0
- spatie/laravel-ray: ^1.39.1
This package is auto-updated.
Last update: 2025-05-12 01:04:36 UTC
README
A PHP package that implement Bybit API (Current implementation v5)
Installation
You can install the package via composer:
composer require wss-group/bybitapi
You can publish the config file with:
php artisan vendor:publish --tag="bybit-api-config"
This is the contents of the published config file:
return [
];
Work Progress
Please see PROGRESS for more information about current implementation progress.
Usage
// Account group \BybitApi\Facades\Account::actingAs($entity)->getCollateralInfo('BTC'); // Asset group \BybitApi\Facades\Asset::actingAs($entity)->getSubUID(); // Market group \BybitApi\Facades\Market::actingAs($entity)->getBybitServerTime(); // Position group \BybitApi\Facades\Position::actingAs($entity)->confirmNewRiskLimit(\BybitApi\Enums\Category::INVERSE, 'BTCUSDT'); // Trade group \BybitApi\Facades\Trade::actingAs($entity)->cancelAllOrders(\BybitApi\Enums\Category::INVERSE); // Trade group \BybitApi\Facades\User::actingAs($entity)->getApiKeyInformation();
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.