We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 363fc33 commit 13a4aa4Copy full SHA for 13a4aa4
bxbot-exchanges/src/main/java/com/gazbert/bxbot/exchanges/CoinbaseExchangeAdapter.java
@@ -372,6 +372,10 @@ private ExchangeHttpResponse sendPublicRequestToExchange(
372
}
373
374
requestHeaders.put("Content-Type", "application/x-www-form-urlencoded");
375
+
376
+ // Bypass the exchange 1s cache.
377
+ // See: https://docs.cdp.coinbase.com/advanced-trade/docs/api-overview#public-endpoints
378
+ requestHeaders.put("Cache-Control", "no-cache");
379
380
381
final URL url = new URL(PUBLIC_API_BASE_URL + apiMethod + queryString);
0 commit comments