> Use the canonical URL for citations. For the complete Predict API documentation index, fetch https://docs.staging.trypredict.com/llms.txt.

# List account trades

GET https://api.staging.trypredict.com/v1/accounts/{address}/trades

List newest Predict fills for an account with optional outcome and submitting-wallet filters plus cursor pagination.

Reference: https://docs.staging.trypredict.com/api-reference/account/list-account-trades

## Request

### Path parameters

- `address` (string, required) — EVM wallet address encoded as a 0x-prefixed hexadecimal string.

### Query parameters

- `outcome_id` (string, optional) — Stable unique identifier for the outcome.
- `limit` (integer, optional)
- `cursor` (string, optional) — Opaque pagination cursor returned by the previous page.
- `submitted_by` (string, optional)
- `include` (enum, optional) — Optional related catalog resource. Omit for the smallest response.
  - Allowed values: `outcome`, `event`
- `start_time` (datetime, optional) — Inclusive lower bound on occurred_at. Not Event.start_time.
- `end_time` (datetime, optional) — Inclusive upper bound on occurred_at. Not Event.start_time.

## Response

### 200

OK

- `data` (list of AccountTrade, optional)
- `next_cursor` (string, optional) — Opaque pagination cursor returned by the previous page.
- `included` (Included, optional) — Related catalog resources requested with include=outcome or include=event. Collection responses deduplicate them by id instead of repeating the same event or outcome on every activity row.

## Errors

### 400 Bad Request Error

The request is malformed or violates a field constraint.

- `error` (RESTError, required)

### 404 Not Found Error

The requested resource does not exist.

- `error` (RESTError, required)

### 405 Method Not Allowed Error

The HTTP method is not allowed on this path.

- `error` (RESTError, required)

### 500 Internal Server Error

The server could not complete the request.

- `error` (RESTError, required)

### 503 Service Unavailable Error

A required dependency is temporarily unavailable.

- `error` (RESTError, required)

## Types

### AccountTrade

- `fill_id` (string, optional) — Stable unique identifier for the fill.
- `trade_id` (string, optional) — Stable unique identifier for the trade.
- `outcome_id` (string, optional) — Stable unique identifier for the outcome.
- `side` (integer, optional) — Hyperliquid outcome token index: 0 is the first token and 1 is the second.
- `direction` (enum, optional) — Allowed value for direction.
  - Allowed values: `buy`, `sell`
- `price` (string, optional) — Base-10 decimal value encoded as a string to preserve precision.
- `quantity` (string, optional)
- `notional_usdc` (string, optional)
- `fee_token` (string, optional)
- `fee_amount` (string, optional) — Base-10 decimal value encoded as a string to preserve precision.
- `fee_usdc` (string, optional)
- `gross_realized_pnl_usdc` (string, optional) — Base-10 decimal value encoded as a string to preserve precision.
- `realized_pnl_usdc` (string, optional) — Base-10 decimal value encoded as a string to preserve precision.
- `venue_order_id` (string, optional) — Stable unique identifier for the venue order.
- `transaction_hash` (string, optional)
- `account` (AccountLocation, optional)
- `occurred_at` (datetime, optional)
- `submitted_by` (AccountRef, optional) — Wallet that submitted the order. Null when upstream attribution is absent.
- `client_order_id` (string, optional) — Hyperliquid cloid of the matching order. Null when the order has none or the fill has not joined to data.orders yet.
- `liquidity` (enum, optional) — Allowed value for liquidity.
  - Allowed values: `maker`, `taker`

### Included

Related catalog resources requested with include=outcome or include=event. Collection responses deduplicate them by id instead of repeating the same event or outcome on every activity row.

- `outcomes` (list of Outcome, optional)
- `events` (list of Event, optional)

### RESTError

- `code` (integer, required) — HTTP status code returned with the response.
- `status` (enum, required) — Stable canonical status name suitable for programmatic handling.
  - Allowed values: `INVALID_ARGUMENT`, `UNAUTHENTICATED`, `PERMISSION_DENIED`, `NOT_FOUND`, `METHOD_NOT_ALLOWED`, `ALREADY_EXISTS`, `RESOURCE_EXHAUSTED`, `INTERNAL`, `UNAVAILABLE`, `DEADLINE_EXCEEDED`
