Loading...
We'll focus on the order placement + matching + streaming path:
9
output: stream of [(tick_id, serial_no, asset_id, op_type, amt, market_id)]
Authentication: Bearer
body: market_id, asset_id (stock_id/etc.), op_type (buy/sell), amt
pseudo-code:
if order.isBuy():
buyheaps[asset_id].push(order)
else:
sellheaps[asset_id].push(order)
execute(buyheaps[asset_id].pop(), sellheaps[asset_id].pop())