While writing a library to support the use of the Advanced Trade API, I’ve noticed that resources are returning with differing keys, which complicates any client implementation unnecessarily. In other Coinbase APIs, a consistent data
key is returned for a request, which is much more manageable.
For an abbreviated example, a GET
to /api/v3/brokerage/accounts
returns:
{
"accounts": [
...
],
...
}
and a GET
to /api/v3/brokerage/products
returns:
{
"products": [
...
],
...
}
For reference to the Sign-in with Coinbase API, a GET
to /v2/currencies
returns:
{
"data": [
...
],
...
}
It would be consistent and preferable for users of the API for every resource to return data
always.