OrderBook.sol
Storage
Order Struct
struct Order {
address owner;
Side side;
OrderType orderType;
uint8 tick;
uint64 lots;
uint64 id;
uint32 marketId;
uint32 batchId;
uint40 timestamp;
uint16 feeBps;
}Key Functions
placeOrder(marketId, side, orderType, tick, lots)
placeOrder(marketId, side, orderType, tick, lots)placeOrders(marketId, OrderParam[])
placeOrders(marketId, OrderParam[])replaceOrders(marketId, cancelOrderIds[], OrderParam[])
replaceOrders(marketId, cancelOrderIds[], OrderParam[])amendOrders(marketId, AmendOrderParam[])
amendOrders(marketId, AmendOrderParam[])cancelOrder(orderId) / cancelOrders(orderIds[])
cancelOrder(orderId) / cancelOrders(orderIds[])registerMarket(minLots, batchInterval, expiryTime, useInternalPositions)
registerMarket(minLots, batchInterval, expiryTime, useInternalPositions)Anti-Spam: Per-User Order Cap
Resting Orders
Storage / Function
Description
Access Control
Events
Last updated

