Skip to content

Create Trade Completion

POST
/api/v1/manual-entries/trade-completions
curl --request POST \
--url https://api.qeychain.xyz/api/v1/manual-entries/trade-completions \
--header 'Content-Type: application/json' \
--data '{ "outflow_asset": "example", "outflow_quantity": 1, "outflow_timestamp": "2026-04-15T12:00:00Z", "outflow_transaction_id": "example", "received_asset": "example", "received_quantity": 1, "received_price_usd": 1, "received_timestamp": "2026-04-15T12:00:00Z", "fee_asset": "example", "fee_quantity": 1, "venue": "example", "reason_code": "example" }'

Create a manual trade completion linking an outflow to an inflow.

Media typeapplication/json
TradeCompletionCreate

Create a manual trade completion.

object
outflow_asset
required
Outflow Asset
string
>= 1 characters <= 50 characters
outflow_quantity
required
Outflow Quantity
number
> 0
outflow_timestamp
required
Outflow Timestamp
string format: date-time
outflow_transaction_id
Any of:
string
received_asset
required
Received Asset
string
>= 1 characters <= 50 characters
received_quantity
required
Received Quantity
number
> 0
received_price_usd
required
Received Price Usd

USD price per unit at time of trade

number
> 0
received_timestamp
required
Received Timestamp
string format: date-time
fee_asset
Any of:
string
<= 50 characters
fee_quantity
Any of:
number
venue
Any of:
string
<= 255 characters
reason_code
Any of:
string
<= 100 characters
Examplegenerated
{
"outflow_asset": "example",
"outflow_quantity": 1,
"outflow_timestamp": "2026-04-15T12:00:00Z",
"outflow_transaction_id": "example",
"received_asset": "example",
"received_quantity": 1,
"received_price_usd": 1,
"received_timestamp": "2026-04-15T12:00:00Z",
"fee_asset": "example",
"fee_quantity": 1,
"venue": "example",
"reason_code": "example"
}

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}