Skip to main content
This guide walks you through the minimum steps to go from a fresh API key to a live Polymarket order. You’ll verify your credentials, inspect your balances, place a market order, and confirm it shows up in your positions, all via the Bravado Trade API v2.
All requests to Bravado require a Bearer token in the Authorization header. Read the Authentication page for a full breakdown of API keys, scopes, and error handling.
1

Get your API key

Sign in to the Bravado Portal and create a new API key. The portal shows the Bearer token in full once, at creation time, so copy it into your secrets manager immediately.Each token carries a set of scopes that control which endpoints you can call. A typical key includes:
  • trade.read, read balances, positions, and orders
  • trade.execute, place and manage orders
  • trade.cancel, cancel open orders and strategies
Store your token securely, treat it like a password. Never commit it to source control or expose it in client-side code.
2

Verify your credentials

Call GET /v2/trade/account to confirm your token is valid and inspect what your key is bound to.
A successful response looks like this:
If you see "onboarding_status": "pending", your wallet hasn’t been fully provisioned yet, reach out to the Bravado team before proceeding.
3

Check your balance

Before placing an order, verify you have collateral available. Call GET /v2/trade/balances to see your current funds.
Example response:
  • pusd, pUSD held in your Polymarket trading wallet, ready to use immediately.
  • usdc_e, Bridged USDC.e on Polygon, not yet deposited.
  • total_collateral_equivalent, Sum of all collateral expressed in USD equivalent.
All values are strings. Parse them as BigDecimal before doing arithmetic.
4

Place a market order

Now place a market buy order. You need the token ID of the outcome you want to trade. This is the Polymarket ERC-1155 token ID for a specific outcome (YES or NO) on a specific market.
Include an Idempotency-Key header on every mutating request. If the request times out or your network drops, you can safely retry with the same key, Bravado will return the original response instead of creating a duplicate order. Use a UUID v4 generated fresh for each intended order.
Request fields:Example response:
  • filled_size, number of outcome tokens you received.
  • matched_amount, collateral actually spent (equals quote_amount for a fully filled market order).
  • average_price, effective fill price per token, here $0.62.
5

Check your positions

Confirm the order appears in your open positions by calling GET /v2/trade/positions.
Example response:
Your position shows 16.129032 YES tokens at an average entry price of $0.62. The unrealized_pnl reflects the mark-to-market gain since your fill.

Next steps

You’ve placed your first Polymarket order through Bravado. From here you can: