Merge pull request #1407 from XRPLF/dex_tutorial_updates

Trade in the DEX: link sample code & add README
This commit is contained in:
Rome Reginelli
2022-05-23 17:36:53 -07:00
committed by GitHub
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# Trade in the Decentralized Exchange
Look up Offers in the Decentralized Exchange and buy a fungible token by spending XRP.
Examples from the interactive [Trade in the Decentralized Exchange tutorial](https://xrpl.org/trade-in-the-decentralized-exchange.html).

View File

@@ -6,6 +6,7 @@ filters:
- interactive_steps - interactive_steps
- include_code - include_code
labels: labels:
- Decentralized Exchange
- Tokens - Tokens
--- ---
# Trade in the Decentralized Exchange # Trade in the Decentralized Exchange
@@ -22,6 +23,12 @@ This page provides JavaScript examples that use the [xrpl.js](https://js.xrpl.or
Since JavaScript works in the web browser, you can read along and use the interactive steps without any setup. Since JavaScript works in the web browser, you can read along and use the interactive steps without any setup.
## Example Code
Complete sample code for all of the steps of this tutorial is available under the [MIT license](https://github.com/XRPLF/xrpl-dev-portal/blob/master/LICENSE).
- See [Code Samples: Trade in the Decentralized Exchange](https://github.com/XRPLF/xrpl-dev-portal/tree/master/content/_code-samples/trade-in-the-decentralized-exchange/) in the source repository for this website.
## Steps ## Steps
{% set n = cycler(* range(1,99)) %} {% set n = cycler(* range(1,99)) %}