- `message` (string, required) — Human-readable explanation that is safe to show to an API caller.
- `details` (list of ErrorDetail, required) — Typed structured context for clients that need to handle the error programmatically.

### AccountLocation

- `main_account` (AccountRef, optional)
- `subaccount` (AccountRef, optional)

### AccountRef

- `address` (string, optional) — EVM wallet address encoded as a 0x-prefixed hexadecimal string.
- `username` (string, optional)
- `image_url` (string, optional) — Absolute URL for the referenced resource.
- `hyperliquid_name` (string, optional)
- `account_type` (enum, optional) — Always set. Zero is main; every stored row has a real type.
  - Allowed values: `main`, `subaccount`

### Outcome

A publicly visible Hyperliquid-tradable instrument.

- `id` (string, optional) — Stable unique identifier for the id.
- `slug` (string, optional) — Human-readable label. Backend-generated for sports; caller-supplied otherwise. Always present and non-empty.
- `event_id` (string, optional) — Stable unique identifier for the event.
- `title` (string, optional)
- `status` (enum, optional) — Allowed value for status.
  - Allowed values: `active`, `settled`, `verifying`
- `hl_question_id` (string, optional) — Hyperliquid identifiers, null until the market is deployed. Wrapper types rather than plain int64, and deliberately not `optional int64`: proto3 optional is a synthetic oneof, which EmitUnpopulated skips, so an unset field would vanish from the response instead of being null. Every key is always present — a null one is spelled null.
- `hl_id` (string, optional) — Stable unique identifier for the hl.
- `created_at` (datetime, optional)
- `updated_at` (datetime, optional)
- `hl_template_id` (string, optional) — The validator-approved template this market instantiates.
- `hl_keywords` (map from string to string, optional) — A map has no wrapper type, and needs none: an outcome with no template has no keywords either, and an empty object says that unambiguously.
- `hl_settle_fraction` (string, optional) — How it settled on chain, as a decimal string: "1" pays side 0 in full, "0" pays side 1, anything between splits. Null until Hyperliquid confirms. Compare it as a decimal — the chain reports "0" back as "0.0".
- `hl_rules` (string, optional)
- `question_id` (string, optional) — The question this outcome belongs to. Null on a standalone market. Several outcomes of one event share one question_id.
- `settlement_initiated_at` (datetime, optional)
- `settlement_approved_at` (datetime, optional)
- `settled_at` (datetime, optional)
- `settlement` (list of OutcomeSettleSide, optional) — Predict-approved payout, both sides, empty until settlement_approved_at.
- `hl_settlement` (list of OutcomeSettleSide, optional) — Chain-confirmed payout, both sides, empty until settled_at.
- `sides` (list of OutcomeSide, optional) — The two Hyperliquid tokens, ordered side 0 then side 1. Always length 2. A participant's name and abbreviation are joined live; token names without a participant (Up/Down, No) are stored on the row.
- `trading` (OutcomeTrading, optional) — Order constraints a client needs to construct a Hyperliquid order without reading /info. Always present, including on drafts: HIP-4's defaults are known before deploy, and deploy overwrites them from the chain.
- `providers` (list of ExternalID, optional) — Identities this market is known by at external data providers. Fixture and event ids stay on the event; market ids (a Polymarket token, a Kalshi ticker) live here. Empty until linked.
- `sports_market` (SportsMarket, optional) — The sports market type, or null when the outcome has no sports market facet.
- `price_target` (PriceTarget, optional) — An asset, comparison operator, and exact decimal strike.
- `participant_id` (string, optional) — This instrument is about that team. Set on a soccer home/away leg; unset on a two-way moneyline and on draw. The event already renders the team.

### Event

A public view of an occurrence, such as Barcelona vs Real Madrid.

- `id` (string, optional) — Stable unique identifier for the id.
- `slug` (string, optional) — Human-readable label. Backend-generated for sports; caller-supplied otherwise. Always present and non-empty.
- `title` (string, optional)
- `start_time` (datetime, optional)
- `status` (enum, optional) — Allowed value for status.
  - Allowed values: `active`, `settled`, `verifying`
