POST
/
orders
/
placeOrder
curl --request POST \
  --url https://api-dex.chainstream.io/orders/placeOrder \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chain": "solana",
  "dex": "raydium",
  "amount": 1000000000,
  "price": 50.5,
  "side": "bid",
  "marketAddress": "58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2",
  "userAddress": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
  "priorityFee": "5000"
}'
{
  "serializedTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Order parameters
chain
enum<string>
required

Blockchain network identifier

Available options:
solana,
ethereum
Example:

"solana"

dex
enum<string>
required

DEX identifier

Available options:
raydium,
openbook,
jupiter
Example:

"raydium"

amount
number
required

Order amount in base units

Example:

1000000000

price
number
required

Order price in quote units

Example:

50.5

side
enum<string>
required

Order side

Available options:
bid,
ask
Example:

"bid"

marketAddress
string
required

Market/Pool address

Example:

"58oQChx4yWmvKdwLLZzBi4ChoCc2fqCUWBkwMihLYQo2"

userAddress
string
required

Wallet address placing the order

Example:

"HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"

priorityFee
integer
default:5000

Priority fee in microLamports

Example:

"5000"

Response

200 - application/json
serializedTx
string
required

Base64 encoded transaction

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="