Вопрос: 401 несанкционированная ошибка для Coinbase Advanced Trade API /api/v3/brokerage/products//tickerPython

Программы на Python
Ответить Пред. темаСлед. тема
Anonymous
 Вопрос: 401 несанкционированная ошибка для Coinbase Advanced Trade API /api/v3/brokerage/products//ticker

Сообщение Anonymous »

Вопрос: 401 несанкционированная ошибка для API Coinbase Advanced Trade /api/v3/brokerage/products/
/ticker
Я создаю торгового бота с использованием Coinbase Advanced Trade API, но я сталкиваюсь с ошибкой 401 Unauthorized при попытке получить текущие рыночные данные из /api/v3/brokerage/products/
/ticker конечная точка.
Подробнее:

Код: Выделить всё

Setup:
Using the coinbase-advancedtrade-python SDK (EnhancedRESTClient).
API key format: organizations/{org_id}/apiKeys/{key_id}.
The key is loaded correctly, and the bot successfully connects to the Coinbase API (e.g., fetching account balances and tradable pairs works).

Authentication:
Authorization header:

Authorization: Bearer organizations/{org_id}/apiKeys/{key_id}

IP address is whitelisted.
The API key has permissions for View and Trade.
Проблема:

Код: Выделить всё

Fetching live ticker data returns:

HTTPError: 401 Client Error: Unauthorized for url: https://api.coinbase.com/api/v3/brokerage/products/BTC-GBP/ticker
Response Content: Unauthorized

This happens for all product pairs (e.g., BTC-GBP, ETH-GBP).

Troubleshooting Steps:
Verified the API key format and permissions.
Manually tested the API endpoint using curl, with the same 401 Unauthorized error.
Checked that the IP address is correctly whitelisted in the API key settings.
Tried generating signed requests using the private key, but the error persists.

Question:
Has anyone successfully used the /api/v3/brokerage/products/
/ticker endpoint for live market data?
Are there additional permissions or authentication steps required for this endpoint?
Does the Coinbase Advanced Trade API require specific headers or signing for this endpoint?
Будем очень признательны за любые идеи или примеры рабочих реализаций!
перепробовал все, пришлось прибегнуть к версии 2, но мне нужны живые ленты тикеров.< /п>

Подробнее здесь: https://stackoverflow.com/questions/793 ... v3-brokera
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «Python»