Skip to content

Commit

Permalink
Merge pull request #165 from galacticcouncil/dca
Browse files Browse the repository at this point in the history
Add DCA docs
  • Loading branch information
vgantchev committed Aug 9, 2023
2 parents 69e9b93 + 90f56e1 commit abbeb71
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 0 deletions.
39 changes: 39 additions & 0 deletions docs/howto_dca.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
id: howto_dca
title: Place a DCA Order
---

import useBaseUrl from '@docusaurus/useBaseUrl';

On this page you will find a **step-by-step guide for setting up a DCA order** in the HydraDX Omnipool.

Before proceeding, we encourage you to visit our [DCA product page](/omnipool_dca) in order to get yourself familiar with the HydraDX implementation of the dollar-cost averaging strategy.

<div style={{textAlign: 'center'}}>
<img src={useBaseUrl('/howto_dca/dca.jpg')} />
</div>

### Step 1: Navigate to HydraDX DCA Page

https://app.hydradx.io/dca

### Step 2: Connect to Your Account

Connect your wallet to HydraDX by clicking **`Connect Account` (1 in image above).**

### Step 3: Set up DCA Order
* Select the asset you will use to pay for the swap; Enter the order amount for each DCA trade, and the total order size **(2)**;
* Select the time interval for each DCA swap **(3)**;
* Select the asset you would like to receive from the swap **(4)**;
* For advanced users who would like to set up orders at specific block intervals, you can toggle the switch **Advanced Settings (5**) to set this up;
* If you would like to adjust your slippage preferences, you can do so by clicking on the **Settings Icon (6)**;
* To complete the DCA order, click on **Schedule DCA trades** **(7)** and sign the transaction using your wallet app.

### Step 4: View your DCA Order
* After submitting it, your DCA order will appear under **DCA Orders**;
* To see the details, click the **Dropdown Arrow (8)**;
* You can cancel your DCA order for the remaining amount by clicking on **Terminate (9)**.

<div style={{textAlign: 'center'}}>
<img src={useBaseUrl('/howto_dca/dca_overview.jpg')} width="600px" />
</div>
37 changes: 37 additions & 0 deletions docs/omnipool_dca.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
id: omnipool_dca
title: DCA Trading
---

import useBaseUrl from '@docusaurus/useBaseUrl';

[HydraDX DCA](https://app.hydradx.io/dca) and [Split Trade](https://app.hydradx.io/trade) (easy DCA) are two user-friendly features which allow traders to implement the dollar-cost-averaging (DCA) strategy when trading in the Omnipool - in a permissionless and non-custodial way.

Following the DCA strategy, orders are not placed at once but instead split into smaller trades which are executed at regular intervals of time. By doing so, traders may protect themselves against price volatility and achieve an average price. Additionally, splitting a large order in smaller chunks will result in less slippage.

HydraDX has two DCA implementations - the [full DCA feature](#hydradx-dca), and [Split Trade](#split-trade) (easy DCA) which can be found on the main trading page. Further down, you can learn more about these features.

If you are looking for step-by-step guidance, check out the [how-to place a DCA order guide](/howto_dca).

## HydraDX DCA {#hydradx-dca}

[HydraDX DCA](https://app.hydradx.io/dca) provides an intuitive UI which enables users to fine-tune their DCA orders in the Omnipool.

When setting up their order, users specify the amount of Asset A they would like to spend in order to obtain Asset B, as well as the frequency of the trades - in hours (approximation) or number of blocks (more granularity).

After placing the order, the HydraDX DCA pallet makes sure that trades are scheduled at the specified intervals until the predetermined amount of Asset A has been spent. Placing multiple DCA orders which are executed in parallel is supported.

Users can track the status of their orders on the UI. Open orders can at any time be terminated for the remaining amount.

<div style={{textAlign: 'center'}}>
<img src={useBaseUrl('/omnipool_dca/dca.jpg')} />
</div>


## Split Trade (easy DCA) {#split-trade}

[Split Trade](https://app.hydradx.io/trade) is a more simple implementation of DCA directly into the main trade page. It provides users with a one-click solution for splitting larger orders in order to protect themselves from slippage.

When activated, Split Trade will split the order in smaller chunks until the size of the trades is small enough to achieve <0.1% slippage (estimate only - the exact slippage for future trades can never be predicted in advance).

Open Split Trade orders can be terminated by the user at any time, just like any regular DCA order.
2 changes: 2 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
HydraDX: [
"intro",
"omnipool_trading",
"omnipool_dca",
"omnipool_lp",
"omnipool_treasuries",
"omnipool_security",
Expand All @@ -13,6 +14,7 @@ module.exports = {
],
"How-to": [
"howto_trade",
"howto_dca",
"howto_lp",
"howto_hydrated_farms",
"howto_xcm",
Expand Down
Binary file added static/howto_dca/dca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/howto_dca/dca_overview.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/omnipool_dca/dca.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit abbeb71

Please sign in to comment.