You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-reference.md
+71Lines changed: 71 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1679,6 +1679,77 @@ if err != nil {
1679
1679
}
1680
1680
```
1681
1681
1682
+
## Prediction Market Data Decoding
1683
+
1684
+
The `contractsapi` package provides high-level utilities for decoding prediction market query components. This is essential for extracting market types (above, below, between) and threshold values from `marketInfo.QueryComponents`.
1685
+
1686
+
### Core Methods
1687
+
1688
+
#### `DecodeMarketData`
1689
+
1690
+
Decodes ABI-encoded `query_components` into a structured `MarketData` object.
0 commit comments