Skip to main content
POST
GetMarketIdByName

Authorizations

Authorization
string
header
required

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

Headers

Connect-Protocol-Version
enum<number>
default:1
required

Define the version of the Connect protocol. If omitted, use 1.

Available options:
1
Connect-Timeout-Ms
number

Define the timeout, in ms

Body

application/json
assetSymbol
string
required

Underlying asset symbol, e.g. "BTC". Matched case-insensitively and trimmed.

quoteSymbol
string | null

Quote symbol, e.g. "PERP". Optional, but omitting it looks up a market named exactly by assetSymbol alone (e.g. "BTC") rather than "BTC-PERP", which may not resolve to any real market.

Response

200 - application/json

Success

marketId
string<int64>

Resolved on-chain market identifier.