Trades

Lists trades you can access, newest first. User credentials see their own trades and those of accounts they belong to, including subaccounts; account credentials see their account and its subaccounts.

get/trades

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP bearer

Query parameters

account_id, string

Only return trades for this account or user, prefixed biz_ or user_.

status, 'pending' | 'processing' | 'in_review' | 'completed' | 'failed'

Only return trades with this status.

type, 'close' | 'order' | 'deposit' | 'withdraw'

Only return trades of this type.

order, 'created_at' | 'updated_at'

Field to sort by.

direction, 'asc' | 'desc'

Sort direction.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

last, integer

Number of results to return from the end of the range.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

trades listed

object required
data, Trade[] required
page_info, object required

Example response

{
  "data": [
    {
      "account_id": "biz_xxxxxxxxxxxxxx",
      "amount": "25",
      "created_at": "2026-01-01T12:00:00.000Z",
      "external_order_id": "0x63cabad10f072c65ad84526e0c33081b",
      "failure_code": "market_unavailable",
      "funds_location": "wallet",
      "id": "tint_xxxxxxxxxxxxxx",
      "instrument_type": "perpetual",
      "leverage": 10,
      "market": "BTC",
      "metadata": {},
      "object": "trade",
      "order_type": "market",
      "price": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "side": "buy",
      "status": "pending",
      "status_detail": "partial_fill",
      "step": "placing",
      "trigger_price": {
        "amount": "-1234.56",
        "currency": "usd",
        "decimals": 2,
        "display_decimals": 2
      },
      "type": "order",
      "updated_at": "2026-01-01T12:00:00.000Z"
    }
  ],
  "page_info": {
    "start_cursor": "WyJjdXJzb3IiLDFd"
  }
}

Changes

    • info

      the security scope crypto_wallet:trade:read was added to the endpoint's security scheme bearerAuth

    • info

      the security scope crypto_wallet:manage was removed from the endpoint's security scheme bearerAuth

    • info

      the security scope crypto_wallet:trade:read was added to the endpoint's security scheme bearerAuth

    1 more change in this revision