Create Trade
Initiate a Trade using Sardine.
Set buyOrSell
field to buy
if converting fiat to crypto, and to sell
if selling crypto to obtain fiat
Currenly, only usd
is supported for fiatType
, with more currency types coming soon.
You can see list of all supported currencies for assetType
here
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
Amount in minor units
Type of cryptocurrency involved in the transaction. List of supported currencies can be found under the Supported Tokens doc.
buy
indicates buying crypto with fiat, and sell
indicates selling crypto for fiat
buy
, sell
ID of Customer
Blockchain used for the transaction
ID of User's payment method being used
Unique uuid for user
Metadata that can be attached to this trade.
Id of Wallet that will be involved in the transaction