I am trying to build a schema with my coinbase api, but I keep running into an issue:
openapi: 3.0.0
info:
title: Coinbase API Integration
description: An API specification for interacting with Coinbase for cryptocurrency portfolio data.
version: 1.0.0
servers:
- url: https://api.coinbase.com/v2
description: Coinbase API
paths:
/portfolio:
get:
operationId: getPortfolio
summary: Fetch portfolio data from Coinbase
responses:
'200':
description: Portfolio data retrieved
content:
application/json:
schema:
type: object
properties:
assets:
type: array
items:
type: object
properties:
currency:
type: string
balance:
type: string
value:
type: number
totalValue:
type: number
required:
- assets
- totalValue
'404':
description: Portfolio not found
Error message
[debug] Calling HTTP endpoint
{
"domain": "api.coinbase.com",
"method": "get",
"path": "/portfolio",
"operation": "getPortfolio",
"operation_hash": "e00bdc5d936059850fc70b9069ff57b55c362114",
"is_consequential": false,
"params": {}
}
[debug] Calling HTTP endpoint
{
"domain": "api.coinbase.com",
"method": "get",
"path": "/portfolio",
"operation": "getPortfolio",
"operation_hash": "e00bdc5d936059850fc70b9069ff57b55c362114",
"is_consequential": false,
"params": {}
}
[debug] Response received
{
"response_data": "404 page not found\n",
"status_code": 404,
"action_id": "g-8d08c286a41a0ed5eb35fc2f32174f20dbf0d4e6"
}
Error talking to
It seems there was an issue with accessing the Coinbase API, as the request resulted in a "404 page not found" error. This could be due to various reasons such as connectivity issues, changes in the API endpoint, or other technical difficulties. Unfortunately, I'm unable to retrieve the portfolio information at this time. Is there anything else I can assist you with?