/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