Order Book Contract is the main contract responsible for holding all information regarding orders as well as executing those orders via the help of the Margin ledger.
Custom Structures
Position
Struct Position is used to store data regarding the position.
Type
Name
Description
uint256
price
Price at which position was opened.
uint256
amount
Amount of underlying being sold/bought .
bool
isBuy
True = Long / False = Short
Maker Order
Structure to store information about any Limit Order