Authentication
First you need to find the Authentication endpoint
![](https://files.readme.io/edfd052-image.png)
Paste your API key into special field
![](https://files.readme.io/3d80ac9-image.png)
and click 'Try It!'.
![](https://files.readme.io/4c6a142-image.png)
In response you will get authentication token.
![](https://files.readme.io/fc9fede-image.png)
Copy authentication token.
We need to create user and an account for that user to buy or sell tokens
Create user
Go to 'Crypto-Trading' section to create a user
![](https://files.readme.io/93b26f7-image.png)
Fill body params (email, first name, last name, language) and paste token to authentication field.
![](https://files.readme.io/ab8959b-image.png)
![](https://files.readme.io/2ff83a1-image.png)
and click 'Try it!'.
![](https://files.readme.io/e3fa582-image.png)
You need to save user id, we will use it further.
Create account
Create new euro account for user. Go to 'Trades' section and open 'Create account for user' endpoint.
![](https://files.readme.io/b07d5d1-image.png)
Fill userId, currency (euro) and click 'Try it!'. Wallet with 20 euros will be created.
![](https://files.readme.io/2093301-image.png)
Buy tokens
Back to 'Crypto-Trading' section and open 'Create order' endpoint.
Fill params:
- Pair - traded currencies
- Side - type or operation (buy or sell)
- Type - type of the order
- BaseQuantity - not required field
- QuoteQuantity - amount of EUR tokens for which BTC tokens will be purchased. For example: QuoteQuantity = 1, you will buy BTC tokens for 1 EUR
- UserId - id of your user (you saved it when created user)
- Exchange - we have 5 exchanges:
- Coinbase
- BSDEX
- BHS
- KRAKEN
- Coinbase Mock
- Price - for market order not reqired field
![](https://files.readme.io/4790b12-image.png)
Click 'Try it!'.
![](https://files.readme.io/4c25cee-image.png)
Balance check
To check user balance go to 'Get all users' endpoint
![](https://files.readme.io/85bd599-image.png)
Fill your userId
![](https://files.readme.io/703eb6f-image.png)
Click 'Try it!'
![](https://files.readme.io/eb209e8-image.png)
Sell tokens
Go to 'Create order'
![](https://files.readme.io/87a26c4-image.png)
Fill body params
![](https://files.readme.io/0596d91-image.png)
Click 'Try it!'
![](https://files.readme.io/6bb8b88-image.png)