Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

Get Polymarket Wallet Activity

服务器:https://openapi.felo.ai
客户端库

Polymarket

​

Prediction-market discovery and market data.

Get Polymarket Wallet Activity

​

Get one wallet's on-chain Polymarket activity — a per-address lookup, not a market-wide trade feed. The user parameter is required. Use it to reconstruct what a specific trader did — position splits, merges and redemptions, with size, price, and the transaction that settled them; narrow further with market_slug, condition_id, and the start_time / end_time Unix-second range. Returns activities[] with side (MERGE / SPLIT / REDEEM), market_slug, condition_id, shares, price, timestamp, and tx_hash, plus a pagination object whose key you pass back as pagination_key. For market-wide prices rather than one wallet's history, use get_polymarket_markets.

查询参数
  • user
    类型: string
    必填

    Wallet address or user identifier. Required by the runtime route.

  • start_time
    类型: integer

    Filter activity from this Unix timestamp in seconds (inclusive)

  • end_time
    类型: integer

    Filter activity until this Unix timestamp in seconds (inclusive)

  • market_slug
    类型: string

    Filter activity by market slug

  • condition_id
    类型: string

    Filter activity by condition ID

  • limit
    类型: integer
    最小值:  
    1
    最大值:  
    1000

    Number of activities to return (1-1000)

  • pagination_key
    类型: string

    Base64-encoded cursor for efficient pagination. Returned in the previous response's pagination object.

响应
  • 200
    类型: object

    Activity response with pagination

    • activities
      类型: array object[]
      • block_number
        类型: integer

        Block number where the activity occurred

      • condition_id
        类型: string
      • log_index
        类型: integer

        Log index of the activity event in the block

      • market_slug
        类型: string
      • order_hash
        类型: string
      • price
        类型: number
      • shares
        类型: number

        Raw number of shares (from the blockchain)

      • shares_normalized
        类型: number

        Number of shares normalized (raw divided by 1000000)

      • side
        类型: string 枚举
        值
        • MERGE
        • SPLIT
        • REDEEM
      • timestamp
        类型: integer

        Unix timestamp in seconds when the activity occurred

      • title
        类型: string
      • token_id
        类型: string
      • tx_hash
        类型: string
      • user
        类型: string

        User wallet address

    • pagination
      类型: object
      • count
        类型: integer

        Total number of activities matching the filters

      • has_more
        类型: boolean

        Whether there are more activities available

      • limit
        类型: integer

        Integer numbers.

      • pagination_key
        类型: string

        Base64-encoded cursor for the next page. Only present when there are more results.

    application/json
  • 400
    类型: object

    Bad Request - Invalid parameters or validation errors

    • error
      类型: string
    • message
      类型: string
    application/json
  • 401

    A valid Felo API key is required.

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 500
    类型: object

    Internal Server Error

    • error
      类型: string
    • message
      类型: string
    application/json
  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/polymarket/activity
curl 'https://openapi.felo.ai/v1/beta/polymarket/activity?user=0x7c3db723f1d4d8cb9c550095203b686cb11e5c6b' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "activities": [
    {
      "token_id": "",
      "side": "REDEEM",
      "market_slug": "will-the-doj-charge-boeing",
      "condition_id": "0x92e4b1b8e0621fab0537486e7d527322569d7a8fd394b3098ff4bb1d6e1c0bbd",
      "shares": 187722726,
      "shares_normalized": 187.722726,
      "price": 1,
      "block_number": 123456789,
      "log_index": 42,
      "tx_hash": "0x028baff23a90c10728606781d15077098ee93c991ea204aa52a0bd2869187574",
      "title": "Will the DOJ charge Boeing?",
      "timestamp": 1721263049,
      "order_hash": "",
      "user": "0xfd9c3e7f8c56eb4186372f343c873cce154b3873"
    }
  ],
  "pagination": {
    "limit": 50,
    "count": 1250,
    "has_more": true,
    "pagination_key": "eyJibG9ja190aW1lc3RhbXAiOiIyMDI1LTAxLTE5VDEyOjAwOjAwLjAwMFoiLCJzaWRlIjoiU1BMSVQiLCJ0eF9oYXNoIjoiMHgxMjM0NTY3ODkwYWJjZGVmIiwibG9nX2luZGV4IjoxMCwidG90YWwiOjE5ODkwMTc3Nn0="
  }
}
Get Polymarket Wallet Activity