Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Market ¶
type Market struct {
ID string `json:"id"`
Question string `json:"question"`
Description string `json:"description"`
EndTime time.Time `json:"end_time"`
Outcomes []Outcome `json:"outcomes"`
Active bool `json:"active"`
Closed bool `json:"closed"`
Archived bool `json:"archived"`
}
Market represents a prediction market event.
type Orderbook ¶
type Orderbook struct {
MarketID string `json:"market_id"`
TokenID string `json:"token_id"`
Timestamp int64 `json:"timestamp"`
Bids []Level `json:"bids"`
Asks []Level `json:"asks"`
}
Orderbook represents the state of the order book for a specific token/outcome.
type Outcome ¶
type Outcome struct {
ID string `json:"id"`
Name string `json:"name"` // e.g. "Yes", "No", "Trump", "Biden"
Price float64 `json:"price"`
Probability float64 `json:"probability"`
}
Outcome represents a possible result in a market.
Click to show internal directories.
Click to hide internal directories.