Get order book

Returns the live order book (bids and asks with price levels and sizes) for a market outcome. outcomeType selects the side: 0 = Yes, 1 = No.

GEThttps://mgapi.forkast.gg/api/v1/orderbook

Returns the live order book (bids and asks with price levels and sizes) for a market outcome. outcomeType selects the side: 0 = Yes, 1 = No.

Loading code example
Loading code example

Query Parameters

marketIdintegerrequired
outcomeTypeintegerrequired

<p>0 = Yes, 1 = No</p>

Response

application/json

Order book

asksarray<object>
asks.pricestring
asks.sizestring
bidsarray<object>
bids.pricestring
bids.sizestring