Create Order Transaction

Create raw bytes of an unsigned transaction to place an order by specified parameters.

This endpoint does not submit the transaction to the network.

The endpoint allows you to specify priority fees and tips to later control the transaction inclusion and propagation. Refer to the Transaction Submission & Front-Running Protection & Transaction Bundle page for additional information about these parameters.

Request

Method:

POST ./api/v2/openbook/place

Parameters:

Request example:

curl --header "Authorization: $AUTH_HEADER" \
-X 'POST' \
  'https://ny.solana.dex.blxrbdn.com/api/v2/openbook/place' \
  -H 'accept: application/json' 
  -H 'Content-Type: application/json' \
  -d '{
  "ownerAddress": "AFT8...UDfQ",
  "payerAddress": "AFT8...UDfQ",
  "market": "SOLUSDC",
  "side": "S_ASK",
  "amount": 100,
  "price": 0,
  "openOrdersAddress": "5yyh...f8kZ",
  "clientOrderID": "123"
}'

This example places an order exchanging 0.1 SOL for USDC, at the price of 10000000 SOL/USDC. Since the submitter (AFT8VayE7qr8MoQsW3wHsDS83HhEvhGWdbNSHRKeUDfQ ) is providing SOL , they can specify their Solana address as the payerAddress. In the opposite case ("side": "S_BID"), the submitter must provide their USDC wallet address.

In the future, this transaction's resulting order can be uniquely retrieved using the "clientOrderID": "1234" if there are no other transactions from the same user with the same clientOrderID. Note that even cancelled orders cannot reuse the same clientOrderID without causing issues with , though this will not have any effect on the orderbook's ability to fill the transaction itself.

Response:

Fields:

Example:

{
  "transaction": "AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3VviHhRXwajmbHjA81VWXrZn5eFs8QQgktl0zJIHYBY3t6VHnwK40CkHx94w499MTm6w2xUFNd4g/td6s0OsDAgAFD4ls26fgpAnCYufUzDrXMMpDjMYkf2Y2FHuxqKE+2+Ir4JOYQLjX3gNAS/hRzKTUUu1/FlowlWLc1wv3nKsGTt6EwvsYrtYZ9UZjJlPvBgKfAqhkvzgphnGBuyDfHXFcMEoHX5xmEhJgK0YZx3BKh/s3nhpE7IFyBzqsKBqiTDd6jfz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