Repository navigation
v0.1.0
First public alpha release of tigusigalpa/bingx-php — a PHP client for BingX Swap V2 API with optional Laravel integration.
✨ Features
- Base HTTP client with HMAC-SHA256 signing, configurable base URI and signature encoding, automatic
timestamp. - Modular services:
- MarketService – symbols, prices, depth, klines, funding, mark price.
- AccountService – balance, positions, account info, fees, margin, leverage helpers.
- TradeService – create/cancel orders, batch orders, order & user history, user trades.
- Advanced OrderBuilder:
- Spot & futures, margin size, leverage, LONG/SHORT/BOTH.
- Stop-loss / take-profit (price and %), test orders.
- Built‑in validation of required fields and combinations.
- Commission & leverage utilities:
- Futures fee calculator (0.045% standard rate).
- Batch commission helpers.
- Correct Set/Get Leverage implementation per BingX docs.
- Laravel 8–12 integration:
- Service provider +
Bingxfacade. - Publishable
config/bingx.php. - Ready for DI via BingxClient.
- Service provider +
- Documentation:
- README with Laravel and plain PHP usage,
- Market/Account/Trade examples,
- OrderBuilder patterns, cancellation, leverage and commission examples.