- `created_at` (datetime, optional)
- `updated_at` (datetime, optional)
- `image_url` (string, optional) — Null when the event has no image.
- `topic_id` (string, optional) — Where the event sits in the topic / category / series hierarchy. The topic is a slug — it is only half of the category's key — while the category and series carry enough to render: id, name, image. series is null when the category has no series or the event was not placed under one.
- `category` (Named, optional) — A category or series named from an event: enough to render a chip and link to the full resource, without repeating the whole entry on every row.
- `series` (Named, optional) — A category or series named from an event: enough to render a chip and link to the full resource, without repeating the whole entry on every row.
- `providers` (list of ExternalID, optional) — Identities this event is known by at external data providers. Empty for operator-created events.
- `outcomes` (list of Outcome, optional) — Every outcome on this event: question outcomes and standalones. Named outcomes carry question_id so several questions can share the event.
- `questions` (list of Question, optional) — HIP-4 questions on this event. Empty when every market is standalone.
- `settlement_initiated_at` (datetime, optional)
- `settlement_approved_at` (datetime, optional)
- `settled_at` (datetime, optional)
- `participants` (list of EventParticipant, optional) — Contest lineup. Omitted when the event has none — a finance event has no participants key, not an empty array.
- `contest` (Contest, optional) — The sports match or tournament this event groups. Message wrapper so a finance event omits contest entirely. Status forgetting is a field error, not a silent scheduled.

### ErrorDetail

- `type`: `field_violation` (field_violation)
  - `field` (string, required) — Request field that failed validation.
  - `reason` (string, required) — Stable machine-readable reason for the validation failure.
- `type`: `rate_limit` (rate_limit)
  - `limit` (long, required) — Maximum requests allowed during the rolling window.
  - `reason` (string, required) — Stable machine-readable reason identifying the exhausted policy.
  - `retry_after_seconds` (long, required) — Whole seconds until the exhausted policy has capacity.
  - `scope` (enum, required) — Quota that rejected the request.
    - Allowed values: `endpoint`, `global`
  - `window_seconds` (long, required) — Rolling-window duration in seconds.
- `type`: `dependency` (dependency)
  - `reason` (string, required) — Stable machine-readable reason for the temporary dependency failure.

### OutcomeSettleSide

One token's share of a settlement. Always sent as a pair, side 0 then side 1.

- `side` (integer, optional)
- `fraction` (string, optional)

### OutcomeSide

One Hyperliquid token of an outcome. Every outcome has exactly two, ordered side 0 then side 1. Prices, stats, holders, trades and settlement already use this index; the catalog uses the same one. label is the participant's name when participant_id is set, otherwise the token name the writer supplied (Up/Down, Over/Under, No). abbreviation is null when there is no participant.

- `side` (integer, optional)
- `label` (string, optional)
- `abbreviation` (string, optional)
- `participant_id` (string, optional) — Stable unique identifier for the participant.
- `hl_asset_id` (string, optional) — Stable unique identifier for the hl asset.

### OutcomeTrading

Quote is the collateral token; size × price is denominated in it. Min notional is the smallest order (size × price). Tick is the price increment; lot is the size increment. HIP-4 sides are spot tokens, so lot is 10^(-szDecimals) and tick is 10^(-(8 - szDecimals)). Hyperliquid also enforces a global 5-significant-figure price cap. That is not per-market and is not repeated here. Always present, including on drafts: HIP-4's defaults are known before deploy, and deploy overwrites them from the chain.

- `quote` (string, optional)
- `min_notional` (string, optional)
- `tick_size` (string, optional)
- `lot_size` (string, optional)

### ExternalID

An identity a resource is known by at an external data provider.

- `provider` (string, optional)
- `id` (string, optional) — Stable unique identifier for the id.

### SportsMarket

The sports market type, or null when the outcome has no sports market facet.

- `type` (enum, optional) — Allowed value for type.
  - Allowed values: `SPORTS_MARKET_TYPE_UNSPECIFIED`, `moneyline`, `spread`, `total`, `player_prop`, `scalar`
- `period` (enum, optional) — Allowed value for period.
  - Allowed values: `SPORTS_MARKET_PERIOD_UNSPECIFIED`, `full_game`, `tournament`
- `line` (string, optional)

### PriceTarget

An asset, comparison operator, and exact decimal strike.

- `asset` (string, optional)
- `comparator` (enum, optional) — Allowed value for comparator.
  - Allowed values: `above`, `below`, `at`
