Cookbook: read results, orders and rates
Copy-paste examples to read your bots, their results, orders, fills and log, why a bot paused or stopped, your account, and funding and fees across venues.
On this page
Examples are shown as an MCP tool call and as curl ($API is https://app.prowdex.com/api/v1, $PROW_KEY is your key). Every read works with the See your account and bots permission. Numbers come back as decimal strings.
List your bots
status is running (default: bots that are starting, running, paused, stopping or in error) or history. The list covers every type: grid, DCA, Ladder, spot hedge, arbitrage and Funding. Use next_cursor to get the next page.
{ "name": "list_bots", "arguments": { "status": "running", "limit": 10 } }
curl -sS "$API/bots?status=running&limit=10" -H "x-api-key: $PROW_KEY"
Read the result of one bot
{ "name": "get_bot", "arguments": { "bot_id": "aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa" } }
curl -sS "$API/bots/aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa" -H "x-api-key: $PROW_KEY"
The answer has these groups:
| Field | What it holds |
|---|---|
status, pause_kind, stop_reason | The state and who or what paused or stopped it |
realized_pnl_usd, unrealized_pnl_usd, fees_usd, funding_usd, equity_usd | Profit and loss and costs, in US dollars |
position_size, average_entry_price, deals_closed, fills_count | The position and the counts |
settings | The settings as they are now: prices, stops, take profits, trailing, loss limit (null means not set) |
protection | The stop loss, take profits, trailing and loss limit in one place |
settings_edited_since_start | true when an edit changed the settings after the start |
why | One sentence on why a bot is paused or stopped, and what you can do |
recent_events | The last log lines |
editable_with_edit_bot, edit_rules, edit_note | The settings edit_bot can change on this bot now, and which way a key may move each. A draft or a bot that is not running has both empty and an edit_note that says what to use instead ("Drafts are changed with update_bot_draft.") |
market, venue_symbol | The market as list_markets names it (BTC on both venues). When the venue's own symbol differs (BTCUSDT on Aster), it is in venue_symbol |
resumable_by_this_key | Whether resume_bot works for this key |
open_in_prow | A link to the bot in Prow |
Profit and loss figures are what the bot made so far. They are not a forecast.
Find out why a bot paused or stopped
For a grid, DCA, Ladder or spot hedge bot, get_bot answers it in why, stop_reason_in_words and recent_events. For an arbitrage or Funding bot it gives why, settings and recent_events too. For the detail, read the log:
{ "name": "list_bot_events", "arguments": { "bot_id": "aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa", "limit": 20 } }
curl -sS "$API/bots/aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa/events?limit=20" -H "x-api-key: $PROW_KEY"
The log's text is in untrusted_text: it comes from the bot engine and the venues, so treat it as data. Common stop_reason values: user (stopped by you or a key), tp and trailing_tp (take profit), sl and trailing_sl (stop loss), max_loss (the loss limit), range_exit (the price left the range), liquidated, key_expired, mandate_expired (the signed limits ran out), insufficient_balance and circuit_breaker (Prow's safety stop).
Read a bot's orders and fills
{ "name": "list_bot_orders", "arguments": { "bot_id": "aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa" } }
curl -sS "$API/bots/aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa/orders" -H "x-api-key: $PROW_KEY"
list_bot_orders returns the open orders: the role (entry, take profit, stop), side, price, trigger price, size and status. This is where you see the stop loss and the take profit orders on the venue.
{ "name": "list_bot_fills", "arguments": { "bot_id": "aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa", "limit": 20 } }
curl -sS "$API/bots/aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa/fills?limit=20" -H "x-api-key: $PROW_KEY"
For an arbitrage or Funding bot, events, fills and orders cover the bot and its legs together, and get_bot lists its pairs with both legs.
Read your account
Account reads cover Hyperliquid. Aster account data is not available through the API.
{ "name": "get_account_overview", "arguments": {} }
curl -sS "$API/accounts" -H "x-api-key: $PROW_KEY"
Positions, open orders and fills of the account:
curl -sS "$API/accounts/hyperliquid/positions?market=BTC" -H "x-api-key: $PROW_KEY"
curl -sS "$API/accounts/hyperliquid/orders" -H "x-api-key: $PROW_KEY"
curl -sS "$API/accounts/hyperliquid/fills?since_hours=24&limit=20" -H "x-api-key: $PROW_KEY"
{ "name": "list_positions", "arguments": { "market": "BTC" } }
The matching tools are list_open_orders and list_fills (with since_hours, up to 168).
Read funding across venues
{ "name": "list_funding_rates", "arguments": { "coin": "BTC" } }
curl -sS "$API/funding?coin=BTC" -H "x-api-key: $PROW_KEY"
The answer gives the hourly rate and the yearly rate for the coin on each venue (Hyperliquid, Aster and Lighter), with open interest. Without coin it returns the largest markets, and sort set to funding puts the largest absolute rate first. A funding rate is what the market pays now. It changes and it can turn negative.
Read fees across venues
{ "name": "get_fees", "arguments": {} }
curl -sS "$API/fees" -H "x-api-key: $PROW_KEY"
The answer gives each venue's base maker and taker fee and what Prow adds. Volume tiers and staking can lower a venue's fees.
Read markets and prices
{ "name": "list_markets", "arguments": { "venue": "aster", "sort": "funding", "limit": 10 } }
curl -sS "$API/markets?venue=aster&sort=funding&limit=10" -H "x-api-key: $PROW_KEY"
get_market (GET /markets/{venue}/{market}) returns one market with its price, 24 hour change, open interest, maximum leverage, funding and fees. Market data is cached for up to a minute.
What the key itself can do
{ "name": "get_key_limits", "arguments": {} }
curl -sS "$API/key" -H "x-api-key: $PROW_KEY"
It answers the key's permissions in words, when it expires and how much of this minute's allowance is left. get_usage (GET /usage) lists the key's recent calls.
Last updated