Advanced GetMarketTrades API does not include bid and ask info

I’m leveraging the advanced Get Market Trades API (https://api.coinbase.com/api/v3/brokerage/products/{product_id}/ticker). The response includes null values for bid and ask, but not for other elements.

Per the documentation, I should get the following;

{
  "trades": {
    "trade_id": "34b080bf-fcfd-445a-832b-46b5ddc65601",
    "product_id": "BTC-USD",
    "price": "140.91",
    "size": "4",
    "time": "2021-05-31T09:59:59Z",
    "side": "UNKNOWN_ORDER_SIDE",
    "bid": "291.13",
    "ask": "292.40"
  },
  "best_bid": "291.13",
  "best_ask": "292.40"
}

However the actual api response is below;

{ trades:
   [ { trade_id: '16031361',
       product_id: 'BTC-USDT',
       price: '36522.91',
       size: '0.00004028',
       time: '2023-11-18T14:59:07.117807Z',
       side: 'BUY',
       bid: '',
       ask: '' },
     { trade_id: '16031360',
       product_id: 'BTC-USDT',
       price: '36518.66',
       size: '0.0219',
       time: '2023-11-18T14:58:15.632611Z',
       side: 'BUY',
       bid: '',
       ask: '' },
     { trade_id: '16031359',
       product_id: 'BTC-USDT',
       price: '36519.21',
       size: '0.02668481',
       time: '2023-11-18T14:58:08.742836Z',
       side: 'SELL',
       bid: '',
       ask: '' } ],
  best_bid: '36524.88',
  best_ask: '36531.82' }

What am I missing?

1 Like