# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://stokn.gitbook.io/welcome-to-stokn.io/step-7-dollar-cost-average.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
