Skip to content

Commit

Permalink
fix(coinbase): prevent using exchange endpoint for intx pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucsky committed Jan 3, 2025
1 parent 90de2c0 commit 6d01433
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/exchanges/coinbase.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ class Coinbase extends Exchange {
}
}
async getMissingTrades(range, totalRecovered = 0) {
const isIntx = INTX_PAIR_REGEX.test(range.pair)
let endpoint
if (!range.earliestTradeId) {
if (isIntx || !range.earliestTradeId) {
endpoint = `https://api.coinbase.com/api/v3/brokerage/market/products/${
range.pair
}/ticker?limit=100&end=${Math.round(range.to / 1000)}&start=${Math.round(
Expand Down

0 comments on commit 6d01433

Please sign in to comment.