πŸ”„Step 5 - Crypto conversion

User can convert one crypto to another. The conversion will be instantly credited on the wallet of the user.

1 - The conversion can be completed using the following endpoint. You will need to provide the AccountId, the token to be changed, the destination token and the quantity.

post
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Body
Responses
chevron-right
200

OK

*/*
post
/v1/convert
200

OK

OAuth: user_auth

2 - When you know the token you want to change, you can check all the related destination tokens using this endpoint:

get
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Path parameters
fromSlugstringRequired
Responses
chevron-right
200

OK

*/*
get
/v1/convert/{fromSlug}
200

OK

OAuth: client_auth

3 - You can also check all the trading pairs available on Stokn using:

get
Authorizations
OAuth2clientCredentialsRequired
Token URL:
Responses
chevron-right
200

OK

*/*
get
/v1/convert/tradingPairs
200

OK

OAuth: client_auth

Last updated