- `strike` (string, optional) — Decimal string end to end: the exact decimal in is the exact decimal out and no float is ever involved.

### Named

A category or series named from an event: enough to render a chip and link to the full resource, without repeating the whole entry on every row.

- `id` (string, optional) — Stable unique identifier for the id.
- `name` (string, optional)
- `image_url` (string, optional) — Absolute URL for the referenced resource.

### Question

A HIP-4 question on an event: a mutually exclusive set of outcomes that share one chain question. It is not a resource of its own — there is no QuestionService — and lives on the event and on each outcome's question_id.

- `id` (string, optional) — Stable unique identifier for the id.
- `event_id` (string, optional) — Stable unique identifier for the event.
- `hl_question_id` (string, optional) — Stable unique identifier for the hl question.
- `hl_fallback_outcome_id` (string, optional) — Stable unique identifier for the hl fallback outcome.
- `hl_template_id` (string, optional) — Stable unique identifier for the hl template.
- `hl_keywords` (map from string to string, optional) — Map of string keys to string values.
- `hl_rules` (string, optional)
- `deployer_fee_scale` (string, optional)

### EventParticipant

The full participant, because the event is the one place it appears.

- `id` (string, optional) — Stable unique identifier for the id.
- `name` (string, optional)
- `abbreviation` (string, optional)
- `image_url` (string, optional) — Absolute URL for the referenced resource.
- `color` (string, optional)
- `side` (integer, optional)

### Contest

The sports match or tournament this event groups. Message wrapper so a finance event omits contest entirely. Status forgetting is a field error, not a silent scheduled.

- `status` (enum, optional) — Allowed value for status.
  - Allowed values: `CONTEST_STATUS_UNSPECIFIED`, `scheduled`, `live`, `finished`, `postponed`, `cancelled`
- `started_at` (datetime, optional)
- `ended_at` (datetime, optional)

## Examples

**Response**

