NOTES - Swap + Escrow
So here a bit of orders/orderbook concepts from a traditional exchange come into picture
When you create an order, be it sell or buy type, if it's not a market buy/sell...You are creating an escrow address that holds your bid/ask amount
If you are market buy/sell, you are trading with someone's escrow address.
The order/escrow's first txn has the note: OPEN ORDER
Partial execution is something like: partial fill
Need to find the case where the escrow/order is fully filled
execute_partial -> case where the order has partially filled, there's still some amount left in the orderbooks
escrowAddr -> escrow wallet Now interesting bit is mapping all buys and sells... Since every partial buy/sell is to be counted Here's a escrow as a case study:
https://algoexplorer.io/address/ZH7QQCIQAADHYDOUAH77KMJDKDQ6GKNTHG2D64JV3V6VN66XV57EJU2WYQ The very last set of txns are all: execute_full as in the final sell/buy that filled/completed the order
Order placement/open: https://algoexplorer.io/tx/group/xI4UCNnnyZCaVlZ8HtaUjC2Jdy6ubfrN9hNE6xcjx%2FI%3D
Partial fill: https://algoexplorer.io/tx/group/pqUYHvEIQj6pWbEZWQaCG192kDuBiE6gaCrGwIXvDyg%3D
Execute Full/Close/Filled: https://algoexplorer.io/tx/TDQCSGQAAHA3GQED3ZJ5ELFIG53XPZJKW2F2BTRWOMFPPYBZBF2Q
Last updated