class

PolyScan::OrderBook

Inherits JSON::Serializable < Reference < Object

Constructors

new(token_id : String, market_id : String | Nil, outcome_name : String | Nil, bids : Array(BookLevel), asks : Array(BookLevel), fetched_at_unix_ms : Int64, sequence : Int64 = 0_i64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

ask_depth
Source
asks
Source
bid_depth
Source
bids
Source
fetched_at_unix_ms
Source
market_id
Source
outcome_name
Source
sequence
Source
spread
Source
stale?(max_age_ms : Int64, now_ms : Int64 = Time.utc.to_unix_ms) : Bool
Source
token_id
Source
top_ask
Source
top_bid
Source
validation_errors
Source