Create trading order
POST/order/
Place a new trading order.
The parameter destination_type
is required only for orders below 1000 chf and can be any of:
crypto
=>destination_crypto_address
sepa
=>destination_bank_address
anddestination_bank_name
swift
=>destination_bank_address
anddestination_bank_name
anddestination_bank_account_number
us
=> `destination_bank_account_number
anddestination_bank_routing_number
Request
- application/json
Body
Possible values: [crypto
, sepa
, swift
, us
]
required if destination_type
is 'crypto'
required if destination_type
is 'sepa' or 'swift'
required if destination_type
is 'sepa' or 'swift'
required if destination_type
is 'swift' or 'us'
required if destination_type
is 'us'
Responses
- 200
The details of the new order.
- application/json
- Schema
- Example (from schema)
- Example
Schema
order object
Possible values: [WAITING_FOR_DEPOSIT
, DEPOSIT_RECEIVED
, DEPOSIT_CONFIRMED
, APPROVED
, COMPLETED
, CANCELED
, EXPIRED
, REJECTED
, REFUNDED
]
not null if from_asset
is 'crypto'
not null if from_asset
is 'fiat'
not null if from_asset
is 'fiat'
not null if from_asset
is 'fiat'
not null if from_asset
is 'EUR'
not null if from_asset
is 'EUR'
not null if from_asset
is 'fiat'
not null if from_asset
is 'fiat'
Possible values: [crypto
, sepa
, swift
, us
]
funding object
trade object
{
"order": {
"id": "string",
"status": "WAITING_FOR_DEPOSIT",
"email": "user@example.com",
"refund_crypto_address": "string",
"created_at": "string",
"expires_at": "string",
"confirmed_at": "string",
"approved_at": "string",
"completed_at": "string",
"deposit_crypto_address": "string",
"deposit_bank_address": "string",
"deposit_bank_name": "string",
"deposit_beneficiary": "string",
"deposit_beneficiary_address": "string",
"deposit_sepa_address": "string",
"deposit_swift_address": "string",
"deposit_swift_intermediary_address": "string",
"from_amount": 0,
"from_asset": "string",
"to_asset": "string",
"destination_type": "crypto",
"destination_crypto_address": "string",
"destination_bank_address": "string",
"destination_bank_name": "string",
"destination_bank_account_number": "string",
"destination_bank_routing_number": "string",
"funding": {
"txs": [
null
]
},
"deposit_amount": 0
},
"trade": {
"from_amount": 0,
"from_asset": "string",
"to_amount": 0,
"to_asset": "string",
"fee_amount": 0,
"price": 0,
"timestamp": "string"
}
}
{
"order": {
"id": "498c5827-7ba9-449a-9215-21e3d88ec987",
"status": "DEPOSIT_CONFIRMED",
"email": "user@example.com",
"refund_crypto_address": "bc1q7zp7qycuf0ukcgjs5nw8398cf3az64wn52lx2d",
"created_at": "2023-12-28T16:06:53.532063Z",
"confirmed_at": "2023-12-28T17:06:53.532063Z",
"deposit_crypto_address": "bc1q8u2y8r5r8a9p6vx3s3wz835zh6nxhdmd55lhhq",
"from_amount": 0.021,
"from_asset": "BTC",
"to_asset": "USD",
"destination_type": "swift",
"destination_bank_address": "ABCDFRPP",
"destination_bank_name": "John Doe",
"destination_bank_account_number": "0123456789"
},
"trade": {
"from_amount": 0.021,
"from_asset": "BTC",
"to_amount": 0.39,
"to_asset": "USD",
"fee_amount": 0.01,
"price": 19.34,
"timestamp": "2023-12-28T17:06:53.532063Z"
}
}