econia-labs / econia

Hyper-parallelized on-chain order book for the Aptos blockchain
https://econia.dev
Other
134 stars 47 forks source link

Simplify bool-flag side schema #98

Open alnoki opened 1 year ago

alnoki commented 1 year ago

Presently, Econia uses ASK, BID, BUY, and SELL with side and direction fields, respectively.

Instead, it is proposed that fields be switched to is_maker and is_ask to avoid having to synchronize bool flags.

alnoki commented 10 months ago

is_buy_side: uses buy/sell, which is simplest terminology

Buy is fewer letters than sell, and also correlates with optimism vs pessisimism