Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Order book

Sumit Rawal answered on May 21, 2023 Popularity 3/10 Helpfulness 1/10

Contents


More Related Answers


Order book

0

An order book is a list of buy and sell orders for a specific security or financial instrument, organized by price level [12] [13]. It is a key data structure in the matching engine for fast order matching. An efficient data structure for an order book must satisfy these requirements:

Constant lookup time. Operation includes: getting volume at a price level or between price levels.

Fast add/cancel/execute operations, preferably O(1) time complexity. Operations include: placing a new order, canceling an order, and matching an order.

Fast update. Operation: replacing an order.

Query best bid/ask.

Iterate through price levels. 

Popularity 3/10 Helpfulness 1/10 Language whatever
Source: Grepper
Tags: whatever
Link to this answer
Share Copy Link
Contributed on May 21 2023
Sumit Rawal
0 Answers  Avg Quality 2/10

Closely Related Answers



-1

GET /marketdata/orderBook/L2?symbol={:symbol}&depth={:depth}

This endpoint queries L2 order book information for a symbol with designated depth.

Parameters

symbol: the stock symbol. String

depth: order book depth per side. Int

Response

Body:

bids: array with price and size. Array

asks: array with price and size. Array

Code:

200: successful

40x: parameter error/not found/access denied/unauthorized

500: server error 

Popularity 3/10 Helpfulness 1/10 Language whatever
Source: Grepper
Tags: whatever
Link to this answer
Share Copy Link
Contributed on May 21 2023
Sumit Rawal
0 Answers  Avg Quality 2/10


X

Continue with Google

By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
X
Grepper Account Login Required

Oops, You will need to install Grepper and log-in to perform this action.