econia-labs / econia

Hyper-parallelized on-chain order book for the Aptos blockchain

Home Page:https://econia.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store both initial order size and remaining size on order

bogberry opened this issue · comments

Most exchange APIs include both size and remaining size when retrieving information about orders, where size refers to the size the user specified when they placed or last modified the order.

With the existing Move code, size is not stored, so it is impossible to build an API on top of Econia that offers this information. In future versions, it would be better to have this information, especially since the increase in free storage on Aptos means that there will likely not be much of a gas penalty for this.