> For the complete documentation index, see [llms.txt](https://stokn.gitbook.io/welcome-to-stokn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://stokn.gitbook.io/welcome-to-stokn.io/step-7-dollar-cost-average.md).

# Step 7 - Dollar Cost Average

As you may already know, Dollar Cost Average (DCA) is the possibilité pour the User to program their investment.&#x20;

For instance, they will be able to buy a certain amount of the token of their choice on a regular basis (daily, weekly or monthly).&#x20;

1 - The following endpoints, allows you to create a new DCA by specifying the original token, the destination token, the frequency of the transactions:&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/dca" method="post" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth : user\_auth

2 - The following endpoint, allows you to consult the active DCAs on an AccountId:&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/dca" method="get" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth : user\_auth

3 - Finally, this endpoint will give you the possibility to activate/deactivate a DCA:&#x20;

{% openapi src="/files/CxdhNANltvpAtSQ3ieEA" path="/v1/dca/{id}/{status}" method="put" %}
[stokn\_api.json](https://4184423511-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F50DZdVHQuJqLLMFS5pFA%2Fuploads%2FtArCzZFBOjwtLNo3PlL8%2Fstokn_api.json?alt=media\&token=f6fefe86-fbfd-49de-9419-503e5c449364)
{% endopenapi %}

OAuth : user\_auth
