Get Markets

Get all the markets information which supported by Trader API.

Request

Method:

GET ./api/v2/openbook/markets

Parameters:

Parameter
Type
Description

-

-

-

Request example:

curl --header "Authorization: $AUTH_HEADER" \
'https://ny.solana.dex.blxrbdn.com/api/v2/openbook/markets' 

Response:

Fields:

Fields
Type
Description

market

map

See below for details

Fields
Type
Description

market

string

Symbol of the market.

address

string

Market program address.

baseMint

string

Token program address of the base token.

quoteMint

string

Token program address of the quote token.

baseDecimals

number

Number of decimals for base token.

quoteDecimals

number

Number of decimals for quote token.

Response Example:

{
  "markets": {
    "GVZ/RAY-P_OPENBOOK": {
      "market": "AGVZ/RAY",
      "address": "9GZCkL5dKLXXBeihax9kSDggF1Q19wooSXESryLTCR8p",
      "baseMint": "CRSzWoeyfR8sJxB2d6LLEre92Uc59TCPX2gZidp4t3eE",
      "quotedMint": "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
      "baseDecimals": "9",
      "quoteDecimals": "6"
    },
      ...,
      "xLFNTY/USDC-P_OPENBOOK": {
      "market": "xLFNTY/USDC",
      "address": "7vLJCTpXcF4Tr4Nt42PyPQCcQud3MMQ6cuYd9bqzfxbQ",
      "baseMint": "xLfNTYy76B8Tiix3hA51Jyvc1kMSFV4sPdR7szTZsRu",
      "quotedMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "baseDecimals": "6",
      "quoteDecimals": "6"
    }
  }
}

Last updated