POST
/
trades

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
amount
number
required

Amount in minor units

assetType
string
required

Type of cryptocurrency involved in the transaction. List of supported currencies can be found under the Supported Tokens doc.

buyOrSell
enum<string>
required

buy indicates buying crypto with fiat, and sell indicates selling crypto for fiat

Available options:
buy,
sell
customerId
string
required

ID of Customer

network
string
required

Blockchain used for the transaction

paymentMethodId
string
required

ID of User's payment method being used

sessionKey
string
required

Unique uuid for user

metadata
object

Metadata that can be attached to this trade.

walletId
string

Id of Wallet that will be involved in the transaction

Response

200 - application/json
trade
object

Currenly, only usd is supported for fiat_type, with more currency types coming soon.

You can see list of all supported currencies for asset_type here