Update 'specifications/0001_LanguageSyntax.md'

This commit is contained in:
斟酌 鵬兄 2022-10-19 11:53:36 +00:00
parent 249f0030dc
commit c7a8c724ee

View File

@ -94,31 +94,25 @@ Returns the current price of a product from exchange
* Spread: $10
* QQQ etf price(Qetf): $100
+-----------------+----------------+
| Bid | Ask |
+-----------------+----------------|
|-----------------|----------------|
| 10shares@$95 | 10shares@$105 |
| ($1000 of Qetf) | ($800 of Qetf) |
+-----------------+----------------+
If a trader hit ur ASK by bidding 2 shares of QQQ token
+-----------------+----------------+
| Bid | Ask |
+-----------------+----------------|
|-----------------|----------------|
| 10shares@$95 | 8shares@$105 |
| ($1000 of Qetf) | ($800 of Qetf) |
+-----------------+----------------+
If another trader hit ur ASK with a 20 shares of bid, then only 8 shares of his order can be filled.
* No need to handle his remaining 12 shares , its not ur responsibility, its his "broker/app/program" to deal with unfilled order.
+-----------------+----------------+
| Bid | Ask |
+-----------------+----------------|
|-----------------|----------------|
| 10shares@$95 | |
| ($1000 of Qetf) | |
+-----------------+----------------+
### SELL Order