Skip to main content
POST
/
order
curl --request POST \
  --url https://exchange-api2.bulk.trade/api/v1/order \
  --header 'Content-Type: application/json' \
  --data '
{
  "action": {
    "type": "order",
    "orders": [
      {
        "order": {
          "c": "BTC-USD",
          "b": true,
          "px": 100000,
          "sz": 0.1,
          "r": false,
          "t": {
            "limit": {
              "tif": "GTC"
            }
          },
          "cloid": "Fpa3oVuL3UzjNANAMZZdmrn6D1Zhk83GmBuJpuAWG51F"
        }
      }
    ]
  },
  "account": "FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7",
  "signer": "FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7",
  "signature": "5j7s...base58..."
}
'
{
  "status": "ok",
  "response": {
    "type": "<string>",
    "data": {
      "statuses": [
        {
          "resting": {
            "oid": "<string>"
          }
        }
      ]
    }
  }
}

Body

application/json

Signed transaction for placing orders, canceling orders, or canceling all orders.

Must be signed - see "Transaction Signing" section

action
object
required

The action to perform

account
string
required

Account public key - whose account is being traded (base58)

Example:

"FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7"

signer
string
required

Signer public key - who's signing; usually same as account, or authorized agent (base58)

Example:

"FuueqefENiGEW6uMqZQgmwjzgpnb85EgUcZa5Em4PQh7"

signature
string
required

Ed25519 signature of bincode_serialize(action + account + signer) (base58)

Example:

"5j7sVt3k2YxPqH4w..."

Response

Order accepted

Response from order/cancel/agent wallet operations

status
enum<string>
Available options:
ok,
error
response
object