From eb1cac593ca43a6c043273a8098fc370beeefbf3 Mon Sep 17 00:00:00 2001 From: mDuo13 Date: Thu, 19 May 2022 16:23:34 -0700 Subject: [PATCH] Trade in the DEX: link sample code & add README --- .../trade-in-the-decentralized-exchange/README.md | 5 +++++ .../use-tokens/trade-in-the-decentralized-exchange.md | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 content/_code-samples/trade-in-the-decentralized-exchange/README.md diff --git a/content/_code-samples/trade-in-the-decentralized-exchange/README.md b/content/_code-samples/trade-in-the-decentralized-exchange/README.md new file mode 100644 index 0000000000..9212ebd562 --- /dev/null +++ b/content/_code-samples/trade-in-the-decentralized-exchange/README.md @@ -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). diff --git a/content/tutorials/use-tokens/trade-in-the-decentralized-exchange.md b/content/tutorials/use-tokens/trade-in-the-decentralized-exchange.md index 931202a7fb..363d2581eb 100644 --- a/content/tutorials/use-tokens/trade-in-the-decentralized-exchange.md +++ b/content/tutorials/use-tokens/trade-in-the-decentralized-exchange.md @@ -6,6 +6,7 @@ filters: - interactive_steps - include_code labels: + - Decentralized Exchange - Tokens --- # 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. +## 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 {% set n = cycler(* range(1,99)) %}