POST
/
orders
/
createMarket
curl --request POST \
  --url https://api-dex.chainstream.io/orders/createMarket \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "chain": "solana",
  "dex": "openbook",
  "name": "SOL/USDC",
  "baseMint": "So11111111111111111111111111111111111111112",
  "quoteMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
  "baseLotSize": 100000000,
  "quoteLotSize": 100000,
  "userAddress": "HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH",
  "priorityFee": "5000",
  "makerFee": 0,
  "takerFee": 0,
  "timeExpiry": 0,
  "oracleA": "FmAmfoyPXiA8Vhhe6MZTr3U6rZfEZ1ctEHay1ysqCqcf",
  "oracleB": "GwzBgrXb4PG59zjce24SF2b9JXbLEjJJTBkmytuEZj1b",
  "extra": {
    "tags": [
      "spot",
      "perpetual"
    ],
    "description": "SOL/USDC spot market"
  }
}'
{
  "serializedTx": "AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
}

Authorizations

Authorization
string
header
required

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

Body

application/json
Required parameters for creating trading pair
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:

"openbook"

name
string
required

Market display name

Required string length: 3 - 20
Example:

"SOL/USDC"

baseMint
string
required

Base token mint address

Example:

"So11111111111111111111111111111111111111112"

quoteMint
string
required

Quote token mint address

Example:

"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"

baseLotSize
number
required

Minimum tradeable amount of base token

Example:

100000000

quoteLotSize
number
required

Minimum tradeable amount of quote token

Example:

100000

userAddress
string
required

Market creator wallet address

Example:

"HN7cABqLq46Es1jh92dQQisAq662SmxELLLsHHe4YWrH"

makerFee
number
default:0
required

Maker fee in basis points (1 = 0.01%)

Required range: 0 <= x <= 10000
Example:

0

takerFee
number
default:0
required

Taker fee in basis points (1 = 0.01%)

Required range: 0 <= x <= 10000
Example:

0

timeExpiry
number
default:0
required

Order expiry time in seconds

Required range: x >= 0
Example:

0

priorityFee
integer
default:5000

Priority fee in microLamports

Example:

"5000"

oracleA
string

Primary oracle account address

Example:

"FmAmfoyPXiA8Vhhe6MZTr3U6rZfEZ1ctEHay1ysqCqcf"

oracleB
string

Secondary oracle account address

Example:

"GwzBgrXb4PG59zjce24SF2b9JXbLEjJJTBkmytuEZj1b"

extra
object

Additional market creation metadata

Example:
{
  "tags": ["spot", "perpetual"],
  "description": "SOL/USDC spot market"
}

Response

200 - application/json
serializedTx
string
required

Base64 encoded transaction

Example:

"AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDRgYGpQEDAQIABQcICQoLDA0ODwAAAAAAAAAAAAAQERITFBUWFxgZGhscHR4fAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="