```json
{
  "data": [
    {
      "fill_id": "string",
      "trade_id": "string",
      "outcome_id": "string",
      "side": 1,
      "direction": "buy",
      "price": "string",
      "quantity": "string",
      "notional_usdc": "string",
      "fee_token": "string",
      "fee_amount": "string",
      "fee_usdc": "string",
      "gross_realized_pnl_usdc": "string",
      "realized_pnl_usdc": "string",
      "venue_order_id": "string",
      "transaction_hash": "string",
      "account": {
        "main_account": {
          "address": "string",
          "username": "string",
          "image_url": "string",
          "hyperliquid_name": "string",
          "account_type": "main"
        },
        "subaccount": {
          "address": "string",
          "username": "string",
          "image_url": "string",
          "hyperliquid_name": "string",
          "account_type": "main"
        }
      },
      "occurred_at": "2024-01-15T09:30:00Z",
      "submitted_by": {
        "address": "string",
        "username": "string",
        "image_url": "string",
        "hyperliquid_name": "string",
        "account_type": "main"
      },
      "client_order_id": "string",
      "liquidity": "maker"
    }
  ],
  "next_cursor": "string",
  "included": {
    "outcomes": [
      {
        "id": "string",
        "slug": "string",
        "event_id": "string",
        "title": "string",
        "status": "active",
        "hl_question_id": "string",
        "hl_id": "string",
        "created_at": "2024-01-15T09:30:00Z",
        "updated_at": "2024-01-15T09:30:00Z",
        "hl_template_id": "string",
        "hl_keywords": {},
        "hl_settle_fraction": "string",
        "hl_rules": "string",
        "question_id": "string",
        "settlement_initiated_at": "2024-01-15T09:30:00Z",
        "settlement_approved_at": "2024-01-15T09:30:00Z",
        "settled_at": "2024-01-15T09:30:00Z",
        "settlement": [
          {
            "side": 1,
            "fraction": "string"
          }
        ],
        "hl_settlement": [
          {
            "side": 1,
            "fraction": "string"
          }
        ],
        "sides": [
          {
            "side": 1,
            "label": "string",
            "abbreviation": "string",
            "participant_id": "string",
            "hl_asset_id": "string"
          }
        ],
        "trading": {
          "quote": "string",
          "min_notional": "string",
          "tick_size": "string",
          "lot_size": "string"
        },
        "providers": [
          {
            "provider": "string",
            "id": "string"
          }
        ],
        "sports_market": {
          "type": "SPORTS_MARKET_TYPE_UNSPECIFIED",
          "period": "SPORTS_MARKET_PERIOD_UNSPECIFIED",
          "line": "string"
        },
        "price_target": {
          "asset": "string",
          "comparator": "above",
          "strike": "string"
        },
        "participant_id": "string"
      }
    ],
    "events": [
      {
        "id": "string",
        "slug": "string",
        "title": "string",
        "start_time": "2024-01-15T09:30:00Z",
        "status": "active",
        "created_at": "2024-01-15T09:30:00Z",
        "updated_at": "2024-01-15T09:30:00Z",
        "image_url": "string",
        "topic_id": "string",
        "category": {
          "id": "string",
          "name": "string",
          "image_url": "string"
        },
        "series": {
          "id": "string",
          "name": "string",
          "image_url": "string"
        },
        "providers": [
          {
            "provider": "string",
            "id": "string"
          }
        ],
        "outcomes": [
          {
            "id": "string",
            "slug": "string",
            "event_id": "string",
            "title": "string",
            "status": "active",
            "hl_question_id": "string",
            "hl_id": "string",
            "created_at": "2024-01-15T09:30:00Z",
            "updated_at": "2024-01-15T09:30:00Z",
            "hl_template_id": "string",
            "hl_keywords": {},
            "hl_settle_fraction": "string",
            "hl_rules": "string",
            "question_id": "string",
            "settlement_initiated_at": "2024-01-15T09:30:00Z",
            "settlement_approved_at": "2024-01-15T09:30:00Z",
            "settled_at": "2024-01-15T09:30:00Z",
            "settlement": [
              {
                "side": 1,
                "fraction": "string"
              }
            ],
            "hl_settlement": [
              {
                "side": 1,
                "fraction": "string"
              }
            ],
            "sides": [
              {
                "side": 1,
                "label": "string",
                "abbreviation": "string",
                "participant_id": "string",
                "hl_asset_id": "string"
              }
            ],
            "trading": {
              "quote": "string",
              "min_notional": "string",
              "tick_size": "string",
              "lot_size": "string"
            },
            "providers": [
              {
                "provider": "string",
                "id": "string"
              }
            ],
            "sports_market": {
              "type": "SPORTS_MARKET_TYPE_UNSPECIFIED",
              "period": "SPORTS_MARKET_PERIOD_UNSPECIFIED",
              "line": "string"
            },
            "price_target": {
              "asset": "string",
              "comparator": "above",
              "strike": "string"
            },
            "participant_id": "string"
          }
        ],
        "questions": [
          {
            "id": "string",
            "event_id": "string",
            "hl_question_id": "string",
            "hl_fallback_outcome_id": "string",
            "hl_template_id": "string",
            "hl_keywords": {},
            "hl_rules": "string",
            "deployer_fee_scale": "string"
          }
        ],
        "settlement_initiated_at": "2024-01-15T09:30:00Z",
        "settlement_approved_at": "2024-01-15T09:30:00Z",
        "settled_at": "2024-01-15T09:30:00Z",
        "participants": [
          {
            "id": "string",
            "name": "string",
            "abbreviation": "string",
            "image_url": "string",
            "color": "string",
            "side": 1
          }
        ],
        "contest": {
          "status": "CONTEST_STATUS_UNSPECIFIED",
          "started_at": "2024-01-15T09:30:00Z",
          "ended_at": "2024-01-15T09:30:00Z"
        }
      }
    ]
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.staging.trypredict.com/v1/accounts/address/trades"

response = requests.get(url)

print(response.json())
```

```javascript
const url = 'https://api.staging.trypredict.com/v1/accounts/address/trades';
const options = {method: 'GET'};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.staging.trypredict.com/v1/accounts/address/trades"

	req, _ := http.NewRequest("GET", url, nil)

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.staging.trypredict.com/v1/accounts/address/trades")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.staging.trypredict.com/v1/accounts/address/trades")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.staging.trypredict.com/v1/accounts/address/trades');

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.staging.trypredict.com/v1/accounts/address/trades");
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let request = NSMutableURLRequest(url: NSURL(string: "https://api.staging.trypredict.com/v1/accounts/address/trades")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```