Predict API (Beta)
  1. Accounts
  • FAQs
  • Deployed Contracts
  • Guides
    • Understanding the Orderbook
    • [TS] How to authenticate your API requests
    • [PY] How to authenticate your API requests
    • How to create or cancel orders
  • WebSocket
    • General Information
    • Request Format
    • Response Format
    • Subscription Topics
    • Heartbeats
    • Client Example
  • Authorization
    • Get auth message
      GET
    • Get JWT with valid signature
      POST
  • Categories
    • Get categories
      GET
    • Get category by slug
      GET
    • Get all tags
      GET
  • Markets
    • Get markets
      GET
    • Get market by ID
      GET
    • Get market statistics
      GET
    • Get market last sale information
      GET
    • Get the orderbook for a market
      GET
    • Get market timeseries
      GET
    • Get latest market timeseries value
      GET
  • Orders
    • Get order by hash
      GET
    • Get orders
      GET
    • Get order match events
      GET
    • Remove orders from the orderbook
      POST
    • Create an order
      POST
  • Accounts
    • Get connected account
      GET
    • Get account activity
      GET
    • Set a referral
      POST
  • Positions
    • Get positions
      GET
    • Get positions by address
      GET
  • Search
    • Search categories and markets
      GET
  • OAuth
    • Finalize a OAuth connection
      POST
    • Get the orders for a OAuth connection
      POST
    • Create an order for a OAuth connection
      POST
    • Cancel the orders for a OAuth connection
      POST
    • Get the positions for a OAuth connection
      POST
  • Schemas
    • AccountData
    • AccountResponse
    • ActivityEvent
    • ActivityEventName
    • ActivityOrderData
    • ActivityResponse
    • AuthMessageData
    • AuthMessageResponse
    • AuthTokenData
    • AuthTokenResponse
    • CategoriesResponse
    • CategoryResponse
    • CategorySort
    • CategoryStatsData
    • CategoryStatsResponse
    • CategoryStatus
    • CategoryStatusFilter
    • ContractOrder
    • CreateOrderData
    • CreateOrderRequest
    • CreateOrderResponse
    • CreateOrderResponseData
    • CryptoUpDownVariantData
    • ErrorCode
    • ErrorResponse
    • Fee
    • FeeType
    • LastOrderSettled
    • LastSaleData
    • LastSaleResponse
    • Market
    • MarketResponse
    • MarketSort
    • MarketStatsData
    • MarketStatsResponse
    • MarketStatus
    • MarketStatusFilter
    • MarketTradingStatus
    • MarketVariant
    • MarketsResponse
    • MatchData
    • MatchesResponse
    • Metric
    • OAuthCancelOrdersData
    • OAuthCancelOrdersRequest
    • OAuthCancelOrdersResponse
    • OAuthCreateOrderData
    • OAuthCreateOrderRequest
    • OAuthCreateOrderResponse
    • OAuthFinalizeData
    • OAuthFinalizeRequest
    • OAuthFinalizeResponse
    • OAuthOrdersData
    • OAuthOrdersRequest
    • OAuthOrdersResponse
    • OAuthPositionsData
    • OAuthPositionsRequest
    • OAuthPositionsResponse
    • OrderData
    • OrderFillData
    • OrderResponse
    • OrderStatus
    • OrderStatusFilter
    • OrderStrategy
    • OrderbookData
    • OrderbookResponse
    • OrdersResponse
    • Outcome
    • OutcomeSide
    • OutcomeStatus
    • PointsInfo
    • PositionData
    • PositionSort
    • PositionsResponse
    • PostAuthRequest
    • PriceFeedProvider
    • QuoteType
    • ReferralInfo
    • ReferralStatus
    • RemoveOrdersData
    • RemoveOrdersRequest
    • RemoveOrdersResponse
    • ReservedBalancePolicy
    • Resolution
    • ResolutionProvider
    • SearchData
    • SearchResponse
    • SelfTradePreventionStrategy
    • SetReferralData
    • SetReferralRequest
    • SetReferralResponse
    • Tag
    • TagsResponse
    • TimeseriesData
    • TimeseriesLatestData
    • TimeseriesLatestResponse
    • TimeseriesPoint
    • TimeseriesResponse
    • TweetCountVariantData
    • VariantData
    • VariantData_CryptoUpDownVariantData
    • VariantData_TweetCountVariantData
  1. Accounts

Get account activity

Prod Env
https://api.predict.fun
Prod Env
https://api.predict.fun
GET
https://api.predict.fun
/account/activity
Get a paginated list of trading activity including orders, matches,
conversions, merges, and splits for the authenticated user.
Requires JWT authentication.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Query Params

Responses

🟢200
application/json; charset=utf-8
Body

🟠400
🟠401
🟠403
🟠404
🟠410
🟠429
🔴500
🔴502
🔴503
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.predict.fun/account/activity?first&after&eventTypes' \
--header 'x-api-key: <api-key>' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "success": true,
    "cursor": "string",
    "data": [
        {
            "name": "CREATE",
            "createdAt": "string",
            "transactionHash": "string",
            "amountFilled": "string",
            "priceExecuted": "string",
            "order": {
                "quoteType": "Ask",
                "amount": "string",
                "price": "string",
                "fee": {
                    "amount": "string",
                    "type": "COLLATERAL"
                }
            },
            "market": {
                "id": 0,
                "imageUrl": "string",
                "title": "string",
                "question": "string",
                "description": "string",
                "tradingStatus": "OPEN",
                "status": "REGISTERED",
                "isVisible": true,
                "isNegRisk": true,
                "isYieldBearing": true,
                "feeRateBps": 0,
                "resolution": {
                    "name": "string",
                    "indexSet": 0,
                    "onChainId": "string",
                    "status": "WON"
                },
                "oracleQuestionId": "string",
                "conditionId": "string",
                "resolverAddress": "string",
                "outcomes": [
                    {
                        "name": "string",
                        "indexSet": 0,
                        "onChainId": "string",
                        "status": "WON"
                    }
                ],
                "questionIndex": 0,
                "spreadThreshold": 0,
                "shareThreshold": 0,
                "isBoosted": true,
                "boostStartsAt": "string",
                "boostEndsAt": "string",
                "polymarketConditionIds": [
                    "string"
                ],
                "kalshiMarketTicker": "string",
                "categorySlug": "string",
                "createdAt": "string",
                "decimalPrecision": 0,
                "marketVariant": "DEFAULT",
                "variantData": {
                    "type": "CRYPTO_UP_DOWN",
                    "priceFeedProvider": "PYTH",
                    "startPrice": 0,
                    "endPrice": 0,
                    "priceFeedId": "string",
                    "priceFeedSymbol": "string"
                }
            },
            "outcome": {
                "name": "string",
                "indexSet": 0,
                "onChainId": "string",
                "status": "WON"
            }
        }
    ]
}
Modified at 2026-04-06 01:50:27
Previous
Get connected account
Next
Set a referral
Built with