1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/* Two api functions you were not asked to implement
returns the best price at the bid or ask */
t_price ;
t_price ;
/* A market order which executes immediately at the best
price possible
IN: order: market order to add to book, price ignored
OUT: order id of new order */
t_orderid
/* Atomically replace an order on the book
used by high frequency traders to ensure
that the new order and the old order cannot
both get executed
IN: orderid: id of order to replace
OUT: order id of new order */
t_orderid
/* An order type that is guaranteed to add liquidity
used by market makes and rebate arbitrageurs
IN: order: price will be ignored
offset: number of ticks from side of NBBO
OUT: orderid assigned to order */
t_orderid