Harbor SDK
account
rt.account is read-only. Use it to decide whether an order is possible. It cannot move funds.
| Method | Returns |
|---|---|
| getBalance | free, used, and total, as strings per currency |
| getPositions | symbol, side (long or short), amount, entryPrice, leverage |
| getLeverage | leverage for that symbol, as a string |
| getFees | maker and taker |
There is no withdrawal and no transfer. A spot strategy reads the balance to see what it can still buy. A swap strategy reads positions to see whether it is flat. permissions must include account.
const positions = await rt.account.getPositions(); const fees = await rt.account.getFees(symbol);
