Skip to main content
POST
/
orders
Create order
curl --request POST \
  --url https://api.sandbox1-dev.finhost.io/crypto-exchange/orders \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pair": "<string>",
  "side": "buy",
  "volume": "<string>",
  "settings": {
    "type": "market",
    "desiredPrice": "<string>"
  }
}
'
{
  "order": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

companyId
string<uuid>

Company ID

Body

application/json
pair
string
required

Order pair

Examples:

"USDT/EUR"

"BTC/EUR"

"1INCH/USDT"

side
enum<string>
required

Order side

Available options:
buy,
sell
volume
string
required

Order volume. If BUYING, the volume is in QUOTE currency. If SELLING, the volume is in BASE currency

Required string length: 1 - 36
Examples:

"42"

"4.2"

"4.20"

settings
object
required

Market order (executes immediately at the current market price)

Response

OK

order
object
required