How to test QUANTA orderbook via CLI

creating new account

quanta-cli account new quoc1

this is my issuer

quanta-cli account address quoc1
QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3

this is my account A

quanta-cli account address test2
QDIX3EOMEWN7OLZ3BEIN5DE7MCVSAP6547FFM3FFITQSTFXWUK4XA2NB

this is my account B

quanta-cli account address demo
QCSEO4YMLCBW3WDYANPV2MZUGIFYIAZ2VLTXYHWLQTG7L37IIIT677QY

setup assets with the issuer

quanta-cli asset set BTC-quoc1 QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3 --code BTC
quanta-cli asset set ETH-quoc1 QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3 --code ETH

give account A some ETH

quanta-cli pay 100.0 BTC-quoc1 --from quoc1 --to test2

give account B some BTC

quanta-cli pay 100.0 ETH-quoc1 --from quoc1 --to demo

Account A needs to buy ETH, so he needs BTC

quanta-cli order buy test2 --market ETH*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3/BTC*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3 --amount 1.0 --price 1.0
quanta-cli order sell demo --market ETH*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3/BTC*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3 --amount 0.5 --price 1.0

List markets

quanta-cli market list
NAME | ORDERS
+----------------------------------------------------------------------------------------------------------------------------+--------+
ETH*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3/BTC*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3 | 3
ETH*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YMKMJSZFZGWDJU3/BTC*QB3WOAL55IVT6E7BVUNRW6TUVCAOPH5RJYPUUL643YM12313123123123 | 1