You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Channel accounts take advantage of the fact that the [source account](../../glossary.mdx#source-account) of a [transaction](../../../data/horizon/api-reference/resources/transactions/README.mdx) ($S_T$) can be different than the source account of the [operations](../../../data/horizon/api-reference/resources/operations/README.mdx) inside a transaction ($S_O$).
19
+
Channel accounts take advantage of the fact that the [source account](../../glossary.mdx#source-account) of a [transaction](../../../data/apis/horizon/api-reference/resources/transactions/README.mdx) ($S_T$) can be different than the source account of the [operations](../../../data/apis/horizon/api-reference/resources/operations/README.mdx) inside a transaction ($S_O$).
@@ -984,7 +984,7 @@ You must sign the transaction with both the primary-account and channel-account
984
984
985
985
### Receiving Node
986
986
987
-
Horizon instances limit [request frequency](../../../data/horizon/api-reference/structure/rate-limiting.mdx) by default. If you both submit transactions and read data quickly, then your channel accounts can exceed a public validator's request threshold. If you consistently have excessive queries, you may need your [own node](../../../validators/admin-guide/README.mdx) to submit transaction sets quickly.
987
+
Horizon instances limit [request frequency](../../../data/apis/horizon/api-reference/structure/rate-limiting.mdx) by default. If you both submit transactions and read data quickly, then your channel accounts can exceed a public validator's request threshold. If you consistently have excessive queries, you may need your [own node](../../../validators/admin-guide/README.mdx) to submit transaction sets quickly.
Copy file name to clipboardExpand all lines: docs/data/apis/horizon/api-reference/retrieve-an-order-book.api.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
id: retrieve-an-order-book
3
3
title: "Retrieve an Order Book"
4
-
description: "The order book endpoint provides an order book's bids and asks and can be used in [streaming](https://developers.stellar.org/docs/data/apis/horizon/api-reference/structure/streaming) mode."
4
+
description: "The order book endpoint provides an order book's bids and asks and can be used in [streaming](./structure/streaming.mdx) mode."
5
5
sidebar_label: "Retrieve an Order Book"
6
6
hide_title: true
7
7
hide_table_of_contents: true
@@ -36,7 +36,7 @@ import Heading from "@theme/Heading";
36
36
37
37
38
38
39
-
The order book endpoint provides an order book's bids and asks and can be used in [streaming](https://developers.stellar.org/docs/data/apis/horizon/api-reference/structure/streaming) mode.
39
+
The order book endpoint provides an order book's bids and asks and can be used in [streaming](./structure/streaming.mdx) mode.
40
40
41
41
When filtering for a specific order book, you must use use all six of these arguments: `base_asset_type`, `base_asset_issuer`, `base_asset_code`, `counter_asset_type`, `counter_asset_issuer`, and `counter_asset_code`. If the base or counter asset is XLM, you only need to indicate the asset type as `native` and do not need to designate the code or the issuer.
Copy file name to clipboardExpand all lines: docs/learn/fundamentals/liquidity-on-stellar-sdex-liquidity-pools.mdx
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,13 @@ While legacy playfomrs route trades through a myriad of middlemen, the Stellar l
24
24
25
25
## The Price-Time Orderbook
26
26
27
-
Markets form onthe basis of a [limit order book](https://wikipedia.org/wiki/Order_book) where individuals decide how much they will bid to purchase or ask for to sell an asset. By keeping these orders concentraded on the SDEX's public [Horizon endpoints](../../../data/horizon/api-reference/resources/README.mdx), everyone can see the going going market exchange rate. This tranpsarent universal marketplace has the added benefit of obviating price oracles, proprietary contracts, or off-chain systems.
27
+
Markets form onthe basis of a [limit order book](https://wikipedia.org/wiki/Order_book) where individuals decide how much they will bid to purchase or ask for to sell an asset. By keeping these orders concentraded on the SDEX's public [Horizon endpoints](../../../data/apis/horizon/api-reference/resources/README.mdx), everyone can see the going going market exchange rate. This tranpsarent universal marketplace has the added benefit of obviating price oracles, proprietary contracts, or off-chain systems.
28
28
29
29
A priced order only expires whe nyou remove it from the ledger, offering supporting liquidity in down markets or rational selling in exuberant ones. More offers between pairs add volume to the market depth, promoting stable conversaion rates. If ypou've traded on an investment platform, the terminology here will be fairly familiar.
30
30
31
-
The ledger's innovation lies in _where_ these offers get stored, matched, and disclosed. To submit directly to network nodes, you can use the [Manage Buy Offer](../../../data/horizon/api-reference/resources/operations/object/buy-offer.mdx) operation, specifying how much \mathcal{X} you want to purchase with \mathcal{Y} at \mathcal{Z} price. The protocol calculates the cost of the trade in terms of `amount * price` and locks up the `selling` asset you offer in exchange as collateral, until the trade is (partially) executed or cancelled.
31
+
The ledger's innovation lies in _where_ these offers get stored, matched, and disclosed. To submit directly to network nodes, you can use the [Manage Buy Offer](../../../data/apis/horizon/api-reference/resources/operations/object/buy-offer.mdx) operation, specifying how much \mathcal{X} you want to purchase with \mathcal{Y} at \mathcal{Z} price. The protocol calculates the cost of the trade in terms of `amount * price` and locks up the `selling` asset you offer in exchange as collateral, until the trade is (partially) executed or cancelled.
32
32
33
-
Alternatively, you can specify exactly how much of an asset you want to seel at a specific price using the [Manage Sell Offer](../../../data/horizon/api-reference/resources/operations/object/sell-offer.mdx) operation. Anyone vieweing this public Horizon interface to the ledger will see your orders as validators first based on price. For orders placed at the same price, the order that was received earlier is given priority and is executed before the newer one.
33
+
Alternatively, you can specify exactly how much of an asset you want to seel at a specific price using the [Manage Sell Offer](../../../data/apis/horizon/api-reference/resources/operations/object/sell-offer.mdx) operation. Anyone vieweing this public Horizon interface to the ledger will see your orders as validators first based on price. For orders placed at the same price, the order that was received earlier is given priority and is executed before the newer one.
This setup gives us a simple keypair, transaction constructor, and trading assets. You cancel swap the [server URL](../../../data/horizon/horizon-providers.mdx) or [asset codes](../../fundamentals/stellar-data-structures/assets.mdx#asset-code) to follow along with live exchange markets. Next, we'll read the current market price between AstroDollars and AstroPesos:
176
+
This setup gives us a simple keypair, transaction constructor, and trading assets. You cancel swap the [server URL](../../../data/apis/api-providers.mdx) or [asset codes](../../fundamentals/stellar-data-structures/assets.mdx#asset-code) to follow along with live exchange markets. Next, we'll read the current market price between AstroDollars and AstroPesos:
We have now found the price of `AstroDollar` as the response item's `base` asset. We can invert `price_r` from the [query response](../../../data/horizon/api-reference/retrieve-an-order-book.api.mdx) to find the `counter``AstroPeso` exchange rate. If you'd like to keep your view of the orderbook up to date, you can also [stream](../../data/horizon/api-reference/structure/streaming) updates.
335
+
We have now found the price of `AstroDollar` as the response item's `base` asset. We can invert `price_r` from the [query response](../../../data/apis/horizon/api-reference/retrieve-an-order-book.api.mdx) to find the `counter``AstroPeso` exchange rate. If you'd like to keep your view of the orderbook up to date, you can also [stream](../../data/apis/horizon/api-reference/structure/streaming) updates.
Ths example examines orders using the default [paging token limit](../../../data/horizon/api-reference/structure/pagination/README.mdx#larger-queries). For more oinsight into the depth of a amrket, you cna increase the request limit and even continue paging through results. For very liquid assets, there can be thousands of active offers awaiting exchange.
453
+
Ths example examines orders using the default [paging token limit](../../../data/apis/horizon/api-reference/structure/pagination/README.mdx#larger-queries). For more oinsight into the depth of a amrket, you cna increase the request limit and even continue paging through results. For very liquid assets, there can be thousands of active offers awaiting exchange.
454
454
455
455
:::
456
456
@@ -550,7 +550,7 @@ func main() {
550
550
551
551
## Operating Principles
552
552
553
-
At no point in this exacmple did assets leave your custody. And, since no other entities control (intermediate) funds, conversions happen with equal preference as [offer operations](../../../data/horizon/api-reference/resources/operations/object/sell-offer.mdx) enter [transaction sets](../../fundamentals/stellar-consensus-protocol.mdx#nomination-protocol) via [consensus reputation](../../fundamentals/stellar-consensus-protocol.mdx#quorum-set). This new breakthrough introcudes a few worthwhile design implications.
553
+
At no point in this exacmple did assets leave your custody. And, since no other entities control (intermediate) funds, conversions happen with equal preference as [offer operations](../../../data/apis/horizon/api-reference/resources/operations/object/sell-offer.mdx) enter [transaction sets](../../fundamentals/stellar-consensus-protocol.mdx#nomination-protocol) via [consensus reputation](../../fundamentals/stellar-consensus-protocol.mdx#quorum-set). This new breakthrough introcudes a few worthwhile design implications.
554
554
555
555
### Converting Path Paymtns
556
556
@@ -608,7 +608,7 @@ When withdrawing from the AMM, the issuer will burn returned NANAs while keeping
608
608
609
609
### Market Depth
610
610
611
-
The more orders available to transact against, the more currency you can convert at any time without moving the market. Stellar stores these open orders as `offer`[objects](https://developers.stellar.org/docs/data/horizon/api-reference/resources/offers/object) directly on chain. This transparency allows anyone to analyze the order book and understand the trading activity for any asset pair.
611
+
The more orders available to transact against, the more currency you can convert at any time without moving the market. Stellar stores these open orders as `offer`[objects](https://developers.stellar.org/docs/data/apis/horizon/api-reference/resources/offers/object) directly on chain. This transparency allows anyone to analyze the order book and understand the trading activity for any asset pair.
612
612
613
613
### Fill Prices
614
614
@@ -714,7 +714,7 @@ A couple of notes on order books on Stellar:
714
714
- Order books contain all orders that are acceptable to parties on either side to make a trade.
715
715
- Some assets will have a small or nonexistent order book between them. In these cases, Stellar facilitates path payments, which we’ll discuss later.
716
716
717
-
[^buys]: When you create a buy offer using the [`createBuyOffer`](../../../data/horizon/api-reference/resources/operations/object/buy-offer.mdx) operation, it is internally converted and stored as a sell offer.
717
+
[^buys]: When you create a buy offer using the [`createBuyOffer`](../../../data/apis/horizon/api-reference/resources/operations/object/buy-offer.mdx) operation, it is internally converted and stored as a sell offer.
718
718
719
719
To view an order book chart, see the [Order Book Wikipedia Page](https://en.wikipedia.org/wiki/Order_book). In addition, there are also plenty of video tutorials and articles out there that can help you understand how order books work in greater detail.
Copy file name to clipboardExpand all lines: docs/learn/fundamentals/transactions/list-of-operations.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -366,7 +366,7 @@ Transfers the XLM balance of one account to another account and removes the sour
366
366
367
367
## Manage data
368
368
369
-
Adds, modifies, or deletes a data entry ([name-value pair](../../../data/horizon/api-reference/resources/operations/object/manage-data.mdx)) attached to an account.
369
+
Adds, modifies, or deletes a data entry ([name-value pair](../../../data/apis/horizon/api-reference/resources/operations/object/manage-data.mdx)) attached to an account.
370
370
371
371
Learn more about entries and subentries: [Accounts section](../stellar-data-structures/accounts.mdx#subentries)
0 commit comments