# Account Service The `AccountService` is responsible for all operations related to your BingX account. This includes fetching your balance, managing positions, and adjusting leverage and margin settings. ## Get Account Balance Fetches the balance of your perpetual futures account. **Method:** `getBalance()` ```php $balance = Bingx::account()->getBalance(); ``` ## Get Positions Fetches your open positions. **Method:** `getPositions()` ```php // Get all open positions $positions = Bingx::account()->getPositions(); // Get positions for a specific symbol $btcPositions = Bingx::account()->getPositions("BTC-USDT"); ``` ## Set Leverage Sets the leverage for a specific trading pair. **Method:** `setLeverage()` ```php $result = Bingx::account()->setLeverage("BTC-USDT", 10, "ISOLATED"); ``` ## Set Margin Mode Sets the margin mode (ISOLATED or CROSSED) for a trading pair. **Method:** `setMarginMode()` ```php $result = Bingx::account()->setMarginMode("BTC-USDT", "ISOLATED"); ``` ## Get Income History Fetches your income history. **Method:** `getIncomeHistory()` ```php $income = Bingx::account()->getIncomeHistory( incomeType: "COMMISSION", limit: 100 ); ```