The Create Trade endpoint allows an end-user to create fiat-to-crypt (Buy) or crypto-to-fiat (Sell) trades.
POST https://app-api.coinify.com/trades
POST https://app-api.coinify.com/trades
On success, the endpoint returns the newly created trade object.
The endpoint supports the following trade types/directions:
Trade type | transferIn.medium value | transferOut.medium value |
---|---|---|
Buy cryptocurrency with credit card | card | blockchain |
Buy cryptocurrency with bank transfer | bank | blockchain |
Sell cryptocurrency and receive FIAT via bank transfer | blockchain | bank |
The API endpoint for creating each of the trade types is the same. However, because the available parameters in the request and response body of the API endpoint depend on the type of the trade (i.e. defined transferIn.medium
/transferOut.medium
), we have decided to describe the API call for each of the trade type separately.