Get Unsettled

Fetch unsettled token amount base on market.

Request

Method:

GET ./api/v2/openbook/unsettled/{market}

Parameters:

ParameterTypeDescription

market

string

Smart contract address/symbol of the market.

ownerAddress

string

User's account address to be fetched.

Request example:

curl --header "Authorization: $AUTH_HEADER" \
'https://ny.solana.dex.blxrbdn.com/api/v2/openbook/unsettled/SOLUSDC?ownerAddress=AFT8VayE7qr8MoQsW3wHsDS83HhEvhGWdbNSHRKeUDfQ'

Response:

Fields:

FieldTypeDescription

market

string

Smart contract address/symbol of the market.

unsettled

object

An array of unsettled details based on openOrderAccount. See below for detail

Unsettled:

FieldTypeDescription

account

string

User's trading account address.

baseToken

object

Base token address and amount.

quoteToken

object

Quoted token address and amount.

Example:

{
  "market": "8BnEgHoWFysVcuFFX7QztDmzuH8r5ZFvyP3sYwn1XTh6",
  "unsettled": [
    {
      "account": "GMJn....jkf9",
      "baseToken": {
        "address": "So11111111111111111111111111111111111111112",
        "amount": 0
      },
      "quoteToken": {
        "address": "EPjF....Dt1v",
        "amount": 1.199894
      }
    }
  ]
}

Last updated