πΈStep 7 - Dollar Cost Average
As you may already know, Dollar Cost Average (DCA) is the possibilitΓ© pour the User to program their investment.
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).
1 - The following endpoints, allows you to create a new DCA by specifying the original token, the destination token, the frequency of the transactions:
post
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Body
Responses
200
OK
*/*
post
/v1/dca200
OK
OAuth : user_auth
2 - The following endpoint, allows you to consult the active DCAs on an AccountId:
get
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Query parameters
Responses
200
OK
*/*
get
/v1/dca200
OK
OAuth : user_auth
3 - Finally, this endpoint will give you the possibility to activate/deactivate a DCA:
put
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
idstringRequired
statusstring Β· enumRequiredPossible values:
Body
tokenValuestringOptional
issuedAtstring Β· date-timeOptional
expiresAtstring Β· date-timeOptional
idstringOptional
issuerstring Β· urlOptional
notBeforestring Β· date-timeOptional
subjectstringOptional
audiencestring[]Optional
Responses
200
OK
*/*
put
/v1/dca/{id}/{status}200
OK
OAuth : user_auth
Last updated