GitBook: [#179] No subject
BIN
.gitbook/assets/Screenshot 2023-01-07 at 2.22.58 PM.png
Normal file
|
After Width: | Height: | Size: 89 KiB |
BIN
.gitbook/assets/Screenshot 2023-01-07 at 2.23.40 PM.png
Normal file
|
After Width: | Height: | Size: 88 KiB |
BIN
.gitbook/assets/Screenshot 2023-01-07 at 2.51.07 PM.png
Normal file
|
After Width: | Height: | Size: 246 KiB |
BIN
.gitbook/assets/Screenshot 2023-01-07 at 2.51.48 PM.png
Normal file
|
After Width: | Height: | Size: 247 KiB |
BIN
.gitbook/assets/image (1) (1).png
Normal file
|
After Width: | Height: | Size: 447 KiB |
|
Before Width: | Height: | Size: 447 KiB After Width: | Height: | Size: 974 KiB |
@@ -16,6 +16,12 @@
|
||||
* [Understanding the Bridge](bridge/understanding-the-bridge.md)
|
||||
* [Using the Bridge](bridge/using-the-bridge.md)
|
||||
|
||||
## 🚅 Orderbook
|
||||
|
||||
* [What is the Orderbook?](orderbook/what-is-bridge.md)
|
||||
* [Understanding the Orderbook](orderbook/understanding-the-orderbook.md)
|
||||
* [Using the Orderbook](orderbook/using-the-orderbook.md)
|
||||
|
||||
## Whitepaper
|
||||
|
||||
* [Automated Market Making of Trading Pool](whitepaper/automated-market-making-of-alex/README.md)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# What is Bridge?
|
||||
# What is the Bridge?
|
||||
|
||||
<figure><img src="../.gitbook/assets/image (1).png" alt=""><figcaption></figcaption></figure>
|
||||
<figure><img src="../.gitbook/assets/image (1) (1).png" alt=""><figcaption></figcaption></figure>
|
||||
|
||||
Developed in partnership with [Wrapped](https://app.gitbook.com/s/wFwxyo05u2LDudAxiuAv/), ALEX Bridge connects Stacks and Ethereum, allowing users to move crypto assets between the two blockchains.
|
||||
|
||||
|
||||
10
orderbook/understanding-the-orderbook.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Understanding the Orderbook
|
||||
|
||||
Orderbook uses a hybrid on-chain/off-chain design, whereby a commitment to buy or sell certain asset is communicated in a cryptographically signed message, which is then matched by an off-chain matching engine before settling on-chain.
|
||||
|
||||
<figure><img src="../.gitbook/assets/Screenshot 2023-01-07 at 2.51.48 PM.png" alt=""><figcaption></figcaption></figure>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
38
orderbook/using-the-orderbook.md
Normal file
@@ -0,0 +1,38 @@
|
||||
# Using the Orderbook
|
||||
|
||||
ALEX Orderbook is available at [https://orderbook.alexlab.co](https://orderbook.alexlab.co).
|
||||
|
||||
## Register with the Orderbook
|
||||
|
||||
Users register with the Orderbook and deploy their own wallet to which they make deposits and withdrawals.
|
||||
|
||||
At the registration, users provide their public keys so the Orderbook can verify their signed orders.
|
||||
|
||||
## Place buy / sell orders gas-free
|
||||
|
||||
Users can place buy / sell orders of any tokens supported by the Orderbook without paying transaction fees. They can cancel orders any time. Orderbook ensures that the user wallet balance is sufficient.
|
||||
|
||||
All orders are signed by the originating users and the orders are validated with the users’ public keys before settlement.
|
||||
|
||||
## Orders are matched and confirmed
|
||||
|
||||
Order Matching Engine continuously matches buy and sell orders. Matched orders are sent to Exchange Contract. 
|
||||
|
||||
## Orders are settled in aggregate
|
||||
|
||||
Exchange Contract validates the matched orders, aggregate them and settle in a single transaction. It updates the order fill, which is then used by Order Matching Engine to optimise the order matching. 
|
||||
|
||||
\
|
||||
\
|
||||
|
||||
|
||||
\
|
||||
\
|
||||
|
||||
|
||||
\
|
||||
\
|
||||
|
||||
|
||||
\
|
||||
\
|
||||
35
orderbook/what-is-bridge.md
Normal file
@@ -0,0 +1,35 @@
|
||||
# What is the Orderbook?
|
||||
|
||||
<figure><img src="../.gitbook/assets/image (1).png" alt=""><figcaption></figcaption></figure>
|
||||
|
||||
Orderbook is ALEX's scaling solution layer that brings **instant trade confirmation** to the security of Bitcoin.
|
||||
|
||||
Orderbook uses a hybrid on-chain/off-chain design, whereby a commitment to buy or sell certain asset is communicated in a cryptographically signed message, which is then matched by an off-chain matching engine before settling on-chain.
|
||||
|
||||
Orderbook is designed such that many types of market exchanges, not only a traditional CLOB but also an NFT marketplace or social trading, can be built on top.
|
||||
|
||||
## Why do we need the Orderbook? <a href="#cdf8" id="cdf8"></a>
|
||||
|
||||
Orderbook is ALEX's scaling solution layer that brings **instant trade confirmation** to the security of Bitcoin. Orderbook therefore addresses a key user experience issue our community has on Stocks - that the trade confirmation requires waiting of 10-15 minutes (along with Bitcoin block confirmation).
|
||||
|
||||
## What are the benefits of using the Orderbook?
|
||||
|
||||
There are a number of benefits for Bitcoin/Stacks users to use Orderbook to trade assets.
|
||||
|
||||
### Instant trade confirmation with Bitcoin finality
|
||||
|
||||
As we said earlier, Orderbook is our scaling solution layer that combines instant trade confirmation with Bitcoin finality. Orderbook therefore addresses a key user experience issue our community has on Stocks - that the trade confirmation requires waiting of 10-15 minutes (along with Bitcoin block confirmation).
|
||||
|
||||
### Gas-free orders
|
||||
|
||||
Orderbook uses a hybrid on-chain/off-chain design, whereby a commitment to buy or sell certain asset is communicated in a cryptographically signed message, which is then matched by an off-chain matching engine before settling on-chain.
|
||||
|
||||
This design means users of Orderbook can create/close orders gas-free and confirm their orders instantly without having to wait for the underlying block confirmation.
|
||||
|
||||
### Security of your assets
|
||||
|
||||
You have the full ownership and control of your assets on Orderbook. Zero credit risk.
|
||||
|
||||
### By developers, for developers
|
||||
|
||||
Ease and fun of development is at the core of Orderbook design. Orderbook is designed such that many types of market exchanges, not only a traditional CLOB but also an NFT marketplace or social trading, can be built on top.
|
||||