pub struct PredictionActivity {Show 27 fields
pub activity_id: String,
pub amount: String,
pub asset_ids: Vec<String>,
pub block_number: i64,
pub condition_id: String,
pub event_slug: String,
pub log_index: i64,
pub market_icon: String,
pub market_id: String,
pub market_question: String,
pub outcome: String,
pub outcomes: Vec<String>,
pub price: String,
pub quantity: String,
pub seq_index: i64,
pub source: String,
pub taker: String,
pub taker_age: i64,
pub taker_image: String,
pub taker_name: String,
pub taker_order_hash: String,
pub taker_pseudonym: String,
pub taker_tags: Vec<String>,
pub timestamp: i64,
pub token_id: String,
pub tx_hash: String,
pub type_: PredictionActivityType,
}Expand description
Prediction market wallet-token activity
JSON schema
{
"description": "Prediction market wallet-token activity",
"type": "object",
"required": [
"activityId",
"amount",
"assetIds",
"blockNumber",
"conditionId",
"eventSlug",
"logIndex",
"marketIcon",
"marketId",
"marketQuestion",
"outcome",
"outcomes",
"price",
"quantity",
"seqIndex",
"source",
"taker",
"takerAge",
"takerImage",
"takerName",
"takerOrderHash",
"takerPseudonym",
"takerTags",
"timestamp",
"tokenId",
"txHash",
"type"
],
"properties": {
"activityId": {
"description": "Stable activity id built from tx/log/token/type",
"examples": [
"0xabc:12:12345:buy"
],
"type": "string"
},
"amount": {
"description": "Collateral amount for the activity",
"examples": [
"100.5"
],
"type": "string"
},
"assetIds": {
"description": "Outcome token ids for the market",
"type": "array",
"items": {
"type": "string"
}
},
"blockNumber": {
"description": "Polygon block number",
"examples": [
70420000
],
"type": "integer",
"format": "int64"
},
"conditionId": {
"description": "Polymarket condition id",
"type": "string"
},
"eventSlug": {
"description": "Prediction event slug",
"examples": [
"world-cup-winner"
],
"type": "string"
},
"logIndex": {
"description": "Event log index",
"examples": [
12
],
"type": "integer",
"format": "int64"
},
"marketIcon": {
"description": "Market image URL or empty string",
"type": "string"
},
"marketId": {
"description": "Market id, falling back to condition id when absent",
"type": "string"
},
"marketQuestion": {
"description": "Market question",
"type": "string"
},
"outcome": {
"description": "Activity outcome label or empty string",
"type": "string"
},
"outcomes": {
"description": "Market outcome labels",
"type": "array",
"items": {
"type": "string"
}
},
"price": {
"description": "Activity price",
"examples": [
"0.42"
],
"type": "string"
},
"quantity": {
"description": "Outcome token quantity",
"examples": [
"238.095"
],
"type": "string"
},
"seqIndex": {
"description": "Monotonic ordering index for cursor pagination",
"examples": [
1717334400000012
],
"type": "integer",
"format": "int64"
},
"source": {
"description": "Data source",
"examples": [
"chainstream"
],
"type": "string"
},
"taker": {
"description": "Activity taker wallet",
"type": "string"
},
"takerAge": {
"description": "Profile age placeholder when unavailable",
"examples": [
0
],
"type": "integer",
"format": "int64"
},
"takerImage": {
"description": "Profile image or empty string",
"type": "string"
},
"takerName": {
"description": "Profile name or empty string",
"type": "string"
},
"takerOrderHash": {
"description": "Polymarket order hash or empty string",
"type": "string"
},
"takerPseudonym": {
"description": "Profile pseudonym or empty string",
"type": "string"
},
"takerTags": {
"description": "Profile tags, empty when unavailable",
"type": "array",
"items": {
"type": "string"
}
},
"timestamp": {
"description": "Activity timestamp in milliseconds",
"examples": [
1717334400000
],
"type": "integer",
"format": "int64"
},
"tokenId": {
"description": "Prediction outcome token id",
"type": "string"
},
"txHash": {
"description": "Polygon transaction hash",
"type": "string"
},
"type": {
"$ref": "#/components/schemas/PredictionActivityType"
}
}
}Fields§
§activity_id: StringStable activity id built from tx/log/token/type
amount: StringCollateral amount for the activity
asset_ids: Vec<String>Outcome token ids for the market
block_number: i64Polygon block number
condition_id: StringPolymarket condition id
event_slug: StringPrediction event slug
log_index: i64Event log index
market_icon: StringMarket image URL or empty string
market_id: StringMarket id, falling back to condition id when absent
market_question: StringMarket question
outcome: StringActivity outcome label or empty string
outcomes: Vec<String>Market outcome labels
price: StringActivity price
quantity: StringOutcome token quantity
seq_index: i64Monotonic ordering index for cursor pagination
source: StringData source
taker: StringActivity taker wallet
taker_age: i64Profile age placeholder when unavailable
taker_image: StringProfile image or empty string
taker_name: StringProfile name or empty string
taker_order_hash: StringPolymarket order hash or empty string
taker_pseudonym: StringProfile pseudonym or empty string
Profile tags, empty when unavailable
timestamp: i64Activity timestamp in milliseconds
token_id: StringPrediction outcome token id
tx_hash: StringPolygon transaction hash
type_: PredictionActivityTypeImplementations§
Source§impl PredictionActivity
impl PredictionActivity
pub fn builder() -> PredictionActivity
Trait Implementations§
Source§impl Clone for PredictionActivity
impl Clone for PredictionActivity
Source§fn clone(&self) -> PredictionActivity
fn clone(&self) -> PredictionActivity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more