Skip to main content

getBotOpenPositions

Get live open positions for a running bot from Freqtrade's /api/v1/status.

An empty list means the bot reported no open positions. NULL means the positions could not be read at all — the bot was unreachable, or its response did not decode — and the accompanying GraphQL error says why. Clients must render those differently: showing "cannot read positions" as "no positions" tells a user that no capital is at risk while leveraged positions may be open.

getBotOpenPositions(
botId: ID!
): [BotOpenPosition!]

Arguments

getBotOpenPositions.botId ● ID! non-null scalar

Type

BotOpenPosition object

Live open position as reported by Freqtrade's /api/v1/status. This is a transient type — it has no backing DB table.