DoQuant
English
Back to handbook

Harbor SDK

account

rt.account is read-only. Use it to decide whether an order is possible. It cannot move funds.

MethodReturns
getBalancefree, used, and total, as strings per currency
getPositionssymbol, side (long or short), amount, entryPrice, leverage
getLeverageleverage for that symbol, as a string
getFeesmaker 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);